                              action="store_true",
                              dest="debug_landmarks",
                              default=False,
                              help="Draw landmarks for debug.")
          
          return parser
  
      def process(self):
          extractor_name = "Align" # TODO Pass as argument
          self.extractor = PluginLoader.get_extractor(extractor_name)()
 
</s> remove         count = 0

 </s> add  </s> remove         for idx, face in faces:
            count = idx
             
 </s> add         for idx, face in process_faces:
        parser.add_argument('-r', '--rotate-images',
                            type=str,
                            dest="rotate_images",
                            choices=("on", "off"),
                            default="off",
                            help="If a face isn't found, rotate the images through 90 degree "
                                 "iterations to try to find a face. Can find more faces at the "
                                 "cost of extraction speed.")
                              action="store_true",
                              dest="debug_landmarks",
                              default=False,
                              help="Draw landmarks for debug.")
        parser.add_argument('-r', '--rotate-images',
                            type=str,
                            dest="rotate_images",
                            choices=("on", "off"),
                            default="off",
                            help="If a face isn't found, rotate the images through 90 degree "
                                 "iterations to try to find a face. Can find more faces at the "
                                 "cost of extraction speed.")
          return parser
  
      def process(self):
          extractor_name = "Align" # TODO Pass as argument
          self.extractor = PluginLoader.get_extractor(extractor_name)()
keep keep keep keep replace 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