Use non native plugins on Ionic


#1

Hi !

I want use tesseract plugin but it’s a non native plugin. How can I call him in my file ?

Thanks :slight_smile:


#2

Looks like tesseract available on NPM. I’ve done something similar with fixOrientation npm plugin.

Add your plugin via npm.

Implement like the following…


#3

When I import him, I have an error because the plugin cannot be find…


#4

That was not difficult…


#5

Have you looked at my repo?


#6

Yes but It’s not my solution because I want to implement this link : https://github.com/gustavomazzoni/cordova-plugin-tesseract. But you did the job with the library and not with the plugin :frowning:


#7

Aha didn’t realise there’s was a Cordova version lol.

Might have a stab later


#8

Thank man :slight_smile:


#9

Hi,

Is this primarily for iOS or Android?


#10

Hi sorry for my late.

It’s for android :slight_smile:


#11

Hi, i try to integrat this tesseract.js lib. I cloned ur example of hw to and it works just fine . But it wont find that lib in my Programm i think i covered all of ur steps but proably im missing something very speific. Is there any news on hw u can use the plguin version of tesseract? My Question for the integration would be except "import Tesseract from ‘tesseract.js’ " what else do i need to do? Im very new to inoic and angular and i need this for a university Project. Thx so much already


#12

solved Problem was a fail of my head :smiley: