MCPcopy
hub / github.com/everythingishacked/Semaphore / render_and_maybe_exit

Function render_and_maybe_exit

semaphore.py:265–269  ·  view source on GitHub ↗
(image, recording)

Source from the content-addressed store, hash-verified

263 cv2.FONT_HERSHEY_SIMPLEX, 10, (0,0,255), 10)
264
265def render_and_maybe_exit(image, recording):
266 cv2.imshow('Semaphore', image)
267 if recording:
268 recording.write(image)
269 return cv2.waitKey(5) & 0xFF == 27
270
271def main():
272 global last_frames, frame_midpoint

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected