資源簡(jiǎn)介
利用matlab實(shí)現(xiàn)的在圖片中找到人臉,并將其標(biāo)記出來(lái)。
代碼片段和文件信息
function?findface()
[namedirindex]=uigetfile({‘*.jpg‘;‘*.bmp‘;‘*.gif‘}‘選擇圖片‘);
if?index==1?
????str=[dir?name];??
????image=imread(str);??
end
faceDetector=vision.CascadeobjectDetector;
fece=step(fa
評(píng)論
共有 條評(píng)論