Skip to content
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

HIGHGUI ERROR: V4L #10

Open
Wepamat opened this issue Aug 11, 2016 · 2 comments
Open

HIGHGUI ERROR: V4L #10

Wepamat opened this issue Aug 11, 2016 · 2 comments

Comments

@Wepamat
Copy link

Wepamat commented Aug 11, 2016

Hello,

I do have a Problem running your code on my raspberry pi3.
I installed:
Node.js v0.12.15
OpenCV v2.4.13 (compiled on the Rasperry without error)
These two were necessary to run the npm install which also worked fine.

However, when I run the server.js script with node, I get the following Error as soon as I open the localhost website:
``
`
root@raspberrypi:/home/pi/face-detection-node-opencv/server# node server.js
/dev/video0 does not support memory mapping
munmap: Invalid argument
munmap: Invalid argument
munmap: Invalid argument
munmap: Invalid argument
Unable to stop the stream.: Bad file descriptor
munmap: Invalid argument
munmap: Invalid argument
munmap: Invalid argument
munmap: Invalid argument
HTTP server listening on port 8080
GET /favicon.ico 200 18.167 ms - 410
HIGHGUI ERROR: V4L: Initial Capture Error: Unable to load initial memory buffers.
OpenCV Error: Bad flag (parameter or structure field) (Unrecognized or unsupported array type) in cvGetMat, file /build/opencv-ISmtkH/opencv-2.4.9.1+dfsg/modules/core/src/array.cpp, line 2482
HIGHGUI ERROR: V4L: Initial Capture Error: Unable to load initial memory buffers.
/home/pi/face-detection-node-opencv/server/lib/routes/socket.js:24
if (err) throw err;
^
Error: /build/opencv-ISmtkH/opencv-2.4.9.1+dfsg/modules/core/src/array.cpp:2482: error: (-206) Unrecognized or unsupported array type in function cvGetMat

at Error (native)

`
``

The results I got by using google didn't help me too much.
I tried installing the v4l2 driver but I guess it is included with raspbian anyway and doesn't help.

Any idea on that?
Would be really appreciated

@estherjk
Copy link
Owner

Unfortunately, I'm unsure of what this error could be. I don't have a RPi3 to test on either. :/

@kirax999
Copy link

i'm look your code for test i'm comment line 24 to 31 in socket.js/ .

after comment line i'm get other error message

VIDIOC_QBUF: Invalid argument
OpenCV Error: Unknown error code -10 (Raw image encoder error: Empty JPEG image (DNL not supported)) in throwOnEror, file /home/pi/Desktop/camera/opencv-3.2.0/modules/imgcodecs/src/grfmt_base.cpp, line 139
terminate called after throwing an instance of 'cv::Exception'
what(): /home/pi/Desktop/camera/opencv-3.2.0/modules/imgcodecs/src/grfmt_base.cpp:139: error: (-10) Raw image encoder error: Empty JPEG image (DNL not supported) in function throwOnEror

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants