Update py_face_detection.rst

function cv2.rectangle does not return the image, changed

img = cv2.rectangle(img,(x,y),(x+w,y+h),(255,0,0),2)

into 

cv2.rectangle(img,(x,y),(x+w,y+h),(255,0,0),2)