-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VIDIOC_QUERYMENU: Invalid argument #2
Comments
Can you try making writeFileSync async (writeFile) and destroy when it is done writing? I think the underlying opencv binding might not be handling something right here |
I will test but the problem seems not appear inside the callback of |
In the README: "createStream optionally takes a camera number and defaults to 0 for the main camera" Can you try passing in a different number to createStream? It's possible you have a "camera" attached to your computer (physically or virtually) that is messing this up by identifying as your main camera when it isn't |
Ok so I have try to pass an another index to createStream (1, 2, etc.) but it seems not resolved the problem :
I have also try to remove the line for writing image to filesystem but the problem always appear... |
What type/model camera do you have plugged in? The data coming back from it is not playing well with OpenCV |
Okay so it looks that error is in fact coming from a camera compatibility issue. Try another camera or open an issue against OpenCV |
Okay, this error isn't it ! But it sound like a bug because your library don't use the last VideoCapture API of OpenCV. --> Changelog And your seems correct the problem in your last commit ! I will try your last commit now... |
Ok, so with your last modification, you've correct the problem ;) |
Hi,
I try to make a little program with the example to take screenshot with my webcam.
I have installed OpenCV and I write this piece of code :
when I execute this code, I have an error :
and no image was save... a solution ?
The text was updated successfully, but these errors were encountered: