-
-
Notifications
You must be signed in to change notification settings - Fork 166
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
Automatically detect and cover faces in images #2527
Comments
/bounty $10 |
Right now if we upload images its not visible So do we need this feature ? |
Hi @DonnieBLT, I am new to this community, but I think I can fix this issue, so can you please assign this to me if you still need this feature |
Hello @neelabh2710! You've been assigned to OWASP-BLT/BLT. You have 24 hours to complete a pull request. To place a bid and potentially earn some BCH, type /bid [amount in BCH] [BCH address]. |
⏰ This issue has been automatically unassigned due to 24 hours of inactivity. |
@DonnieBLT sir, does this still needs to be implemented? If yes, can you please elaborate where this would be implemented. |
When images are uploaded for bugs |
We'll create a new function called
overlay_faces
that overlays a solid color on detected faces.Explanation of Changes
overlay_faces(image, color=(0, 0, 0))
Function:blur_faces
function, but instead of applying a blur, it draws a filled rectangle over each detected face.color
parameter defines the color of the rectangle. The default is black(0, 0, 0)
in BGR format.Usage:
overlay_faces
function is called within theimage_upload_view
with a color of your choice to overlay the faces with that color.Customizing the Color
You can customize the
color
parameter when callingoverlay_faces
. The color should be in BGR format (Blue, Green, Red). For example:(0, 0, 0)
(255, 255, 255)
(0, 0, 255)
(0, 255, 0)
(255, 0, 0)
Example:
To overlay the faces with a solid red color, modify the call in
image_upload_view
like this:This setup will now overlay a solid color on any detected faces in the uploaded images.
The text was updated successfully, but these errors were encountered: