BlinkID / blinkid-flutter

ID scanning plugins for cross-platform apps built with Flutter.
79 stars 23 forks source link

ImagePicker #28

Open mrisney opened 3 years ago

mrisney commented 3 years ago

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.

mparadina commented 3 years ago

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.