thecodacus / Face-Recognition

Face Recognition tutorial code
Apache License 2.0
81 stars 73 forks source link

Training data #6

Closed imkrishnavenkat closed 6 years ago

imkrishnavenkat commented 6 years ago

Can we change labels from integer to string type

thecodacus commented 6 years ago

open cv recognizers only accept integers as id. but you can create a sql database table to map the names and there corresponding ids, that way you can get the names from the ids

viru12 commented 6 years ago

virupaksha@virupaksha-Vbox:~/Face-Recognition$ python trainer.py Traceback (most recent call last): File "trainer.py", line 5, in recognizer = cv2.createLBPHFaceRecognizer() AttributeError: 'module' object has no attribute 'createLBPHFaceRecognizer'

droidriz commented 6 years ago

^ that can be solved by recognizer = cv2.face.LBPHFaceRecognizer_create()