With the recent acquisition of Mapillary, many users are concerned about Facebook’s access to unblurred images.
One solution could be adding one step more to the workflow, and blurring faces and license plates BEFORE upload to Mapillary (or OpenStreetCam, OpenTrailView, etc).
Well, I tried this project https://github.com/understand-ai/anonymizer and works very good. Its open source and multiplatform. You need to have python 3.6 in your system (I tried with python 3.8 and fail, but I forked the repo I’ll try to add support to recent versions).
$ python --version
python -m venv ~/.virtualenvs/anonymizer
git clone https://github.com/understand-ai/anonymizer
pip install --upgrade pip
pip install -r requirements.txt
In my test, the process of a 10MB 360 pano jpg image, consumes 3G of RAM. So, its recomended to close heavy applications in your system before executing.
PYTHONPATH=$PYTHONPATH:. python anonymizer/bin/anonymize.py --input /path/to/input_folder --image-output /path/to/output_folder --weights weights
Replace input and output folder paths.
If the weights folder not exist, it created and the files weights_face_v1.0.0.pb weights_plate_v1.0.0.pb are automatically downloaded.
I’ll try to build a docker image for easy installation and usage.