{"id":5772,"date":"2018-07-08T14:25:47","date_gmt":"2018-07-08T14:25:47","guid":{"rendered":"http:\/\/www.garysieling.com\/blog\/?p=5772"},"modified":"2018-07-08T14:25:47","modified_gmt":"2018-07-08T14:25:47","slug":"install-opencv-homebrew-mac-osx-python-3","status":"publish","type":"post","link":"https:\/\/www.garysieling.com\/blog\/install-opencv-homebrew-mac-osx-python-3\/","title":{"rendered":"Install OpenCV with homebrew on Mac OSX and Python 3"},"content":{"rendered":"<p>OpenCV appears to only be able to install on one version of python at once. There are a ton of outdated blog posts on how to do this &#8211; at the time of writing this one works.<\/p>\n<pre lang=\"bash\">\nbrew reinstall opencv@3 --with-python3 --without-python\n<\/pre>\n<p>Then in python:<\/p>\n<pre lang=\"python\">\nimport cv2\n<\/pre>\n<p>Run the script:<\/p>\n<pre lang=\"bash\">\npython3 test.py\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Install opencv through homebrew<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[4],"tags":[273,407,414,447],"aioseo_notices":[],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/5772"}],"collection":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/comments?post=5772"}],"version-history":[{"count":0,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/5772\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/media?parent=5772"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/categories?post=5772"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/tags?post=5772"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}