A sample Flask application which helps with the face recognition in the Attendance System App
To get started, you'll want to first clone this GitHub repository locally:
$ git clone https://github.com/sgcuber24/attendance_system_face_recognition_api.gitNext, you'll want to go into the sample app directory:
$ cd attendance_system_face_recognition_apiThen you'll want to install all of the Python requirements (via pip):
$ pip install -r requirements.txtAnd lastly, you'll want to run the app.py script which will guide you
the rest of the way:
$ python app.pyNote: Since this API is built for the Attendance System App, you will have to be authorized as a Teacher and must pass in a JWT (JSON Web Token) with your request. You can find the Attendance System Backend here
Takes in a File and class ID and returns the students present in the class after performing facial recognition and detection.
Headers
Content-Type : form-data Authorization : Bearer Token
Request body
| Key | Value |
|---|---|
| files | "2 files selected" |
| classId | 6049da1fc125133d04bdad6b |