Extract the selected zone on a picture with opencv python -
i'm using opencv detect face in picture , want ot extract it, have photo man , expected result jpg image seleted face
i have detect face if can me extract face , save it!
thank all
you have add single line program.
consider variable detected_face
, , following:
detected_face = img[y:y+h, x:x+w] cv2.imwrite('face.jpg', detected_face)
you have .jpg
file of face stored in directory
Comments
Post a Comment