Translate

Bu Blogda Ara

7 Ağustos 2018 Salı

Taking Images From Computer Camera and Face Detection





%//////////////////CONNECTİNG WEBCAM//////////////////
clear


cam=webcam();%create an object

preview(cam)%we opened the camera




Facedetect=vision.CascadeObjectDetector();


while(1)
img = snapshot(cam);
box=step(Facedetect,img);
B=insertObjectAnnotation(img,'rectangle',box,'face','FontSize',10);
imshow(B);
end

closePreview(cam)

Hiç yorum yok:

Yorum Gönder