Live data from Hacker News

Rolling your own serverless OCR in 40 lines of code

christopherkrapu.com

1–10 of 69 posts

Re: Rolling your own serverless OCR in 40 lines of code

#3

Wouldn't "Serverless OCR" mean something like running tesseract locally on your computer, rather than creating an AI framework and running it on a server?

Serverless means spinning compute resources up on demand in the cloud vs. running a server permanently.

Re: Rolling your own serverless OCR in 40 lines of code

#8
Question for the crowd -- with autoscaling, when a new pod is created it will still download the model right from huggingface?

I like to push everything into the image as much as I can. So in the image modal, I would run a command to trigger downloading the model. Then in the app just point to the locally downloaded model. So bigger image, but do not need to redownload on start up.

Re: Rolling your own serverless OCR in 40 lines of code

#9
post #3

Wouldn't "Serverless OCR" mean something like running tesseract locally on your computer, rather than creating an AI framework and running it on a server?

Serverless means spinning compute resources up on demand in the cloud vs. running a server permanently.

~99.995% of the computing resources used on this are from somebody else's servers, running the LLM model.

Re: Rolling your own serverless OCR in 40 lines of code

#10
Deepseek OCR is no longer state of the art. There are much better open source OCR models available now.

ocrarena.ai maintains a leaderboard, and a number of other open source options like dots [1] or olmOCR [2] rank higher.

[1] https://www.ocrarena.ai/compare/dots-ocr/deepseek-ocr

[2] https://www.ocrarena.ai/compare/olmocr-2/deepseek-ocr

Post reply on HN