{"provider_name":"Hatena Blog","published":"2018-02-03 08:12:51","version":"1.0","provider_url":"https://hatena.blog","blog_url":"https://bitop.hatenablog.com/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbitop.hatenablog.com%2Fentry%2F2018%2F02%2F03%2F081251\" title=\" Interface2017\u5e7405\u6708\u53f7\u65b0\u753b\u50cf\u51e6\u7406101\u3092\u8aad\u3080 - bitop\u2019s diary\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":" Interface2017\u5e7405\u6708\u53f7\u65b0\u753b\u50cf\u51e6\u7406101\u3092\u8aad\u3080","author_url":"https://blog.hatena.ne.jp/bitop/","blog_title":"bitop\u2019s diary","categories":[],"width":"100%","url":"https://bitop.hatenablog.com/entry/2018/02/03/081251","author_name":"bitop","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/b/bitop/20180203/20180203081129.png","description":"3-2 \u753b\u50cf\u306e\u660e\u308b\u3055\u5f37\u5ea6\u3092\u793a\u3059\u300cY\u753b\u50cf\u300d\uff08YIQ\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\uff09 img_src = cv2.imread(\"data/img_3-2.bmp\") img_gray = img_src[:,:,0] * 0.114478 + img_src[:,:,1] * 0.586611 + img_src[:,:,2] * 0.298912 #img_src\u3068\u540c\u3058\u5927\u304d\u3055\u306e\u30bc\u30ed\u914d\u5217\u3092\u4f5c\u6210\u3057\u3066img_dst\u3092\u69cb\u6210 img_dst = np.zeros_like(img_src) #\u30b0\u30ec\u30a4\u753b\u50cf\u306e\u660e\u5ea6\u3092\u8abf\u6574 img_dst [:,:,0] = img_gray img_dst [:,:,1] = img_gray\u2026","height":"190","type":"rich"}