Code Monkey home page Code Monkey logo

blinkinput-android's People

Contributors

cerovec avatar culoi avatar dodoent avatar i1e avatar matvidako avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

blinkinput-android's Issues

EXTRAS_SHOW_OCR_RESULT does not work

I tried adding this code :
intent.putExtra(BlinkOCRActivity.EXTRAS_SHOW_OCR_RESULT, false);

But when the activity BlinkOCRActivity starts, the preview(green box with text) is still visible.

Get Quadrilateral size and position

Hi,

I implemented a custom Activity and embed a RecognizerView in a FrameLayout.

However, the end result I want to achieve is to have a static Quadrilateral in the middle of the screen (using QuadViewPreset.DEFAULT_FROM_SCAN_CARD_ACTIVITY), where the area outside or surrounding the Quad is blurred/darkened and the area within the Quad is fully transparent, showing the actual display from RecognizerView.

So far I have managed to overlay a view on top of RecognizerView, all that is left is for me to "cut the quadrilateral hole" in the middle of my overlay view, however, I am not able to get any information on the presenting Quad.

Is there any API which provides a way of getting the Quad size and position for me to setup my overlay view? Or is there a way for me to achieve my end result without having to use overlays?

Custom Id Identity - Cordova Plugin Blink ID

Hi, I am using ionic 1, I need to read an area of the Mexican credential "CURP", but I have not been able to find a way to do it, nor in what file can I integrate this functionality. I do not know if there is a function that allows me to define the area to be read?

BicParserSettings to go along with IbanParserSettings

Hi,

Are you planning on implementing Bank Identifier Code recognition to go along with Iban recognition ?

These would go quite well together for, say, fetching SEPA information via OCR.

I've tried with a RegexParserSettings, but formattings for BIC number are too disparate so that a regex could do the job.
http://www.office-agglo-larochelle.fr/uploaded/fichier/rib-caisse-epargne_1397138617.jpg
http://www.le-geant-de-la-fete.com/media//RIB.JPG

I've also considered the possibility of extending OcrParserSettings, but that seems like to much work if you're going to release one some time soon.

Thanks.
Regards.

Can't autofocus with webcam camera in emulator

Before opening an issue, check that you are using the latest version of the BlinkInput SDK.

Also, make sure your issue isn't on the list of common problems.


Description

I'm using a MacBook Pro (13-inch, 2017) running an emulated device (Pixel 3 on api 28) with both the back and front camera using my webcam:

image

When I start the application and try to use the regex parser I get com.microblink.hardware.camera.AutoFocusRequiredButNotSupportedException: Autofocus is required, but not supported on this device in the logs and on the screen of the emulated device:

image

I suspect this is because the webcam doesn't support autofocus but I'm not entirely sure.

Environment Details

BlinkInput version: Not sure how to find version, here's the commit I'm on: 9019ee8

Device model: Emulated Pixel 3

Device Android version: 28

Device ABI (processor architecture, e.g. ARMv7): Unsure

Log file

