Ask Your Question

Revision history [back]

Hello Nick,

How did you train your SVM classifier ?

Did you take a look at dlib's object detector ? It's really good. Look at the following example. It has neat comments. https://github.com/davisking/dlib/blob/master/python_examples/train_object_detector.py

you can detect faces first and then look for sunglasses inside the detected face rectangle. For face detection, you can use dlib's frontal face detector if you are just dealing with frontal faces. If your input image has faces in all angles you can consider using cvlib. It detects faces in all angles. (uses OpenCV's dnn module underneath)

Here is a comparison between dlib's frontal and CNN face detector.

Hope this helps. Cheers.

Hello Nick,

How did you train your SVM classifier ?

Did you take a look at dlib's object detector ? It's really good. Look at the following example. It has neat comments. https://github.com/davisking/dlib/blob/master/python_examples/train_object_detector.py

you can detect faces first and then look for sunglasses inside the detected face rectangle. For face detection, you can use dlib's frontal face detector if you are just dealing with frontal faces. If your input image has faces in all angles you can consider using cvlib. It detects faces in all angles. (uses OpenCV's dnn module underneath)

Here is a comparison between dlib's frontal and CNN face detector.

Hope this helps. Cheers.

Hello Nick,

How did you train your SVM classifier ?

Did you take a look at dlib's object detector ? It's really good. Look at the following example. It has neat comments. https://github.com/davisking/dlib/blob/master/python_examples/train_object_detector.py

you can detect faces first and then look for sunglasses inside the detected face rectangle. For face detection, you can use dlib's frontal face detector if you are just dealing with frontal faces. If your input image has faces in all angles you can consider using cvlib. It detects faces in all angles. (uses OpenCV's dnn module underneath)

Here is a comparison between dlib's frontal and CNN face detector.

Hope this helps. Cheers.