{"version":"1.0","height":"190","provider_name":"Hatena Blog","published":"2016-01-30 15:25:16","categories":["graphics","Python"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Frandommemory.hatenablog.com%2Fentry%2F2016%2F01%2F30%2F152516\" title=\"OpenCV(2) - \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>","title":"OpenCV(2)","blog_title":"\u3089\u3093\u3060\u3080\u306a\u8a18\u61b6","author_url":"https://blog.hatena.ne.jp/derwind/","description":"cv2.imread \u306e\u52d5\u304d\u3092\u898b\u3066\u307f\u305f\u3044\u3002 \u753b\u50cf\u3068\u30d3\u30c7\u30aa\u306e\u8aad\u307f\u8fbc\u307f\u3068\u66f8\u304d\u8fbc\u307f \u2014 opencv v2.1 documentation\u306b\u3088\u308b\u3068\u3001\u7b2c2\u5f15\u6570\u306f\u30b0\u30ec\u30fc\u30b9\u30b1\u30fc\u30eb or 3\u30c1\u30e3\u30f3\u30cd\u30eb\u304b\u3092\u5236\u5fa1\u3067\u304d\u308b\u3002I = [0,255]\u3068\u3059\u308b\u3002 import sys import cv2 img = cv2.imread(sys.argv[1], 0) print img \u306e\u7d50\u679c: [[50 49 54 ..., 57 71 72] [50 55 55 ..., 74 75 62] [48 57 54 ..., 97 88 66] ..., [29 30 29 ..., 29 35 28] [28 30 \u2026","type":"rich","image_url":null,"provider_url":"https://hatena.blog","url":"https://randommemory.hatenablog.com/entry/2016/01/30/152516","blog_url":"https://randommemory.hatenablog.com/","width":"100%","author_name":"derwind"}