Update to 2.0.0 tree from current Fremantle build
[opencv] / tests / python / highgui / query_test.py
diff --git a/tests/python/highgui/query_test.py b/tests/python/highgui/query_test.py
deleted file mode 100644 (file)
index 85cdc4c..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-"""
-This script will test highgui's cvQueryFrame() function
-for different video formats
-"""
-
-# import the necessary things for OpenCV and comparson routine
-import os
-import python
-from python.highgui import *
-from python.cv import *
-import match
-
-# path to videos and images we need
-PREFIX=os.environ["top_srcdir"]+"/tests/python/testdata/"
-
-# this is the folder with the videos and images
-# and name of output window
-IMAGES         = PREFIX+"images/"
-VIDEOS         = PREFIX+"videos/"
-
-# testing routine, called for each entry in FILENAMES
-# and compares each frame with corresponding frame in COMPARISON
-def query_ok(FILENAME,ERRORS):
-
-    # create a video reader using the tiny videofile VIDEOS+FILENAME
-    video=cvCreateFileCapture(VIDEOS+FILENAME)
-
-    if video is None:
-       # couldn't open video (FAIL)
-       return 1
-
-    # call cvQueryFrame for 29 frames and check if the returned image is ok
-    for k in range(29):
-       image=cvQueryFrame(video)
-
-       if image is None:
-       # returned image is NULL (FAIL)
-               return 1
-
-       if not match.match(image,k,ERRORS[k]):
-               return 1
-       
-    cvReleaseCapture(video)
-    # everything is fine (PASS)
-    return 0