言わずと知れた直江兼続の兜の前立て。上杉家の家老でNHKの大河ドラマで有名になりました。兜の前のシンボル部分「愛」をグラデーションでちょっと遊んでみたいと思います。Pythonサンプルプログラムimport cv2import numpy as npimport matplotlib.pyplot as pltimport cairoimport PIL.Image as Image# 輪郭追跡def traceContoursImage(binary): # 輪郭を検出 contours, hierarchy = cv2.findContours(binary, cv2.RETR_TREE, cv...