(image)
| 9 | |
| 10 | |
| 11 | def method_2(image): |
| 12 | blurred = cv.GaussianBlur(image, (3, 3), 0) # 高斯去噪音 |
| 13 | gray = cv.cvtColor(blurred, cv.COLOR_BGR2GRAY) |
| 14 | t, binary = cv.threshold(gray, 0, 255, cv.THRESH_BINARY | cv.THRESH_OTSU) |
| 15 | return binary |
| 16 | |
| 17 | |
| 18 | def method_3(image): |
nothing calls this directly
no outgoing calls
no test coverage detected