Try the Python shell for OpenCV, such as ctypes-opencv . The C API link is here , and the shell is very close (see Docstrings for any changes).
I used it to paint without any flicker, so you shouldn't have a problem with this.
A rough outline of the necessary calls:
- Download the video using cvCreateFileCapture, download the cvFont font.
- Take a frame with cvQueryFrame, increase the frame counter.
- Draw a frame with cvPutText, cvEllipse, etc. etc.
- Display to user using cvShowImage.
source share