MCPcopy Create free account
hub / github.com/Shakker-Labs/RepText / canny

Function canny

infer.py:16–22  ·  view source on GitHub ↗
(img)

Source from the content-addressed store, hash-verified

14 return False
15
16def canny(img):
17 low_threshold = 50
18 high_threshold = 100
19 img = cv2.Canny(img, low_threshold, high_threshold)
20 img = img[:, :, None]
21 img = 255 - np.concatenate([img, img, img], axis=2)
22 return img
23
24
25if __name__ == "__main__":

Callers 1

infer.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected