elk-zone / elk

A nimble Mastodon web client
https://elk.zone
MIT License
5.5k stars 565 forks source link

feat: Wellness: Block images with faces #2957

Open eed3si9n opened 2 months ago

eed3si9n commented 2 months ago

When browsing through the posts I don't like to see preview images of human faces, especially politician faces. Human faces elicit automatic emotional response, and this is why people include them in the preview image. And I don't need my emotion to be disturbed.

Having said that, I don't know how practical it would be to identify faces. There's for example face-api.js that can perform face recognition using tensorflow.js core.

The Tiny Face Detector is a very performant, realtime face detector, which is much faster, smaller and less resource consuming compared to the SSD Mobilenet V1 face detector, in return it performs slightly less well on detecting small faces. This model is extremely mobile and web friendly, thus it should be your GO-TO face detector on mobile devices and resource limited clients. The size of the quantized model is only 190 KB (tiny_face_detector_model).