SparkFun Forums 

Where electronics enthusiasts find answers.

By fll-freak
#176764
I am working on a telemetry package for my AVC robot. I want to be able to do the following with the data after a run with data logged to memory cards. At some point it might be nice to do the following with live data from an Xbee or similar.

1) Provide VCR like controls to play the data forward, rewind, jump to a set point, change playback speeds, ...
2) Display a map with the location of the robot (in resizeable windows)
3) Display a strip chart recorder with up to 6 parameters (in resizeable windows)
4) Display a table of parameters (in resizeable windows)
5) Display async debug messages (in resizeable windows)
6) Display video from an AVI file in sequence with the above (in resizeable windows)

I have much of this working in chunks using Python, Numpy, Matplotlib, and other modules. What I need are some suggestions for how to open an AVI/MOV file, jump to a location, and display a frame to a window from Python in Windows.

I am looking for an API like this:
OpenDisplayWindow
OpenMediaFile
Seek
DisplayFrame
Step
CloseMediaFile
ResizeDisplayWindow
CloseDisplayWindow

Is OpenCV the way to go? Would that even work? is there something simpler?