Wednesday, July 20, 2011

Video work

I've added video reading support with Opencv and GStreamer backends.

camera =CvVideo("test.avi")
#or camera = GstVideo("test.avi")
image = camera.get()

Extending the backend system to support switching classes would be great, similar to the way we handle functions but in a Video("test.avi", backend="opencv") kind of way.
The Opencv video duration retrieval methods are currently broken in Linux, but I implemented it anyway for when they fix it in the future. Until then, the functionality is there in GStreamer. Both implementations also play IP camera streams, so between them you are pretty much set to handle most cameras/codecs.

No comments:

Post a Comment