{"id":15219,"date":"2020-01-20T07:39:02","date_gmt":"2020-01-20T07:39:02","guid":{"rendered":"http:\/\/www.wjst.de\/blog\/?p=15219"},"modified":"2020-01-20T09:10:10","modified_gmt":"2020-01-20T09:10:10","slug":"python3-cv2-installation","status":"publish","type":"post","link":"https:\/\/www.wjst.de\/blog\/sciencesurf\/2020\/01\/python3-cv2-installation\/","title":{"rendered":"python3 cv2 installation"},"content":{"rendered":"<p>Homebrew is struggling with the<a href=\"https:\/\/medium.com\/@nuwanprabhath\/installing-opencv-in-macos-high-sierra-for-python-3-89c79f0a246a\"> older python 2.7 version<\/a> that is missing ssl support. Python 3.8 did not recognize cv2 but this finally worked<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\nbrew install python3\r\nbrew postinstall python3\r\npip3 install virtualenv virtualenvwrapper\r\nvirtualenv env_name --python=&quot;python3&quot;\r\n\/Users\/wjst\/env_name\/bin\/pip3 install opencv-python\r\n\/Users\/wjst\/env_name\/bin\/pip3 install pandas scipy matplotlib Pillow tqdm sklearn imageio\r\n\/Users\/wjst\/env_name\/bin\/python3 -c &quot;import cv2&quot;\r\n<\/pre>\n<p>then I could finally run the <a href=\"https:\/\/github.com\/rahmatnazali\/image-copy-move-detection\">image forgery detection<\/a> from Github.<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\ncd \/Users\/wjst\/Desktop\/image-copy-move-detection-master\r\n\/Users\/wjst\/env_name\/bin\/python3\r\n&gt; from copy_move_detection import detect\r\n&gt; ...\r\n<\/pre>\n\n<p>&nbsp;<\/p>\n<div class=\"bottom-note\">\n  <span class=\"mod1\">CC-BY-NC Science Surf , accessed 06.04.2026<\/span>\n <\/div>","protected":false},"excerpt":{"rendered":"<p>Homebrew is struggling with the older python 2.7 version that is missing ssl support. Python 3.8 did not recognize cv2 but this finally worked brew install python3 brew postinstall python3 pip3 install virtualenv virtualenvwrapper virtualenv env_name &#8211;python=&quot;python3&quot; \/Users\/wjst\/env_name\/bin\/pip3 install opencv-python \/Users\/wjst\/env_name\/bin\/pip3 install pandas scipy matplotlib Pillow tqdm sklearn imageio \/Users\/wjst\/env_name\/bin\/python3 -c &quot;import cv2&quot; then I &hellip; <a href=\"https:\/\/www.wjst.de\/blog\/sciencesurf\/2020\/01\/python3-cv2-installation\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">python3 cv2 installation<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[3314,3341,3340,3339,839],"class_list":["post-15219","post","type-post","status-publish","format-standard","hentry","category-computer-software","tag-catalina","tag-macos","tag-opencv","tag-pip","tag-python"],"_links":{"self":[{"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/posts\/15219","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/comments?post=15219"}],"version-history":[{"count":7,"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/posts\/15219\/revisions"}],"predecessor-version":[{"id":15226,"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/posts\/15219\/revisions\/15226"}],"wp:attachment":[{"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/media?parent=15219"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/categories?post=15219"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/tags?post=15219"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}