File: cvLoadImageJPG.py

package info (click to toggle)
opencv 2.1.0-3%2Bsqueeze1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 68,800 kB
  • ctags: 52,010
  • sloc: cpp: 554,793; xml: 475,942; ansic: 153,396; python: 18,622; sh: 428; makefile: 111
file content (22 lines) | stat: -rwxr-xr-x 383 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#! /usr/bin/env python
"""
This script will test highgui's image loading functionality
for .jpg files
"""

# file extension to check
EXTENSION  = "jpg"

# 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)