My phone camers is open and i need to feed it with an image so it can scan it. Android real device

Android device

My phone camera is already open. Now i need to provide it with an image like passport to scan or capture barcode from it. How can i feed the image through code?

Hello @vanigoyal, did you get any solution on this?