Microsoft Lifecam HD-3000 not starting up on GRIP in Kangaroo #788

Open
derekhohos opened this Issue Jan 16, 2017 · 10 comments

Projects

None yet

7 participants

@derekhohos
derekhohos commented Jan 16, 2017 edited

Using a Kangaroo (runs Windows 10) to run GRIP (version 1.5.1), the Microsoft Lifecam HD-3000 is plugged into the Kangaroo's USB port. I tried to add a webcam source to port 0. The application seems to detect the webcam as the webcam's blue light indicator blinks twice (which indicates an error), and no feed appears on the pipeline. I get a CameraSource error with the description "Camera service crashed". Then, GRIP crashes about 10 seconds later. Note that the webcam seems to work properly with GRIP on other devices, such as my laptop. I reinstalled the webcam driver multiple times on the Kangaroo, tried rolling back to previous versions of GRIP, but nothing seemed to allow the webcam feed to appear. Also note that on the Kangaroo, the webcam DOES function when I open the Camera application that comes with Windows 10 (the blue light indicator stays solid). Not sure what's not allowing the feed to work properly on GRIP on Kangaroo.

Stack trace for CameraSource error:

edu.wpi.grip.core.sources.GrabberService$GrabberServiceException: [Webcam 0] Failed to grab image
	at edu.wpi.grip.core.sources.GrabberService.runOneGrab(GrabberService.java:75)
	at edu.wpi.grip.core.sources.GrabberService.run(GrabberService.java:64)
	at com.google.common.util.concurrent.AbstractExecutionThreadService$1$2.run(AbstractExecutionThreadService.java:66)
	at com.google.common.util.concurrent.Callables$4.run(Callables.java:122)
	at java.lang.Thread.run(Thread.java:745)
Caused by: org.bytedeco.javacv.FrameGrabber$Exception: videoInput.getPixels() Error: Could not get pixels.
	at org.bytedeco.javacv.VideoInputFrameGrabber.grab(VideoInputFrameGrabber.java:171)
	at edu.wpi.grip.core.sources.GrabberService.runOneGrab(GrabberService.java:73)
	... 4 more
@JLLeitschuh
Member

Can you view the webcam on your Kangaroo in another program other than GRIP?
Some other things you could try would be using different numbers.

I'm a mac user so I've never seen this before.
@saudet
This seems like its appearing in your library. Any thoughts?
For note this is what we are using for version:

compile group: 'org.bytedeco', name: 'javacv', version: '1.1'
compile group: 'org.bytedeco.javacpp-presets', name: 'opencv', version: '3.0.0-1.1'

Link to build declaration

@derekhohos

Yes, I can view my webcam on my Kangaroo on the native Camera application that comes with Windows 10. It appears that I have solved the issue by rolling back the Microsoft Lifecam HD-3000 driver to a previous driver version that I found off the internet. GRIP may not have been compatible with the latest webcam driver that was installed when initially plugging the webcam to the Kangaroo's USB port.

@JLLeitschuh
Member
JLLeitschuh commented Jan 17, 2017 edited

Strange.
Sounds like a bug in opencv or the new driver has a bug.
Either way, someone isn't correctly implementing some standard.

@saudet
saudet commented Jan 18, 2017

Try with with OpenCVFrameGrabber and FFmpegFrameGrabber as well. One of them ought to work.

@schwartzben
schwartzben commented Jan 29, 2017 edited

@derekhohos What version of the Microsoft Lifecam HD-3000 driver did you install? Also, do you have the link to the website from which you installed it from? I am getting the exact same error as you and I cannot seem to find any versions of Lifecam's drivers below 3.6 (which is the most recent version).

Edit: I did it!

@saudet
saudet commented Jan 30, 2017

If the width and height are not set, 640x480 is used by default:
https://github.com/bytedeco/javacv/blob/master/src/main/java/org/bytedeco/javacv/VideoInputFrameGrabber.java#L108
So maybe that driver doesn't support this resolution?

@bcteamvision

What version of the driver did you install? We are having the same issues. @derekhohos

@wjwalcher

Having the same issue here, would love to know what version of the driver you installed @derekhohos

@onenerdyguy
onenerdyguy commented Feb 7, 2017 edited

Same issue here, with the default driver that installed when you plug it in. @schwartzben , can you tell me which driver you used? I'm in the process of putting the 3.6 on now, hoping that's it.

Edit:
Swapped the driver to the "USB Camera Device" that's built into win10, works fine.

@wjwalcher

Hey guys! Nobody has actually posted how to fix this yet, so I figured I'd resolve this once and for all.
I was able to fix our Kangaroo by downloading the 4.25.532.0 driver from here: http://drivers.softpedia.com/get/SCANNER-Digital-CAMERA-WEBCAM/Microsoft/Microsoft-LifeCam-HD-3000-Driver-4255320-for-Windows-10-64-bit.shtml.
Let me know if you have any other questions, I'd be happy to help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment