shayan5555 commited on
Commit
1ba89c1
·
verified ·
1 Parent(s): 565dac0

Update pyp.py

Browse files
Files changed (1) hide show
  1. pyp.py +1 -1
pyp.py CHANGED
@@ -29,7 +29,7 @@ while True:
29
  gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
30
 
31
  # Threshold to detect black line
32
- _, thresh = cv2.threshold(gray, 100, 255, cv2.THRESH_BINARY_INV)
33
 
34
  # Take bottom part of the frame (region of interest)
35
  roi = thresh[int(thresh.shape[0]*0.7):, :]
 
29
  gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
30
 
31
  # Threshold to detect black line
32
+ _, thresh = cv2.threshold(gray, 100, 265, cv2.THRESH_BINARY_INV)
33
 
34
  # Take bottom part of the frame (region of interest)
35
  roi = thresh[int(thresh.shape[0]*0.7):, :]