"Apple processing" with OpenCV3 + Python3

There seems to be an image filter called "Apple processing", so I imitated it with OpenCV + Python.

It is also called a simple hue (H) extraction filter. It looks lighter than the original image, probably because the complementary colors are gone. It may be better to play with the saturation (S) additionally.

Converted image: output1.jpg

Original image (Image exhibit): image1.jpg

Source: https://gist.github.com/yohhoy/4f762ccf7c7a0bfcccfe

$ curl https://upload.wikimedia.org/wikipedia/commons/0/0b/ItsukushimaTorii7396.jpg > download.jpg
$ convert -resize 400 download.jpg image1.jpg
$ ./redgray.py image1.jpg output1.jpg

(The convert command is provided by ImageMagick)

Recommended Posts

"Apple processing" with OpenCV3 + Python3
Binarization with OpenCV / Python
Image processing with Python & OpenCV [Tone Curve]
Image processing with Python
Light image processing with Python x OpenCV
Image processing with Python (Part 2)
100 Language Processing with Python Knock 2015
Image editing with python OpenCV
Camera capture with Python + OpenCV
Acoustic signal processing with Python (2)
[Python] Using OpenCV with Python (Basic)
Acoustic signal processing with Python
Image processing with Python (Part 1)
Image processing with Python (Part 3)
Face detection with Python + OpenCV
Using OpenCV with Python @Mac
[Python] Image processing with scikit-image
Shining life with Python and OpenCV
Real-time image processing basics with opencv
[Python] Using OpenCV with Python (Image Filtering)
[Python] Easy parallel processing with Joblib
Neural network with OpenCV 3 and Python 3
100 Language Processing Knock with Python (Chapter 1)
[Python] Using OpenCV with Python (Image transformation)
[Python] Using OpenCV with Python (Edge Detection)
100 Language Processing Knock with Python (Chapter 3)
Image processing with Python 100 knocks # 3 Binarization
Easy Python + OpenCV programming with Canopy
Try face recognition with python + OpenCV
Cut out face with Python + OpenCV
Face recognition with camera with opencv3 + python2.7
Load gif images with Python + OpenCV
Find image similarity with Python + OpenCV
Use OpenCV with Python 3 in Window
Image processing with Python 100 knocks # 2 Grayscale
Draw an illustration with Python + OpenCV
Track baseball balls with Python + OpenCV
Graph Based Segmentation with Python + OpenCV
Draw arrows (vectors) with opencv / python
Basic study of OpenCV with Python
Basics of binarized image processing with Python
Image processing with Python 100 knock # 10 median filter
Face detection with Python + OpenCV (rotation invariant)
FizzBuzz with Python3
Scraping with Python
python image processing
Statistics with python
Python2.7 + CentOS7 + OpenCV3
Scraping with Python
Save video frame by frame with Python OpenCV
Python with Go
Image processing with Python 100 knocks # 8 Max pooling
Periodically perform arbitrary processing with Python Twisted
Capturing images with Pupil, python and OpenCV
Twilio with Python
Let Heroku do background processing with Python
Integrate with Python
Play with 2016-Python
I tried non-photorealistic rendering with Python + opencv
100 Language Processing Knock with Python (Chapter 2, Part 2)
Python file processing