Ask Your Question

arcticworker's profile - activity

2016-06-14 04:58:30 -0600 asked a question What is the difference between Stump-based and Tree-based frontal face detector?

In the Opencv there are some haar cascades:

  • haarcascade_frontalface_alt.xml - Stump-based 20x20 gentle adaboost frontal face detector. Created by Rainer Lienhart.
  • haarcascade_frontalface_alt2.xml - Tree-based 20x20 gentle adaboost frontal face detector. Created by Rainer Lienhart.

What is the difference between Stump-based and Tree-based frontal face detector? Inipractice, they give very similar results.

2016-05-19 09:01:59 -0600 commented answer What image format is best use for facial recognition?

@tuannhtn, thanks for reply. What about optimal image resolution for recognition? I should use the highest resolution or are there any restrictions?

2016-05-18 22:09:54 -0600 asked a question What image format is best use for facial recognition?

What format is best use for facial recognition e.g. png, jpg, pgm ot another? i use opnecv methods LBPHFaceRecognizer, FisherFaceRecognizer and EigenFaceRecognizer.

2016-05-16 13:38:21 -0600 received badge  Editor (source)
2016-05-14 17:47:16 -0600 asked a question PredictCollector not working

i try to use PredictCollector:

recognizer = cv2.face.createLBPHFaceRecognizer()
collect = cv2.face.PredictCollector()
recognizer.predict(predict_image, collect)

but on first step program is crashing:

Traceback (most recent call last):
  File "faces.py", line 62, in <module>
    collect = cv2.face.PredictCollector()
AttributeError: 'module' object has no attribute 'PredictCollector'

When i use:

collect = cv2.face.VectorPredictCollector()

it work well, but i need PredictCollector. what am I doing wrong? i use opencv v. 3.1.0

2016-05-14 06:52:50 -0600 received badge  Enthusiast
2016-05-13 06:54:20 -0600 commented question prediction with FaceRecognizer

i use 3.1 version for linux

2016-05-12 20:19:11 -0600 asked a question prediction with FaceRecognizer

I use method cv::face::FaceRecognizer::predict from here, in python i write this:

nbr_predicted, conf = recognizer.predict(predict_image)

it predicts a label and associated confidence (e.g. distance) for a given input image, it return only 1 label (the closest for a given input image). How i can get all labels and associated confidence (e.g. distance) for my input image?

On same page i find this method:

virtual void cv::face::FaceRecognizer::predict  (   InputArray  src,
                                                    Ptr< PredictCollector >     collector,
                                                    const int   state = 0
                                                    )       const

If I'm not mistaken this is what I need. But i can't figure out what this is "Ptr< PredictCollector > collector", and how to describe (use) this in python?

p.s. sorry for my bad English.

2016-04-11 00:03:07 -0600 commented answer Can't get predict confidence

alexylem, I have the same problem. If you know how to fix it, please help.