Update to 2.0.0 tree from current Fremantle build
[opencv] / tests / swig_python / highgui / cvLoadImagePPM.py
1 #! /usr/bin/env python
2 """
3 This script will test highgui's image loading functionality
4 for .ppm files
5 """
6
7 # file extension to check
8 EXTENSION  = "ppm"
9
10 # import check routine
11 import cvLoadImage
12 import sys
13
14 # check image file of extension EXTENSION,
15 # the function also exits and returns
16 # 0,1 or 77 accordingly.
17
18 if cvLoadImage.image_ok(EXTENSION):
19         sys.exit(0)
20 else:
21         sys.exit(1)
22