freealise commited on
Commit
c911ef4
1 Parent(s): bf824dd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -134,8 +134,8 @@ def infer(url_in,interpolation,fps_output):
134
  while(1):
135
  ret, frame2 = depth_map.read()
136
  if not ret:
137
- print('No frames grabbed!')
138
- break
139
  next = cv2.cvtColor(frame2, cv2.COLOR_RGB2GRAY)
140
  flow = cv2.calcOpticalFlowFarneback(prvs, next, None, 0.5, 3, 15, 3, 5, 1.2, 0)
141
  alpha = 0.5
 
134
  while(1):
135
  ret, frame2 = depth_map.read()
136
  if not ret:
137
+ print('No frames grabbed!')
138
+ break
139
  next = cv2.cvtColor(frame2, cv2.COLOR_RGB2GRAY)
140
  flow = cv2.calcOpticalFlowFarneback(prvs, next, None, 0.5, 3, 15, 3, 5, 1.2, 0)
141
  alpha = 0.5