05/16 16:53:39: Launching BlinkInputFieldByFieldSample
$ adb install-multiple -r -t -p com.microblink.input /Users/paymahn/blinkinput-android/BlinkInputSample/BlinkInputFieldByFieldSample/build/intermediates/split-apk/debug/dep/dependencies.apk /Users/paymahn/blinkinput-android/BlinkInputSample/BlinkInputFieldByFieldSample/build/intermediates/split-apk/debug/slices/slice_2.apk /Users/paymahn/blinkinput-android/BlinkInputSample/BlinkInputFieldByFieldSample/build/intermediates/split-apk/debug/slices/slice_0.apk /Users/paymahn/blinkinput-android/BlinkInputSample/BlinkInputFieldByFieldSample/build/intermediates/split-apk/debug/slices/slice_1.apk /Users/paymahn/blinkinput-android/BlinkInputSample/BlinkInputFieldByFieldSample/build/intermediates/split-apk/debug/slices/slice_3.apk /Users/paymahn/blinkinput-android/BlinkInputSample/BlinkInputFieldByFieldSample/build/intermediates/split-apk/debug/slices/slice_5.apk /Users/paymahn/blinkinput-android/BlinkInputSample/BlinkInputFieldByFieldSample/build/intermediates/split-apk/debug/slices/slice_4.apk /Users/paymahn/blinkinput-android/BlinkInputSample/BlinkInputFieldByFieldSample/build/intermediates/split-apk/debug/slices/slice_6.apk /Users/paymahn/blinkinput-android/BlinkInputSample/BlinkInputFieldByFieldSample/build/intermediates/split-apk/debug/slices/slice_7.apk /Users/paymahn/blinkinput-android/BlinkInputSample/BlinkInputFieldByFieldSample/build/intermediates/split-apk/debug/slices/slice_8.apk /Users/paymahn/blinkinput-android/BlinkInputSample/BlinkInputFieldByFieldSample/build/intermediates/split-apk/debug/slices/slice_9.apk /Users/paymahn/blinkinput-android/BlinkInputSample/BlinkInputFieldByFieldSample/build/intermediates/instant-run-apk/debug/BlinkInputFieldByFieldSample-debug.apk 
Split APKs installed in 3 s 124 ms
$ adb shell am start -n "com.microblink.input/com.microblink.input.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Client not ready yet..Waiting for process to come online
Waiting for process to come online
Waiting for process to come online
Connected to process 5366 on device emulator-5554
Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.
D/line:37: Unlocking BlinkInput native library version 4.0.0
D/OpenGLRenderer: Skia GL Pipeline
D/: HostConnection::get() New Host Connection established 0xe97362c0, tid 5404
I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
I/OpenGLRenderer: Initialized EGL, version 1.4
D/OpenGLRenderer: Swap behavior 1
W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
D/OpenGLRenderer: Swap behavior 0
D/EGL_emulation: eglCreateContext: 0xeb6052a0: maj 3 min 0 rcv 3
D/EGL_emulation: eglMakeCurrent: 0xeb6052a0: ver 3 0 (tinfo 0xeb6032a0)
D/EGL_emulation: eglMakeCurrent: 0xeb6052a0: ver 3 0 (tinfo 0xeb6032a0)
D/EGL_emulation: eglMakeCurrent: 0xeb6052a0: ver 3 0 (tinfo 0xeb6032a0)
D/EGL_emulation: eglMakeCurrent: 0xeb6052a0: ver 3 0 (tinfo 0xeb6032a0)
W/ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@1853d5c
D/line:103: OS name: Android
D/line:104: OS version: 9
D/line:105: Device name: generic_x86
D/line:106: Model: Android SDK built for x86
D/line:107: Manufacturer: Google
D/line:108: High quality: 1
D/line:109: Number of processors: 2
D/line:110: Max CPU frequency: -1 MHz
D/line:111: NEON supported: 0
D/line:113: Data: 
D/line:27: String map:
D/line:29: android.eglpbuffer.unsupported => false
    android.hwbuffer.allowed => false
I/CameraManagerGlobal: Connecting to camera service
D/line:260: This is Microblink's BlinkInput native library version 4.0.0
D/line:261: Built at 2018-05-16T18:37:52
E/RecognizerRunnerView.java:490@Camera2Control: Exception caught on camera startup
    com.microblink.hardware.camera.AutoFocusRequiredButNotSupportedException: Autofocus is required, but not supported on this device
        at com.microblink.secured.lIlIIIlIll.llIIlIlIIl(line:14687)
        at com.microblink.secured.lIlIIIlIll$1.run(line:312)
        at android.os.Handler.handleCallback(Handler.java:873)
        at android.os.Handler.dispatchMessage(Handler.java:99)
        at com.microblink.secured.IIIlIIIIll$llIIlIlIIl.dispatchMessage(line:168)
        at android.os.Looper.loop(Looper.java:193)
        at com.microblink.secured.IIIlIIIIll.run(line:58)
