You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
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
`
``
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
The text was updated successfully, but these errors were encountered: