OCR-Reader | An Android app to extract text from camera preview | Computer Vision library

 by   DevipriyaSarkar Java Version: v1 License: MIT

kandi X-RAY | OCR-Reader Summary

kandi X-RAY | OCR-Reader Summary

OCR-Reader is a Java library typically used in Artificial Intelligence, Computer Vision applications. OCR-Reader has no bugs, it has no vulnerabilities, it has build file available, it has a Permissive License and it has low support. You can download it from GitHub.

An Android app to extract text from camera preview directly.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              OCR-Reader has a low active ecosystem.
              It has 38 star(s) with 27 fork(s). There are 6 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 1 open issues and 2 have been closed. On average issues are closed in 59 days. There are 1 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of OCR-Reader is v1

            kandi-Quality Quality

              OCR-Reader has 0 bugs and 0 code smells.

            kandi-Security Security

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

            kandi-License License

              OCR-Reader 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

              OCR-Reader releases are available to install and integrate.
              Build file is available. You can build the component from source.
              Installation instructions are available. Examples and code snippets are not available.
              OCR-Reader saves you 663 person hours of effort in developing the same functionality from scratch.
              It has 1537 lines of code, 99 functions and 19 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed OCR-Reader and discovered the below as its top functions. This is intended to give you an instant insight into OCR-Reader implemented functionality, and help decide if they suit your requirements.
            • Override when the view is changed
            • Creates a new camera
            • Calculates the rotation angle for the given camera id
            • Generates a list of acceptable preview sizes for a given camera
            • Initialize the camera
            • Request the camera permission
            • Capture the text block
            • Returns the graphic at the specified location
            • Returns a callback for the permissions result
            • Creates the camera source
            • Takes a screenshot
            • Starts the auto - focus callback
            • Set the auto - focus callback
            • Reset the visibility
            • Sets the focus mode
            • Sets the flash mode
            • Initializes the activity
            • Receive notification of the TextBlock that is equivalent to this graphic
            • Invoked when an activity is exited
            • Checks if the specified point is contained within the canvas
            • Draws the TextBlock annotation
            • Performs the zoom of the camera
            • Draws the overlay with all registered graphics objects
            Get all kandi verified functions for this library.

            OCR-Reader Key Features

            No Key Features are available at this moment for OCR-Reader.

            OCR-Reader Examples and Code Snippets

            No Code Snippets are available at this moment for OCR-Reader.

            Community Discussions

            QUESTION

            How to perform OCR on a subset of the camera frame using Google TextRecognizer or Tesseract
            Asked 2019-Aug-21 at 17:04

            Starting with this sample project [ https://github.com/googlesamples/android-vision/tree/master/visionSamples/ocr-reader ], I have been able to implement filtering in the OcrDetectorProcessor.receiveDetections() method.

            This works, but com.google.android.gms.vision.text.TextRecognizer appears to search the the entire screen for characters.

            I presume that the receiveDetections() method could be called more frequently if a smaller portion of the screen were being scanned for characters instead of the entire screen.

            Is it possible to specify a smaller portion of the screen to be scanned? It should be straight-forward to direct the user, through a change to the graphic overly, to position their camera so that this smaller portion of the screen contained the target text, but I'm unsure as to how to tell the processor to use just a small portion of the frame when doing it's OCR processing.

            What would need to be altered to specify that the OCR should operate on a subset of the frame?

            ADDITIONAL INFORMATION:

            I tried to subclass TextRecognizer, but it's marked final, and the source appears to be closed.

            So I'm expanding the question to how the functionality of the ocr-reader sample could be replicated using Tesseract.

            I found this link, but haven't explored converting the concepts there into camera frames as opposed to a single image file.

            ...

            ANSWER

            Answered 2019-Aug-21 at 17:04

            I had a similar issue and resolved it by using Tesseract and a simple cropping library called "Android Image Cropper" - Link here .

            Basically I just crop the image before passing it for processing. Here is a small sample of my code:

            This line will start new activity for a result:

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

            QUESTION

            Exiting from OCR activity on specific text detection
            Asked 2018-Dec-11 at 19:30

            In this sample Android OCR application, that uses com.google.android.gms:play-services-vision, there is a OcrDetectorProcessor.receiveDetections() method which gets repeatedly called. In that method, while the user points the camera at things in the environment, we have access to whatever text is detected.

            If the user presses the back button, the process ends, but I would like to have the process end when a certain condition occurs within the receiveDetections() method.

            I tried calling mParentActivity.onBackPressed(), but that threw an exception from super.onBackPressed():

            OpenCameraSource: Exception thrown from receiver. java.lang.IllegalStateException: Must be called from main thread of fragment host

            So although the exception is caught and the app continues to run, calling onBackPressed() is not the right approach. What is the right way to programatically back-out of receiveDetections()?

            ...

            ANSWER

            Answered 2018-Dec-11 at 19:30

            QUESTION

            How to return data from OCR Detector.Processor in Google sample Android code
            Asked 2017-Nov-29 at 22:26

            In this sample Android program, the device's camera is used to perform optical character recognition through the com.google.android.gms:play-services-vision library.

            In visionSamples\ocr-codelab\ocr-reader-complete\app\src\main\java\com\google\android\gms\samples\vision\ocrreader\OcrDetectorProcessor.receiveDetections() I am able to see the text that is identified using logging:

            ...

            ANSWER

            Answered 2017-Nov-29 at 22:26

            Generally what you need to do is to save a reference to the OcrDetectorProcessor, then write a data retrieval method and call it from OcrCaptureActivity.

            So make this change to your 'onCreate()':

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

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

            Vulnerabilities

            No vulnerabilities reported

            Install OCR-Reader

            Download app from here.

            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/DevipriyaSarkar/OCR-Reader.git

          • CLI

            gh repo clone DevipriyaSarkar/OCR-Reader

          • sshUrl

            git@github.com:DevipriyaSarkar/OCR-Reader.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

            Consider Popular Computer Vision Libraries

            opencv

            by opencv

            tesseract

            by tesseract-ocr

            face_recognition

            by ageitgey

            tesseract.js

            by naptha

            Detectron

            by facebookresearch

            Try Top Libraries by DevipriyaSarkar

            Damsel-In-Distress

            by DevipriyaSarkarJava

            ScreenCam

            by DevipriyaSarkarJava

            Sunshine

            by DevipriyaSarkarPython

            distributed_file_system

            by DevipriyaSarkarPython

            StockHawk

            by DevipriyaSarkarJava