The road to hell is paved with good intentions. And I think software engineers are this century's key perpetrators of "good intentions." Here's a hint: if you saw it in a dystopic thriller you probably don't need to build it, even out of morbid curiosity.
This would combine well with an in-painting algorithm-- or the video equivalents: <a href="https://research.adobe.com/project/content-aware-fill/" rel="nofollow">https://research.adobe.com/project/content-aware-fill/</a>
<a href="https://www.youtube.com/watch?v=j3uCV0JYMJ4" rel="nofollow">https://www.youtube.com/watch?v=j3uCV0JYMJ4</a>
This doesn't seem to work for me. I ran "python person_blocker.py -i images/img1.jpg -l" after installing dependencies and I only get:<p>/home/d33tah/virtualenv-py3/lib/python3.6/site-packages/h5py/__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.<p><pre><code> from ._conv import register_converters as _register_converters
</code></pre>
Using TensorFlow backend.<p>2018-03-31 12:53:18.777911: I tensorflow/core/platform/cpu_feature_guard.cc:140] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
/usr/lib/python3/dist-packages/scipy/misc/pilutil.py:480: FutureWarning: Conversion of the second argument of issubdtype from `int` to `np.signedinteger` is deprecated. In future, it will be treated as `np.int64 == np.dtype(int).type`.<p><pre><code> if issubdtype(ts, int):
</code></pre>
/usr/lib/python3/dist-packages/scipy/misc/pilutil.py:483: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.<p><pre><code> elif issubdtype(type(size), float):</code></pre>
This reminds me of the character <i>Laughing Man</i> in the anime Ghost in the Shell:<p><a href="https://en.m.wikipedia.org/wiki/Ghost_in_the_Shell:_Stand_Alone_Complex" rel="nofollow">https://en.m.wikipedia.org/wiki/Ghost_in_the_Shell:_Stand_Al...</a>
In some cases the shape is too small and left a few pixels around the person, or it has corners that are too sharp. Is it possible to add an option to enlarge the shape a few pixels?<p>[Bonus points for another option to make soft shadows near the border of the shape, so it is not so sharp.]
We are now a few steps away from Peril Sensitive Sunglasses. [1]<p>1: <a href="http://www.hhgproject.org/entries/perilsensitivesunglasses.html" rel="nofollow">http://www.hhgproject.org/entries/perilsensitivesunglasses.h...</a>