Closed vizero1 closed 3 weeks ago
Hey @vizero1. The online demo is using gpt-4o
which could explain a big change in the performance. The package defaults to 4o-mini, but as of right now the token cost for both models is largely the same for vision requests. So I would recommend 4o for most use cases.
We're also using the npm package for the demo, which has a bit of image correction work that may improve performance.
Let me know what your results are like if you test with 4o
ok, switched it now to 4o and seems to be better now. Thanks
Hello, I'm experiencing a significant difference in OCR results between the pyzerox library used locally and the online OCR demo.
When I upload a PDF to the online OCR demo, the output is accurate and well-structured. However, when I use the same PDF with pyzerox locally (Python 3.12), I notice the following inconsistencies:
Some rows of text are missing. Certain pages are duplicated. Characters are occasionally omitted or garbled. While I expect some minor differences, these discrepancies are large enough to impact the usefulness of the OCR results. I would appreciate any information on the configuration or settings used in the online demo to help reproduce similar results locally.
Current Configuration: Here's the configuration I'm using:
Environment: Python version: 3.12 pyzerox version: 0.0.7
Can not share the pdf file here so it will also be hard for you to reproduce that. So for the beginning would just be great to know the config for the online demo.