{"id":482,"date":"2023-09-29T10:33:36","date_gmt":"2023-09-29T01:33:36","guid":{"rendered":"https:\/\/www.aqua-informatics.jp\/?p=482"},"modified":"2023-10-02T16:01:28","modified_gmt":"2023-10-02T07:01:28","slug":"opencv%e3%81%ae%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%a8%e3%83%90%e3%83%bc%e3%82%b8%e3%83%a7%e3%83%b3%e3%81%ae%e7%a2%ba%e8%aa%8d","status":"publish","type":"post","link":"https:\/\/www.aqua-informatics.jp\/?p=482","title":{"rendered":"OpenCV\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u78ba\u8a8d"},"content":{"rendered":"\n<p>matplotlib\u3067\u306a\u304f\u3001OpneCV\u3067\u63cf\u753b\u3057\u3088\u3046\u304b\u306a\u3068\u2026<br>macOS\u306b\u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3042\u3063\u305f\u3068\u601d\u3046\u3051\u3069\u3001\u6700\u8fd1\u306fUbuntu\u3092\u30e1\u30a4\u30f3\u3067\u4f7f\u3063\u3066\u3044\u308b\u306e\u3067\u3001Let's Note\u306eUbuntu\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u307f\u305f\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>10:19 kimi@kimi-CFSZ5-3:~\n$python -m pip install opencv-python\nCollecting opencv-python\n  Obtaining dependency information for opencv-python from https:\/\/files.pythonhosted.org\/packages\/b7\/8a\/b2f7e1a434d56bf1d7570fc5941ace0847404e1032d7f1f0b8fed896568d\/opencv_python-4.8.1.78-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata\n  Downloading opencv_python-4.8.1.78-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (19 kB)\nRequirement already satisfied: numpy&gt;=1.21.2 in .\/.pyenv\/versions\/3.11.3\/lib\/python3.11\/site-packages (from opencv-python) (1.24.3)\nDownloading opencv_python-4.8.1.78-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (61.7 MB)\n   \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 61.7\/61.7 MB 2.8 MB\/s eta 0:00:00\nInstalling collected packages: opencv-python\nSuccessfully installed opencv-python-4.8.1.78\n10:20 kimi@kimi-CFSZ5-3:~\n$python -m pip install opencv-contrib-python\nCollecting opencv-contrib-python\n  Obtaining dependency information for opencv-contrib-python from https:\/\/files.pythonhosted.org\/packages\/32\/9e\/4dcc0bb70e3b365dc85b8f96c63e6a306653f7cc6ed061aa6cc7b2bddee7\/opencv_contrib_python-4.8.1.78-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata\n  Downloading opencv_contrib_python-4.8.1.78-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (19 kB)\nRequirement already satisfied: numpy&gt;=1.21.2 in .\/.pyenv\/versions\/3.11.3\/lib\/python3.11\/site-packages (from opencv-contrib-python) (1.24.3)\nDownloading opencv_contrib_python-4.8.1.78-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (67.8 MB)\n   \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 67.8\/67.8 MB 3.1 MB\/s eta 0:00:00\nInstalling collected packages: opencv-contrib-python\nSuccessfully installed opencv-contrib-python-4.8.1.78\n10:20 kimi@kimi-CFSZ5-3:~\n$pip3 list | grep opencv\nopencv-contrib-python    4.8.1.78\nopencv-python            4.8.1.78\n10:21 kimi@kimi-CFSZ5-3:~\n$python\nPython 3.11.3 (main, Apr 30 2023, 15:49:09) [GCC 11.3.0] on linux\nType &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.\n&gt;&gt;&gt; import cv2\n&gt;&gt;&gt; cv2.__version__\n&#39;4.8.1&#39;\n&gt;&gt;&gt; \n10:29 kimi@kimi-CFSZ5-3:~\n<\/code><\/pre><\/div>\n","protected":false},"excerpt":{"rendered":"<p>matplotlib\u3067\u306a\u304f\u3001OpneCV\u3067\u63cf\u753b\u3057\u3088\u3046\u304b\u306a\u3068\u2026macOS\u306b\u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3042\u3063\u305f\u3068\u601d\u3046\u3051\u3069\u3001\u6700\u8fd1\u306fUbuntu\u3092\u30e1\u30a4\u30f3\u3067\u4f7f\u3063\u3066\u3044\u308b\u306e\u3067\u3001Let's Note\u306eUbuntu\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u307f\u305f\u3002<\/p>\n","protected":false},"author":1,"featured_media":87,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_vk_print_noindex":"","sitemap_hide":"","_veu_custom_css":"","veu_display_promotion_alert":"common","vkexunit_cta_each_option":"","_lightning_design_setting":{"layout":"default"},"footnotes":""},"categories":[7,8],"tags":[],"class_list":["post-482","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","category-python"],"veu_head_title_object":{"title":"","add_site_title":""},"_links":{"self":[{"href":"https:\/\/www.aqua-informatics.jp\/index.php?rest_route=\/wp\/v2\/posts\/482","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.aqua-informatics.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.aqua-informatics.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.aqua-informatics.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.aqua-informatics.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=482"}],"version-history":[{"count":3,"href":"https:\/\/www.aqua-informatics.jp\/index.php?rest_route=\/wp\/v2\/posts\/482\/revisions"}],"predecessor-version":[{"id":485,"href":"https:\/\/www.aqua-informatics.jp\/index.php?rest_route=\/wp\/v2\/posts\/482\/revisions\/485"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.aqua-informatics.jp\/index.php?rest_route=\/wp\/v2\/media\/87"}],"wp:attachment":[{"href":"https:\/\/www.aqua-informatics.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=482"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.aqua-informatics.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=482"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.aqua-informatics.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=482"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}