Ask Your Question

Can we create our own haar-cascade file for multi-view face detection

asked 2019-02-19 06:13:51 -0500

Kushal gravatar image

updated 2019-02-19 06:32:09 -0500

Multi-view face detection means human face in any angle ranging from -90 to 90 degrees as shown in the image

image link:

edit retag flag offensive close merge delete


please upload your image here, not on an external bin, thank you.

berak gravatar imageberak ( 2019-02-19 06:19:38 -0500 )edit

see haar-cascade is not suitable.

sturkmen gravatar imagesturkmen ( 2019-02-19 08:36:19 -0500 )edit

1 answer

Sort by » oldest newest most voted

answered 2019-02-20 05:51:42 -0500

berak gravatar image

updated 2019-02-21 04:17:13 -0500

no, you can't (or - you should not).

cascades degrade, if you increase the pose angle, if you have morethan ~ +=15°,you'll get random predictions.

while you can overcome it by training a frontal and a side view (and flip the image for the opposide side), this means you would need 3 seperate detection attempts.

also note, that the venerable cascade classifiers are "on the way out" (current opencv4 has no more tools to train those), and that you probably should use more modern cnn based face detectors. e.g. look at MTCNN, which is much faster than a single cascade already, andworks nice in [-90 .. 90] degree range. it does not make much sense to

edit flag offensive delete link more


@berak can you be more specific and suggest me the best way how to do it.

Kushal gravatar imageKushal ( 2019-02-21 04:05:53 -0500 )edit

@Kushal, sorry, but no spoon feeding here.

all i'm trying is to get you to restart your own research

berak gravatar imageberak ( 2019-02-21 04:16:59 -0500 )edit

Question Tools

1 follower


Asked: 2019-02-19 06:13:51 -0500

Seen: 243 times

Last updated: Feb 21 '19