Normalize line endings and whitespace

This commit is contained in:
OpenCV Buildbot
2012-10-17 11:12:04 +04:00
committed by Andrey Kamaev
parent 0442bca235
commit 81f826db2b
1511 changed files with 258678 additions and 258624 deletions

8
samples/python/fback.py Normal file → Executable file
View File

@@ -10,7 +10,7 @@ class FBackDemo:
self.mv_color = (0, 255, 0)
self.cflow = None
self.flow = None
NamedWindow( "Optical Flow", 1 )
print( "Press ESC - quit the program\n" )
@@ -28,7 +28,7 @@ class FBackDemo:
def run(self):
first_frame = True
while True:
frame = QueryFrame( self.capture )
@@ -37,7 +37,7 @@ class FBackDemo:
prev_gray = CreateImage(GetSize(frame), 8, 1)
flow = CreateImage(GetSize(frame), 32, 2)
self.cflow = CreateImage(GetSize(frame), 8, 3)
CvtColor(frame, gray, CV_BGR2GRAY)
if not first_frame:
CalcOpticalFlowFarneback(prev_gray, gray, flow,
@@ -47,7 +47,7 @@ class FBackDemo:
c = WaitKey(7)
if c in [27, ord('q'), ord('Q')]:
break
prev_gray, gray = gray, prev_gray
prev_gray, gray = gray, prev_gray
first_frame = False
if __name__=="__main__":