GithubHelp home page GithubHelp logo

blinkid / blinkid-xamarin Goto Github PK

View Code? Open in Web Editor NEW
50.0 22.0 25.0 208.74 MB

ID scanning SDK, wrapped for cross-platform apps built with Xamarin.

Home Page: https://microblink.com/blinkid

Objective-C 28.41% C# 61.81% C 9.76% Shell 0.02%
xamarin ios android scanning-id-cards kyc id-card-camera id-scanning c-sharp machine-learning cross-platform

blinkid-xamarin's People

Contributors

cerovec avatar culoi avatar dcubelic avatar dodoent avatar i1e avatar jcular avatar juraskrlec avatar krizaa avatar matvidako avatar mijo-gracanin avatar stepanic 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

Watchers

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

blinkid-xamarin's Issues

'ScanningDoneMessage' does not exist in the namespace 'Messages' Xamarin Forms iOS

Environment
Visual Studio Mac: 8.9.7 (build 8)
BlinkID SDK version: 5.11.0 Xamarin Forms

Problem

Doesn't allow compiling on iOS, this works fine on Android

Error CS0234: The type or namespace name 'ScanningDoneMessage' does not exist in the namespace 'Messages' (are you missing an assembly reference?) (CS0234)
Error CS0234: The type or namespace name 'ScanningDoneMessageId' does not exist in the namespace 'Messages' (are you missing an assembly reference?) (CS0234)

Captura de Pantalla 2021-04-22 a la(s) 17 17 10

NSInternalInconsistencyException CroId Name dictionary must not be null!

Hello,

Having an issue running the Xamarin Forms sample and am receiving the follow errors in the application output when the camera is loaded up to start scanning barcodes:

*** Assertion failure in -[PPResourceManager loadDictionaryAndConfusions], /Users/dino/MicroBlink/Workspace/BlinkID/blinkid-ios-demo/blinkid-ios-framework/core-ios/CommonFramework/Services/PPResourceManager.mm:508
Xamarin.iOS: Received unhandled ObjectiveC exception: NSInternalInconsistencyException CroId Name dictionary must not be null!

I was able to get an older version working about 2 weeks ago, but now when pull down the latest with git clone this version is giving the error above.

Native linking error when trying to use the bound iOS lib from Xamarin.iOS

I'm having trouble using the library from any Xamarin.iOS project. The BlinkIDiOSBinding project builds without any errors, but building the actual iOS project that references the bound lib breaks with "Native linking error: framework not found MicroBlink (MT5209)"
This is the same for both the iOS sample and the Xamarin.Forms sample from the repo.
I even tried removing the binding project and referecing the built .dll from the Xamarin.iOS project, but it still won't compile.
The android version works without any problems.

Publish BlinkID.Xamarin NuGet Packages

Is it possible to build NuGet packages out of this repo?

It would be REALLY helpful and reduce the amount of overhead when trying this component. The implementations could include all the properties and just be driven by a configuration (a bit like Card.io). I'm pretty sure that adding resources to the Android project is fairly achievable with a NuGet package too...

This is probably a good repo to use as a reference - https://github.com/aritchie/userdialogs

Duplicate Symbols when building Xamarin.Forms solution

