{"id":1240,"date":"2020-02-11T14:06:21","date_gmt":"2020-02-11T05:06:21","guid":{"rendered":"http:\/\/ts-engine.net\/?p=1240"},"modified":"2020-02-11T14:06:21","modified_gmt":"2020-02-11T05:06:21","slug":"%e5%8b%95%e7%94%bb%e8%a7%a3%e6%9e%90%e3%81%ae%e3%81%9f%e3%82%81%e3%81%abopenvcpython%e3%82%92%e5%8b%95%e3%81%8b%e3%81%97%e3%81%9f%e3%81%8c%e3%82%a8%e3%83%a9%e3%83%bc%e3%81%ab%e3%81%aa%e3%81%a3","status":"publish","type":"post","link":"http:\/\/ts-engine.net\/?p=1240","title":{"rendered":"\u52d5\u753b\u89e3\u6790\u306e\u305f\u3081\u306bOpenVC(Python)\u3092\u52d5\u304b\u3057\u305f\u304c\u30a8\u30e9\u30fc\u306b\u306a\u3063\u305f\u306e\u3067\u305d\u306e\u89e3\u6c7a"},"content":{"rendered":"\n<p>pip3 install opencv-python<\/p>\n\n\n\n<p>\u306b\u3066OpenCV\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3002\u3055\u3042\u4f7f\u304a\u3046\u304b\u3068\u3044\u3046\u3068\u3053\u308d\u3067\u3001<\/p>\n\n\n\n<p>import cv2<\/p>\n\n\n\n<p>\u3068\u3057\u305f\u3068\u3053\u308d\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u304c\u3067\u3066\u3057\u307e\u3063\u305f\u3002\u79c1\u304c\u4f7f\u3063\u3066\u3044\u308b\u74b0\u5883\u306fPython3.7\u3067\u3001OS\u306fMacOS\uff08Mojave)\u3067\u3042\u308b\u3002<\/p>\n\n\n\n<p>qt.qpa.plugin: Could not find the Qt platform plugin &#8220;cocoa&#8221; in &#8220;&#8221;<br> This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.<\/p>\n\n\n\n<p>\u89e3\u6c7a\u306e\u305f\u3081\u306b\u3044\u308d\u3044\u308d\u3068\u30b0\u30b0\u3063\u305f\u304c\u7406\u7531\u304c\u3088\u304f\u308f\u304b\u3089\u305a\u3001OpenCV\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u76f4\u3057\u305f\u308a\u3001PC\u3092\u518d\u8d77\u52d5\u3057\u305f\u308a\u3001GITHUB\u306e\u6295\u7a3f\u304c\u3042\u3063\u305f\u3001\u74b0\u5883\u5909\u6570\u3092\u8a2d\u5b9a\u3057\u305f\u308a\u3068\u3001\u3044\u308d\u3044\u308d\u8a66\u3057\u305f\u304c\u5168\u7136\u3060\u3081\u3067\u6700\u7d42\u7684\u306b\u306f\u3001OpenCV\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u3067\u89e3\u6c7a\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u30d0\u30fc\u30b8\u30e7\u30f3\u3068\u30b3\u30de\u30f3\u30c9\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"\"><tbody><tr><td>pip3 install opencv-contrib-python<\/td><td>4.2.0.32<\/td><td><\/td><\/tr><tr><td>pip3 install opencv-contrib-python-headless<\/td><td>4.2.0.32<\/td><td><\/td><\/tr><tr><td>pip3 install opencv-contrib-python-nonfree<\/td><td>4.1.1.1<\/td><td><\/td><\/tr><tr><td>pip3 install opencv-contrib-python-nonfree-headless<\/td><td>4.1.1.1<\/td><td><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>pip3 install opencv-python \u306b\u3066OpenCV\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3002\u3055\u3042\u4f7f\u304a\u3046\u304b\u3068\u3044\u3046\u3068\u3053\u308d\u3067\u3001 import cv2 \u3068\u3057\u305f\u3068\u3053\u308d\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u304c\u3067\u3066\u3057\u307e\u3063\u305f\u3002\u79c1\u304c\u4f7f\u3063\u3066\u3044\u308b\u74b0\u5883\u306fPython3.7\u3067\u3001OS\u306fMacOS\uff08Mojave)\u3067\u3042\u308b\u3002 qt.qpa.plugin: Could not find the Qt platform plugin &#8220;cocoa&#8221; in &#8220;&#8221; This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. \u89e3\u6c7a\u306e\u305f\u3081\u306b\u3044\u308d\u3044\u308d\u3068\u30b0\u30b0\u3063\u305f\u304c\u7406\u7531\u304c\u3088\u304f\u308f\u304b\u3089\u305a\u3001OpenCV\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u76f4\u3057\u305f\u308a\u3001PC\u3092\u518d\u8d77\u52d5\u3057\u305f\u308a\u3001GITHUB\u306e\u6295\u7a3f\u304c\u3042\u3063\u305f\u3001\u74b0\u5883\u5909\u6570\u3092\u8a2d\u5b9a\u3057\u305f\u308a\u3068\u3001\u3044\u308d\u3044\u308d\u8a66\u3057\u305f\u304c\u5168\u7136\u3060\u3081\u3067\u6700\u7d42\u7684\u306b\u306f\u3001OpenCV\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u3067\u89e3\u6c7a\u3057\u305f\u3002 \u30d0\u30fc\u30b8\u30e7\u30f3\u3068\u30b3\u30de\u30f3\u30c9\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3002 pip3 install opencv-contrib-python 4.2.0.32 pip3 install opencv-contrib-python-headless 4.2.0.32 pip3 install opencv-contrib-python-nonfree 4.1.1.1 pip3 install opencv-contrib-python-nonfree-headless [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20,7],"tags":[],"class_list":["post-1240","post","type-post","status-publish","format-standard","hentry","category-20","category-7"],"_links":{"self":[{"href":"http:\/\/ts-engine.net\/index.php?rest_route=\/wp\/v2\/posts\/1240","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/ts-engine.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/ts-engine.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/ts-engine.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/ts-engine.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1240"}],"version-history":[{"count":0,"href":"http:\/\/ts-engine.net\/index.php?rest_route=\/wp\/v2\/posts\/1240\/revisions"}],"wp:attachment":[{"href":"http:\/\/ts-engine.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1240"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/ts-engine.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1240"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/ts-engine.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1240"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}