MCPcopy Create free account
hub / github.com/geekcomputers/Python / sketch

Function sketch

live_sketch.py:4–9  ·  view source on GitHub ↗
(image)

Source from the content-addressed store, hash-verified

2
3
4def sketch(image):
5 img_gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
6 img_gray_blur = cv2.GaussianBlur(img_gray, (5, 5), 0)
7 canny_edges = cv2.Canny(img_gray_blur, 10, 70)
8 ret, mask = cv2.threshold(canny_edges, 70, 255, cv2.THRESH_BINARY_INV)
9 return mask
10
11
12cap = cv2.VideoCapture(0)

Callers 1

live_sketch.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected