18 lines
348 B
Python
18 lines
348 B
Python
|
#! /usr/bin/env python
|
||
|
"""
|
||
|
This script will test highgui's video reading functionality
|
||
|
for RAW YV16 .avi files
|
||
|
"""
|
||
|
|
||
|
# pixel format to check
|
||
|
FORMAT = "YV16"
|
||
|
|
||
|
# import check routine
|
||
|
import cvCreateFileCapture
|
||
|
|
||
|
# check video file of format FORMAT,
|
||
|
# the function also exits and returns
|
||
|
# 0,1 or 77 accordingly.
|
||
|
|
||
|
cvCreateFileCapture.video_ok(FORMAT)
|