(keys, image, display_only=True)
| 252 | return keystring |
| 253 | |
| 254 | def 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 | |
| 265 | def render_and_maybe_exit(image, recording): |
| 266 | cv2.imshow('Semaphore', image) |
no test coverage detected