Ionic OCR example

#1

Hi guys,

I was asked to implement an OCR in an Ionic app. So, I created this little demo: https://github.com/matiastucci/ionic-ocr-example using ocrad.js

6 Likes
#2

Wow, really nice work. Cool feature.

1 Like
#3

Good Day… what is OCR ? :smile:
sorry for being noob…

#4

would be cool if you would using bower or something else for the external libs :).
But nice idea we are using paid providers for those things.
Maybe the ocr lib is an alternative.

#5
1 Like
#6

Yeah, you’re right. This was a really simple thing just to show the client. But, definitely it would be great to use bower.

#7

What are the supported languages?

#8

I’m using ocrad.js, so it’s JS

EDIT: too much code for me, lol. I thought programming languages.

@tomkuipers: gave you a nice answer :smile:

#9

Individual characters are recognized from an image, there is no notion of language. Optical character recognition works for any text in any language containing Latin characters. Don’t know about other character sets.

#10

wow… thanks for the information sir :smile:)

#11

thank you, ocrad.js don’t use word library to improve result?

#12

No, because that would make it language dependent, and it’s not part of character recognition. From an image OCR will for example extract “H”,“E”,“L”,“L”,“O” not "HELLO"
In your application you could pass the recognized text to another api or library or dictionary to do spelling suggestions.

1 Like
#13

Hello !
Really nice work !
Of course there are a few character issues, but the ocrad.js is the problem.
The ionic port works just fine, I only tsted with ionic View, but I’ll integrate that soon !

Thank you

1 Like
#14

Is working for Android app? Please advice … I am trying but not working…

#15

ionic ios sample working for me by using https://github.com/matiastucci/ionic-ocr-example
but android app with cordova and ocrad.js not working…please advice…

#16

it is not working in android… please advice

#17

what’s not working? I don’t have an Android device but I tested on an emulator and seems to be working fine

#18

I have copied the ionic framework code from https://github.com/matiastucci/ionic-ocr-example (only js and html)
every thing working fine upto before OCRAD call.

OCRAD(document.getElementById(“pic”), function(text){
self.hideLoading();
console.log(text);
alert(text);
});

#19

You copy the index too? Because if that’s not working seems that you have missing the OCRAD library: https://github.com/matiastucci/ionic-ocr-example/blob/master/index.html#L21

#20

No…i included the lib/ocrad.js js file…