mirror of https://github.com/opencv/opencv.git
Open Source Computer Vision Library
https://opencv.org/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
385 B
23 lines
385 B
15 years ago
|
#! /usr/bin/env python
|
||
|
"""
|
||
|
This script will test highgui's image loading functionality
|
||
|
for .tiff files
|
||
|
"""
|
||
|
|
||
|
# file extension to check
|
||
|
EXTENSION = "tiff"
|
||
|
|
||
|
# import check routine
|
||
|
import cvLoadImage
|
||
|
import sys
|
||
|
|
||
|
# check image file of extension EXTENSION,
|
||
|
# the function also exits and returns
|
||
|
# 0,1 or 77 accordingly.
|
||
|
|
||
|
if cvLoadImage.image_ok(EXTENSION):
|
||
|
sys.exit(0)
|
||
|
else:
|
||
|
sys.exit(1)
|
||
|
|