Arthur Posted March 31, 2018 Posted March 31, 2018 This could be useful for school photos (not to mention Article 17 of the GDPR). Download (GitHub) A script to automatically "block" people in images (like the Black Mirror episode White Christmas) using Mask R-CNN pretrained on the MS COCO dataset. No GPU required! But you can block more than just people: up to 80 different types of objects can be blocked, including giraffes and busses! Usage Person Blocker is used from the command line: python3 person_blocker.py -i images/img3.jpg -c '(128, 128, 128)' -o 'bus' 'truck' Requirements The same requirements as Mask R-CNN: Python 3.4+ TensorFlow 1.3+ Keras 2.0.8+ Numpy, skimage, scipy, Pillow, cython, h5py plus matplotlib and imageio Examples python3 person_blocker.py -i images/img2.jpg -c '#c0392b' -o 'giraffe' python3 person_blocker.py -i images/img3.jpg -c '(128, 128, 128)' -o 'bus' 'truck' Blocking specific object(s) requires 2 steps: running in inference mode to get the object IDs for each object, and then blocking those object IDs. python3 person_blocker.py -i images/img4.jpg -l python3 person_blocker.py -i images/img4.jpg -o 1
Meldrew Posted March 31, 2018 Posted March 31, 2018 Next step, add Photoshop's content aware delete...
Arthur Posted March 31, 2018 Author Posted March 31, 2018 Next step, add Photoshop's content aware delete... https://github.com/fivemok/image-inpainting ^ One day someone will combine these two projects and create an AR app to "delete" people from real life (or make everyone look like Nicolas Cage). That would be both technically impressive and quite scary.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now