Record Skin Tone RGB values

5 Ansichten (letzte 30 Tage)
StardustDragon
StardustDragon am 18 Okt. 2021
Beantwortet: yanqi liu am 18 Okt. 2021
Hey student here need some general guidance. I was looking into the image processing toolbox (and other toolboxes like the Computer Vision toolbox) and was wondering if there is a way to find the RGB value of a user's skin tone.
The more advanced way of doing I was thinking would be detecting a user's outline face similar to this: Face Detection Using Skin Tone Threshold(RGB-YCrCb): Python Implementation. | by Mahmoud Harmouch | The Startup | Medium (except this is in Python). From there, find a way to omit facial features like eyebrows, eyes, lips etc. Then take the average of the RGB values to find the average skin tone color.
That seems a bit advanced, so I was thinking of creating a white card with an arrow pointing to the side. The goal is for the user to point the arrow at the area of his/her face, and the goal is to detect the arrow, then identify the color of skin that is being pointed by the arrow, then record the RGB values.
I would appreciate any general guidance on where to start, and what functions are the most applicable.

Antworten (1)

yanqi liu
yanqi liu am 18 Okt. 2021
sir,may be use haar-like to detec face
clc; clear all; close all;
faceDetector = vision.CascadeObjectDetector;
[im,map] = imread('kids.tif');
im = ind2rgb(im,map);
faces = faceDetector(im);
im2 = insertShape(im,'FilledRectangle',faces);
figure; imshow(im2, []);

Kategorien

Mehr zu Call Python from MATLAB finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by