MTOUCH: error MT5209: Native linking error: warning: object file (/Users/.../BlinkID.a(BlinkID-i386-master.o)) was built for newer iOS version (9.2) than being linked (9.0)
MTOUCH: error MT5212: Native linking failed, duplicate symbol: 'OBJC_CLASS$_PPApp'.
MTOUCH: error MT5213: Duplicate symbol in: /Users/.../BlinkID.a(BlinkID-i386-master.o) (Location related to previous error)
MTOUCH: error MT5213: Duplicate symbol in: /Users/.../MicroBlink.framework/MicroBlink(MicroBlink-i386-master.o) (Location related to previous error)
MTOUCH: error MT5212: Native linking failed, duplicate symbol: 'OBJC_CLASS$_PPAusIDBackRecognizerResult'.
MTOUCH: error MT5213: Duplicate symbol in: /Users/.../BlinkID.a(BlinkID-i386-master.o) (Location related to previous error)
MTOUCH: error MT5213: Duplicate symbol in: /Users/.../MicroBlink.framework/MicroBlink(MicroBlink-i386-master.o) (Location related to previous error)
MTOUCH: error MT5212: Native linking failed, duplicate symbol: 'OBJC_CLASS$_PPAusIDBackRecognizerSettings'.
MTOUCH: error MT5213: Duplicate symbol in: /Users/.../BlinkID.a(BlinkID-i386-master.o) (Location related to previous error)
MTOUCH: error MT5213: Duplicate symbol in: /Users/.../MicroBlink.framework/MicroBlink(MicroBlink-i386-master.o) (Location related to previous error)
MTOUCH: error MT5212: Native linking failed, duplicate symbol: 'OBJC_CLASS$_PPAusIDFrontRecognizerResult'.
MTOUCH: error MT5213: Duplicate symbol in: /Users/.../BlinkID.a(BlinkID-i386-master.o) (Location related to previous error)
MTOUCH: error MT5213: Duplicate symbol in: /Users/.../MicroBlink.framework/MicroBlink(MicroBlink-i386-master.o) (Location related to previous error)
MTOUCH: error MT5212: Native linking failed, duplicate symbol: 'OBJC_CLASS$_PPAusIDFrontRecognizerSettings'.
MTOUCH: error MT5213: Duplicate symbol in: /Users/.../BlinkID.a(BlinkID-i386-master.o) (Location related to previous error)
MTOUCH: error MT5213: Duplicate symbol in: /Users/.../MicroBlink.framework/MicroBlink(MicroBlink-i386-master.o) (Location related to previous error)
MTOUCH: error MT5212: Native linking failed, duplicate symbol: 'OBJC_CLASS$_PPBarDecoderRecognizerResult'.
MTOUCH: error MT5213: Duplicate symbol in: /Users/.../BlinkID.a(BlinkID-i386-master.o) (Location related to previous error)
MTOUCH: error MT5213: Duplicate symbol in: /Users/.../MicroBlink.framework/MicroBlink(MicroBlink-i386-master.o) (Location related to previous error)
MTOUCH: error MT5212: Native linking failed, duplicate symbol: 'OBJC_CLASS$_PPBarDecoderRecognizerSettings'.
MTOUCH: error MT5213: Duplicate symbol in: /Users/.../BlinkID.a(BlinkID-i386-master.o) (Location related to previous error)
MTOUCH: error MT5213: Duplicate symbol in: /Users/.../MicroBlink.framework/MicroBlink(MicroBlink-i386-master.o) (Location related to previous error)
MTOUCH: error MT5212: Native linking failed, duplicate symbol: 'OBJC_CLASS$_PPBarcodeDetailedData'.
MTOUCH: error MT5213: Duplicate symbol in: /Users/.../BlinkID.a(BlinkID-i386-master.o) (Location related to previous error)
MTOUCH: error MT5213: Duplicate symbol in: /Users/.../MicroBlink.framework/MicroBlink(MicroBlink-i386-master.o) (Location related to previous error)
MTOUCH: error MT5212: Native linking failed, duplicate symbol: 'OBJC_CLASS$_PPBarcodeElement'.
MTOUCH: error MT5213: Duplicate symbol in: /Users/.../BlinkID.a(BlinkID-i386-master.o) (Location related to previous error)
MTOUCH: error MT5213: Duplicate symbol in: /Users/.../MicroBlink.framework/MicroBlink(MicroBlink-i386-master.o) (Location related to previous error)
MTOUCH: error MT5212: Native linking failed, duplicate symbol: 'OBJC_CLASS$_PPBarcodeOverlayViewController'.
MTOUCH: error MT5213: Duplicate symbol in: /Users/.../BlinkID.a(BlinkID-i386-master.o) (Location related to previous error)
MTOUCH: error MT5213: Duplicate symbol in: /Users/.../MicroBlink.framework/MicroBlink(MicroBlink-i386-master.o) (Location related to previous error)
MTOUCH: error MT5212: Native linking failed, duplicate symbol: 'OBJC_CLASS$_PPBaseBarcodeOverlayViewController'.
MTOUCH: error MT5213: Duplicate symbol in: /Users/.../BlinkID.a(BlinkID-i386-master.o) (Location related to previous error)
MTOUCH: error MT5213: Duplicate symbol in: /Users/.../MicroBlink.framework/MicroBlink(MicroBlink-i386-master.o) (Location related to previous error)
MTOUCH: error MT5212: Native linking failed, duplicate symbol: 'OBJC_CLASS$_PPBaseOverlayViewController'.
MTOUCH: error MT5213: Duplicate symbol in: /Users/.../BlinkID.a(BlinkID-i386-master.o) (Location related to previous error)
MTOUCH: error MT5213: Duplicate symbol in: /Users/.../MicroBlink.framework/MicroBlink(MicroBlink-i386-master.o) (Location related to previous error)
MTOUCH: error MT5212: Native linking failed, duplicate symbol: 'OBJC_CLASS$_PPBasePhotoPayOverlayViewController'.
MTOUCH: error MT5213: Duplicate symbol in: /Users/.../BlinkID.a(BlinkID-i386-master.o) (Location related to previous error)
MTOUCH: error MT5213: Duplicate symbol in: /Users/.../MicroBlink.framework/MicroBlink(MicroBlink-i386-master.o) (Location related to previous error)
MTOUCH: error MT5212: Native linking failed, duplicate symbol: 'OBJC_CLASS$_PPBlinkOcrRecognizerResult'.
MTOUCH: error MT5213: Duplicate symbol in: /Users/.../BlinkID.a(BlinkID-i386-master.o) (Location related to previous error)
MTOUCH: error MT5213: Duplicate symbol in: /Users/.../MicroBlink.framework/MicroBlink(MicroBlink-i386-master.o) (Location related to previous error)
MTOUCH: error MT5212: Native linking failed, duplicate symbol: 'OBJC_CLASS$_PPBlinkOcrRecognizerSettings'.
MTOUCH: error MT5213: Duplicate symbol in: /Users/.../BlinkID.a(BlinkID-i386-master.o) (Location related to previous error)
MTOUCH: error MT5213: Duplicate symbol in: /Users/.../MicroBlink.framework/MicroBlink(MicroBlink-i386-master.o) (Location related to previous error)
MTOUCH: error MT5212: Native linking failed, duplicate symbol: 'OBJC_CLASS$_PPBlurredFieldOfViewOverlaySubview'.
MTOUCH: error MT5213: Duplicate symbol in: /Users/.../BlinkID.a(BlinkID-i386-master.o) (Location related to previous error)
MTOUCH: error MT5213: Duplicate symbol in: /Users/.../MicroBlink.framework/MicroBlink(MicroBlink-i386-master.o) (Location related to previous error)
MTOUCH: error MT5212: Native linking failed, duplicate symbol: 'OBJC_CLASS$_PPCameraCoordinator'.
MTOUCH: error MT5213: Duplicate symbol in: /Users/.../BlinkID.a(BlinkID-i386-master.o) (Location related to previous error)
MTOUCH: error MT5213: Duplicate symbol in: /Users/.../MicroBlink.framework/MicroBlink(MicroBlink-i386-master.o) (Location related to previous error)
MTOUCH: error MT5212: Native linking failed, duplicate symbol: 'OBJC_CLASS$_PPCameraSettings'.
MTOUCH: error MT5213: Duplicate symbol in: /Users/.../BlinkID.a(BlinkID-i386-master.o) (Location related to previous error)
MTOUCH: error MT5213: Duplicate symbol in: /Users/.../MicroBlink.framework/MicroBlink(MicroBlink-i386-master.o) (Location related to previous error)
MTOUCH: error MT5212: Native linking failed, duplicate symbol: 'OBJC_CLASS$_PPCoordinator'.
MTOUCH: error MT5213: Duplicate symbol in: /Users/.../BlinkID.a(BlinkID-i386-master.o) (Location related to previous error)
MTOUCH: error MT5213: Duplicate symbol in: /Users/.../MicroBlink.framework/MicroBlink(MicroBlink-i386-master.o) (Location related to previous error)
MTOUCH: error MT5212: Native linking failed, duplicate symbol: 'OBJC_CLASS$_PPCroIDBackRecognizerResult'.
MTOUCH: error MT5213: Duplicate symbol in: /Users/.../BlinkID.a(BlinkID-i386-master.o) (Location related to previous error)
MTOUCH: error MT5213: Duplicate symbol in: /Users/.../MicroBlink.framework/MicroBlink(MicroBlink-i386-master.o) (Location related to previous error)
MTOUCH: error MT5212: Native linking failed, duplicate symbol: 'OBJC_CLASS$_PPCroIDBackRecognizerSettings'.
MTOUCH: error MT5213: Duplicate symbol in: /Users/.../BlinkID.a(BlinkID-i386-master.o) (Location related to previous error)
MTOUCH: error MT5213: Duplicate symbol in: /Users/.../MicroBlink.framework/MicroBlink(MicroBlink-i386-master.o) (Location related to previous error)
MTOUCH: error MT5212: Native linking failed, duplicate symbol: 'OBJC_CLASS$_PPCroIDFrontRecognizerResult'.
MTOUCH: error MT5213: Duplicate symbol in: /Users/.../BlinkID.a(BlinkID-i386-master.o) (Location related to previous error)
MTOUCH: error MT5213: Duplicate symbol in: /Users/.../MicroBlink.framework/MicroBlink(MicroBlink-i386-master.o) (Location related to previous error)
MTOUCH: error MT5212: Native linking failed, duplicate symbol: 'OBJC_CLASS$_PPCroIDFrontRecognizerSettings'.
MTOUCH: error MT5213: Duplicate symbol in: /Users/.../BlinkID.a(BlinkID-i386-master.o) (Location related to previous error)
MTOUCH: error MT5213: Duplicate symbol in: /Users/.../MicroBlink.framework/MicroBlink(MicroBlink-i386-master.o) (Location related to previous error)
MTOUCH: error MT5212: Native linking failed, duplicate symbol: 'OBJC_CLASS$_PPCzIDBackRecognizerResult'.
MTOUCH: error MT5213: Duplicate symbol in: /Users/.../BlinkID.a(BlinkID-i386-master.o) (Location related to previous error)
MTOUCH: error MT5213: Duplicate symbol in: /Users/.../MicroBlink.framework/MicroBlink(MicroBlink-i386-master.o) (Location related to previous error)
MTOUCH: error MT5212: Native linking failed, duplicate symbol: 'OBJC_CLASS$_PPCzIDBackRecognizerSettings'.
MTOUCH: error MT5213: Duplicate symbol in: /Users/.../BlinkID.a(BlinkID-i386-master.o) (Location related to previous error)
MTOUCH: error MT5213: Duplicate symbol in: /Users/.../MicroBlink.framework/MicroBlink(MicroBlink-i386-master.o) (Location related to previous error)
MTOUCH: error MT5212: Native linking failed, duplicate symbol: 'OBJC_CLASS$_PPCzIDFrontRecognizerResult'.
MTOUCH: error MT5213: Duplicate symbol in: /Users/.../BlinkID.a(BlinkID-i386-master.o) (Location related to previous error)
MTOUCH: error MT5213: Duplicate symbol in: /Users/.../MicroBlink.framework/MicroBlink(MicroBlink-i386-master.o) (Location related to previous error)
MTOUCH: error MT5212: Native linking failed, duplicate symbol: 'OBJC_CLASS$_PPCzIDFrontRecognizerSettings'.
MTOUCH: error MT5213: Duplicate symbol in: /Users/.../BlinkID.a(BlinkID-i386-master.o) (Location related to previous error)
MTOUCH: error MT5213: Duplicate symbol in: /Users/.../MicroBlink.framework/MicroBlink(MicroBlink-i386-master.o) (Location related to previous error)
MTOUCH: error MT5212: Native linking failed, duplicate symbol: 'OBJC_CLASS$_PPDateOcrParserFactory'.
MTOUCH: error MT5213: Duplicate symbol in: /Users/.../BlinkID.a(BlinkID-i386-master.o) (Location related to previous error)
MTOUCH: error MT5213: Duplicate symbol in: /Users/.../MicroBlink.framework/MicroBlink(MicroBlink-i386-master.o) (Location related to previous error)
MTOUCH: error MT5212: Native linking failed, duplicate symbol: 'OBJC_CLASS$_PPDecodingInfo'.
MTOUCH: error MT5213: Duplicate symbol in: /Users/.../BlinkID.a(BlinkID-i386-master.o) (Location related to previous error)
MTOUCH: error MT5213: Duplicate symbol in: /Users/.../MicroBlink.framework/MicroBlink(MicroBlink-i386-master.o) (Location related to previous error)
MTOUCH: error MT5212: Native linking failed, duplicate symbol: 'OBJC_CLASS$_PPDetectorRecognizerResult'.
MTOUCH: error MT5213: Duplicate symbol in: /Users/.../BlinkID.a(BlinkID-i386-master.o) (Location related to previous error)
MTOUCH: error MT5213: Duplicate symbol in: /Users/.../MicroBlink.framework/MicroBlink(MicroBlink-i386-master.o) (Location related to previous error)
MTOUCH: error MT5212: Native linking failed, duplicate symbol: 'OBJC_CLASS$_PPDetectorRecognizerSettings'.
MTOUCH: error MT5213: Duplicate symbol in: /Users/.../BlinkID.a(BlinkID-i386-master.o) (Location related to previous error)
MTOUCH: error MT5213: Duplicate symbol in: /Users/.../MicroBlink.framework/MicroBlink(MicroBlink-i386-master.o) (Location related to previous error)
MTOUCH: error MT5212: Native linking failed, duplicate symbol: 'OBJC_CLASS$_PPDetectorResult'.
MTOUCH: error MT5213: Duplicate symbol in: /Users/.../BlinkID.a(BlinkID-i386-master.o) (Location related to previous error)
MTOUCH: error MT5213: Duplicate symbol in: /Users/.../MicroBlink.framework/MicroBlink(MicroBlink-i386-master.o) (Location related to previous error)
MTOUCH: error MT5212: Native linking failed, duplicate symbol: 'OBJC_CLASS$_PPDetectorSettings'.
MTOUCH: error MT5213: Duplicate symbol in: /Users/.../BlinkID.a(BlinkID-i386-master.o) (Location related to previous error)
MTOUCH: error MT5213: Duplicate symbol in: /Users/.../MicroBlink.framework/MicroBlink(MicroBlink-i386-master.o) (Location related to previous error)
MTOUCH: error MT5212: Native linking failed, duplicate symbol: 'OBJC_CLASS$_PPDocumentDetectorResult'.
MTOUCH: error MT5213: Duplicate symbol in: /Users/.../BlinkID.a(BlinkID-i386-master.o) (Location related to previous error)
MTOUCH: error MT5213: Duplicate symbol in: /Users/.../MicroBlink.framework/MicroBlink(MicroBlink-i386-master.o) (Location related to previous error)
MTOUCH: error MT5201: Native linking failed. Please review the build log and the user flags provided to gcc: -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker

