Simply message output
This commit is contained in:
@@ -100,7 +100,6 @@ def cutImage(imagecut, path, fanart_path, poster_path, skip_facerec=False):
|
||||
|
||||
|
||||
def face_center(filename, model):
|
||||
print('[+]Use model ' + model)
|
||||
try:
|
||||
mod = importlib.import_module('.' + model, 'ImageProcessing')
|
||||
return mod.face_center(filename, model)
|
||||
|
||||
@@ -4,7 +4,7 @@ import face_recognition
|
||||
def face_center(filename, model):
|
||||
image = face_recognition.load_image_file(filename)
|
||||
face_locations = face_recognition.face_locations(image, 1, model)
|
||||
print('[+]Found person ' + str(len(face_locations)))
|
||||
print('[+]Found person [' + str(len(face_locations)) + '] By model hog')
|
||||
maxRight = 0
|
||||
maxTop = 0
|
||||
for face_location in face_locations:
|
||||
|
||||
Reference in New Issue
Block a user