Replace of some synthetic scenes in python samples

This commit is contained in:
Vladislav Sovrasov
2016-03-24 20:05:26 +03:00
parent e792ee89de
commit 1f8fd5382c
7 changed files with 155 additions and 8 deletions

View File

@@ -27,6 +27,7 @@ import numpy as np
import cv2
import video
from common import draw_str
from video import presets
lk_params = dict( winSize = (19, 19),
maxLevel = 2,
@@ -49,7 +50,7 @@ red = (0, 0, 255)
class App:
def __init__(self, video_src):
self.cam = video.create_capture(video_src)
self.cam = self.cam = video.create_capture(video_src, presets['book'])
self.p0 = None
self.use_ransac = True