Comments (8)
I managed to put text recognition on images in my app.
I was able to do this for the first time using Google's cloud service, the Google Vision API
It is a free service with up to 1000 uses per month, after which it becomes paid.
Today I use the Google ML Kit installed directly on the device, it works offline and is completely free.
The Google Vision API today turns out to be the most accurate cloud version of the Google ML kit.
For those who want to know how to use Google Vision, it's very simple, just make an API call sending your image via base64 and it returns an object with various information about the text in it, including an attribute with all the text at once
You need to create a service on Google Cloud Platform and add a payment method.
https://blog.logrocket.com/build-text-detector-react-native/
remember, you need to add a payment method, this is not in the tutorial above, otherwise, everything is the same.
I'm using Google ML Kit with Text Recognizer module.
https://developers.google.com/ml-kit/guides
https://developers.google.com/ml-kit/vision/text-recognition
For those unfamiliar, it's a mobile SDK that brings Google's machine learning expertise to Android and iOS apps. Use our easy-to-use Vision and Natural Language APIs to solve common app challenges or create new user experiences. All use Google's best ML models and are offered at no financial cost.
All ML Kit APIs run on the device, enabling real-time use cases where you want to process a live camera feed, for example. It also means the functionality is available offline.
There are 2 ways to use it:
-
Installing via Firebase: https://github.com/invertase/react-native-firebase/tree/main/packages/ml
-
Installing by some lib that implements the settings automatically:
There are several that try to do this, but many are deprecated, I'm using this one:
react-native-ml-kit
https://github.com/a7medev/react-native-ml-kit/tree/main/text-recognition
As I said above, I didn't install it via firebase, in this case I used this react-native-ml-kit.
Because I found it very simple to use, I didn't get to test it by installing it via firebase.
import TextRecognition from '@react-native-ml-kit/text-recognition';
const result = await TextRecognition.recognize(imageURL);
console.log('Recognized text:', result.text);
from react-native-tesseract-ocr.
Some news about this issue? I got the same bug in my app.
from react-native-tesseract-ocr.
It's been a couple of weeks and nobody seems to even care about it.
from react-native-tesseract-ocr.
@sparklaunch or @DiguinhoLNS, did you manage to find a workaround or have you tried another ocr-lib?
from react-native-tesseract-ocr.
I have tried a new lib, rn-text-detector
from react-native-tesseract-ocr.
Has anyone managed to resolve the issue? Does this other rn-text-detector lib you tested work? I'm after trying to make this functionality also in an app.
I got it using the Google Vision API, but I'm looking for something that doesn't use the internet
from react-native-tesseract-ocr.
This issue is related to #142.
from react-native-tesseract-ocr.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
from react-native-tesseract-ocr.
Related Issues (20)
- Arabic language not supporting? HOT 1
- only work on white color font (and black background) HOT 1
- Can add other language to library? HOT 1
- iOS support HOT 10
- Example doesn't work HOT 7
- Custom languages version 2.0.3 not Work HOT 2
- Example outdated HOT 3
- Could not initialize Tesseract API with language=eng! in android 11 HOT 1
- compile with React Native 0.68.1 2 pbs HOT 5
- java.io.IOException: Could not create directory HOT 2
- My app is closing itself immediately after opening. HOT 1
- TypeError: _reactNativeTesseractOcr.default.recognize is not a function HOT 4
- package doesnt build HOT 4
- getting "java.io.IOException: Could not create directory" error HOT 2
- example Not show text HOT 1
- Not working in latest RN project HOT 5
- app run or clear getting : Plugin with id 'maven' not found. HOT 3
- How do I write a config plugin for it?
- Support Tesseract 4.0 HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-tesseract-ocr.