Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Face Registration Endpoint #94

Closed
wants to merge 2 commits into from
Closed

Conversation

Sachin2815
Copy link

@Sachin2815 Sachin2815 commented Oct 15, 2024

Description

@Devasy23 This PR introduces a new Face Registration feature to the FaceRec project using FastAPI and DeepFace. It provides an endpoint that allows users to register their face, along with associated metadata (such as name), into the MongoDB database.

Key Features:

  • FastAPI Endpoint: /register/ accepts a form field (name) and an image file (image) for face registration.
  • DeepFace Integration: Extracts face embeddings using the Facenet model from DeepFace.
  • MongoDB Storage: Stores the face embeddings and metadata in the face_recognition database.
  • Error Handling: Includes error handling for failed face registration or database operations.

Usage Example:

To register a new face, send a POST request with the following form data:

POST /register/
Content-Type: multipart/form-data
Body:
  - image: (upload file)
  - name: "User's Name"

@devansh-shah-11
Copy link
Collaborator

Hi @Sachin2815 - refer to "/create_new_faceEntry" endpoint. We already have this endpoint to allow users to register their face!

@Sachin2815
Copy link
Author

Hi @devansh-shah-11 ,

Thank you for your feedback! I appreciate you pointing out the existing /create_new_faceEntry endpoint. I’ll review its implementation and see how it integrates with the current face registration system.

If needed, I can update my PR to enhance or extend the existing functionality. Please let me know if there are specific features or improvements you'd like me to consider!

@devansh-shah-11
Copy link
Collaborator

Hey @Sachin2815 ,
I think you can go over the code base first and check the issues. You can create a new issue if you have an idea or you can also contribute to existing issues which you find interesting.
Closing this pull request for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants