BlinkID / blinkid-android

Everything you need to add AI-driven ID scanning into your native Android app.
https://microblink.com/identity/identity-document-scanning/
445 stars 153 forks source link

How to use External Camera for Scan #234

Closed Robotrator closed 3 years ago

Robotrator commented 3 years ago

I am running the project on my Robot which has two Cameras. It is accessing default camera but I want to switch the preview to the other Camera. From where I can change the Camera, which activity for camera preview?

RecognizerBundleResultActivity.java & BaseResultActivity.java, these two files I explored for Switching Camera but it seems no camera activity there.

Can you please assist in this?

i1E commented 3 years ago

Hi @NumanGillani-jackys,

you can set camera type by using BlinkIdUISettings.setCameraSettings method.

CameraSettings.Builder has method setType, by using this method you can choose between CameraType.CAMERA_DEFAULT, CameraType.CAMERA_BACKFACE and CameraType.CAMERA_FRONTFACE.

anjapenic commented 3 years ago

Hi @Robotrator,

Since this issue is inactive, we're closing it. If you need any further assistance feel free to open a new issue or contact us at support@microblink.com.

Regards, Anja