deface
deface copied to clipboard
intensity of blur or mosaic??? faces in videos are visible when they move head...
is it possible to change intensity of blur for photos? I think blur is too strong and I want weaker blur, for example 50% of face should be visible.
I tried first PNG photo and solid and mosaic are the same, mosaic is body without head, like that I deleted whole head, it is not black than transparent, there is nothing, simply whole head is gone.
then I tried JPG photo and I got mosaic as it should be just it was not round as face than square and rectangle, there were more than 20 faces in protest photo and many rectangles. when i watched video tutorial at youtube, man got very nice mosaic, not weak not strong, my mosaic is rectangle and very strong, face is totally invisible. the same like in the case of blur, I would like to make mosaic weaker and faces should be 50% visible.
I tried angry smiley on the photo of face of protesters, and i am satisfied, more than 20 faces are good covered with angry smiley.
I tried 30MB, 12 seconds video of protest and woman who made speech got blured face and others also, but when she move head, blur field is not following so fast her moving and her face is visible for a moment. audience the same case, when they move head, their face is visible for a moment. beside it, sound is gone, output video file is without sound.
- video file was just 30MB and I had to wait 5.25 minutes to finish and I have 5 and more minutes video clips from protest and it is more than 500MB, it means I would need to wait several hours to blur faces in one video clip. I can not wait so long every day, we have protest every day and I need to edit many video clips, it looks I will have to find linux video editing software that has blur/mosaic option plus with option to change intensity of blur or mosaic.
I tried and video mosaic, 12 seconds again, I got warning, size of video is changed, I had to wait 4.52 minutes to finish and when i checked result again face of speaker is visible when she moves head: deface protest.mp4 -t 0.7 --replacewith mosaic -o protest-mosaic.mp4 Input: protest.mp4 Output: protest-mosaic.mp4
0%| | 0/364 [00:00<?, ?it/s]IMAGEIO FFMPEG_WRITER WARNING: input image is not divisible by macro_block_size=16, resizing from (1920, 1080) to (1920, 1088) to ensure video compatibility with most codecs and players.
https://github.com/user-attachments/assets/cffa5faa-f801-415d-a09b-81b7f456c94d