even the Samples/Forms/Forms.sln shows the same errors when linking

any clues would be appreciated!
Ivan.

Azure Team Service build error for iOS

Xamarin.Forms 4.3.0.947036
BlinkID.Forms 5.0.0

I’m using the code that is provided by the example for Xamarin.Forms with a minor change (I use the IMrtdRecognizer instead of the IBlinkIdRecognizer)

I’m using Azure Team Services to build my app. My app was building successfully before integrating BlinkId.
I encountered the following error in the build step of the Build Process

MTOUCH : error MT2101: Can't resolve the reference 'Foundation.NSArray Foundation.NSArray::FromNSObjects(!!0[])', referenced from the method 'System.Void Microblink.MBRecognizerCollection::.ctor(Microblink.MBRecognizer[])'

Any idea on how to correct the issue?

Not sure if it’s relevant but I’m choosing the version of Xcode in a different step of the build process

sudo $AGENT_HOMEDIRECTORY/scripts/select-xamarin-sdk.sh 5_16_0
echo '##vso[task.setvariable variable=MD_APPLE_SDK_ROOT;]'/Applications/Xcode_10.2.app;sudo xcode-select --switch /Applications/Xcode_10.2.app/Contents/Developer

How to get licence key ?

I want to use this sdk in my xamarin forms application, how can I get Licence key for android and ios AND IS THIS SDK FREE , IF NOT THEN WHAT IS THE COST ?

