{"blog_url":"https://blog.turai.work/","image_url":null,"version":"1.0","title":"Python\u3067OpenCV\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30e1\u30e2","type":"rich","provider_name":"Hatena Blog","categories":[],"author_name":"thr3a","description":"\u74b0\u5883 Ubuntu 14.04 \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb \u306a\u3093\u3068\u3059\u3067\u306b\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u3042\u308b\u3067\u306f\u306a\u3044\u304b sudo apt-get install python-opencv \u516c\u5f0f\u30d8\u30eb\u30d7\u898b\u308b\u3068(\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8)https://github.com/jayrambhia/Install-OpenCV\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u308d\u3063\u3066\u3044\u3046\u3093\u3060\u3051\u3069 \u52d5\u4f5c\u78ba\u8a8d import cv2 img = cv2.imread('lena.jpg') img_gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) cv2.imwrite('lena_gray.jpg', img_gray)","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.turai.work%2Fentry%2F20150727%2F1437966216\" title=\"Python\u3067OpenCV\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30e1\u30e2 - \u52d5\u304b\u3056\u308b\u3053\u3068\u30d0\u30b0\u306e\u5982\u3057\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_url":"https://blog.hatena.ne.jp/thr3a/","height":"190","url":"https://blog.turai.work/entry/20150727/1437966216","provider_url":"https://hatena.blog","blog_title":"\u52d5\u304b\u3056\u308b\u3053\u3068\u30d0\u30b0\u306e\u5982\u3057","width":"100%","published":"2015-07-27 12:03:36"}