tfaehse / DashcamCleaner

Censor identifiable information in videos, in particular dashcam recordings in Germany.
GNU Affero General Public License v3.0
131 stars 27 forks source link

[feature] blur masks to soften transition between blurred areas and clear video #37

Closed joshinils closed 2 years ago

joshinils commented 2 years ago

maybe it is possible to blur the mask which says where to let through the blurred frame, such that the edges are softer and far less noticeable. this can then also make the twofold blurring with two different kernels redundant and unnecessary.

maybe the amount this gets feathered can also be introduced as a new parameter -fe --feather_edges [0, n] (0 is current behaviour) which says how many pixels to feather the edges of the detections by. careful not to blur the inside of the detections in the mask and thus make them too translucent and reveal the to be blurred info.