Skip to content

Commit

Permalink
Remove --force-full-ocr parameter & update related documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
dmorais-ledger committed Jul 31, 2023
1 parent 8d5313b commit a598b81
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
7 changes: 1 addition & 6 deletions docs/user/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,4 @@ Launch the Bitcoin Testnet app, which requires the Bitcoin app:

## OCR

OCR is available for NanoX with built in character recognition.

Stax makes use of the Tessseract library for OCR, with known issues for detecting inverted text.

Launching Speculos with `--force-full-ocr` flag forces all text to be written in black over a white background,
having an visible effect on the display but solving the latter issue.
OCR is available for NanoX, Nanos S+ and Stax with built in character recognition.
2 changes: 0 additions & 2 deletions speculos/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,8 +284,6 @@ def main(prog=None) -> int:
"left button, 'a' right, 's' both). Default: arrow keys")
group.add_argument('--progressive', action='store_true', help='Enable step-by-step rendering of graphical elements')
group.add_argument('--zoom', help='Display pixel size.', type=int, choices=range(1, 11))
group.add_argument('--force-full-ocr', action='store_true',
help='Degrade screen display to enhance OCR capacities for inverted text (only for Stax)')

if prog:
parser.prog = prog
Expand Down

0 comments on commit a598b81

Please sign in to comment.