r/iOSProgramming • • Feb 23 '21

Application My first OCR attempt :)

237 Upvotes

23 comments sorted by

13

u/mikesmithson171 Feb 23 '21

Its cool... What library do you use? ^^

16

u/[deleted] Feb 23 '21

It’s Firebase cloud OCR - unfortunately basic Apple vision doesn’t have a clue about LCD digits.

4

u/aheze Swift Feb 23 '21

Nice! Does it cost anything? And it’s online, right? Asking because it would be useful in one of my apps.

8

u/[deleted] Feb 23 '21

Yes a cloud API - you get 1000 scans a month free - no idea how much it costs after that

1

u/fobin78 Feb 24 '21

Google has also MLKit which works on device. I use it and its great. Edit link https://developers.google.com/ml-kit/

1

u/[deleted] Feb 24 '21

Ah cool thanks - is it free compared to the Firebase one? It’s strange that they have a Google version and a firebase version as both are Google products ...

2

u/fobin78 Feb 24 '21

Yes it's free to use.

12

u/bobotwf Feb 23 '21

Using OpenCV and Tesseract I was able to do text detection on text of similar complexity. If it turns out the cloud solution costs too much, you might look into that.

1

u/[deleted] Feb 23 '21

Cool Thanks

3

u/Big-Development-571 Feb 24 '21

Vision kit is much better. I used it in a project

1

u/[deleted] Feb 24 '21

Did you have to train it?

1

u/Big-Development-571 Feb 24 '21

No. Apple has done all the work. Just use it

2

u/umitIkaya Feb 24 '21

Good job!

May i know what will be the end product? I'm always curious how much we can rely on OCR readability on production apps :)

1

u/[deleted] Feb 24 '21

It’s just something for myself at the moment - hopefully a quick way to note down petrol comsumption - if it’s any use to me I might upload to the AppStore.

5

u/Shak3TheDis3se Swift Feb 23 '21

That's neat. I didn't know Firebase had a library for OCR. Will check it out.

1

u/paca_tatu_cotia_nao Feb 23 '21

That's so cool.

I was working on an app to log my bike's refuels, but with user input. Wanna join forces?

1

u/[deleted] Feb 23 '21 edited Feb 23 '21

I’m not sure it’s going to be good enough for production - it’s quite error prone and I came across an LCD display that it didn’t even find a single digit - but you never know - keep in touch :) I’ve made the labels editable now because of that.

1

u/montie8 Feb 23 '21

That’s awesome 👏

1

u/steester Feb 23 '21

Cool, good idea to capture gas fill up.

1

u/aykay55 Swift Feb 23 '21

Oh nice, I’m also working on an OCR app (with little success).

-6

u/megablast Feb 23 '21

I mean, you just got an API working, right? Not overly impressive.

2

u/[deleted] Feb 25 '21

I opened XCode for the first time 6 months ago - anything is impressive at the moment :)

0

u/[deleted] Feb 23 '21

[deleted]

1

u/[deleted] Feb 23 '21

Not sure - the back isn’t totally black though - I have tried playing with the contrast too.