Open umitanuki opened 9 years ago
In cascade_detector.py
, in the detectWithAngles function, go to around line 100. You will see the function call to self.detectMultiScaleWithScores
. Immediately below that, find:
for face in faces:
xp = face[0][0]
dx = face[0][2]
yp = face[0][1]
dy = face[0][3]
score = face[1]
and replace it with:
for face in faces:
xp = face[0]
dx = face[2]
yp = face[1]
dy = face[3]
score = 1
This fixes the problem because the self._cascade_classifier.detectMultiScale
call on line 60 does not return scores. After making this change, test_pipeline.py
seems to be working and generates outputs (that look correct?).
Hi there, I faced similar error, and solved things as mentioned. But, it does not seem that the faces are aligned anymore. Specifically, see the Fayssal_Mekdad_0002_face_0.aligned imaged under the aligned folder.
Any update on this? Though, I doubt that this might be causing problem.
Any help will be highly appreciated.
I have the same problem
@umitanuki @mayankgrd Have you solved this problem?
I have found the solution: the code is using an outdated version of the method. Just go to line 60 of cascade_detector.py
and turn detectMultiScaleWithScores
into detectMultiScale
i cant find cascade detector. i installed through conda can u help me out
After installing, I ran test_pipeline.py and failed.
I don't think it has such method ever, but it looks like detectMultiScale (without WithScores)? I changed it accordingly in my local and seems to be working.