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

Function output

semaphore.py:254–263  ·  view source on GitHub ↗
(keys, image, display_only=True)

Source from the content-addressed store, hash-verified

252 return keystring
253
254def output(keys, image, display_only=True):
255 keystring = '+'.join(keys)
256 if len(keystring):
257 print("keys:", keystring)
258 if not display_only:
259 keyboard.press_and_release(keystring)
260 else:
261 to_display = get_key_text(keys)
262 cv2.putText(image, to_display, frame_midpoint,
263 cv2.FONT_HERSHEY_SIMPLEX, 10, (0,0,255), 10)
264
265def render_and_maybe_exit(image, recording):
266 cv2.imshow('Semaphore', image)

Callers 2

type_and_rememberFunction · 0.85
mainFunction · 0.85

Calls 1

get_key_textFunction · 0.85

Tested by

no test coverage detected