{"author_url":"https://blog.hatena.ne.jp/derwind/","version":"1.0","author_name":"derwind","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/d/derwind/20160706/20160706020900.png","type":"rich","categories":["graphics","Python"],"blog_title":"\u3089\u3093\u3060\u3080\u306a\u8a18\u61b6","title":"\u6587\u5b57\u3068\u304b\u691c\u51fa\u3057\u3061\u3083\u3046","blog_url":"https://randommemory.hatenablog.com/","url":"https://randommemory.hatenablog.com/entry/2016/07/06/021500","provider_url":"https://hatena.blog","provider_name":"Hatena Blog","width":"100%","published":"2016-07-06 02:15:00","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Frandommemory.hatenablog.com%2Fentry%2F2016%2F07%2F06%2F021500\" title=\"\u6587\u5b57\u3068\u304b\u691c\u51fa\u3057\u3061\u3083\u3046 - \u3089\u3093\u3060\u3080\u306a\u8a18\u61b6\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190","description":"\u8272\u3093\u306a\u30b5\u30a4\u30c8\u304b\u3089\u30b3\u30d4\u30da\u3082\u3068\u3044\u53c2\u8003\u306b\u3057\u3064\u3064\u30a4\u30f3\u30b9\u30d1\u30a4\u30a2\u3055\u308c\u3064\u3064\u3067\u3002 #! /usr/bin/env python # -*- coding: utf-8 -*- import sys, os, re import numpy as np import cv2 import matplotlib.pyplot as plt im = cv2.imread(\"out.png\") im_gray = cv2.cvtColor(im, cv2.COLOR_BGR2GRAY) th1 = cv2.adaptiveThreshold(im_gray, 255, cv2.ADAPTIVE_THRESH_GAU\u2026"}