f88ddd9c96113d3978e2f6cc7d3835db0221ef38
[opencv] / tests / python / highgui / size_bmp32.py
1 #! /usr/bin/env python
2
3 """
4 This script checks HighGUI's cvGetCaptureProperty functionality for correct return
5 of the frame width and height of an .avi file containing uncompressed 32bit Bitmap frames.
6 """
7
8 # name if this test and it's requirements
9 TESTNAME = "size_bmp32"
10 REQUIRED = []
11
12 # needed for sys.exit(int), .works file handling and check routine
13 import sys
14 import works
15 import size_test
16
17 # check requirements and delete old flag file, if it exists
18 if not works.check_files(REQUIRED,TESTNAME):
19         sys.exit(77)
20
21 # name of file we check here
22 FILENAME='bmp32.avi'
23
24 # run check routine
25 result=size_test.size_ok(FILENAME)
26
27 # create flag file for following tests
28 works.set_file(TESTNAME)
29
30  # return result of test routine
31 sys.exit(result)