          return filename, []
  
      def handleImage(self, image, filename):
          faces = self.get_faces(image)
          process_faces = [(idx, face) for idx, face in faces]
  
          # Run image rotator if requested and no faces found        
 
</s> remove         count = 0

 </s> add  </s> remove         for idx, face in faces:
            count = idx
             
 </s> add         for idx, face in process_faces: </s> remove     def get_faces(self, image):
 </s> add     def get_faces(self, image, rotation=0): </s> remove         faces = detect_faces(image, self.arguments.detector)
 </s> add         faces = detect_faces(image, rotation, self.arguments.detector)
    def imageRotator(self, image):
        ''' rotates the image through 90 degree iterations to find a face '''
        angle = 90
        while angle <= 270:
            rotated_image = rotate_image(image, angle)
            faces = self.get_faces(rotated_image, rotation=angle)
            rotated_faces = [(idx, face) for idx, face in faces]
            if len(rotated_faces) != 0:
                if self.arguments.verbose:
                    print('found face(s) by rotating image {} degrees'.format(angle))
                break
            angle += 90
        return rotated_faces, rotated_image
        
          return filename, []
  
    def imageRotator(self, image):
        ''' rotates the image through 90 degree iterations to find a face '''
        angle = 90
        while angle <= 270:
            rotated_image = rotate_image(image, angle)
            faces = self.get_faces(rotated_image, rotation=angle)
            rotated_faces = [(idx, face) for idx, face in faces]
            if len(rotated_faces) != 0:
                if self.arguments.verbose:
                    print('found face(s) by rotating image {} degrees'.format(angle))
                break
            angle += 90
        return rotated_faces, rotated_image
        
      def handleImage(self, image, filename):
          faces = self.get_faces(image)
          process_faces = [(idx, face) for idx, face in faces]
  
          # Run image rotator if requested and no faces found        
keep add 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