smahesh29 / Gender-and-Age-Detection

A Python project which can detect gender and age using OpenCV of the person (face) in a picture or through webcam.
MIT License
471 stars 202 forks source link

Understandig how the face detection works #3

Closed kaktuseis closed 3 years ago

kaktuseis commented 3 years ago

Hi, the age and gender detection works good, thanks for sharing! I want to understand how the face detection works. Can you tell me if you use Single Shot detector or something else?

smahesh29 commented 3 years ago

For face detection I had used pre-trained face detection model. We have a opencv_face_detector_uint8.pb file- this is a protobuf file (protocol buffer); it holds the graph definition and the trained weights of the model. We can use this to run the trained model. And while a opencv_face_detector_uint8.pb file holds the protobuf in binary format, one with the opencv_face_detector.pbtxt extension holds it in text format. These are TensorFlow files.