{"id":3159,"date":"2018-11-30T09:39:53","date_gmt":"2018-11-30T00:39:53","guid":{"rendered":"http:\/\/fisherman.jp\/23\/?p=3159"},"modified":"2018-12-01T12:53:02","modified_gmt":"2018-12-01T03:53:02","slug":"%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab-opencv-4-0-0-python-raspberry-pi-zero-w","status":"publish","type":"post","link":"http:\/\/fisherman.jp\/23\/3159","title":{"rendered":"\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb OpenCV 4.0.0 Python Raspberry Pi Zero w"},"content":{"rendered":"<p><del>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb opencv 4.0.0 python3.5.3 raspberry pi zero w<\/del><br \/>\n<del>\u2605\u5404\u7a2e\u60c5\u5831\u53d6\u5f97<\/del><br \/>\n<del>$ vcgencmd version #Nov 4 2018 #\u30d5\u30a1\u30fc\u30e0\u30a6\u30a8\u30a2\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u78ba\u8a8d<\/del><br \/>\n<del>$ uname -a #Linux 4.14.79+ #\u30aa\u30da\u30ec\u30fc\u30c6\u30a3\u30f3\u30b0\u30fb\u30b7\u30b9\u30c6\u30e0\u306e\u60c5\u5831\u78ba\u8a8d\uff08\u30ab\u30fc\u30cd\u30eb\u306a\u3069\uff09<\/del><br \/>\n<del>$ python3 -V #3.5.3<\/del><br \/>\n<del><a href=\"http:\/\/fisherman.jp\/23\/3159\/screenshot-from-2018-11-30-09-47-04\" rel=\"attachment wp-att-3162\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-thumbnail wp-image-3162\" src=\"http:\/\/fisherman.jp\/23\/wp-content\/uploads\/2018\/11\/Screenshot-from-2018-11-30-09-47-04-80x80.png\" alt=\"\" width=\"80\" height=\"80\" \/><\/a><\/del><br \/>\n<del>\u2605OpenCV \u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u53d6\u5f97\uff08Opencv &gt; GitHub &gt; releases\uff09\uff08google\u691c\u7d22\u53ef\uff09<\/del><br \/>\n<del><a href=\"https:\/\/github.com\/opencv\/opencv\/archive\/4.0.0.zip\">opencv-4.0.0.zip<\/a><\/del><br \/>\n<del><a href=\"https:\/\/github.com\/opencv\/opencv_contrib\/archive\/4.0.0.zip\">opencv_contrib-4.0.0.zip<\/a><\/del><br \/>\n<del><a href=\"http:\/\/fisherman.jp\/23\/3159\/screenshot-from-2018-11-30-09-56-50\" rel=\"attachment wp-att-3164\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-thumbnail wp-image-3164\" src=\"http:\/\/fisherman.jp\/23\/wp-content\/uploads\/2018\/11\/Screenshot-from-2018-11-30-09-56-50-80x80.png\" alt=\"\" width=\"80\" height=\"80\" \/><\/a> <a href=\"http:\/\/fisherman.jp\/23\/3159\/screenshot-from-2018-11-30-09-57-40\" rel=\"attachment wp-att-3165\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-thumbnail wp-image-3165\" src=\"http:\/\/fisherman.jp\/23\/wp-content\/uploads\/2018\/11\/Screenshot-from-2018-11-30-09-57-40-80x80.png\" alt=\"\" width=\"80\" height=\"80\" \/><\/a><\/del><br \/>\n<del>\u30ed\u30fc\u30ab\u30ebPC\u3067\u4e0a\u8a182\u30d5\u30a1\u30a4\u30eb\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u89e3\u51cd\uff08\u4e0b\u8a18\u306e2\u3064\u306e\u30d5\u30a9\u30eb\u30c0\u304c\u4f5c\u6210\u3055\u308c\u308b\uff09<\/del><br \/>\n<del><span style=\"color: #ff0000;\">opencv-4.0.0<\/span><\/del><br \/>\n<del><span style=\"color: #ff0000;\">opencv_contrib-4.0.0<\/span><\/del><br \/>\n<del><span style=\"color: #ff0000;\">\/home\/pi\/x<\/span> #Raspberry Pi \u306b\u30ef\u30fc\u30ad\u30f3\u30b0\u7528\u30d5\u30a9\u30eb\u30c0\u4f5c\u6210\uff08\u540d\u306f\u4f55\u3067\u3082\u53ef\uff09<\/del><br \/>\n<del>2\u30d5\u30a1\u30a4\u30eb\u3092 Raspberry Pi \u3078\u8ee2\u9001 \uff08ssh, midnight commander\uff09<\/del><br \/>\n<del><a href=\"http:\/\/fisherman.jp\/23\/3159\/screenshot-from-2018-11-30-09-37-29\" rel=\"attachment wp-att-3168\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-thumbnail wp-image-3168\" src=\"http:\/\/fisherman.jp\/23\/wp-content\/uploads\/2018\/11\/Screenshot-from-2018-11-30-09-37-29-80x80.png\" alt=\"\" width=\"80\" height=\"80\" \/><\/a> <a href=\"http:\/\/fisherman.jp\/23\/3159\/screenshot-from-2018-11-30-09-37-36\" rel=\"attachment wp-att-3169\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-thumbnail wp-image-3169\" src=\"http:\/\/fisherman.jp\/23\/wp-content\/uploads\/2018\/11\/Screenshot-from-2018-11-30-09-37-36-80x80.png\" alt=\"\" width=\"80\" height=\"80\" \/><\/a> <a href=\"http:\/\/fisherman.jp\/23\/3159\/screenshot-from-2018-11-30-09-46-52\" rel=\"attachment wp-att-3170\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-thumbnail wp-image-3170\" src=\"http:\/\/fisherman.jp\/23\/wp-content\/uploads\/2018\/11\/Screenshot-from-2018-11-30-09-46-52-80x80.png\" alt=\"\" width=\"80\" height=\"80\" \/><\/a><a href=\"http:\/\/fisherman.jp\/23\/3159\/screenshot-from-2018-11-30-10-13-57\" rel=\"attachment wp-att-3171\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-thumbnail wp-image-3171\" src=\"http:\/\/fisherman.jp\/23\/wp-content\/uploads\/2018\/11\/Screenshot-from-2018-11-30-10-13-57-80x80.png\" alt=\"\" width=\"80\" height=\"80\" \/><\/a><\/del><br \/>\n<del>\u2605OpenCV \u306e<a href=\"https:\/\/docs.opencv.org\/4.0.0\/d7\/d9f\/tutorial_linux_install.html\">\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u624b\u9806<\/a>\u3092\u78ba\u8a8d\u3001<a href=\"http:\/\/fisherman.jp\/23\/3159\/opencv_-installation-in-linux\" rel=\"attachment wp-att-3174\">pdf\uff084.0.0\uff09<\/a><\/del><br \/>\n<del><a href=\"http:\/\/fisherman.jp\/23\/3159\/screenshot-from-2018-11-30-10-23-11\" rel=\"attachment wp-att-3179\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-thumbnail wp-image-3179\" src=\"http:\/\/fisherman.jp\/23\/wp-content\/uploads\/2018\/11\/Screenshot-from-2018-11-30-10-23-11-80x80.png\" alt=\"\" width=\"80\" height=\"80\" \/><\/a><\/del><br \/>\n<del>$ sudo apt-get install update #\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u4e0b\u6e96\u5099<\/del><br \/>\n<del>$ sudo apt-get install upgrade #\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u4e0b\u6e96\u5099<\/del><br \/>\n<del>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u5fc5\u8981\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u5c0e\u5165\uff08\u6539\u5909\u306f\u3057\u3066\u3044\u306a\u3044\uff09\uff08? python\u2192python3\uff09<\/del><br \/>\n<del>$ sudo apt-get install build-essential<\/del><br \/>\n<del>$ sudo apt-get install cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev<\/del><br \/>\n<del>$ sudo apt-get install python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev<\/del><br \/>\n<del><a href=\"http:\/\/fisherman.jp\/23\/3159\/screenshot-from-2018-11-30-11-23-31\" rel=\"attachment wp-att-3189\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-thumbnail wp-image-3189\" src=\"http:\/\/fisherman.jp\/23\/wp-content\/uploads\/2018\/11\/Screenshot-from-2018-11-30-11-23-31-80x80.png\" alt=\"\" width=\"80\" height=\"80\" \/><\/a> <a href=\"http:\/\/fisherman.jp\/23\/3159\/screenshot-from-2018-11-30-11-23-51\" rel=\"attachment wp-att-3190\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-thumbnail wp-image-3190\" src=\"http:\/\/fisherman.jp\/23\/wp-content\/uploads\/2018\/11\/Screenshot-from-2018-11-30-11-23-51-80x80.png\" alt=\"\" width=\"80\" height=\"80\" \/><\/a> <a href=\"http:\/\/fisherman.jp\/23\/3159\/screenshot-from-2018-11-30-11-29-09\" rel=\"attachment wp-att-3191\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-thumbnail wp-image-3191\" src=\"http:\/\/fisherman.jp\/23\/wp-content\/uploads\/2018\/11\/Screenshot-from-2018-11-30-11-29-09-80x80.png\" alt=\"\" width=\"80\" height=\"80\" \/><\/a> <a href=\"http:\/\/fisherman.jp\/23\/3159\/screenshot-from-2018-11-30-11-29-18\" rel=\"attachment wp-att-3192\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-thumbnail wp-image-3192\" src=\"http:\/\/fisherman.jp\/23\/wp-content\/uploads\/2018\/11\/Screenshot-from-2018-11-30-11-29-18-80x80.png\" alt=\"\" width=\"80\" height=\"80\" \/><\/a><\/del><br \/>\n<del>\u2605OpenCV\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u30d3\u30eb\u30c9\u3059\u308b<\/del><br \/>\n<del>$ cd \/home\/pi\/x\/opencv-4.0.0<\/del><br \/>\n<del>$ mkdir build # <span style=\"color: #ff0000;\">\/home\/pi\/x\/opencv-4.0.0\/build<\/span> \u306e\u30d5\u30a9\u30eb\u30c0\u304c\u4f5c\u6210\u3055\u308c\u308b\u3001\u3053\u306e\u30d5\u30a1\u30eb\u30c0\u3067\u30b3\u30f3\u30d1\u30a4\u30eb\u306a\u3069\u306e\u4f5c\u696d\u3092\u884c\u3046<\/del><br \/>\n<del>$ cd build #\u4f5c\u6210\u3057\u305f\u30d5\u30a9\u30eb\u30c0\u3078\u79fb\u52d5<\/del><br \/>\n<del><a href=\"http:\/\/fisherman.jp\/23\/3159\/screenshot-from-2018-11-30-11-14-59\" rel=\"attachment wp-att-3187\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-thumbnail wp-image-3187\" src=\"http:\/\/fisherman.jp\/23\/wp-content\/uploads\/2018\/11\/Screenshot-from-2018-11-30-11-14-59-80x80.png\" alt=\"\" width=\"80\" height=\"80\" \/><\/a><\/del><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb opencv 4.0.0 python3.5.3 raspberry pi zero w \u2605\u5404\u7a2e\u60c5\u5831\u53d6\u5f97 $ vcgencmd version #Nov 4 2018 #\u30d5\u30a1\u30fc\u30e0\u30a6\u30a8\u30a2\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u78ba\u8a8d $  [&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,32],"tags":[],"class_list":["post-3159","post","type-post","status-publish","format-standard","hentry","category-python","category-raspberry-pi"],"_links":{"self":[{"href":"http:\/\/fisherman.jp\/23\/wp-json\/wp\/v2\/posts\/3159","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=3159"}],"version-history":[{"count":20,"href":"http:\/\/fisherman.jp\/23\/wp-json\/wp\/v2\/posts\/3159\/revisions"}],"predecessor-version":[{"id":3229,"href":"http:\/\/fisherman.jp\/23\/wp-json\/wp\/v2\/posts\/3159\/revisions\/3229"}],"wp:attachment":[{"href":"http:\/\/fisherman.jp\/23\/wp-json\/wp\/v2\/media?parent=3159"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/fisherman.jp\/23\/wp-json\/wp\/v2\/categories?post=3159"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/fisherman.jp\/23\/wp-json\/wp\/v2\/tags?post=3159"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}