Live data from Hacker News

Rolling your own serverless OCR in 40 lines of code

christopherkrapu.com

41–50 of 69 posts

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

#41

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?

No, that would be "Running OCR locally..."

'Serverless' has become a term of art: https://en.wikipedia.org/wiki/Serverless_computing

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

#42
post #20

Earlier quoted context omitted.

Running it locally would typically be called “client(-)side”. But this caught me for a bit as well. :-)

That's the beauty of such stupid terms. I use carless transportation (taxis).

taxis are cars, aren't they?

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

#43
post #29

Not sure what “your own” in the title is supposed to mean if you are running a model that you didn’t train using a framework that you didn’t write on a server that you don’t own.

I think in this case "your own" means under your control, rather than a service or license you pay for. "your own" as in ownership of artefacts, not as in being the creator.

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

#45
post #27

So I'm trying to OCR 1000s of pages of old french dictionaries from the 1700s, has anything popped up that doesn't cost an arm and a leg, and works pretty decently?

I use Gemini for that. Split the PDF into 50 page chunks, throw it into aistudio and ask it to convert it. A couple of 1000 pages can be done with the free tier.

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

#46
post #3

Earlier quoted context omitted.

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

> Serverless means spinning compute resources up on demand in the cloud vs. running a server permanently. Not quite. Serverless means you can run a server permanently, but you need pay someone else to manage the infrastructure for you.

Close. It means there's no persistent infra charges and you're charged on use. You dont run anything permanently.

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

#48
post #3

Earlier quoted context omitted.

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

> Serverless means spinning compute resources up on demand in the cloud vs. running a server permanently. Not quite. Serverless means you can run a server permanently, but you need pay someone else to manage the infrastructure for you.

Depends if you mean "server" as in piece of metal (or vm), or as in "a daemon"

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

#49
post #3

Earlier quoted context omitted.

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

> Serverless means spinning compute resources up on demand in the cloud vs. running a server permanently. Not quite. Serverless means you can run a server permanently, but you need pay someone else to manage the infrastructure for you.

You might be conflating "cloud" with serverless. Serverless is where developers can focus on code, with little care of the infrastructure it runs on, and is pay-as-you-go.
Post reply on HN