justadudewhohacks / justadudewhohacks/opencv4nodejs

.read() hangs without error message

Open
#619 0 comments 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 v 3.2.0, as auto-built by opencv4nodejs, Running on Raspbian Lite.

Both a USB and the onboard camera are properly configured and verified as working via a test snapshot. It activates the USB camera, and the status light comes on, but it seems to hang. No error message, a try/catch doesn't get tripped. It just hangs. :-/ I've tried increasing the delay to allow more time to load, but it seems to never return a frame or an error.

`sleep.sleep(30);
console.log("Starting up");
cam.read(function(err, frame){
if(err){console.log(err)};
console.log("Grabbed first frame");
firstFrame = frame;
firstFrame.cvtColor('CV_BGR2GRAY');
firstFrame.gaussianBlur([21,21]);
});`

Any tips on increasing logging level for opencv4nodejs, or ideas on further troubleshooting? Thx in advance.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.