Update the changelog
[opencv] / tests / python / highgui / cvLoadImageSR.py
1 #! /usr/bin/env python
2 """
3 This script will test highgui's image loading functionality
4 for .sr files
5 """
6
7 # file extension to check
8 EXTENSION  = "sr"
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