Info

This question is closed. Reopen it to edit or answer.

Can somebody help me?

2 views (last 30 days)
Bang bang
Bang bang on 11 Feb 2020
Closed: MATLAB Answer Bot on 20 Aug 2021
I am new in matlab and I want to make an ID photo maker app can somebody give me some source code ... I need to crop an image from the center of the face then resize it in different ID photo sizes.. Pls help me for my project... I use imresize to resize image but its ruining the quality of image..

Answers (1)

Walter Roberson
Walter Roberson on 11 Feb 2020
You can use the face detection algorithms from Computer Vision Toolbox to detect the face. There are a number of of examples provided in that toolbox.
It is common that individual cropped images from webcam streams are too low of resolution to be used for ID card purposes.
You have several options:
1) use a higher resolution webcam
2) use a stream of images with either the camera or the person moving a bit in order to reconstruct a higher resolution image. Although at any one time the output quality is limited by the resolution of the sensor, if you can move the sensor relative to the image by a fraction of the width of a pixel then you can combine the information to bring out details;
3) you can take a single image and apply Deep Learning techniques to it in order to predict what the person might look like in higher resolution. You might be to construct an image that looks good, but such images should never be used for official ID purposes, because they do not accurately represent the face of the actual person.

This question is closed.

Tags

Products


Release

R2015a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!