UPDATE: As i said guys, when the face tracking program is launched immediately on start-up, i don't get this error, otherwise i do. Now, the program has launched, without an error, but the display output is totally black. Any suggestions guys?
I also referred to CP's solution to this same problem, ON A LAPTOP, but to no avail. I installed quicktime, and a vdig driver, but no progress till now.
Hello guys,
So i am closing in on one whole week of getting the hand of face tracking using openCV, processing and arduino. Although CP's tutorials have proved helpful along the way, the same error is always keeping me within touching distance of my goal.
Here are some specifications:
Device : Laptop ( Dell Inspiron 1545 which has a really poor graphic card, but i also tried it on Dell Inspiron 15R which has a good graphic card ) I am suspecting the laptop to be the reason behind this. I have used the Laptop's in-built webcam and an external webcam on separate occasions, disabling the in-built webcam while using the external webcam, and unplugging the external one while using the in-built webcam.
OS: i was using windows 8, which i thought was the issue, but have downgraded to win 7, and nothing has changed.
Processing version : 1.5 ( Chickenparmi got it running with this version, so i didn't try out any upgrades)
OpenCV: 1.0
I installed OpenCV, installed the libraries as well. However, the program launches without any error on startup ( if executed immediately after restarting, but still, the display output is totally black )
Upon closing all Processing windows and executing the program again, i get the error as depicted in the picture above. If it's not clear, this is what it says :
Error while starting capture : device 0
Drag mouse on X-axis inside this sketch window to change contrast
Drag mouse on Y-axis inside this sketch window to change brightness
OpenCV could not define source dimensions.
Exception in thread "Animation Thread" java.lang.NullPointerException
at processing.core.PGraphics.image(Unknown Source)
at processing.core.PApplet.image(Unknown Source)
at face_detection.draw(face_detection.java:71)
at processing.core.PApplet.handleDraw(Unknown Source)
at processing.core.PApplet.run(Unknown Source)
at java.lang.Thread.run(Thread.java:662)
I haven't tried it on a desktop. But, i don't see a fair reason as to why it should not run on a laptop. I do feel that the internal webcam is the issue though.
I am also following the face tracking tutorial available on the sparkfun website.
It's been nearly a week i have been on to this, and am looking forward to puttting and end to this here at LMR.
Cheers,
Ashim