Extract and crop image from documents like aadhar, pan, etc

Hi everyone, I am working on a project where I have to extract the data from the government issued documents such as aadhar, Pan, passport etc. I am able to do. I stuck on a point where I have to extract the images of the person from those documents. Is there any possible way, where I can extract the particular image of that user.

Hi @Keshav_Choudhari
You can use take screenshot activity and save image activity

Hello @Keshav_Choudhari,

As of now, we do not have such an option available. Document understanding is intended for processing documents and images by extracting information for downstream use. Maybe you need to look for an alternative solution, as we do not offer an option for cropping, and this is not a facial recognition model. Please look for a facial recognition model using YOLO or OpenCV and then use document understanding for extraction and that model for cropping the image.

Thanks,
Karthik

@Keshav_Choudhari

check in the DOM if you get coordinates of the image..if they are present in DOm then can use the coordinates to take a screenshot and get the image

cheers