{"provider_url":"https://hatena.blog","published":"2022-03-07 23:37:05","height":"190","categories":["python"],"author_url":"https://blog.hatena.ne.jp/shuzo_kino/","width":"100%","author_name":"shuzo_kino","description":"\u5b9f\u969b\u306e\u3068\u3053\u308d import cv2 import numpy as np img = cv2.imread('gauge.jpg') #img = cv2.imread('test3.png') gray = cv2.cvtColor(img,cv2.COLOR_BGR2GRAY) edges = cv2.Canny(gray,150,200,apertureSize = 3) lines = cv2.HoughLines(edges,1, 1* np.pi/180,100) print(lines) for rho,theta in lines[0]: a = np.cos(theta) b\u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshuzo-kino.hateblo.jp%2Fentry%2F2022%2F03%2F07%2F233705\" title=\"OpenCV\u3067\u30a2\u30ca\u30ed\u30b0\u30e1\u30fc\u30bf\u30fc\u306e\u89d2\u5ea6\u3092\u8aad\u307f\u53d6\u308b\u3000\u305d\u306e\uff12\uff1a\u89d2\u5ea6\u3092\u691c\u77e5\u3057\u7dda\u3092\u63cf\u753b - 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>","provider_name":"Hatena Blog","blog_title":"Bye Bye Moore","blog_url":"https://shuzo-kino.hateblo.jp/","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/s/shuzo_kino/20220307/20220307233025.png","type":"rich","title":"OpenCV\u3067\u30a2\u30ca\u30ed\u30b0\u30e1\u30fc\u30bf\u30fc\u306e\u89d2\u5ea6\u3092\u8aad\u307f\u53d6\u308b\u3000\u305d\u306e\uff12\uff1a\u89d2\u5ea6\u3092\u691c\u77e5\u3057\u7dda\u3092\u63cf\u753b","url":"https://shuzo-kino.hateblo.jp/entry/2022/03/07/233705","version":"1.0"}