File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -67,15 +67,15 @@ def face_distance(face_encodings, face_to_compare):
67
67
return np .linalg .norm (face_encodings - face_to_compare , axis = 1 )
68
68
69
69
70
- def load_image_file (filename , mode = 'RGB' ):
70
+ def load_image_file (name , mode = 'RGB' ):
71
71
"""
72
72
Loads an image file (.jpg, .png, etc) into a numpy array
73
73
74
- :param filename : image file to load
74
+ :param name : image file name or file object to load
75
75
:param mode: format to convert the image to. Only 'RGB' (8-bit RGB, 3 channels) and 'L' (black and white) are supported.
76
76
:return: image contents as numpy array
77
77
"""
78
- return scipy .misc .imread (filename , mode = mode )
78
+ return scipy .misc .imread (name , mode = mode )
79
79
80
80
81
81
def _raw_face_locations (img , number_of_times_to_upsample = 1 ):
You can’t perform that action at this time.
0 commit comments