a26cfc28529d7c544b1b72e300bffa7ffd6977cc
[opencv] / tests / python / highgui / cvCreateFileCaptureYUY2.py
1 #! /usr/bin/env python
2 """
3 This script will test highgui's video reading functionality
4 for RAW YUY2 .avi files
5 """
6
7 # pixel format to check
8 FORMAT   = "YUY2"
9
10 # import check routine
11 import cvCreateFileCapture
12
13 # check video file of format FORMAT,
14 # the function also exits and returns
15 # 0,1 or 77 accordingly.
16
17 cvCreateFileCapture.video_ok(FORMAT)