Finished Scanning Handler

Is there any events that i can manually add to the iOS Binding export for the custom delegate, that would let me know when the scanning operation is completed.

Right now at the end of the DidOutputResults i'm saving the data I received from the scan to a sqlite db and then trying to segue to another view controller, and the code executes but i think the scan overlay view controller is then cancelling that segue or something, because it just returns me to the current view controller that had the button click event that called BlinkId.Instance().Scan().

Any guidance for this is appreciated.

Xamarin.iOS Getting exception when going to build(System.IntPtr ObjCRuntime.NativeObjectExtensions::GetNonNullHandle(ObjCRuntime.INativeObject,System.String)', referenced from the method 'System.Void )

/Users/yasir/Downloads/blinkid-xamarin-master/Samples/iOS/MTOUCH: Error MT2101: Can't resolve the reference 'System.IntPtr ObjCRuntime.NativeObjectExtensions::GetNonNullHandle(ObjCRuntime.INativeObject,System.String)', referenced from the method 'System.Void BlinkID.MBBlinkIdOverlayViewControllerDelegateWrapper::BlinkIdOverlayViewControllerDidFinishScanning(BlinkID.MBBlinkIdOverlayViewController,BlinkID.MBRecognizerResultState)' in 'Xamarin.iOS, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065'. (MT2101) (BlinkIDSample)

