ContriHUB / SecureFace

SecureFace Access Control System
MIT License
0 stars 4 forks source link

Update security_system.py #12

Closed Aqua-16 closed 1 year ago

Aqua-16 commented 1 year ago

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:-

  1. Fixed typos
  2. Since model_path and cascade_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:-

  1. The authorized_persons.csv file is being read and stored in a dictionary as key : value pairs of Name and Authorization Status
  2. The label_to_name.csv file is being read and stored in a dictionary as key : value pairs of Label and Name
  3. get_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:

sanskaromar commented 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.

Aqua-16 commented 1 year ago

Thank you for bringing this to my attention sir, I'll fix it right away

sanskaromar commented 1 year ago

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.

Aqua-16 commented 1 year ago

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.