|
-
October 25th, 2010, 05:26 PM
#1
Webcam Capture problem
Hello Everyone 
Currently , I am facing a stubborn problem capturing video from a webcam using JAVA.
i've used JMF and OpenCV:
JMF: it worked fine on my machine (check the specs below) .. but refused to work on any other machine i've tested ! ...
the problem is with JMStudio ... although the webcam is present in the capture device list , when i select "capture" and choose the default options of the JMStudio's capture dialog box ..... another dialog box appears !!! , asking me to select the video source device , so i do , then an error box "Could not initialize capture device" .. and nothing happens !
(the "select video source" box belongs to the javaw.exe process)
OpenCV (wrapped for JAVA ubaa.net/shared/processing/opencv/):
it worked fine on my machine also ... but failed on all other tested machines (see their specs below) ... when the program starts to capture , the same "select video source device" dialog appears ... then i select my webcam from the list .... i get a black screen ... no data is received from the buffer at all ! (also , opencvObj.width & height are both ZERO)
i've also tried OpenCV through the "Processing" library ... but of no use 
Notes:
1. my machine (that works) is older than the other tested machines (2008 vs 2010)
2. my machine's webcam supports RGB ... other webcams support YUV ONLY ... (YUV works fine on my machine with JMF btw)
3. I am using the latest version of JDK & JMF , but OpenCV v1.0 (for the wrapper to work correctly)
Specs:
1. my machine (webcam works fine in ALL cases):
webcam: Creative Integrated webcam
OS: Win7 32-bit
2. other machines i've tested:
webcam: HP integrated webcam - Dell integrated webcam
OS: win7 32-bit & win7 64-bit
Can anyone guide me to reach a solution ?
Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|