Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VLMhOCR

Scripts for VLM use with hOCR outputs

These scripts are referenced in a Juypter notebook that will be linked here when completed. In the meantime, the basic use can be seen in the top comments on each script. Our approach is to use Eynollah to segment newspaper images into PAGE-XML, which is then used to produce paragraph-level images via the eyPage.py script. Those images are then run against HunyuanOCR via the hunOcrRun.py script (hunCpuRun.py for CPU-only). The resulting text files are converted to hOCR with the coords2hOCR.py script. Note that Code Carbon is used help track overhead. The final goal is a hybrid environment where Tesseract is used for as much as the recognition process as possible (due to its smaller footprint), and a VLM/LLM layer is applied selectively.

About

Scripts for VLM use with hOCR outputs

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages