Closed Aqua-16 closed 1 year ago
@Aqua-16 I'd appreciate it if the commit messages were clearer about what's being changed. There is no need to mention about #TODO
there. And rename your PR to convention Fixes #(issue): Description
.
Thank you for bringing this to my attention sir, I'll fix it right away
Are you still working on this? Btw I would encourage a better commit message.
You can refer this resource on how to write better commit messages.
Yes Sir I was still working on it, but I think I'm done now. I have also updated the description to reflect my overall changes.
Updated over the previous version.
Description
Loaded the model, specified the cascade paths, implemented the dictionary functions as well as function responsible for getting names. Used those functions to finish the rest of the work.
Fixes #5 : Updated the previous issues as follows:-
model_path
andcascade_path
are optional arguments, they are only given a specified path if no arguments have been passed to them. This will allow the code to use user-define classifiers and models.The following has been implemented in general:-
authorized_persons.csv
file is being read and stored in a dictionary as key : value pairs of Name and Authorization Statuslabel_to_name.csv
file is being read and stored in a dictionary as key : value pairs of Label and Nameget_person_name
file has been implemented to return "Unknown" if confidence score is too low or the provided label is unavailable. Otherwise, it now returns the name associated with the label.Type of change
How Has This Been Tested?
I have tested this on Jupyter Labs as well as Command Terminal using a Virtual Environment. Each function has also been individually ran to test for any errors.
Checklist: