Parenthases
This commit is contained in:
parent
4441616ef1
commit
a82b98154f
@ -45,9 +45,9 @@ def addPerson(label, newFileName, oldFileName):
|
|||||||
face_recognizer = cv2.createLBPHFaceRecognizer()
|
face_recognizer = cv2.createLBPHFaceRecognizer()
|
||||||
global new
|
global new
|
||||||
if new:
|
if new:
|
||||||
print 'new file. skipping load function'
|
print ('new file. skipping load function')
|
||||||
else:
|
else:
|
||||||
print 'loading old file'
|
print ('loading old file')
|
||||||
face_recognizer.load(faceFile)
|
face_recognizer.load(faceFile)
|
||||||
except:
|
except:
|
||||||
print('[ Error ] Problem in init/loading LBPHfacerecognizer')
|
print('[ Error ] Problem in init/loading LBPHfacerecognizer')
|
||||||
|
Loading…
Reference in New Issue
Block a user