|
|
|
@ -52,8 +52,8 @@ try:
|
|
|
|
|
frame = frame.array
|
|
|
|
|
|
|
|
|
|
gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
|
|
|
|
|
ret, t= cv2.threshold(gray, 127, 255, cv2.THRESH_BINARY)
|
|
|
|
|
frame = cv2.cvtColor(t, cv2.COLOR_GRAY2BGR)
|
|
|
|
|
# ret, t= cv2.threshold(gray, 127, 255, cv2.THRESH_BINARY)
|
|
|
|
|
frame = cv2.cvtColor(gray, cv2.COLOR_GRAY2BGR)
|
|
|
|
|
# flow = cv2.calcOpticalFlowFarneback(prevgray, gray, 0.5, 3, 15, 3, 5, 1.2, 0)
|
|
|
|
|
# prevgray = gray
|
|
|
|
|
|
|
|
|
|