naptha / tesseract.js

Pure Javascript OCR for more than 100 Languages 📖🎉🖥
http://tesseract.projectnaptha.com/
Apache License 2.0
34.09k stars 2.15k forks source link

Add examples related to bbox #878

Closed Kishlay-notabot closed 4 months ago

Kishlay-notabot commented 5 months ago

In order to compensate for the absence of the examples related to bbox and its functions, I've added the above files for people to explore and tweak. The inspiration came from the official site's demo.

Kishlay-notabot commented 5 months ago

@Balearica Please approve if found apt.

Balearica commented 4 months ago

It looks like this is a functional example showing how to retrieve bounding box information, which I agree other users may find helpful.

In general, my concern regarding adding new examples to the main Tesseract.js repo is that users assume that everything here is up to date, so whenever a new example gets added, I am effectively committing to maintaining it going forward. This is why all of the examples that currently exist in the examples directory are extremely minimal and only demonstrate core concepts.

When users create examples that are larger in terms of lines of code, or demonstrate a more niche use, we generally keep those in separate repos that are linked in this section of the Tesseract.js readme. Therefore, if you want to move this example to its own repo, and document what it does and how to run it in the readme, we can link in the Tesseract.js readme.

Kishlay-notabot commented 4 months ago

Oh thanks, I'll make a seperate repo for the examples then, no issues.

Kishlay-notabot commented 4 months ago

@Balearica when i add the new repo with a pull request i suggest we should add a markdown notification in the examples folder directing the users to more of the complex examples mentioned in the main readme but sometimes people jump directly to examples and don't find what they need. I'll work on it