{"id":6940,"date":"2019-06-20T10:05:45","date_gmt":"2019-06-20T01:05:45","guid":{"rendered":"https:\/\/itport.cloud\/?p=6940"},"modified":"2019-06-27T23:10:46","modified_gmt":"2019-06-27T14:10:46","slug":"post-6940","status":"publish","type":"post","link":"https:\/\/itport.cloud\/?p=6940","title":{"rendered":"(\u7b2c3\u56de)Python + OpenCV \u3067\u904a\u3093\u3067\u307f\u308b(\u9854\u691c\u51fa\u7de8)"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"e79baee6aca1-1\">\u76ee\u6b21<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"#op3-1\"><strong>\u306f\u3058\u3081\u306b<\/strong><\/a><\/li><li><a href=\"#op3-2\"><strong>\u30ab\u30b9\u30b1\u30fc\u30c9\u691c\u51fa\u5668\u3068\u306f<\/strong><\/a><\/li><li><a href=\"#op3-3\"><strong>\u4f7f\u7528\u3059\u308b\u691c\u51fa\u5668<\/strong><\/a><\/li><li><a href=\"#op3-4\"><strong>\u9854\u691c\u51fa<\/strong><\/a><\/li><li><a href=\"#op3-5\"><strong>\u304a\u308f\u308a\u306b<\/strong><\/a><\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"op3-1\"><strong>\u306f\u3058\u3081\u306b<\/strong><\/h2>\n\n\n\n<p>\u524d\u56de\u306fOpenCV\u3092\u5229\u7528\u3057\u3066\u3001\u3069\u306e\u3088\u3046\u306a\u753b\u50cf\u51e6\u7406\u304c\u51fa\u6765\u308b\u306e\u304b\u3092\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\u3002<br>\u4eca\u56de\u306fOpenCV\u306b\u540c\u68b1\u3055\u308c\u3066\u3044\u308b\u30ab\u30b9\u30b1\u30fc\u30c9\u578b\u691c\u51fa\u5668\u3092\u4f7f\u3063\u3066\u9854\u691c\u51fa\u3092\u3057\u3066\u307f\u3088\u3046\u3068\u601d\u3044\u307e\u3059\u3002 <\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"op3-2\"><strong>\u30ab\u30b9\u30b1\u30fc\u30c9\u578b\u691c\u51fa\u5668\u3068\u306f<\/strong><\/h2>\n\n\n\n<p>\u691c\u51fa\u5668\u306f\u3001\u6570\u5343\u679a\u3068\u3044\u3046\u753b\u50cf\u304b\u3089\u6a5f\u68b0\u5b66\u7fd2\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3057\u3066\u4f5c\u6210\u3055\u308c\u308b\u3082\u306e\u3067\u3001\u6a5f\u68b0\u5b66\u7fd2\u306e\u6210\u679c\u7269\u3068\u306a\u308a\u307e\u3059\u3002<br><br>\u30ab\u30b9\u30b1\u30fc\u30c9\u578b\u691c\u51fa\u5668\u306f\u3001\u591a\u6bb5\u968e\u30d5\u30a3\u30eb\u30bf\u3068\u3044\u3046\u30bf\u30a4\u30d7\u3067\u3044\u304f\u3064\u3082\u306e\u8a55\u4fa1\u6761\u4ef6\u304b\u3089\u591a\u6bb5\u968e\u3067\u8a55\u4fa1\u3057\u3001\u6700\u7d42\u7684\u306b\u3059\u3079\u3066\u306e\u8a55\u4fa1\u304b\u3089\u691c\u51fa\u5bfe\u8c61\u3060\u3068\u5224\u65ad\u3059\u308b\u691c\u51fa\u5668\u3067\u3059\u3002<br><br>\u672c\u6765\u306f\u6a5f\u68b0\u5b66\u7fd2\u306b\u3088\u3063\u3066\u3001\u9854\u691c\u51fa\u306e\u691c\u51fa\u5668\u3092\u4f5c\u6210\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u306e\u3067\u3059\u304c\u3001\u81a8\u5927\u306a\u753b\u50cf\u30c7\u30fc\u30bf\u3092\u4f7f\u7528\u3057\u3066\u3001\u9577\u6642\u9593\u306e\u5b66\u7fd2\u6642\u9593\u3092\u8981\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u305f\u3081\u3001\u4eca\u56de\u306fOpenCV\u306b\u540c\u68b1\u3055\u308c\u3066\u3044\u308b\u691c\u51fa\u5668\u3092\u4f7f\u7528\u3057\u3066\u691c\u51fa\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002\uff08\u4eca\u5f8c\u306e\u56de\u3067\u3001\u691c\u51fa\u5668\u4f5c\u6210\u306b\u3082\u53d6\u308a\u7d44\u3093\u3067\u307f\u3088\u3046\u3068\u601d\u3063\u3066\u3044\u307e\u3059\u3002\uff09 <\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"op3-3\"><strong>\u4f7f\u7528\u3059\u308b\u691c\u51fa\u5668<\/strong><\/h2>\n\n\n\n<p>\u4eca\u56de\u306fOpenCV\u306b\u540c\u68b1\u3055\u308c\u3066\u3044\u308bHaar-like\u30ab\u30b9\u30b1\u30fc\u30c9\u578b\u691c\u51fa\u5668\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<br>\u540c\u68b1\u3055\u308c\u3066\u3044\u308b\u691c\u51fa\u5668\u306f\u3001\u76ee\u306e\u691c\u51fa\u5668\u3001\u9f3b\u306e\u691c\u51fa\u5668\u3001\u9854\u306e\u691c\u51fa\u5668\u306a\u3069\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002<br><br>\u4eca\u56de\u306f\u6b63\u9762\u306e\u9854\u3092\u691c\u51fa\u3057\u305f\u3044\u306e\u3067\u3001<em>haarcascade_frontalface_default.xml<\/em>\u3092\u4f7f\u7528\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<br><br>\u3053\u308c\u306fHaar-like\u7279\u5fb4\u3068\u3044\u3046\u77e9\u5f62\u9818\u57df\u306e\u767d\u8272\u306e\u753b\u7d20\u306e\u548c\u3068\u9ed2\u8272\u306e\u753b\u7d20\u306e\u548c\u306e\u5dee\u3092\u7279\u5fb4\u91cf\u3068\u3057\u3066\u3001\u691c\u51fa\u3059\u308b\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u3092\u5229\u7528\u3057\u305f\u9854\u691c\u51fa\u5668\u3067\u3059\u3002<br>\u30ab\u30b9\u30b1\u30fc\u30c9\u578b\u8b58\u5225\u5668\u3068\u306a\u3063\u3066\u3044\u308b\u305f\u3081\u3001\u9ad8\u901f\u3067\u51e6\u7406\u304c\u51fa\u6765\u307e\u3059\u3002 <\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>OpenCV &#8211; github<\/p><cite><a href=\"https:\/\/github.com\/opencv\/opencv\">https:\/\/github.com\/opencv\/opencv<\/a><\/cite><\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"op3-4\"><strong>\u9854\u691c\u51fa<\/strong><\/h2>\n\n\n\n<p>\n\n\u4eca\u56de\u4f7f\u7528\u3059\u308b\u753b\u50cf\u306f\u4ee5\u4e0b\u306e2\u3064\u306e\u753b\u50cf\u3067\u3059\u3002\n\n<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"682\" src=\"https:\/\/itport.cloud\/wp-content\/uploads\/2019\/06\/input1-1024x682.jpg\" alt=\"\" class=\"wp-image-6941\" srcset=\"https:\/\/itport.cloud\/wp-content\/uploads\/2019\/06\/input1-1024x682.jpg 1024w, https:\/\/itport.cloud\/wp-content\/uploads\/2019\/06\/input1-300x200.jpg 300w, https:\/\/itport.cloud\/wp-content\/uploads\/2019\/06\/input1-768x512.jpg 768w, https:\/\/itport.cloud\/wp-content\/uploads\/2019\/06\/input1-450x300.jpg 450w, https:\/\/itport.cloud\/wp-content\/uploads\/2019\/06\/input1-900x600.jpg 900w, https:\/\/itport.cloud\/wp-content\/uploads\/2019\/06\/input1.jpg 1600w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>1\u679a\u76ee<br><\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"682\" src=\"https:\/\/itport.cloud\/wp-content\/uploads\/2019\/06\/input3-1024x682.jpg\" alt=\"\" class=\"wp-image-6942\" srcset=\"https:\/\/itport.cloud\/wp-content\/uploads\/2019\/06\/input3-1024x682.jpg 1024w, https:\/\/itport.cloud\/wp-content\/uploads\/2019\/06\/input3-300x200.jpg 300w, https:\/\/itport.cloud\/wp-content\/uploads\/2019\/06\/input3-768x512.jpg 768w, https:\/\/itport.cloud\/wp-content\/uploads\/2019\/06\/input3-450x300.jpg 450w, https:\/\/itport.cloud\/wp-content\/uploads\/2019\/06\/input3-900x600.jpg 900w, https:\/\/itport.cloud\/wp-content\/uploads\/2019\/06\/input3.jpg 1600w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>2\u679a\u76ee<\/figcaption><\/figure>\n\n\n\n<p>\n\n\u4ee5\u4e0b\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\uff12\u3064\u306e\u753b\u50cf\u304b\u3089\u9854\u3092\u691c\u51fa\u3057\u3066\u307f\u307e\u3059\u3002\n\n<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\n%matplotlib inline\nimport cv2\nimport matplotlib.pyplot as plt\n\n# \u5206\u985e\u5668\u306e\u8aad\u8fbc\n# https:\/\/github.com\/opencv\/opencv\/tree\/master\/data\/haarcascades\n# \u304b\u3089\u53d6\u5f97\ncascade_path = \"haarcascade_frontalface_default.xml\"\n\n# \u753b\u50cf\u30d5\u30a1\u30a4\u30eb\u306e\u8aad\u8fbc(\u7d50\u679c\u8868\u793a\u306b\u4f7f\u7528\u3059\u308b)\nimg = cv2.imread('input.jpg') #\u30ab\u30e9\u30fc\u3067\u8aad\u8fbc\n\n# \u30b0\u30ec\u30fc\u30b9\u30b1\u30fc\u30eb\u306b\u5909\u63db(\u9854\u691c\u51fa\u306b\u4f7f\u7528\u3059\u308b)\ngry_img = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)\n\n# \u30ab\u30b9\u30b1\u30fc\u30c9\u691c\u51fa\u5668\u306e\u7279\u5fb4\u91cf\u3092\u53d6\u5f97\u3059\u308b\ncascade = cv2.CascadeClassifier(cascade_path)\n\n# \u9854\u691c\u51fa\u306e\u5b9f\u884c\nfacerect = cascade.detectMultiScale(gry_img, scaleFactor=1.1, minNeighbors=2, minSize=(30, 30))\n\n# \u77e9\u5f62\u7dda\u306e\u8272\nrectangle_color = (0, 255, 0) #\u7dd1\u8272\n\n# \u9854\u3092\u691c\u51fa\u3057\u305f\u5834\u5408\nif len(facerect) > 0:\n    for rect in facerect:\n        cv2.rectangle(img, tuple(rect&#x5B;0:2]),tuple(rect&#x5B;0:2] + rect&#x5B;2:4]), rectangle_color, thickness=2)\n\nimg = cv2.cvtColor(img, cv2.COLOR_RGB2BGR) #RGB\u304b\u3089BGR\u306b\u5909\u63db\nplt.imshow(img)\n<\/pre><\/div>\n\n\n<p>\u7d50\u679c\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002 <\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"682\" src=\"https:\/\/itport.cloud\/wp-content\/uploads\/2019\/06\/output1-1-1024x682.jpg\" alt=\"\" class=\"wp-image-6944\" srcset=\"https:\/\/itport.cloud\/wp-content\/uploads\/2019\/06\/output1-1-1024x682.jpg 1024w, https:\/\/itport.cloud\/wp-content\/uploads\/2019\/06\/output1-1-300x200.jpg 300w, https:\/\/itport.cloud\/wp-content\/uploads\/2019\/06\/output1-1-768x512.jpg 768w, https:\/\/itport.cloud\/wp-content\/uploads\/2019\/06\/output1-1-450x300.jpg 450w, https:\/\/itport.cloud\/wp-content\/uploads\/2019\/06\/output1-1-900x600.jpg 900w, https:\/\/itport.cloud\/wp-content\/uploads\/2019\/06\/output1-1.jpg 1600w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>1\u679a\u76ee\u306e\u7d50\u679c<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"682\" src=\"https:\/\/itport.cloud\/wp-content\/uploads\/2019\/06\/output3-3-1024x682.jpg\" alt=\"\" class=\"wp-image-6945\" srcset=\"https:\/\/itport.cloud\/wp-content\/uploads\/2019\/06\/output3-3-1024x682.jpg 1024w, https:\/\/itport.cloud\/wp-content\/uploads\/2019\/06\/output3-3-300x200.jpg 300w, https:\/\/itport.cloud\/wp-content\/uploads\/2019\/06\/output3-3-768x512.jpg 768w, https:\/\/itport.cloud\/wp-content\/uploads\/2019\/06\/output3-3-450x300.jpg 450w, https:\/\/itport.cloud\/wp-content\/uploads\/2019\/06\/output3-3-900x600.jpg 900w, https:\/\/itport.cloud\/wp-content\/uploads\/2019\/06\/output3-3.jpg 1600w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>2\u679a\u76ee\u306e\u7d50\u679c<\/figcaption><\/figure>\n\n\n\n<p>\u7d50\u679c\u3092\u898b\u308b\u3068\u3001\uff11\u679a\u76ee\u306e\u753b\u50cf\u3082\uff12\u679a\u76ee\u306e\u753b\u50cf\u3082\u9854\u4ee5\u5916\u306e\u90e8\u5206\u3067\u3082\u9854\u3068\u3057\u3066\u691c\u51fa\u3057\u3066\u3044\u307e\u3059\u3002<br><br>\u3053\u308c\u306f\u3001\u5927\u5c0f\u306e\u77e9\u5f62\u9818\u57df\u3092\u5909\u5316\u3055\u305b\u3066\u3001\u753b\u50cf\u5185\u306e\u753b\u7d20\u30d1\u30bf\u30fc\u30f3\u3092\u691c\u7d22\u3057\u3066\u304a\u308a\u3001\u9854\u4ee5\u5916\u3067\u3082\u305d\u306e\u30d1\u30bf\u30fc\u30f3\u304c\u5f53\u3066\u306f\u307e\u3063\u3066\u3044\u308b\u304b\u3089\u3067\u3059\u3002<br><br>\u307e\u305f\u3001\uff12\u679a\u76ee\u306e\u753b\u50cf\u306f\u53f3\u5074\u306e\u4eba\u306e\u9854\u304c\u691c\u51fa\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002<br>\u540c\u69d8\u306b\u691c\u7d22\u306e\u95be\u5024\u306b\u3088\u3063\u3066\u9854\u306e\u30d1\u30bf\u30fc\u30f3\u306b\u5f53\u3066\u306f\u307e\u3089\u306a\u304b\u3063\u305f\u305f\u3081\u691c\u51fa\u3055\u308c\u306a\u304b\u3063\u305f\u3068\u3044\u3046\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<br><br>\u3053\u306e\u95be\u5024\u306fdetectMultiScale\u30e1\u30bd\u30c3\u30c9\u306e\u5f15\u6570\u3067\u6307\u5b9a\u3057\u307e\u3059\u3002 <\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"detectmultiscalee383a1e382bde38383e38389e381aee38391e383a9e383a1e383bce382bfe381abe381a4e38184e381a6-2\"> detectMultiScale\u30e1\u30bd\u30c3\u30c9\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u306b\u3064\u3044\u3066 <\/h3>\n\n\n\n<p>scaleFactor \uff1a<br>\u753b\u50cf\u30b9\u30b1\u30fc\u30eb\u306b\u304a\u3051\u308b\u7e2e\u5c0f\u91cf\u3002detectMultiScale\u3067\u306f\u753b\u50cf\u306e\u30b9\u30b1\u30fc\u30eb\u3092\u4f55\u5ea6\u3082\u5909\u5316\u3055\u305b\u3066\u63a2\u7d22\u3059\u308b\u305f\u3081\u3001\u305d\u306e\u969b\u306e\u7e2e\u5c0f\u91cf\u3092\u8a2d\u5b9a\u3059\u308b\u3002\u5927\u304d\u3044\u307b\u3069\u8aa4\u691c\u77e5\u304c\u591a\u304f\u3001\u5c0f\u3055\u3044\u307b\u3069\u672a\u691c\u51fa\u3068\u306a\u3063\u3066\u3057\u307e\u3046\u7387\u304c\u9ad8\u304f\u306a\u308b<\/p>\n\n\n\n<p>minNeighbors\uff1a<br>\u4fe1\u983c\u6027\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u3002\u691c\u51fa\u5668\u304c\u691c\u51fa\u3059\u308b\u7b87\u6240\u304c\u91cd\u8907\u3059\u308b\u306e\u3067\u3001\u3088\u308a\u91cd\u8907\u304c\u591a\u3044\u90e8\u5206\u304c\u4fe1\u983c\u6027\u304c\u9ad8\u3044\u3053\u3068\u3068\u306a\u308a\u3001\u305d\u306e\u95be\u5024\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002\u5024\u304c\u5927\u304d\u304f\u306a\u308b\u306b\u3064\u308c\u3066\u4fe1\u983c\u6027\u304c\u4e0a\u304c\u308b\u304c\u3001\u9854\u3092\u898b\u9003\u3057\u3066\u3057\u307e\u3046\u7387\u3082\u9ad8\u304f\u306a\u308b\u3002<\/p>\n\n\n\n<p>minSize \uff1a<br>\u7269\u4f53\u304c\u53d6\u308a\u5f97\u308b\u6700\u5c0f\u30b5\u30a4\u30ba\u3002\u3053\u308c\u3088\u308a\u3082\u5c0f\u3055\u3044\u7269\u4f53\u306f\u7121\u8996\u3055\u308c\u308b\u3002<\/p>\n\n\n\n<p> \u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u5909\u66f4\u3057\u3066\u307f\u308b\u3068\u3001\u3061\u3083\u3093\u3068\u9854\u304c\u691c\u51fa\u3055\u308c\u307e\u3057\u305f\u3002<br><br>\uff11\u679a\u76ee\uff1aminNeighbors\u3092\u9ad8\u304f\u8a2d\u5b9a\u3057\u3001\u4fe1\u983c\u6027\u306e\u9ad8\u3044\u90e8\u5206\u3060\u3051\u3092\u9854\u3068\u3057\u3066\u691c\u51fa\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u305f\u3002 <\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\n# \u9854\u691c\u51fa\u306e\u5b9f\u884c\nfacerect = cascade.detectMultiScale(gry_img, scaleFactor=1.1, minNeighbors=6, minSize=(30, 30))\n<\/pre><\/div>\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"682\" src=\"https:\/\/itport.cloud\/wp-content\/uploads\/2019\/06\/output3-1-1-1024x682.jpg\" alt=\"\" class=\"wp-image-6947\" srcset=\"https:\/\/itport.cloud\/wp-content\/uploads\/2019\/06\/output3-1-1-1024x682.jpg 1024w, https:\/\/itport.cloud\/wp-content\/uploads\/2019\/06\/output3-1-1-300x200.jpg 300w, https:\/\/itport.cloud\/wp-content\/uploads\/2019\/06\/output3-1-1-768x512.jpg 768w, https:\/\/itport.cloud\/wp-content\/uploads\/2019\/06\/output3-1-1-450x300.jpg 450w, https:\/\/itport.cloud\/wp-content\/uploads\/2019\/06\/output3-1-1-900x600.jpg 900w, https:\/\/itport.cloud\/wp-content\/uploads\/2019\/06\/output3-1-1.jpg 1600w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>1\u679a\u76ee\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u8abf\u6574\u5f8c\u306e\u7d50\u679c<\/figcaption><\/figure>\n\n\n\n<p> 2\u679a\u76ee\uff1aminSize\u3092\u5927\u304d\u304f\u3057\u3001\u7e2e\u5c0f\u91cf\u3092\u8abf\u6574\u3059\u308b\u3053\u3068\u3067\u3001\u8aa4\u691c\u77e5\u3092\u6e1b\u3089\u3057\u3001\u9854\u3092\u691c\u51fa\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u305f\u3002 <\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\n# \u9854\u691c\u51fa\u306e\u5b9f\u884c\nfacerect = cascade.detectMultiScale(gry_img, scaleFactor=1.05, minNeighbors=2, minSize=(100, 100))\n<\/pre><\/div>\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"682\" src=\"https:\/\/itport.cloud\/wp-content\/uploads\/2019\/06\/output3-3-1-1024x682.jpg\" alt=\"\" class=\"wp-image-6948\" srcset=\"https:\/\/itport.cloud\/wp-content\/uploads\/2019\/06\/output3-3-1-1024x682.jpg 1024w, https:\/\/itport.cloud\/wp-content\/uploads\/2019\/06\/output3-3-1-300x200.jpg 300w, https:\/\/itport.cloud\/wp-content\/uploads\/2019\/06\/output3-3-1-768x512.jpg 768w, https:\/\/itport.cloud\/wp-content\/uploads\/2019\/06\/output3-3-1-450x300.jpg 450w, https:\/\/itport.cloud\/wp-content\/uploads\/2019\/06\/output3-3-1-900x600.jpg 900w, https:\/\/itport.cloud\/wp-content\/uploads\/2019\/06\/output3-3-1.jpg 1600w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption> 2\u679a\u76ee\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u8abf\u6574\u5f8c\u306e\u7d50\u679c <\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"op3-5\"><strong>\u304a\u308f\u308a\u306b<\/strong><\/h2>\n\n\n\n<p>\u4eca\u56de\u306f\u540c\u68b1\u3055\u308c\u3066\u3044\u308b\u30ab\u30b9\u30b1\u30fc\u30c9\u578b\u691c\u51fa\u5668\u3092\u5229\u7528\u3057\u3066\u3001\u9854\u691c\u51fa\u3092\u884c\u3063\u3066\u307f\u307e\u3057\u305f\u3002<br><br>\u691c\u51fa\u5668\u3092\u4f5c\u6210\u3059\u308b\uff08\u6a5f\u68b0\u5b66\u7fd2\uff09\u969b\u306b\u3082\u30d1\u30e9\u30e1\u30fc\u30bf\u306f\u91cd\u8981\u3060\u3068\u601d\u3044\u307e\u3059\u304c\u3001\u5229\u7528\u3059\u308b\u5834\u5408\u306b\u3082\u95be\u5024\u304c\u91cd\u8981\u3067\u3042\u308a\u3001\u691c\u51fa\u5668\u3092\u5229\u7528\u3059\u308b\u969b\u306f\u691c\u8a3c\u3084\u7d4c\u9a13\u304c\u5c11\u306a\u304b\u3089\u305a\u5fc5\u8981\u3060\u3068\u601d\u3044\u307e\u3057\u305f\u3002<br><br>\u6b21\u56de\u306f\u3001\u52d5\u753b\u306e\u5229\u7528\u3068\u52d5\u753b\u304b\u3089\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u3067\u9854\u691c\u51fa\u3057\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002 <\/p>\n","protected":false},"excerpt":{"rendered":"\u76ee\u6b21 \u306f\u3058\u3081\u306b\u30ab\u30b9\u30b1\u30fc\u30c9\u691c\u51fa\u5668\u3068\u306f\u4f7f\u7528\u3059\u308b\u691c\u51fa\u5668\u9854\u691c\u51fa\u304a\u308f\u308a\u306b \u306f\u3058\u3081\u306b \u524d\u56de\u306fOpenCV\u3092\u5229\u7528\u3057\u3066\u3001\u3069\u306e\u3088\u3046\u306a\u753b\u50cf\u51e6\u7406\u304c\u51fa\u6765\u308b\u306e\u304b\u3092\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\u3002\u4eca\u56de\u306fOpenCV\u306b\u540c\u68b1\u3055\u308c\u3066\u3044\u308b\u30ab\u30b9\u30b1\u30fc\u30c9\u578b\u691c\u51fa\u5668\u3092\u4f7f\u3063\u3066\u9854\u691c\u51fa\u3092\u3057\u3066\u307f\u3088\u3046\u3068\u601d\u3044\u307e\u3059\u3002 \u30ab\u30b9\u30b1\u30fc\u30c9\u578b\u691c\u51fa\u5668\u3068\u306f \u691c\u51fa\u5668\u306f\u3001\u6570\u5343\u679a\u3068\u3044\u3046\u753b\u50cf\u304b\u3089\u6a5f\u68b0\u5b66\u7fd2\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3057\u3066\u4f5c\u6210\u3055\u308c\u308b\u3082\u306e\u3067\u3001\u6a5f\u68b0\u5b66\u7fd2\u306e\u6210\u679c\u7269\u3068\u306a\u308a\u307e\u3059\u3002\u30ab\u30b9\u30b1\u30fc\u30c9\u578b\u691c\u51fa\u5668\u306f\u3001\u591a\u6bb5\u968e\u30d5\u30a3\u30eb\u30bf\u3068\u3044\u3046\u30bf\u30a4\u30d7\u3067\u3044\u304f\u3064\u3082\u306e\u8a55\u4fa1\u6761\u4ef6\u304b\u3089\u591a\u6bb5\u968e\u3067\u8a55\u4fa1\u3057\u3001\u6700\u7d42\u7684\u306b\u3059\u3079\u3066\u306e\u8a55\u4fa1\u304b\u3089\u691c\u51fa\u5bfe\u8c61\u3060\u3068\u5224\u65ad\u3059\u308b\u691c\u51fa\u5668\u3067\u3059\u3002\u672c\u6765\u306f\u6a5f\u68b0\u5b66\u7fd2\u306b\u3088\u3063\u3066\u3001\u9854\u691c\u51fa\u306e\u691c\u51fa\u5668\u3092\u4f5c\u6210\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u306e\u3067\u3059\u304c\u3001\u81a8\u5927\u306a\u753b\u50cf\u30c7\u30fc\u30bf\u3092\u4f7f\u7528\u3057\u3066\u3001\u9577\u6642\u9593\u306e\u5b66\u7fd2\u6642\u9593\u3092\u8981\u3059\u308b&hellip;","protected":false},"author":6,"featured_media":6989,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[51],"tags":[52],"class_list":{"0":"post-6940","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-opencv","8":"tag-season15"},"_links":{"self":[{"href":"https:\/\/itport.cloud\/index.php?rest_route=\/wp\/v2\/posts\/6940","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itport.cloud\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itport.cloud\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itport.cloud\/index.php?rest_route=\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/itport.cloud\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6940"}],"version-history":[{"count":19,"href":"https:\/\/itport.cloud\/index.php?rest_route=\/wp\/v2\/posts\/6940\/revisions"}],"predecessor-version":[{"id":7079,"href":"https:\/\/itport.cloud\/index.php?rest_route=\/wp\/v2\/posts\/6940\/revisions\/7079"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/itport.cloud\/index.php?rest_route=\/wp\/v2\/media\/6989"}],"wp:attachment":[{"href":"https:\/\/itport.cloud\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6940"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itport.cloud\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6940"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itport.cloud\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6940"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}