{"provider_url":"https://hatena.blog","type":"rich","url":"https://shuzo-kino.hateblo.jp/entry/2018/01/09/202953","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshuzo-kino.hateblo.jp%2Fentry%2F2018%2F01%2F09%2F202953\" title=\"Python3.6 + OpenCV3.1.1\u3067\u5bfe\u8c61\u7269\u3092\u5186\u3067\u56f2\u3063\u3066\u307f\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>","title":"Python3.6 + OpenCV3.1.1\u3067\u5bfe\u8c61\u7269\u3092\u5186\u3067\u56f2\u3063\u3066\u307f\u308b","blog_url":"https://shuzo-kino.hateblo.jp/","published":"2018-01-09 20:29:53","version":"1.0","height":"190","description":"\u5b9f\u969b\u306e\u3068\u3053\u308d \u9ed2\u80cc\u666f\u3001\u5bfe\u8c61\u7269\u306f\u767d\u3068\u3044\u3046\u72b6\u6cc1\u3092\u4f5c\u3063\u305f\u5834\u5408\u3092\u60f3\u5b9a\u3057\u307e\u3059\u3002 import numpy as np import cv2 import sys def function(target_file): #\u753b\u50cf\u306e\u8aad\u307f\u8fbc\u307f img = cv2.imread(target_file) gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) #\u4e8c\u5024\u5316\u306b\u3088\u308b\u8f2a\u90ed\u306e\u62bd\u51fa ret,thresh = cv2.threshold(gray,127,255,0) imgEdge,contours,hierarchy = cv2.findContours(thresh, 1, \u2026","author_name":"shuzo_kino","width":"100%","blog_title":"Bye Bye Moore","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/s/shuzo_kino/20180109/20180109202143.png","author_url":"https://blog.hatena.ne.jp/shuzo_kino/","categories":["python","opencv"],"provider_name":"Hatena Blog"}