Skip to content

Commit 829336f

Browse files
authoredJun 7, 2021
Update preprocess.py
1 parent b67710d commit 829336f

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed
 

‎preprocess.py

+11-4
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,15 @@ def preprocessing(b, frame):
1313
frame = cv2.bilateralFilter(frame,9,75,75)
1414

1515
if (b == 4):
16+
frame = cv2.blur(frame,(5,5))
17+
18+
if (b == 5):
19+
frame = cv2.medianBlur(frame,9,75,75)
20+
21+
if (b == 6):
22+
frame = cv2.rotate(frame, cv2.ROTATE_90_CLOCKWISE)
23+
24+
if (b == 7):
1625
frame = frame
17-
18-
#frame = cv2.rotate(frame, cv2.ROTATE_90_CLOCKWISE)
19-
20-
return(frame)
26+
27+
return(frame)

0 commit comments

Comments
 (0)
Please sign in to comment.