-
Notifications
You must be signed in to change notification settings - Fork 178
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
No video displaying #1
Comments
@lezabour, I'd be happy to help. Have you been able to use your webcam successfully with other applications on your pi? If not, can you try typing |
Hi, Thanks for your help. thanks for your help |
@lezabour, does the camera turn on when running the server? I just want to make sure that the camera at least turns on when you start the server. (The green LED indicator on my webcam turns on when I start the server). If not, let's double-check that And also, out of curiosity... are you attempting to open the page locally on your pi or on a computer on the same network? If the latter, modify the |
Hi, Thanks again for your help. I go with my browser on my laptop (not the pi). So as you ask, i just changed the URL in client/apps.js, for 192.168.xx.xx:8080 is now it seems more active!!
So we are moving on, almost their, but not yet ;) thanks again!! |
Ok, progress! So, the camera indicator does turn on for me when I start the server on my laptop before I connect to it on the browser. I think it's okay if the camera turns on once you connect though -- images are only read from the camera once there is an active connection anyway. For the other issues, I wonder if the frame rate might also be too high for the pi? Can you try lowering |
Hi, Thanks ;) |
Hm... not sure what the issue is. Which version of OpenCV are you using? |
2.4.9... |
@lezabour, I'm hoping to set up a raspberry pi and try it out, to see what the issues might be. It might take me a bit, but hopefully I'll have answers for you soon. |
Ok no problem |
@lezabour, ugh I accidentally deleted your last post. Apologies about that. It certainly is odd that the server goes down without outputting anything. Can you also check the console on the browser? Is anything outputted there? In any case, I am trying to test this on a pi, but I've been running into issues building opencv 2.4.9 (and node-opencv). It seems like someone else has been running into issues with node-opencv on Raspberry Pi too -- see peterbraden/node-opencv#196. |
Hey, sudo apt-get install build-essential cmake pkg-config python-dev libgtk2.0-dev libgtk2.0 zlib1g-dev libpng-dev libjpeg-dev libtiff-dev libjasper-dev libavcodec-dev swig unzip sudo apt-get -y install build-essential cmake cmake-curses-gui pkg-config libpng12-0 libpng12-dev libpng++-dev libpng3 libpnglite-dev zlib1g-dbg zlib1g zlib1g-dev pngtools libtiff4-dev libtiff4 libtiffxx0c2 libtiff-tools libeigen3-dev sudo apt-get -y install libjpeg8 libjpeg8-dev libjpeg8-dbg libjpeg-progs ffmpeg libavcodec-dev libavcodec53 libavformat53 libavformat-dev libgstreamer0.10-0-dbg libgstreamer0.10-0 libgstreamer0.10-dev libxine1-ffmpeg libxine-dev libxine1-bin libunicap2 libunicap2-dev swig libv4l-0 libv4l-dev python-numpy libpython2.6 python-dev python2.6-dev libgtk2.0-dev wget http://downloads.sourceforge.net/project/opencvlibrary/opencv-unix/2.4.9/opencv-2.4.9.zip cd opencv-2.4.9 dependencies sudo apt-get install python-pip NODE.JS To make sure it ran correctly, run node -v. It should return the current version. NODE.JS & OPENCV (NODE-OPENCV)
Hope it will help you. With this, i reinstall opencv / node.js / node-opencv , 2 or 3 times on raspberry & raspbarian and every thing works. Thanks |
@lezabour thanks for the instructions. Another question though: opencv 2.4.9 is built from source first, but then |
@lezabour I managed to get OpenCV 2.4.9 installed from source (from the first part of your instructions). I also installed Unfortunately, performance is very poor. I reduced the frame rate to 1 fps and the image size to 160x120, and it was very slow. It takes awhile for an image to show up. A few frames will process, but then the server eventually goes down with a
Not sure of the best way to resolve this.... |
Hi, Thank again for taking time to test! But i think that the Raspberry is has not enough power to run opencv in node.js Thanks |
@lezabour I also think it's a performance issue with the pi. I am also curious as to how well it run on the raspberry pi 2. |
Hi, pi@RPI ~/projets/nodejs/face-detection-node-opencv/server $ node server.js Anyway, thanks for your help ;) |
@lezabour sorry to hear the the pi 2 also has the same issue. I guess it is also not powerful enough to run opencv with node and websockets. I'll go ahead and close this issue for now. |
Hi! Although this issue was close, I'd like to give some clarifications, thus I've been in the same situation as @lezabour. I was using an RPi 2 with an usual web cam, and I noticed, just like you that the video is not loading. So I've switched to RPi3, decreased the fps to 5 and finally I was able to run the application. Still, after 30s or so, I got Segmentation fault error. I've noticed that it was caused by SoC overheating. So, I've glued some radiators on the SoC and memory to dissipate the heat and now it work better. Still Segmentation fault after some time though... :) |
Hi,
thank you for your code and work! I saw your video, seems really good.
I've have search for similar project, to be able to understand how to send pictures to opencv, detect face (later recognize) and display live feed of the video... exactly what you did.
i've been trying to make it run on raspberry pi, with usb camera. But it's not working ;(
I run the "npm install" in server, everything is OK.
Then i run "sudo node server.js", and it seems to work.
But when i use my browser 2 things:
Do you have an idea from where it could come?
Thanks for your help!!
The text was updated successfully, but these errors were encountered: