Clean ID card picture to use a person photo for facial recognition [closed]
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.
I would try out image restauration and image inpainting like here or here but which is not a OpenCV specific problem.
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.
Ok, than try out the inpainting and Image Denoising function from OpenCV directly Inpainting OpenCVImage Denoising
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.