E/FieldByFieldOverlayController.java:513@main: On error!
    com.microblink.hardware.camera.AutoFocusRequiredButNotSupportedException: Autofocus is required, but not supported on this device
        at com.microblink.secured.lIlIIIlIll.llIIlIlIIl(line:14687)
        at com.microblink.secured.lIlIIIlIll$1.run(line:312)
        at android.os.Handler.handleCallback(Handler.java:873)
        at android.os.Handler.dispatchMessage(Handler.java:99)
        at com.microblink.secured.IIIlIIIIll$llIIlIlIIl.dispatchMessage(line:168)
        at android.os.Looper.loop(Looper.java:193)
        at com.microblink.secured.IIIlIIIIll.run(line:58)
W/lIlIIIlIll.java:19829@Camera2Control: Cannot start preview. CameraDevice: null, CameraSurface: com.microblink.secured.llIllIIlll@398923f, PreviewSize: null
D/EGL_emulation: eglMakeCurrent: 0xeb6052a0: ver 3 0 (tinfo 0xeb6032a0)
D/EGL_emulation: eglMakeCurrent: 0xeb6052a0: ver 3 0 (tinfo 0xeb6032a0)
I/chatty: uid=10085(com.microblink.input) RenderThread identical 2 lines
D/EGL_emulation: eglMakeCurrent: 0xeb6052a0: ver 3 0 (tinfo 0xeb6032a0)
D/EGL_emulation: eglMakeCurrent: 0xeb6052a0: ver 3 0 (tinfo 0xeb6032a0)

Regex

how can i find a regular expression which matches a white space between group of numbers for example like this one 3855 06083 9928

Fixed Detector Region - MinimumCharHeight

Hi,

i am currently using your latest android code and modified the BlinkInputTemplatingSample to work with the type of card i am scanning:

mDocumentDetector = new DocumentDetector( DocumentSpecification.createFromPreset(DocumentSpecificationPreset.DOCUMENT_SPECIFICATION_PRESET_ID1_CARD));

Now i seem to be unable to find a way to have the scanning region ( and overlay) fixed (or at least set a minimum size).
I want to achieve that the user places the camera as close as possible to the card to be scanned as it contains some very small text.

Also is there an example on how to use setMinimumCharHeight ?
There are parts on the card i don't want the engine to recognize ( < 7 pt font size, white on blueish gradient) that are very close to the regions i need to have recognized ( 7pt, black/darkgrey on white).
How can i achieve a faster and more optimized scanning process?

capture image

i want to add a button so that user can capture image at any point, please suggest me where i have to make changes for FullScreen OCR.

Applying black and white filter

Hi,

I'm having trouble detecting color texts with blinkOCR, and I think applying black / white filter to camera will help. Is there a way to apply this in blinkOCR's BlinkInputSegmentDemo app?

Problem on handwritten text recognition

So far we have got some troubles on recognising handwritten texts. Are there any method we can improve the handwriting recognition or any feature related to that in the blinkOCR's BlinkInputSegmentDemo app?

native library with phonegap

Hi,

First of all, thank you for this great library!

Is it possible to use blinkocr in phonegap project?
If it is, is there something in particular about integration I should know about or it's standard procedure?

Scan some fields from ID CARD's with accuracy ?

hi , i am using this library to perform scans of various ID cards in my app. i am scanning the below image to get fields ame, fathers name, sex, age, address , date, as you can see in the sample image below.

but i am not getting accurate results , i am getting some useless characters in the output after scanning the ID card, please can you suggest me how can extract the mentioned above fields with accuracy ?
i want to extract the fields and i wan to show in form in next activity after scanning successfully , so can you guide me what are the things that i
have to change in your OCR demo?
voter_card

SegmentScanActivity customization

Hi,

I was wondering if there was any way to customize the SegmentScanActivity layout.
Specifically, I'd like to customize the validation layout (the green part) by moving the validation button to the bottom/end or bottom/start of the validation layout (This button, positionned in the middle of the screen, is not very practical to use in landscape mode).

Is that doable ?

Thanks.

Regards.

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.