Jump to content

nicooprat

Member
  • Posts

    5
  • Joined

  • Last visited

  • Days Won

    1

nicooprat last won the day on December 15 2018

nicooprat had the most liked content!

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

nicooprat's Achievements

Helping Hand

Helping Hand (3/5)

7

Reputation

  1. Someone got this error: `Processing output of 'output.notification' with arg 'read_params_file: Can't open stdout Tesseract Open Source OCR Engine v4.0.0 with Leptonica`. I have no clue what's happening, maybe someone could help here: https://github.com/nicooprat/alfred-ocr/issues/3. Edit: solved, see Github issue.
  2. Thanks, merged your pull request but it looks like it just deleted the workflow file. Uploaded a new one with your code, works great! I don't know, but the full list of supported languages by Tesseract is here: https://github.com/tesseract-ocr/tesseract/blob/b67ea2c1a70c56053e142a5fb7cc18fb29cdc4b8/src/training/language-specific.sh#L21
  3. The warning is certainly because you're taking the screenshot on a different monitor than your main one. Can't find anything in Tesseract to avoid this... Simplest workaround is to drag your app window to your main monitor and take the screenshot from there. Results should be much better! By default, Tesseract try to guess language from results, so I guess it should work as is. In the last version of my Alfred script (see https://github.com/nicooprat/alfred-ocr/blob/master/README.md#usage), you can type "OCR [lang]" where "[lang]" is in this list: https://github.com/tesseract-ocr/tesseract/blob/b67ea2c1a70c56053e142a5fb7cc18fb29cdc4b8/src/training/language-specific.sh#L21 I can't help with this one, you should seek help on the Tesseract project: https://github.com/tesseract-ocr/tesseract/issues
  4. 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.
  5. Hi there, Just sharing my first workflow. Some OCR workflow already exist but are relying on some obscur chinese API with exposed personal credentials... This one use your system own installation of `tesseract`. Just take a snapshot and paste the text. The script usually takes no more than a few seconds. https://github.com/nicooprat/alfred-ocr PR welcome. Hope it helps!
×
×
  • Create New...