{"type":"rich","author_name":"shuzo_kino","published":"2017-12-27 23:23:17","url":"https://shuzo-kino.hateblo.jp/entry/2017/12/27/232317","blog_title":"Bye Bye Moore","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshuzo-kino.hateblo.jp%2Fentry%2F2017%2F12%2F27%2F232317\" title=\"Python3.6 + OpenCV3.1.1\u3067\u753b\u50cf\u30b5\u30a4\u30ba\u3092\u5909\u3048\u308b - Bye Bye Moore\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"import cv2 import numpy as np if __name__ == '__main__': # \u753b\u50cf\u306e\u8aad\u307f\u8fbc\u307f\u3002\u7b2c\u4e8c\u5f15\u6570\"1\"\u306f\u30b0\u30ec\u30fc\u30b9\u30b1\u30fc\u30eb img_src = cv2.imread(\"picture.png\", 1) # \u30b0\u30ec\u30fc\u30b9\u30b1\u30fc\u30eb\u306b\u5909\u63db img_gray = cv2.cvtColor(img_src, cv2.COLOR_BGR2GRAY) # \u4e8c\u5024\u5909\u63db #\u3057\u304d\u3044\u5024\u3092\u8a2d\u5b9a thresh = 100 max_pixel = 255 ret, img_dst = cv2.threshold(img_gray, thresh, max_pixel, cv2.THRES\u2026","categories":["python","opencv"],"blog_url":"https://shuzo-kino.hateblo.jp/","height":"190","width":"100%","title":"Python3.6 + OpenCV3.1.1\u3067\u753b\u50cf\u30b5\u30a4\u30ba\u3092\u5909\u3048\u308b","author_url":"https://blog.hatena.ne.jp/shuzo_kino/","image_url":null,"provider_name":"Hatena Blog","version":"1.0","provider_url":"https://hatena.blog"}