3 This script will test highgui's video reading functionality
4 for a given parameter RAW formats.
8 # needed for sys.exit(int) and .works file handling
13 #import the necessary things for OpenCV
15 from opencv.highgui import *
16 from opencv.cv import *
20 TESTNAME = "cvCaptureFromFile"
22 PREFIX = "/home/dols/Source/opencv/data/qcif_"
26 # this functions tries to open a videofile
27 # using the filename PREFIX+FORMAT.EXTENSION and returns True/False
30 def video_ok( FORMAT ):
32 # check requirements and delete old .works file
33 if not works.check_files( REQUIRED, TESTNAME+FORMAT ):
36 video = cvCaptureFromFile(PREFIX+FORMAT+EXTENSION)
41 works.set_file( TESTNAME+FORMAT )