{"id":1924,"date":"2018-02-02T03:04:16","date_gmt":"2018-02-01T18:04:16","guid":{"rendered":"http:\/\/www.chihayafuru.jp\/tech\/?p=1924"},"modified":"2018-02-02T09:35:26","modified_gmt":"2018-02-02T00:35:26","slug":"opencv%e9%96%8b%e7%99%ba%e7%92%b0%e5%a2%83%e6%a7%8b%e7%af%89%e3%83%a1%e3%83%a2","status":"publish","type":"post","link":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/archives\/1924","title":{"rendered":"OpenCV\u958b\u767a\u74b0\u5883\u69cb\u7bc9\u30e1\u30e2"},"content":{"rendered":"<h3>\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0<\/h3>\n<ul>\n<li>Debian GNU Linux 9.3 (Stretch)<\/li>\n<li>Python 3.5.3<\/li>\n<li>OpenCV (OpenCV-Python) 3.4.0<\/li>\n<\/ul>\n<p><!--more--><\/p>\n<p>&nbsp;<\/p>\n<h3>UVC(USB Video Class) \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<pre class=\"lang:sh highlight:0 decode:true \" >\r\n# apt install uvccapture\r\n# apt install guvcview\r\n<\/pre>\n<p>&nbsp;<\/p>\n<h3>Python3 \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<pre class=\"lang:sh highlight:0 decode:true \" ># apt install python3-dev\r\n# apt install python3-pip<\/pre>\n<pre class=\"lang:sh highlight:0 decode:true \" >$ pip3 install --upgrade pip<\/pre>\n<pre class=\"lang:sh highlight:0 decode:true \" >$ pip3 install opencv-contrib-python<\/pre>\n<pre class=\"lang:sh highlight:0 decode:true \" >$ python3 --version\r\nPython 3.5.3<\/pre>\n<pre class=\"lang:sh highlight:0 decode:true \" >$ pip3 --version\r\npip 9.0.1 from \/home\/user_name\/.local\/lib\/python3.5\/site-packages (python 3.5)<\/pre>\n<pre class=\"lang:sh highlight:0 decode:true \" >$ python3\r\n>>> import cv2\r\n>>> cv2.__version__\r\n'3.4.0'<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0 Debian GNU Linux 9.3 (Stretch) Python 3.5.3 OpenCV (OpenCV-Python) 3.4.0<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[50],"class_list":["post-1924","post","type-post","status-publish","format-standard","hentry","category-memo","tag-opencv"],"_links":{"self":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/1924","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/comments?post=1924"}],"version-history":[{"count":7,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/1924\/revisions"}],"predecessor-version":[{"id":1933,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/1924\/revisions\/1933"}],"wp:attachment":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/media?parent=1924"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/categories?post=1924"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/tags?post=1924"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}