PDA

View Full Version : Video Parsing - Frame by Frame



ctote
15th February 2010, 06:55
Hey again everyone,

I'm still pretty new to Qt. Is there a way to parse video over a USB connection? For example, we have a Sony HandyCam that connects to the computer via USB -- we need to be able to take in that data frame-by-frame and parse our pixels for colors of interest. Can someone point me in the general direction? Preferably, the solution would be platform independent but this isn't a requirement right away.

Thanks for any help

high_flyer
15th February 2010, 09:40
The image acquisition it self will have to be handled by the USB driver and the utility lib that usually comes with such a driver.
The application being cross platform is dependent on the platforms support by the camera driver, and if it comes with a utility lib, then the platforms which this lib supports.

The rest, handling the image data it self, can be done with Qt in a cross platform way.

Classes of interest will probably be:
QImage,
QPixmap,
QByteArray

ctote
15th February 2010, 16:55
Currently we're using VideoCapX -- any clue about how we can get that incorporated somehow?

schnitzel
15th February 2010, 18:30
did you get the source code or just the activex component?
It must have come with some code examples.
You might want to read up on all the QAx classes.