revVideoGrab for newer Windows webcams (UVC vs VFW)
Posted: Fri Sep 16, 2016 4:54 pm
I'm using a webcam to capture images that I then analyze for type, location and legibility of certain features. The system has to run on Windows for the foreseeable future.
I need higher resolution than the 720p webcam I started with in order to have enough resolution to analyze some items I'm looking for so I ordered a nice 5 Meg USB ELP Mini cam from Amazon. It turns out I didn’t do enough due diligence and it uses UVC rather than VFW (which supposedly is now obsolete?). It works using VLC (though I haven't figured out how to change the cam's framerate... a requirement to increase the resolution)
For what I'm doing...... This means the revInitializeVideoGrabber command doesn't actually do what I need it to do. I just get a black image instead of an image from the cam. Ii tried the obvious (and stupid)... replacing "VFW" with "UVC" and killed Livecode. Should have known better. (revInitializeVideoGrabber the short name of this stack, "uvc",the rect of this stack)
While I will probably be able to figure out how able to use a different tool to capture and store the image which I can then open from LC, I'd much prefer to have everything self-contained in my LC app.
Questions:
1) Has anyone developed an external that interfaces with a UVC camera?
2) Are there any plans to update the revVideo library to work with UVC?
3) Has anyone dealt with this issue before and have any pointers?
4) With the move to AVFoundation on LC for OSX, is QT a dead-end? I have control over the machines I'm using so could theoretically install whatever I need (QT) but: 1) this isn't going t ohelp with this particular cam I don't think and 2) if QT is going away then that's not a long term solution.
I need higher resolution than the 720p webcam I started with in order to have enough resolution to analyze some items I'm looking for so I ordered a nice 5 Meg USB ELP Mini cam from Amazon. It turns out I didn’t do enough due diligence and it uses UVC rather than VFW (which supposedly is now obsolete?). It works using VLC (though I haven't figured out how to change the cam's framerate... a requirement to increase the resolution)
For what I'm doing...... This means the revInitializeVideoGrabber command doesn't actually do what I need it to do. I just get a black image instead of an image from the cam. Ii tried the obvious (and stupid)... replacing "VFW" with "UVC" and killed Livecode. Should have known better. (revInitializeVideoGrabber the short name of this stack, "uvc",the rect of this stack)
While I will probably be able to figure out how able to use a different tool to capture and store the image which I can then open from LC, I'd much prefer to have everything self-contained in my LC app.
Questions:
1) Has anyone developed an external that interfaces with a UVC camera?
2) Are there any plans to update the revVideo library to work with UVC?
3) Has anyone dealt with this issue before and have any pointers?
4) With the move to AVFoundation on LC for OSX, is QT a dead-end? I have control over the machines I'm using so could theoretically install whatever I need (QT) but: 1) this isn't going t ohelp with this particular cam I don't think and 2) if QT is going away then that's not a long term solution.