blinkid-flutter icon indicating copy to clipboard operation
blinkid-flutter copied to clipboard

ImagePicker

Open mrisney opened this issue 2 years ago • 1 comments

How can the flutter library, to use imagePickerController, allowing end user to chose image from camera instead of overlay scan ?

Need this for an out of mobile service use case scenario, where end user would not be able to pass ID information to hosted persistence api.

mrisney avatar Oct 07 '21 05:10 mrisney

Hi @mrisney

Thank you for waiting for our response.

This way of scanning and information extraction (using the camera to take an image, or by choosing an image from the device's Gallery/Photos) on our side is called the DirectAPI. This method of scanning is not directly available for the SDK on Flutter, only on native platforms. In order to use the DirectAPI method on Flutter, you would first need to implement it on the native platforms, then wrap it to be usable for Flutter. Then you can use Flutter's imagePicker to load the images and then send them to the DirectAPI for processing.

I recommend taking a look at the DirectAPI documentation here:

Android: https://github.com/BlinkID/blinkid-android#directAPI

iOS: https://github.com/BlinkID/blinkid-ios#direct-api-processing

We also have samples which demonstrate the usage of the DirectAPI method of scanning here:

Android: https://github.com/BlinkID/blinkid-android/tree/master/BlinkIDSample/BlinkID-DirectApiSample

iOS: https://github.com/BlinkID/blinkid-ios/tree/master/Samples/DirectAPI-sample-Swift

Let me know if you have any additional questions.

mparadina avatar Oct 13 '21 10:10 mparadina