justadudewhohacks / justadudewhohacks/opencv4nodejs

请问这个包,我读取本地视频,为什么出来都是黑屏的Mat

Open
#613 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
5.1k
Forks
826
PR merge metrics
No merged PRs in 30d

Description

在opencv-build的 npm install过程中,fseeko等文件not found

const cv = require('opencv4nodejs');
const vCap = new cv.VideoCapture('./summary.mp4');
const frame = vCap.read();
const matAsArray = frame.getData();
console.log(matAsArray)
获取本地视频读取,获得的矩阵,都是黑色的,为什么

auto build

*OpenCV version* (example 3.4.6)

*With OpenCV-contrib?* (extra modules): yes

*OS*: Windows 8.1

Contributor guide

Open the contributing guide

Research direction

Start with the reported `npm install` failure in `opencv-build`, then inspect the `VideoCapture('./summary.mp4')` and `frame.getData()` path described in the issue. Reproduce the Windows 8.1 behavior and determine whether the missing `fseeko` files or video decoding causes the black matrix; done means the cause is documented and local video frames are read correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, javascript, nodejs
Domain
build-system, computer-vision
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.