Giter VIP home page Giter VIP logo

Comments (8)

Aszurar avatar Aszurar commented on May 27, 2024 4

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:

  1. Installing via Firebase: https://github.com/invertase/react-native-firebase/tree/main/packages/ml

  2. 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.

DiguinhoLNS avatar DiguinhoLNS commented on May 27, 2024 1

Some news about this issue? I got the same bug in my app.

from react-native-tesseract-ocr.

sparklaunch avatar sparklaunch commented on May 27, 2024

It's been a couple of weeks and nobody seems to even care about it.

from react-native-tesseract-ocr.

esmailbenmoussa avatar esmailbenmoussa commented on May 27, 2024

@sparklaunch or @DiguinhoLNS, did you manage to find a workaround or have you tried another ocr-lib?

from react-native-tesseract-ocr.

DiguinhoLNS avatar DiguinhoLNS commented on May 27, 2024

I have tried a new lib, rn-text-detector

from react-native-tesseract-ocr.

Aszurar avatar Aszurar commented on May 27, 2024

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.

killatsignlife avatar killatsignlife commented on May 27, 2024

This issue is related to #142.

from react-native-tesseract-ocr.

stale avatar stale commented on May 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.