DayBreak-u / darknet_face_with_landmark

加入关键点的darknet训练框架,轻量级的人脸检测,支持ncnn推理
Other
210 stars 71 forks source link

Face detective img crop #25

Open ss24cs opened 4 years ago

ss24cs commented 4 years ago

Hi, buddy, thank your wonderful project, I was success face detect in custom images. But next I want crop the face region and output a .png file, how I modify the yolo_landmark.py(for example) demo like in the def cvDrawBoxes(detections, img ,ratio_w , ratio_h ) function, and let the predictions.jpg(yolo output) obtain a face_crop region(just I need a face local output). How can I let the yolo frame output it?

w840401 commented 3 years ago

How did you train successfully?

ss24cs commented 3 years ago

How did you train successfully?

Not train this frame, I just use this "mbv2_yolov3_face_final.weights" to detect another pictures, I was crop faces region (like crop_face0.jpg) in other python demo.