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

`debug` output missing from types #893

Closed Balearica closed 4 months ago

Balearica commented 4 months ago

At some point debug was added as an output format, allowing users to retrieve the logging info from Tesseract in the output object. However, the types were never updated. The types should be updated to add this, along with any other missing output formats.

Balearica commented 4 months ago

The layoutBlocks output is also missing types in the return object, however this would require a non-trivial amount of effort to get right (as layoutBlocks will have fields that are null where they would be non-null for blocks), so leaving for now.