MCPcopy
hub / github.com/makelove/OpenCV-Python-Tutorial / process_frame

Function process_frame

官方samples/video_threaded.py:51–55  ·  view source on GitHub ↗
(frame, t0)

Source from the content-addressed store, hash-verified

49
50
51 def process_frame(frame, t0):
52 # some intensive computation...
53 frame = cv2.medianBlur(frame, 19)
54 frame = cv2.medianBlur(frame, 19)
55 return frame, t0
56
57 threadn = cv2.getNumberOfCPUs()
58 pool = ThreadPool(processes = threadn)

Callers 1

video_threaded.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected