Record Skin Tone RGB values

5 ビュー (過去 30 日間)
StardustDragon
StardustDragon 2021 年 10 月 18 日
回答済み: yanqi liu 2021 年 10 月 18 日
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.

回答 (1 件)

yanqi liu
yanqi liu 2021 年 10 月 18 日
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, []);

カテゴリ

Help Center および File ExchangeCall Python from MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by