{"id":2268,"date":"2018-10-15T20:37:46","date_gmt":"2018-10-15T11:37:46","guid":{"rendered":"http:\/\/fisherman.jp\/23\/?p=2268"},"modified":"2018-10-16T07:27:54","modified_gmt":"2018-10-15T22:27:54","slug":"opencv-%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab","status":"publish","type":"post","link":"http:\/\/fisherman.jp\/23\/2268","title":{"rendered":"OpenCV \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb Python"},"content":{"rendered":"<p><a href=\"https:\/\/docs.opencv.org\/3.0-beta\/index.html\" target=\"_blank\" rel=\"noopener\">OpenCV<\/a> 3.4.3.18 \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n<p>\u74b0\u5883\uff08Python3, Lubuntu, PC\uff09<br \/>\n$ pip install opencv-python<br \/>\n\u52d5\u4f5cNG\u3001 python2\u3067\u306f\u52d5\u4f5cok\u3001python3\u3067\u52d5\u4f5cNG<br \/>\n<a href=\"http:\/\/fisherman.jp\/23\/2268\/screenshot-from-2018-10-15-20-16-43\" rel=\"attachment wp-att-2269\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-thumbnail wp-image-2269\" src=\"http:\/\/fisherman.jp\/23\/wp-content\/uploads\/2018\/10\/Screenshot-from-2018-10-15-20-16-43-80x80.png\" alt=\"\" width=\"80\" height=\"80\" \/><\/a> <a href=\"http:\/\/fisherman.jp\/23\/2268\/screenshot-from-2018-10-15-20-33-21\" rel=\"attachment wp-att-2270\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-thumbnail wp-image-2270\" src=\"http:\/\/fisherman.jp\/23\/wp-content\/uploads\/2018\/10\/Screenshot-from-2018-10-15-20-33-21-80x80.png\" alt=\"\" width=\"80\" height=\"80\" \/><\/a> <a href=\"http:\/\/fisherman.jp\/23\/2268\/screenshot-from-2018-10-15-20-33-31\" rel=\"attachment wp-att-2271\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-thumbnail wp-image-2271\" src=\"http:\/\/fisherman.jp\/23\/wp-content\/uploads\/2018\/10\/Screenshot-from-2018-10-15-20-33-31-80x80.png\" alt=\"\" width=\"80\" height=\"80\" \/><\/a><br \/>\n\u8abf\u67fb\u4e2d&#8230;<br \/>\n$ pip show opencv-python<br \/>\n\u539f\u56e0\uff1apython2\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b<br \/>\n<a href=\"http:\/\/fisherman.jp\/23\/2268\/screenshot-from-2018-10-15-20-43-14\" rel=\"attachment wp-att-2275\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-thumbnail wp-image-2275\" src=\"http:\/\/fisherman.jp\/23\/wp-content\/uploads\/2018\/10\/Screenshot-from-2018-10-15-20-43-14-80x80.png\" alt=\"\" width=\"80\" height=\"80\" \/><\/a><br \/>\n$ pip uninstall opencv-python \/\/pip=python2 ?<br \/>\n\u52d5\u4f5cOK<br \/>\n$ <span style=\"color: #ff0000;\">pip3<\/span> install opencv-python \/\/pip3=python3<br \/>\n$ pip3 show opencv-python<br \/>\n<a href=\"http:\/\/fisherman.jp\/23\/2268\/screenshot-from-2018-10-15-21-04-06\" rel=\"attachment wp-att-2281\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-thumbnail wp-image-2281\" src=\"http:\/\/fisherman.jp\/23\/wp-content\/uploads\/2018\/10\/Screenshot-from-2018-10-15-21-04-06-80x80.png\" alt=\"\" width=\"80\" height=\"80\" \/><\/a><br \/>\n\u52d5\u4f5cOK Terminal \u304b\u3089\u5236\u5fa1\u3001\u30ab\u30e1\u30e9\u306e\u9759\u6b62\u753b\u50cf\u3092\u53d6\u5f97<br \/>\n<a href=\"http:\/\/fisherman.jp\/23\/2268\/screenshot-from-2018-10-15-21-22-09\" rel=\"attachment wp-att-2284\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-thumbnail wp-image-2284\" src=\"http:\/\/fisherman.jp\/23\/wp-content\/uploads\/2018\/10\/Screenshot-from-2018-10-15-21-22-09-80x80.png\" alt=\"\" width=\"80\" height=\"80\" \/><\/a> <a href=\"http:\/\/fisherman.jp\/23\/2268\/test\" rel=\"attachment wp-att-2285\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-thumbnail wp-image-2285\" src=\"http:\/\/fisherman.jp\/23\/wp-content\/uploads\/2018\/10\/test-80x80.jpg\" alt=\"\" width=\"80\" height=\"80\" \/><\/a><br \/>\n\u52d5\u4f5cNG, Thonny IDE<br \/>\n<a href=\"http:\/\/fisherman.jp\/23\/2268\/screenshot-from-2018-10-15-21-33-49\" rel=\"attachment wp-att-2291\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-thumbnail wp-image-2291\" src=\"http:\/\/fisherman.jp\/23\/wp-content\/uploads\/2018\/10\/Screenshot-from-2018-10-15-21-33-49-80x80.png\" alt=\"\" width=\"80\" height=\"80\" \/><\/a> <a href=\"http:\/\/fisherman.jp\/23\/2268\/screenshot-from-2018-10-15-21-34-35\" rel=\"attachment wp-att-2292\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-thumbnail wp-image-2292\" src=\"http:\/\/fisherman.jp\/23\/wp-content\/uploads\/2018\/10\/Screenshot-from-2018-10-15-21-34-35-80x80.png\" alt=\"\" width=\"80\" height=\"80\" \/><\/a> <a href=\"http:\/\/fisherman.jp\/23\/2268\/screenshot-from-2018-10-15-21-34-56\" rel=\"attachment wp-att-2293\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-thumbnail wp-image-2293\" src=\"http:\/\/fisherman.jp\/23\/wp-content\/uploads\/2018\/10\/Screenshot-from-2018-10-15-21-34-56-80x80.png\" alt=\"\" width=\"80\" height=\"80\" \/><\/a><br \/>\n\u52d5\u4f5cOK Thonny IDE \/\/Python3.6\u306b\u8a2d\u5b9a<\/p>\n<p>\u74b0\u5883\uff08Python3, Raspberry Pi, VirtualBox\uff09<br \/>\n$ pip3 install opencv-python \/\/OK \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\npython3\u3067\u306f\u52d5\u4f5cOK python2\u3067\u306f\u52d5\u4f5cNG<br \/>\n<a href=\"http:\/\/fisherman.jp\/23\/2268\/screenshot-from-2018-10-15-21-29-22\" rel=\"attachment wp-att-2289\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-thumbnail wp-image-2289\" src=\"http:\/\/fisherman.jp\/23\/wp-content\/uploads\/2018\/10\/Screenshot-from-2018-10-15-21-29-22-80x80.png\" alt=\"\" width=\"80\" height=\"80\" \/><\/a><a href=\"http:\/\/fisherman.jp\/23\/2268\/screenshot-from-2018-10-15-21-37-16-2\" rel=\"attachment wp-att-2296\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-thumbnail wp-image-2296\" src=\"http:\/\/fisherman.jp\/23\/wp-content\/uploads\/2018\/10\/Screenshot-from-2018-10-15-21-37-16-1-80x80.png\" alt=\"\" width=\"80\" height=\"80\" \/><\/a><a href=\"http:\/\/fisherman.jp\/23\/2268\/screenshot-from-2018-10-15-21-42-18\" rel=\"attachment wp-att-2297\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-thumbnail wp-image-2297\" src=\"http:\/\/fisherman.jp\/23\/wp-content\/uploads\/2018\/10\/Screenshot-from-2018-10-15-21-42-18-80x80.png\" alt=\"\" width=\"80\" height=\"80\" \/><\/a><br \/>\n\u52d5\u4f5cOK Thonny IDE<\/p>\n","protected":false},"excerpt":{"rendered":"<p>OpenCV 3.4.3.18 \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb \u74b0\u5883\uff08Python3, Lubuntu, PC\uff09 $ pip install opencv-python \u52d5\u4f5cNG\u3001 python2\u3067\u306f\u52d5\u4f5cok\u3001python3\u3067\u52d5\u4f5cNG  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[33],"tags":[],"class_list":["post-2268","post","type-post","status-publish","format-standard","hentry","category-python"],"_links":{"self":[{"href":"http:\/\/fisherman.jp\/23\/wp-json\/wp\/v2\/posts\/2268","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/fisherman.jp\/23\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/fisherman.jp\/23\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/fisherman.jp\/23\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/fisherman.jp\/23\/wp-json\/wp\/v2\/comments?post=2268"}],"version-history":[{"count":16,"href":"http:\/\/fisherman.jp\/23\/wp-json\/wp\/v2\/posts\/2268\/revisions"}],"predecessor-version":[{"id":2299,"href":"http:\/\/fisherman.jp\/23\/wp-json\/wp\/v2\/posts\/2268\/revisions\/2299"}],"wp:attachment":[{"href":"http:\/\/fisherman.jp\/23\/wp-json\/wp\/v2\/media?parent=2268"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/fisherman.jp\/23\/wp-json\/wp\/v2\/categories?post=2268"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/fisherman.jp\/23\/wp-json\/wp\/v2\/tags?post=2268"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}