Stuck when CreateMicroblinkScanner(licenseKey);

Hi!
I create a test license to run in my app. I'm add in my app all code from your sample app, but my app always stuck in this method blinkID = microblinkFactory.CreateMicroblinkScanner (licenseKey);
The log doesn't have any error message from BlinkID only stuck and not continue run the next code
This error occurs in Android and iOS
Can you help me?

Exception On Android when calling scan, Missing Frameworks on iOS

Hello,

So I am trying to implement this project into an existing Xamarin forms application.

For android if I call the "Scan" method just like the sample I get the following exception during runtime.

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.microblink.wrapper.xamarin.scan.BlinkIDScanActivity}:

MicroBlinkIDError.txt

Attached is the full log.

If I add it to the iOS side of the project I get errors simular to this. This is compile errors, so I cannot even get the project to run.

error : Native linking failed, undefined symbol: non-virtual thunk to std::__1::basic_iostream<char, std::__1::char_traits >::~basic_iostream(). Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.

MicroBlinkIDiOSLog.txt

Full log is attached

Any ideas what the issues could be?

Thanks,
Sean

microblinkFactory is null even when using dependency service

im testing on IOS.

my constructor:

public MainPage()
{
InitializeComponent();

        var microblinkFactory = DependencyService.Get<IMicroblinkScannerFactory>();

        string licenseKey = "notreal";
        blinkID = microblinkFactory.CreateMicroblinkScanner(licenseKey);```

the microblinkFactory is getting initialized to null.

this is my appdelegate.cs for my .ios project

using UIKit;

namespace App.iOS
{
    [Register("AppDelegate")]
    public partial class AppDelegate : Xamarin.Forms.Platform.iOS.FormsApplicationDelegate
    {
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            Xamarin.Forms.Forms.Init();

            Xamarin.Forms.DependencyService.Register<Microblink.Forms.iOS.MicroblinkScannerFactoryImplementation>();

            LoadApplication(new App());

            return base.FinishedLaunching(app, options);
        }
    }
}

BarcodeRecognizer not working anymore starting with 5.10.0

Works fine with 5.9.0, but with 5.10.0 and AndroidX not anymore (BlinkIDCustomAARBinding.dll).

Example of usage during initBlinkId stage (private void initBlinkId()):

blinkidRecognizer = new BarcodeRecognizer();
blinkidRecognizer.SetScanCode39(true);
blinkidRecognizer.SetScanCode128(true);
blinkidRecognizer.SetScanItf(true);

recognizerBundle = new RecognizerBundle(blinkidRecognizer);

blinkidUISettings = new BarcodeUISettings(recognizerBundle);

Missing Asset in Android Sample

There's a missing asset in the android demo that's causing an exception.

The "face_detector_model.zzip" asset should be found under "blinkid-xamarin/Samples/Android/Assets/microblink"

Android: Back side of the ID sometimes recognized as the front side

Hello,

I've used your sample project as a guide, set up all for Xamarin.Forms and I have this issue on Android.
Sometimes, SerbianID back is recognized as a front side. I've noticed this happens mostly when I scan ID in portrait mode (happened few times also in landscape mode, but rarely).

I used same principle as in your sample project, with BlinkID implementation in Droid project, with Messages class and all the necessary fields.
When scan is completed, I provide the results via the MessagingCenter.

Please let me know if you need more details, some logs or stacktrace in order to fix this, or maybe I could fix this locally.

Thanks in advance,
Dino.

Requires old version of Xamarin.Forms

When trying to add reference to BlinkID.Forms

Restoring packages for
NU1605: Detected package downgrade: Xamarin.Forms from 3.4.0.1008975 to 3.2.0.871581. Reference the package directly from the project to select a different version.
MyProj -> BlinkID.Forms 4.6.0 -> BlinkID.Forms.Core 4.6.0 -> Xamarin.Forms (>= 3.4.0.1008975)
MyProj -> Xamarin.Forms (>= 3.2.0.871581)
Package restore failed. Rolling back package changes for 'MyProj'.

when trying to add nuget reference to BlinkID.Forms.Core:

NU1605: Detected package downgrade: Xamarin.Forms from 3.4.0.1008975 to 3.2.0.871581. Reference the package directly from the project to select a different version.
MyProj -> BlinkID.Forms.Core 4.6.0 -> Xamarin.Forms (>= 3.4.0.1008975)
MyProj -> Xamarin.Forms (>= 3.2.0.871581)
Package restore failed. Rolling back package changes for 'MyProj'.

Pixel 3 application crash on scan

This is a Xamarin Forms project using BlinkIDCustomForms package 5.3.0.
QA just ran into a problem on a pixel 3 crashing when trying to scan. It works fine on my LG50 but I did just confirm on another pixel 3 that it does crash.
Seems to be looking for a missing json file??
Below is the stack trace.

`` 06-26 15:55:06.028 E/AndroidRuntime(17723): FATAL EXCEPTION: main
06-26 15:55:06.028 E/AndroidRuntime(17723): Process: com.ger.hcmobile, PID: 17723
06-26 15:55:06.028 E/AndroidRuntime(17723): java.lang.RuntimeException: Cannot load asset microblink/device_list.json. Please make sure that this asset exists!
06-26 15:55:06.028 E/AndroidRuntime(17723): at com.microblink.hardware.IlIllIlIIl.IllIIIllII(line:107)
06-26 15:55:06.028 E/AndroidRuntime(17723): at com.microblink.hardware.IlIllIlIIl.(line:68)
06-26 15:55:06.028 E/AndroidRuntime(17723): at com.microblink.hardware.IlIllIlIIl.llIIlIlIIl(line:59)
06-26 15:55:06.028 E/AndroidRuntime(17723): at com.microblink.view.BaseCameraView.IllIIIllII(line:228)
06-26 15:55:06.028 E/AndroidRuntime(17723): at com.microblink.view.BaseCameraView.(line:215)
06-26 15:55:06.028 E/AndroidRuntime(17723): at com.microblink.view.CameraViewGroup.(line:67)
06-26 15:55:06.028 E/AndroidRuntime(17723): at com.microblink.view.recognition.RecognizerRunnerView.(line:126)
06-26 15:55:06.028 E/AndroidRuntime(17723): at com.microblink.view.recognition.RecognizerRunnerView.(line:133)
06-26 15:55:06.028 E/AndroidRuntime(17723): at com.microblink.fragment.RecognizerRunnerFragment.IlIllIlIIl(line:270)
06-26 15:55:06.028 E/AndroidRuntime(17723): at com.microblink.fragment.RecognizerRunnerFragment.onCreateView(line:223)
06-26 15:55:06.028 E/AndroidRuntime(17723): at android.support.v4.app.Fragment.performCreateView(Fragment.java:2439)
06-26 15:55:06.028 E/AndroidRuntime(17723): at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1460)
06-26 15:55:06.028 E/AndroidRuntime(17723): at android.support.v4.app.FragmentManagerImpl.moveFragmentToExpectedState(FragmentManager.java:1784)
06-26 15:55:06.028 E/AndroidRuntime(17723): at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1852)
06-26 15:55:06.028 E/AndroidRuntime(17723): at android.support.v4.app.BackStackRecord.executeOps(BackStackRecord.java:802)
06-26 15:55:06.028 E/AndroidRuntime(17723): at android.support.v4.app.FragmentManagerImpl.executeOps(FragmentManager.java:2625)
06-26 15:55:06.028 E/AndroidRuntime(17723): at android.support.v4.app.FragmentManagerImpl.executeOpsTogether(FragmentManager.java:2411)
06-26 15:55:06.028 E/AndroidRuntime(17723): at android.support.v4.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(FragmentManager.java:2366)
06-26 15:55:06.028 E/AndroidRuntime(17723): at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:2273)
06-26 15:55:06.028 E/AndroidRuntime(17723): at android.support.v4.app.FragmentManagerImpl.dispatchStateChange(FragmentManager.java:3273)
06-26 15:55:06.028 E/AndroidRuntime(17723): at android.support.v4.app.FragmentManagerImpl.dispatchActivityCreated(FragmentManager.java:3229)
06-26 15:55:06.028 E/AndroidRuntime(17723): at android.support.v4.app.FragmentController.dispatchActivityCreated(FragmentController.java:201)
06-26 15:55:06.028 E/AndroidRuntime(17723): at android.support.v4.app.FragmentActivity.onStart(FragmentActivity.java:620)
06-26 15:55:06.028 E/AndroidRuntime(17723): at android.support.v7.app.AppCompatActivity.onStart(AppCompatActivity.java:178)
06-26 15:55:06.028 E/AndroidRuntime(17723): at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1432)
06-26 15:55:06.028 E/AndroidRuntime(17723): at android.app.Activity.performStart(Activity.java:7848)
06-26 15:55:06.028 E/AndroidRuntime(17723): at android.app.ActivityThread.handleStartActivity(ActivityThread.java:3294)
06-26 15:55:06.028 E/AndroidRuntime(17723): at android.app.servertransaction.TransactionExecutor.performLifecycleSequence(TransactionExecutor.java:221)
06-26 15:55:06.028 E/AndroidRuntime(17723): at android.app.servertransaction.TransactionExecutor.cycleToPath(TransactionExecutor.java:201)
06-26 15:55:06.028 E/AndroidRuntime(17723): at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:173)
06-26 15:55:06.028 E/AndroidRuntime(17723): at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)
06-26 15:55:06.028 E/AndroidRuntime(17723): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2016)
06-26 15:55:06.028 E/AndroidRuntime(17723): at android.os.Handler.dispatchMessage(Handler.java:107)
06-26 15:55:06.028 E/AndroidRuntime(17723): at android.os.Looper.loop(Looper.java:214)
06-26 15:55:06.028 E/AndroidRuntime(17723): at android.app.ActivityThread.main(ActivityThread.java:7356)
06-26 15:55:06.028 E/AndroidRuntime(17723): at java.lang.reflect.Method.invoke(Native Method)
06-26 15:55:06.028 E/AndroidRuntime(17723): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
06-26 15:55:06.028 E/AndroidRuntime(17723): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
06-26 15:55:06.028 E/AndroidRuntime(17723): Caused by: java.io.FileNotFoundException: microblink/device_list.json
06-26 15:55:06.028 E/AndroidRuntime(17723): at android.content.res.AssetManager.nativeOpenAsset(Native Method)
06-26 15:55:06.028 E/AndroidRuntime(17723): at android.content.res.AssetManager.open(AssetManager.java:824)
06-26 15:55:06.028 E/AndroidRuntime(17723): at android.content.res.AssetManager.open(AssetManager.java:801)
06-26 15:55:06.028 E/AndroidRuntime(17723): at com.microblink.hardware.IlIllIlIIl.IllIIIllII(line:97)
06-26 15:55:06.028 E/AndroidRuntime(17723): ... 37 more
Java.Lang.RuntimeException: 'Cannot load asset microblink/device_list.json. Please make sure that this asset exists!'

Cannot instantiate BlinkIdActivity when R8 enabled

Repo steps:

  1. Download the Sample App, and open the Forms sln.
  2. In the Forms Android app, open the Android Build properties, change the Code Shrinker to ProGuard, then run the app and validate that again you can initiate a scan.
  3. Go back into Android Build properties and change the Code Shrinker option to R8.
  4. Run the app and try to initiate a scan.
  5. Observe that the app crashes @ microblinkFactory.CreateMicroblinkScanner()

Exception: Java.Lang.ClassNotFoundException

Message:

Didn't find class "com.microblink.MicroblinkSDK" on path: DexPathList[[zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/data/app/com.microblink.xamarin.blinkid-VOC8UVICfS3fhIL8wNwxLA==/base.apk"],nativeLibraryDirectories=[/data/app/com.microblink.xamarin.blinkid-VOC8UVICfS3fhIL8wNwxLA==/lib/arm64, /system/fake-libs64, /data/app/com.microblink.xamarin.blinkid-VOC8UVICfS3fhIL8wNwxLA==/base.apk!/lib/arm64-v8a, /system/lib64]]

StackTrace:

  at Java.Interop.JniEnvironment+Types.FindClass (System.String classname) [0x00119] in <ce53014a5d7d49af8f964173870eeb58>:0 
  at Java.Interop.JniType..ctor (System.String classname) [0x00006] in <ce53014a5d7d49af8f964173870eeb58>:0 
  at Java.Interop.JniType.GetCachedJniType (Java.Interop.JniType& cachedType, System.String classname) [0x00018] in <ce53014a5d7d49af8f964173870eeb58>:0 
  at Java.Interop.JniPeerMembers.get_JniPeerType () [0x0000c] in <ce53014a5d7d49af8f964173870eeb58>:0 
  at Java.Interop.JniPeerMembers+JniStaticMethods.GetMethodInfo (System.String encodedMember) [0x0002b] in <ce53014a5d7d49af8f964173870eeb58>:0 
  at Java.Interop.JniPeerMembers+JniStaticMethods.InvokeVoidMethod (System.String encodedMember, Java.Interop.JniArgumentValue* parameters) [0x00000] in <ce53014a5d7d49af8f964173870eeb58>:0 
  at Com.Microblink.MicroblinkSDK.SetShowTimeLimitedLicenseWarning (System.Boolean p0) [0x00018] in /Users/igrce/Awork/Xamarin/deploy-repos/github/blinkid-xamarin/Binding/Android/obj/Release/generated/src/Com.Microblink.MicroblinkSDK.cs:202 
  at Microblink.Forms.Droid.MicroblinkScannerImplementation..ctor (System.String licenseKey, System.String licensee, System.Boolean showTimeLimitedLicenseWarning, Microblink.Forms.Droid.IMicroblinkScannerAndroidHostActivity androidHostActivity) [0x0000e] in /Users/igrce/Awork/Xamarin/deploy-repos/github/blinkid-xamarin/Binding/Forms/BlinkID.Forms/BlinkID.Forms.Android/MicroblinkScannerImplementation.cs:52 
  at Microblink.Forms.Droid.MicroblinkScannerFactoryImplementation.CreateMicroblinkScanner (System.String licenseKey, System.Boolean showTimeLimitedLicenseWarning) [0x00012] in /Users/igrce/Awork/Xamarin/deploy-repos/github/blinkid-xamarin/Binding/Forms/BlinkID.Forms/BlinkID.Forms.Android/MicroblinkScannerImplementation.cs:105 
  at BlinkIDApp.BlinkIDPage..ctor () [0x0003b] in /Users/adenearnshaw/Downloads/blinkid-xamarin-master/Samples/Forms/Core/BlinkIDPage.xaml.cs:59 
  at BlinkIDApp.App..ctor () [0x00008] in /Users/adenearnshaw/Downloads/blinkid-xamarin-master/Samples/Forms/Core/Core.cs:12 
  at BlinkIDApp.MainActivity.OnCreate (Android.OS.Bundle bundle) [0x00020] in /Users/adenearnshaw/Downloads/blinkid-xamarin-master/Samples/Forms/Droid/MainActivity.cs:45 
  at Android.App.Activity.n_OnCreate_Landroid_os_Bundle_ (System.IntPtr jnienv, System.IntPtr native__this, System.IntPtr native_savedInstanceState) [0x00011] in <f136c45b4a184119b54f2647ad4225f6>:0 
  at (wrapper dynamic-method) Android.Runtime.DynamicMethodNameCounter.8(intptr,intptr,intptr)
  --- End of managed Java.Lang.ClassNotFoundException stack trace ---
java.lang.ClassNotFoundException: Didn't find class "com.microblink.MicroblinkSDK" on path: DexPathList[[zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/data/app/com.microblink.xamarin.blinkid-VOC8UVICfS3fhIL8wNwxLA==/base.apk"],nativeLibraryDirectories=[/data/app/com.microblink.xamarin.blinkid-VOC8UVICfS3fhIL8wNwxLA==/lib/arm64, /system/fake-libs64, /data/app/com.microblink.xamarin.blinkid-VOC8UVICfS3fhIL8wNwxLA==/base.apk!/lib/arm64-v8a, /system/lib64]]
	at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:134)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
	at crc6454688335eb7ecd6f.MainActivity.n_onCreate(Native Method)
	at crc6454688335eb7ecd6f.MainActivity.onCreate(:31)
	at android.app.Activity.performCreate(Activity.java:7323)
	at android.app.Activity.performCreate(Activity.java:7314)
	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1272)
	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2930)
	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3085)
	at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
	at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1816)
	at android.os.Handler.dispatchMessage(Handler.java:106)
	at android.os.Looper.loop(Looper.java:193)
	at android.app.ActivityThread.main(ActivityThread.java:6745)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)

Card Detector problem

Callback DidOutputImage stops calling after this error:

ERROR: glFramebufferTexture2D: GL error: GL_INVALID_OPERATION: The specified operation is not allowed in the current state.
unable to bind framebuffer

The sample does not recognize any card

The sample not working (Xamarin forms and Xamarin Android). I can't recognize any card. The sample from Google Play recognizing all.

Steps to reproduce

  1. Clone repository
  2. Open in Visual Studio 2017
  3. Build
  4. Run on Android device
  5. Try to recognize any card

My configuration

  • Visual studio 2017
  • Xamarin Forms 3.4
  • Huawei P Smart (Android 8.0)

Tested cards

Card Worked with sample Worked with the Google Play app
Hungarian ID Card ✔️
Hungarian Driver License ✔️
New York Driver License ✔️
Arizona Driver License ✔️
Italy Driver License ✔️
UK Driver License ✔️

The BlinkID Xamarin SDK is propably unusable.

How to get high resolution scanned document image

Hi, I am using Xamarin BlinkId to scan documents. Everything works great! My issue is that when I get the scanned document as an ImageSource I see that it is cropped. How can I get the high-resolution scanned image?

Microblink.framework is missing plist key

Trying to upload our app to TestFlight and it is being refused because of this error:

"The bundle 'Payload/[REDACTED APP NAME]/Frameworks/Microblink.framework' is missing plist key. The Info.plist file is missing the required key: CFBundleShortVersionString. Please find more information about CFBundleShortVersionString at https://developer.apple.com/documentation/bundleresources/information_property_list/cfbundleshortversionstring"

Also, we get this error too:

"This bundle Payload/[REDACTED APP NAME]/Frameworks/Microblink.framework is invalid. The Info.plist file is missing the required key: CFBundleVersion. Please find more information about CFBundleVersion at https://developer.apple.com/documentation/bundleresources/information_property_list/cfbundleversion"

I saw that there is a similar issue for one of the other SDKs. However, we have no control over this because the Microblink.framework dependency is coming from the NuGet package. We are using BlinkID.Forms version 5.11.0. Can you please advise? Will you be releasing an updated package where the plist file is set up properly soon? Is there a way that we can automate setting this in our build process until you have updated your NuGet package?

Getting Invalid license key from sample project

I am getting the following error when I am setting up Microblink following the Xamarin/Core example:
Java.Lang.RuntimeException: This license is invalid for licensee 'com.companyname'. It is valid only for licensee 'com.microblink.xamarin.blinkid', for product 'BlinkID' on platform 'Android' up to version 4.9. Please contact support for more information.

How do I run targeting Android 8.0?

Xamarin Forms - Get Face Image fromPassports

Hi,

I'm trying to extract face image from passports using MRTD recognizer.
Full document image is extracted but unable to extract face image.
Appreciate anyone can help on this with code sample.

Thanks.

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.