Jump to content

ReinaSuo

Member
  • Posts

    4
  • Joined

  • Last visited

Reputation Activity

  1. Like
    ReinaSuo reacted to nicooprat in OCR: extract text from snapshot   
    I recently added the `lang` parameter with `-l` flag:
    tesseract /tmp/ocr_snapshot.png stdout -l {query} 2>&1 It should allow you to run the command with `OCR fra` for french for example, but it should still work without any parameter. Tried just now and it works (Mac High Sierra & tesseract 3.05.01).
     
    Possible solutions:
     
    * add a way in the bash script to remove `-l` flag if `{query}` is undefined (don't know how to do this)
    * downgrade to tesseract 3 as it seems to behave differently in 4
    * remove this part in the bash script if you don't need it (see screenshot attached)
     
    Hope it helps.
     
     

×
×
  • Create New...