FaceRec icon indicating copy to clipboard operation
FaceRec copied to clipboard

Feature Request: New Endpoint for `recognise_face()`

Open Devasy opened this issue 2 years ago • 1 comments

Feature Request: New Endpoint for recognise_face()

Description

We need a new endpoint, recognise_face(), that accepts a base64 string as input. This endpoint should convert the base64 string into embeddings using the same process as the create_new_faceEntry() endpoint.

Once the embeddings are calculated, the endpoint should run a vector search query on our MongoDB Atlas database. The search should use Euclidean distance as the similarity measure to find the most similar face in the database.

Expected Behavior

The endpoint should return the EmployeeCode and other associated information of the most similar face found in the database. If no similar face is found, the endpoint should return an appropriate error message.

Benefits

This feature will allow us to identify faces from images without having to manually compare the embeddings. This could be useful in a variety of scenarios, such as employee check-in/check-out, security checks, etc.

Tasks

  • [ ] Implement the recognise_face() endpoint.
  • [ ] Write tests for the new endpoint.
  • [ ] Update the API documentation to include the new endpoint.

Devasy avatar Mar 12 '24 16:03 Devasy

Sweeping

0%


Actions (click)

  • [ ] ↻ Restart Sweep

❌ Unable to Complete PR

You ran out of the free tier GPT-4 tickets! We no longer support running Sweep with GPT-3.5 as it is too unreliable. Here are your options:

  • You can get a free trial of Sweep Pro to get unlimited GPT-4 tickets here or purchase a individual GPT-4 tickets here.
  • You can self-host Sweep with your own GPT-4 API key. You can find instructions here.
  • You can book a chat with us to discuss your use case and get additional free GPT-4 tickets here.

🎉 Latest improvements to Sweep:
  • New dashboard launched for real-time tracking of Sweep issues, covering all stages from search to coding.
  • Integration of OpenAI's latest Assistant API for more efficient and reliable code planning and editing, improving speed by 3x.
  • Use the GitHub issues extension for creating Sweep issues directly from your editor.

💡 To recreate the pull request edit the issue title or description. To tweak the pull request, leave a comment on the pull request.

This is an automated message generated by Sweep AI.

sweep-ai-deprecated avatar Mar 13 '24 05:03 sweep-ai-deprecated