ageitgey / face_recognition

The world's simplest facial recognition api for Python and the command line
MIT License
53.6k stars 13.51k forks source link

Reduced model performance when tried with another face detection model #1072

Open brittosabu opened 4 years ago

brittosabu commented 4 years ago

Description

The detection model was not performing as per our needs , so we tried Yolov3 model for face detection. The face detection works perfectly now, but the recognition is very bad and it keeps changing the 'Names' for the identified people. We've tried changing tolerance, and almost everything, is there something which we are missing out

haris-ahmed commented 4 years ago

try following for face detection https://www.pyimagesearch.com/2018/02/26/face-detection-with-opencv-and-deep-learning/

when you pass an image to Yolov3 it tries to detect following in supplied image:

person, bicycle, car, motorbike, aeroplane, bus, train, truck, boat, traffic light, fire hydrant, stop sign, parking meter, bench, bird, cat, dog, horse, sheep, cow, elephant, bear, zebra, giraffe, backpack, umbrella, handbag, tie, suitcase, frisbee, skis, snowboard, sports ball, kite, baseball bat, baseball glove, skateboard, surfboard, tennis racket, bottle, wine glass, cup, fork, knife, spoon, bowl, banana, apple, sandwich, orange, broccoli, carrot, hot dog, pizza, donut, cake, chair, sofa, pottedplant, bed, diningtable, toilet, tvmonitor, laptop, mouse, remote, keyboard, cell phone, microwave, oven, toaster, sink, refrigerator, book, clock, vase, scissors, teddy bear, hair drier, toothbrush

it detects person not only face I don't think using Yolov3 is good idea for face detection.

brittosabu commented 4 years ago

@haris-ahmed I've used a Yolo detector specifically trained to detect faces only. So it gets almost every face in the image. The problem is with the recognition part

haris-ahmed commented 4 years ago

can you share code or steps you are doing for recognition part and how many trained faces do you have for a person?

448357739 commented 4 years ago

Hi,I have the same question when processing the video. Do you have any ideas to solve it now?