{"id":2784,"date":"2015-06-18T12:11:45","date_gmt":"2015-06-18T03:11:45","guid":{"rendered":"http:\/\/kazunari.org\/?p=2784"},"modified":"2015-06-18T12:11:45","modified_gmt":"2015-06-18T03:11:45","slug":"%e5%bf%98%e5%82%99%e9%8c%b2mac%e3%81%abpython3-4%e3%81%a8opencv3%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":"https:\/\/kazunari.org\/?p=2784","title":{"rendered":"[\u5099\u5fd8\u9332]Mac\u306bPython3.4\u3068OpenCV3\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb"},"content":{"rendered":"<p>\t\t\t\t<![CDATA[(1) \u00a0Xcode \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\nApp Store \u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u308b\uff0e\n(2) Command Line Tools \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\n\u30e1\u30cb\u30e5\u30fc\u30d0\u30fc\u306e XCode -&gt; Open Developer Tools -&gt; \u00a0More Developer Tools \u3092\u9078\u629e\uff0e\n(3) MacPorts\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\nhttps:\/\/www.macports.org\/install.php\n\u304b\u3089Mac OS \u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306b\u5408\u308f\u305b\u305f \u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\n(4) Python3.4\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\n\u30bf\u30fc\u30df\u30ca\u30eb\u304b\u3089\n\n\n<pre>% sudo port install python34<\/pre>\n\n\n\/opt\/local\/bin\/python3.4 \u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u308b\u306e\u3067\u6ce8\u610f\n&nbsp;\n(5) OpenCV \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\n\u30bf\u30fc\u30df\u30ca\u30eb\u304b\u3089\n\n\n<pre>% sudo port install opencv@3.0.0 +python34<\/pre>\n\n\n\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3059\uff0e\n\n\n<pre>%\/opt\/local\/bin\/python3.4\u00a0<span style=\"line-height: 1.714285714; font-size: 1rem;\">test<\/span>.py<\/pre>\n\n\n\u306e\u3088\u3046\u306b\u5b9f\u884c\u3067\u304d\u307e\u3059\uff0e\nxml \u30d5\u30a1\u30a4\u30eb\u304c\n\n\n<p class=\"p1\">\/opt\/local\/share\/OpenCV\/haarcascades\/<\/p>\n\n\n\n\n<p class=\"p1\">\u306b\u3042\u308b\u306e\u3067\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u30b3\u30d4\u30fc\u3057\u307e\u3059\uff0e<\/p>\n\n\n\n\n<pre class=\"p1\">cp \/opt\/local\/share\/OpenCV\/haarcascades\/* .<\/pre>\n\n\n\u53c2\u8003\u30db\u30fc\u30e0\u30da\u30fc\u30b8\n\u753b\u50cf\u51e6\u7406\u901f\u5831&#8230; http:\/\/python-gazo.blog.jp\/opencv%E5%85%A5%E9%96%80\n&nbsp;\n&nbsp;\n&nbsp;]]>\t\t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\t\t\t\t<![CDATA[]]>\t\t<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-2784","post","type-post","status-publish","format-standard","hentry","category-6"],"_links":{"self":[{"href":"https:\/\/kazunari.org\/index.php?rest_route=\/wp\/v2\/posts\/2784","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kazunari.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kazunari.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kazunari.org\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/kazunari.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2784"}],"version-history":[{"count":0,"href":"https:\/\/kazunari.org\/index.php?rest_route=\/wp\/v2\/posts\/2784\/revisions"}],"wp:attachment":[{"href":"https:\/\/kazunari.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2784"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kazunari.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2784"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kazunari.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2784"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}