react-native-text-detector | Text Detector from image | Computer Vision library

 by   zsajjad Java Version: Current License: MIT

kandi X-RAY | react-native-text-detector Summary

kandi X-RAY | react-native-text-detector Summary

react-native-text-detector is a Java library typically used in Artificial Intelligence, Computer Vision, React Native applications. react-native-text-detector has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. However react-native-text-detector build file is not available. You can download it from GitHub.

Text Detector from image for react native using firebase MLKit on android and Tesseract on iOS
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              react-native-text-detector has a low active ecosystem.
              It has 196 star(s) with 53 fork(s). There are 12 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 23 open issues and 10 have been closed. On average issues are closed in 21 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of react-native-text-detector is current.

            kandi-Quality Quality

              react-native-text-detector has 0 bugs and 0 code smells.

            kandi-Security Security

              react-native-text-detector has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              react-native-text-detector code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              react-native-text-detector is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              react-native-text-detector releases are not available. You will need to build from source code and install.
              react-native-text-detector has no build file. You will be need to create the build yourself to build the component from source.
              Installation instructions, examples and code snippets are available.
              react-native-text-detector saves you 2545 person hours of effort in developing the same functionality from scratch.
              It has 5533 lines of code, 7 functions and 52 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed react-native-text-detector and discovered the below as its top functions. This is intended to give you an instant insight into react-native-text-detector implemented functionality, and help decide if they suit your requirements.
            • Detect features from a URI
            • Converts the given firebase vision text into a map
            • Create JS module modules
            • Create native modules
            • Create view managers
            Get all kandi verified functions for this library.

            react-native-text-detector Key Features

            No Key Features are available at this moment for react-native-text-detector.

            react-native-text-detector Examples and Code Snippets

            No Code Snippets are available at this moment for react-native-text-detector.

            Community Discussions

            QUESTION

            react-native-text-detector worked fine in android but why it always returned false in iOS?
            Asked 2020-Jan-15 at 12:15

            First, I used https://github.com/jeanpan/react-native-camera-roll-picker#readme to get an image from photo library, it returned a uri: ph://11A68DD6-A651-462D-BDAB-68FB853ED141/L0/001

            Then, I used https://github.com/zsajjad/react-native-text-detector to get text from that image

            It worked fine in android but it always returned false in iOS, and I found the following error in console log

            NSURLConnection finished with error - code -1002

            For more information, the image control can show that image correctly

            Here is my source code : https://github.com/haison8x/react-native-test-ocr

            Is there any problem with that URI or with application permission?

            ...

            ANSWER

            Answered 2020-Jan-15 at 12:15

            Due to the sandbox policy of Apple https://developer.apple.com/library/archive/documentation/Security/Conceptual/AppSandboxDesignGuide/AboutAppSandbox/AboutAppSandbox.html, your app cannot read the photo in gallery directly, it will encounter the error: NSURLConnection finished with error - code -1002.

            Here is my approach:

            • Use RNFS.copyAssetsFileIOS copy photo to temp file at your app documents
            • Use react-native-text-detector to analyze that temp file

            The full example is pushed to https://github.com/haison8x/react-native-test-ocr

            Source https://stackoverflow.com/questions/59726747

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install react-native-text-detector

            $ npm install react-native-text-detector --save or yarn add react-native-text-detector.
            Import your tessdata folder (you can download one for your language from Google's Repo OR if that gives an error use THIS REPO as referenced on stack overflow as solution into the root of your project AS A REFERENCED FOLDER (see below). It contains the Tesseract trained data files. You can add your own trained data files here too.
            Add following in ios/Podfile
            Run following from project's root directory
            Use <your_project>.xcworkspace to run your app
            In XCode, in the project navigator, right click Libraries ➜ Add Files to [your project's name]
            Go to node_modules ➜ react-native-text-detector and add RNTextDetector.xcodeproj
            In XCode, in the project navigator, select your project. Add libRNTextDetector.a to your project's Build Phases ➜ Link Binary With Libraries
            Run your project (Cmd+R)<
            Open up android/app/src/main/java/[...]/MainApplication.java
            Add import com.fetchsky.RNTextDetector.RNTextDetectorPackage; to the imports at the top of the file
            Add new RNTextDetectorPackage() to the list returned by the getPackages() method
            Append the following lines to android/settings.gradle: include ':react-native-text-detector' project(':react-native-text-detector').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-text-detector/android')
            Insert the following lines inside the dependencies block in android/app/build.gradle: ... dependencies { implementation 'com.google.firebase:firebase-core:16.0.1' implementation 'com.google.firebase:firebase-ml-vision:17.0.0' implementation (project(':react-native-text-detector')) { exclude group: 'com.google.firebase' } } // Place this line at the end of file apply plugin: 'com.google.gms.google-services' // Work around for onesignal-gradle-plugin compatibility com.google.gms.googleservices.GoogleServicesPlugin.config.disableVersionCheck = true
            Insert the following lines inside the dependencies block in android/build.gradle: buildscript { repositories { google() ... } dependencies { classpath 'com.android.tools.build:gradle:3.0.1' classpath 'com.google.gms:google-services:4.0.1' // google-services plugin } }

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/zsajjad/react-native-text-detector.git

          • CLI

            gh repo clone zsajjad/react-native-text-detector

          • sshUrl

            git@github.com:zsajjad/react-native-text-detector.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link