Commit 0ff679af authored by lucas_miranda's avatar lucas_miranda
Browse files

Fixed a small bug on arena recognition for low contrast videos

parent 316469f9
Pipeline #92937 passed with stage
in 24 minutes and 55 seconds
......@@ -558,7 +558,7 @@ def circular_arena_recognition(frame: np.array) -> np.array:
# Convert image to greyscale, threshold it, blur it and apply open-close operations
gray_image = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
ret, thresh = cv2.threshold(gray_image, 80, 255, 0)
ret, thresh = cv2.threshold(gray_image, 90, 255, 0)
frame = cv2.medianBlur(thresh, 9)
frame = cv2.morphologyEx(
frame, cv2.MORPH_CLOSE, cv2.getStructuringElement(cv2.MORPH_ELLIPSE, (80, 80))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment