mirror of
https://github.com/opencv/opencv.git
synced 2024-12-04 08:49:14 +08:00
18 lines
361 B
Python
Executable File
18 lines
361 B
Python
Executable File
#! /usr/bin/env python
|
|
"""
|
|
This script will test highgui's video reading functionality
|
|
for RAW Y8 (luminance only) .avi files
|
|
"""
|
|
|
|
# pixel format to check
|
|
FORMAT = "Y8"
|
|
|
|
# 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)
|