blur_detector.py
Go to the documentation of this file.
00001 #! /usr/bin/env python
00002 import roslib; roslib.load_manifest('pano_py')
00003 import rospy
00004 import cv
00005 import time
00006 import pano_py as pano
00007 cv.NamedWindow("camera", 1)
00008 
00009 capture = cv.CaptureFromCAM(0)
00010 
00011 blur_d = pano.BlurDetector()
00012 while True:
00013     img = cv.QueryFrame(capture)
00014     #print type(img)
00015     pof_blur = blur_d.checkBlur( img )
00016     print "blurred:",pof_blur
00017     cv.ShowImage("camera", img)
00018     key = 0xff & cv.WaitKey(10)
00019     if key == ord('q'):
00020         break


pano_py
Author(s): Ethan Rublee
autogenerated on Mon Mar 14 2016 10:57:00