use cv2 function

added color_histogram.py sample
work on VideoSynth (chessboard)
This commit is contained in:
Alexander Mordvintsev
2011-06-15 13:58:40 +00:00
parent 35aa133d9a
commit 1a208fe132
7 changed files with 138 additions and 68 deletions

View File

@@ -3,14 +3,14 @@ import video
import sys
try: fn = sys.argv[1]
except: fn = video.presets['lena']
except: fn = video.presets['chess']
def nothing(*arg):
pass
cv2.namedWindow('edge')
cv.CreateTrackbar('thrs1', 'edge', 2000, 5000, nothing)
cv.CreateTrackbar('thrs2', 'edge', 4000, 5000, nothing)
cv2.createTrackbar('thrs1', 'edge', 2000, 5000, nothing)
cv2.createTrackbar('thrs2', 'edge', 4000, 5000, nothing)
cap = video.create_capture(fn)
while True: