Skip to content

Commit db60d96

Browse files
committed
Fix flake8 errors
1 parent de07ebf commit db60d96

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

‎face_recognition/api.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
try:
88
import face_recognition_models
9-
except:
9+
except ModuleNotFoundError:
1010
print("Please install `face_recognition_models` with this command before using `face_recognition`:")
1111
print()
1212
print("pip install git+https://github.com/ageitgey/face_recognition_models")

‎face_recognition/face_detection_cli.py‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66
import face_recognition.api as face_recognition
77
import multiprocessing
88
import sys
9-
import PIL.Image
109
import itertools
11-
import numpy as np
1210

1311

1412
def print_result(filename, location):
@@ -53,7 +51,6 @@ def process_images_in_process_pool(images_to_check, number_of_cpus, model):
5351
@click.argument('image_to_check')
5452
@click.option('--cpus', default=1, help='number of CPU cores to use in parallel. -1 means "use all in system"')
5553
@click.option('--model', default="hog", help='Which face detection model to use. Options are "hog" or "cnn".')
56-
5754
def main(image_to_check, cpus, model):
5855
# Multi-core processing only supported on Python 3.4 or greater
5956
if (sys.version_info < (3, 4)) and cpus != 1:

0 commit comments

Comments
 (0)