Live data from Hacker News

Tesseract.js wraps an Emscripten port of the Tesseract OCR Engine

github.com

61–62 of 62 posts

Re: Tesseract.js wraps an Emscripten port of the Tesseract OCR Engine

#61
post #58

I tried to use Tesseract for a personal hobby project and found it very lacking. The OCR was not very accurate. I ended up switching to Azure Vision services which gives you 500 free OCR API calls a day (or some similar limit). This was perfect for my needs.

Sadly one of small hobby is to convert my own movies (Blu-Ray) into a digital file for my home server, and the subtitles are all image-based. The app I use (SubtitleEdit) relies on Tesseract for conversion, but it's far from perfect. :( Sure, I could use someone else's subtitle file from the Internet, but that's not as fun than doing it yourself.

I'm not sure what engine it uses for OCR, but I recently had to convert some image-based subtitles to text-based `.srt` format, and had quite good success using a tool named `subtitlecomposer` to do the conversion. During the initial import of the original image-based subtitles, the software stops on every character it does not immediately recognize and asks you what symbol it's looking at. It then builds up a "symbols" map by doing this over and over again, each time it does not recognize the image of a letter, number, or other symbol. This map file can then be renamed to match other subtitle files, in order to process other subtitles in the same font/typestyle. Eventually the symbol map ends up so complete that entire subtitles get converted automagically on import, without ever needing to ask the user any further questions.

Re: Tesseract.js wraps an Emscripten port of the Tesseract OCR Engine

#62
post #8

Earlier quoted context omitted.

> Can I do OCR all-in-browser with this Literally third sentence of the description: > It works in the browser using webpack or plain script tags with a CDN and on the server with Node.js.

To be honest it is a confusing sentence. If it requires node js server then the answer should be no. Also, its confusing to me why it requires nodejs server ...

But this literally says it doesn't? It's "or".
Post reply on HN