              cv2.imwrite('{}_{}{}'.format(str(output_file), str(idx), Path(filename).suffix), resized_image)
              f = {
                  "x": face.x,
                  "w": face.w,
                  "y": face.y,
                  "h": face.h,
                  "landmarksXY": face.landmarksAsXY()
              }
 
</s> remove         count = 0

 </s> add  </s> remove     def __init__(self, image=None, x=None, w=None, y=None, h=None, landmarksXY=None):
 </s> add     def __init__(self, image=None, r=None, x=None, w=None, y=None, h=None, landmarksXY=None): </s> remove         faces = detect_faces(image, self.arguments.detector)
 </s> add         faces = detect_faces(image, rotation, self.arguments.detector)
                "r": face.r,
              cv2.imwrite('{}_{}{}'.format(str(output_file), str(idx), Path(filename).suffix), resized_image)
              f = {
                "r": face.r,
                  "x": face.x,
                  "w": face.w,
                  "y": face.y,
                  "h": face.h,
                  "landmarksXY": face.landmarksAsXY()
              }
keep add keep keep keep keep keep keep
 Add image rotation for detecting more faces and dealing with awkward angles (#253)

* Image rotator for extract and convert ready for testing

* Revert "Image rotator for extract and convert ready for testing"

This reverts commit bbeb19ef26d2392b0f5f954dd202137a70444d4e.

Error in extract code

* add image rotation support to detect more faces

* Update convert.py

Amended to do a single check for for rotation rather than checking twice. Performance gain is likely to be marginal to non-existent, but can't hurt.

* Update convert.py

remove type

* cli.py: Only output message on verbose. Convert.py: Only check for rotation amount once

* Changed command line flag to take arguments to ease future development

* Realigning for upstream/Master

* Minor fix 
scripts/extract.py