Info

此问题已关闭。 请重新打开它进行编辑或回答。

Can somebody help me?

1 次查看(过去 30 天)
Bang bang
Bang bang 2020-2-11
关闭: MATLAB Answer Bot 2021-8-20
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..

回答(1 个)

Walter Roberson
Walter Roberson 2020-2-11
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.

此问题已关闭。

标签

产品


版本

R2015a

Community Treasure Hunt

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

Start Hunting!

Translated by