FaceRec icon indicating copy to clipboard operation
FaceRec copied to clipboard

Improve Face Detection Accuracy and Preprocessing in main.py and index.js

Open 2100031988 opened this issue 2 years ago • 4 comments

Description: The current face detection logic in main.py does not perform well under certain lighting conditions and with images at extreme angles. This reduces the model's overall accuracy and negatively impacts the user experience.

Changes Required I propose modifying the detection pipeline to include additional image preprocessing steps, such as:

  • Brightness normalization to handle low-light conditions( I will use opencv python library for enhancement)
  • Rotation correction to detect faces captured at different angles.(I will call a function to rotate the images for better angle and better quality of images)

These enhancements will improve detection accuracy, particularly in challenging conditions.

Affected Files:

  1. main.py: I want to update the face detection logic to incorporate new preprocessing steps before feeding images into the model.
  2. index.js: I also want to modify the frontend logic to ensure that the uploaded images are preprocessed (e.g., rotated if needed) before being sent to the backend for detection for more user friendly.

2100031988 avatar Oct 10 '24 05:10 2100031988

sure - please go ahead and improvise on the accuracy!

devansh-shah-11 avatar Oct 12 '24 10:10 devansh-shah-11

If you require any help you may reach out to us

Devasy avatar Oct 12 '24 10:10 Devasy

Yeah sure!...thanks

2100031988 avatar Oct 12 '24 11:10 2100031988

@Devasy23 @puwun please assign this issue to me.

Rohan20-10 avatar Oct 31 '24 09:10 Rohan20-10