+26
-6
nixos/tests/lomiri-camera-app.nix
+26
-6
nixos/tests/lomiri-camera-app.nix
·········# Horizontal flip, add text, flip back. Camera displays image mirrored, so need reversed text for OCR-machine.succeed("magick qr.png -flop -pointsize 70 -fill black -annotate +100+100 '${qrLabel}' -flop output.png")machine.succeed("ffmpeg -re -loop 1 -i output.png -vf format=yuv420p -f v4l2 /dev/video10 -loglevel fatal >&2 &")···# OCR is struggling to recognise the text. Click the clipboard button and paste the result somewhere else···
······+machine.wait_for_console_text("updateViewfinderResolution: viewfinder resolutions is not known yet")···# Horizontal flip, add text, flip back. Camera displays image mirrored, so need reversed text for OCR+machine.succeed("magick qr.png -flop -pointsize 30 -fill black -annotate +100+100 '${qrLabel}' -flop output.png")machine.succeed("ffmpeg -re -loop 1 -i output.png -vf format=yuv420p -f v4l2 /dev/video10 -loglevel fatal >&2 &")···# OCR is struggling to recognise the text. Click the clipboard button and paste the result somewhere else···