balajisrinivas / Face-Mask-Detection

Detecting face masks using Python, Keras, OpenCV on real video streams
485 stars 684 forks source link

How did you calculate the mean values for creating blob? #19

Open Oddy123123 opened 2 years ago

Oddy123123 commented 2 years ago

In the file "detect_mask_video.py" in lines 16 and 17 you have:

blob = cv2.dnn.blobFromImage(frame, 1.0, (224, 224),
        (104.0, 177.0, 123.0))

How did you calculate the mean values for RGB: (104.0, 177.0, 123.0)? Why are these specific values used?

Should I change these values if I use another dataset?