Update to 2.0.0 tree from current Fremantle build
[opencv] / tests / swig_python / highgui / cvCreateFileCaptureUYVY.py
diff --git a/tests/swig_python/highgui/cvCreateFileCaptureUYVY.py b/tests/swig_python/highgui/cvCreateFileCaptureUYVY.py
new file mode 100755 (executable)
index 0000000..0f3c04b
--- /dev/null
@@ -0,0 +1,17 @@
+#! /usr/bin/env python
+"""
+This script will test highgui's video reading functionality
+for RAW UYVY .avi files
+"""
+
+# pixel format to check
+FORMAT   = "UYVY"
+
+# 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)