Clean ID card picture to use a person photo for facial recognition [closed]

asked 2019-07-07 23:20:31 -0600

Andres gravatar image

updated 2019-07-08 03:43:31 -0600

berak gravatar image

We have an ID card that contains a person's photo, but it has a hologram and a watermark in part of that photo. The idea is to clean the photo as much as posible and use the resultant image for facial recognition. I was thinking on using a Denoising autoencoder but so far it seems it wont work. Any ideas???

Im attaching a sample photo. C:\fakepath\IMG_3584.jpg

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by sturkmen
close date 2020-10-17 17:24:40.802755

Comments

I would try out image restauration and image inpainting like here or here but which is not a OpenCV specific problem.

VxW gravatar imageVxW ( 2019-07-08 02:36:26 -0600 )edit

This looks like a nice solution but unfortunately, in order to install CUDA, I need to have an NVIDIA card which I don't have.

Andres gravatar imageAndres ( 2019-07-08 22:10:54 -0600 )edit

Ok, than try out the inpainting and Image Denoising function from OpenCV directly Inpainting OpenCVImage Denoising

VxW gravatar imageVxW ( 2019-07-09 02:39:49 -0600 )edit

The problem with inpainting is that it requires a mask that needs to be generated manually per picture as it will be captured by the customer from different angles. I was thinking of detecting the gray spots in the picture to create the mask but don't really know how to do it as I'm pretty new with OpenCv. Another problem is when taking the picture to avoid the hologram otherwise it will be right in front of it. Lastly, the picture has to be good enough to be detected by a facial detection algorithm and to extract the correct template that later on will be used for the matching process.

Andres gravatar imageAndres ( 2019-07-10 00:03:50 -0600 )edit