java - Detecting faces that are looking into the webcam -


i'm doing face detection in java/javacv. far i've been experimenting code.

i'm using face cascade = haarcascade_frontalface_alt_tree.xml

i've got code below detecting largest face found in webcam

cvseq faces = cvhaardetectobjects(img, classifier, storage, 1.1, 1,                                                       cv_haar_do_rough_search|cv_haar_find_biggest_object); 

my first question is: since detecting 1 face - largest face found in webcam correct way detect multiple faces?

cvseq faces = cvhaardetectobjects(img, classifier, storage, 1.1, 1, cv_haar_do_canny_pruning); 

my second question is: possible detect faces looking webcam? , not looking wbecam? detect faces want set sort of scores - let's 1 faces looking webcam , 2 - faces looking away webcam? how proceed this?

thank you.

if person looks directly, his/her eye should perpendicular(if he/she doesn't have eye problem :p).

this theory suggests, pupil , iris should circular , not elliptical if person looks directly. please note meant visible part of pupil , iris only.


Comments

Popular posts from this blog

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

python 3.x - Mapping specific letters onto a list of words -