{"id":238020,"date":"2020-12-28T20:02:56","date_gmt":"2020-12-28T12:02:56","guid":{"rendered":"http:\/\/4563.org\/?p=238020"},"modified":"2020-12-28T20:02:56","modified_gmt":"2020-12-28T12:02:56","slug":"%e9%97%ae%e4%b8%8b%e5%90%84%e4%bd%8d%e5%a4%a7%e4%bd%ac%ef%bc%8c-python-%e4%b8%8b%e9%99%a4%e4%ba%86-cv2-matchtemplate%ef%bc%8c%e8%bf%98%e6%9c%89%e4%bb%80%e4%b9%88%e5%ae%bd%e5%ae%b9%e5%ba%a6%e9%ab%98","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=238020","title":{"rendered":"\u95ee\u4e0b\u5404\u4f4d\u5927\u4f6c\uff0c Python \u4e0b\u9664\u4e86 cv2.matchTemplate\uff0c\u8fd8\u6709\u4ec0\u4e48\u5bbd\u5bb9\u5ea6\u9ad8\u4e00\u70b9\u7684\u56fe\u50cf\u8bc6\u522b\u6a21\u5757\u5417\uff1f"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u95ee\u4e0b\u5404\u4f4d\u5927\u4f6c\uff0c Python \u4e0b\u9664\u4e86 cv2.matchTemplate\uff0c\u8fd8\u6709\u4ec0\u4e48\u5bbd\u5bb9\u5ea6\u9ad8\u4e00\u70b9\u7684\u56fe\u50cf\u8bc6\u522b\u6a21\u5757\u5417\uff1f               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : qq275327347 <\/span>  <span><i><\/i> 5<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u5982\u9898\uff0c\u6700\u8fd1\u5728\u5199\u4e00\u4e2a\u6a21\u62df\u4eba\u5de5\u64cd\u4f5c\u7684\u811a\u672c\uff0c\u9700\u8981\u7528\u5230\u56fe\u50cf\u8bc6\u522b\u3002\u6bd4\u5982\u8bc6\u522b\u56fe\u6807\u540e\u70b9\u51fb\u6253\u5f00\u4e4b\u7c7b\u7684\u3002\u5df2\u7ecf\u4ece\u7f51\u4e0a\u641c\u5230\u4e86 cv2.matchTemplate \u548c cv2.minMaxLoc()\uff0c\u642d\u914d python-mss\uff0c\u53ef\u4ee5\u8d70\u901a\u3002\u4f46\u662f\u8fd9\u4fe9\u51fd\u6570\u6709\u4e9b\u7f3a\u70b9\u3002<\/p>\n<p>\u4e00\u662f\u5bf9\u6a21\u677f\u548c\u5f85\u641c\u7d22\u7684\u56fe\u50cf\u6709\u5c3a\u5bf8\u8981\u6c42\uff0c\u6700\u597d\u662f\u622a\u4e2a png \u56fe\u4f5c\u4e3a\u6a21\u677f\uff0c\u8fd9\u6837\u5c31\u4e00\u5b9a\u80fd\u5339\u914d\u5230\u3002\u5982\u679c\u662f\u4ece exe \u63d0\u53d6\u7684 png \u56fe\u6807\uff0c256<em>256 \u7684\uff0c\u518d\u5230\u684c\u9762\u4e0a\u53bb\u5339\u914d 32<\/em>32 \u7684\u5c0f\u56fe\u6807\uff0c\u5c31\u662f\u627e\u4e0d\u5230\u7684\u3002\u3002<\/p>\n<p>\u4e8c\u662f\uff0c\u5047\u5982\u6a21\u677f\u662f 100%dpi \u622a\u56fe\u7684\uff0c\u4f46\u662f\u5b9e\u9645\u573a\u666f\u7684 dpi \u662f 175%\uff0c\u6b64\u65f6\u628a\u6a21\u677f\u5c3a\u5bf8\u4e58\u4ee5 1.75 \u518d\u53bb\u5339\u914d\uff0c\u8089\u773c\u770b\u7740\u4e24\u8005\u662f\u4e00\u6837\u5927\u5c0f\u4e00\u6837\u5185\u5bb9\uff0c\u4f46\u662f\u4e24\u8005\u7684\u4e8c\u8fdb\u5236\u6570\u636e\u662f\u4e0d\u4e00\u6837\u7684\uff0c\u6240\u4ee5\u8fd8\u662f\u5339\u914d\u4e0d\u5230\u3002\u3002<\/p>\n<p>\u8bf4\u767d\u4e86\u5176\u5b9e\u5c31\u662f\u6a21\u7cca\u5339\u914d\u2026\u2026<\/p>\n<p>\u6240\u4ee5\u60f3\u8bf7\u6559\u4e00\u4e0b\u5404\u4f4d\u5927\u4f6c\uff0c\u5bf9\u4e8e\u4ee5\u4e0a\u4e24\u4e2a\u95ee\u9898\uff0c\u6709\u4f18\u5316\u65b9\u6848\u5417\uff1f\u8fd9\u65b9\u9762\u6211\u4e0d\u662f\u5f88\u4e86\u89e3\uff0c\u5e0c\u671b\u54ea\u4f4d\u5927\u4f6c\u63d0\u793a\u4e00\u4e0b\uff0c\u6bd4\u5982\u544a\u8bc9\u6211\u5305\u7684\u540d\u5b57\u5565\u7684\uff0c\u6211\u81ea\u5df1\u7814\u7a76\u7814\u7a76<\/p>\n<p>\u6ca1\u6709\u673a\u5668\u89c6\u89c9 opencv \u4e4b\u7c7b\u7684\u8282\u70b9\uff0c\u53ea\u80fd\u653e\u5728\u8fd9\u91cc\u4e86<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>6<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"4776431\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : dick20cm <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             scikit-image, pytorch                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4776432\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : dick20cm <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             orb, sift, surf feature                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4776433\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : qq275327347 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8fd8\u6709\u4e00\u4e2a\u9700\u6c42\uff0c\u6bd4\u5982\u56fe\u6807\u5339\u914d\uff0c\u6211\u53ea\u60f3\u5339\u914d\u56fe\u6807\u4e2d\u7684\u5185\u5bb9\uff0c\u800c\u4e0d\u662f\u6574\u4e2a\u77e9\u5f62\uff0c\u63cf\u8ff0\u4e0d\u592a\u4e13\u4e1a\uff0c\u624b\u52a8\u6342\u8138\u3002\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4776434\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : huanghaozi <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5514\uff0c\u5927\u6982\u662f\u5c3a\u5ea6\u4e0d\u53d8\u6027\u7684\u95ee\u9898\uff0cmatchTemplate \u91cc\u7684 CV_TM_SQDIFF \u53c2\u6570\u597d\u50cf\u80fd\u89e3\u51b3\u3002<br \/>\u8fd8\u6709\u7279\u5f81\u5339\u914d\u91cc\u597d\u50cf\u4e5f\u6709\u6bd4\u8f83\u591a\u65b9\u6cd5\u89e3\u51b3\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4776435\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : gargar <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             feature matching \u7b97\u6cd5\uff0c\uff08 sift \u633a\u597d\uff0c\u4e0d\u8fc7\u6709\u4e13\u5229\uff0c\u53ea\u5728\u67d0\u4e9b\u7248\u672c opencv \u91cc\u6709\uff09<br \/>https:\/\/docs.opencv.org\/master\/dc\/dc3\/tutorial_py_matcher.html<br \/>https:\/\/docs.opencv.org\/master\/d1\/de0\/tutorial_py_feature_homography.html                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4776436\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lolioralice <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4f60\u8fd9\u4e2a\u4e0d\u5c31\u662f\u56fe\u50cf\u641c\u7d22\u7b97\u6cd5\u4e48&#8230;<\/p>\n<p>CV2 \u6709\u4e00\u5927\u5806\u7684\u5b9e\u73b0 \u53ef\u4ee5\u53bb\u770b\u770b \u53e6\u5916 ML \u9886\u57df\u4e5f\u6709\u73b0\u6210\u7684\u65b9\u6848\u53ef\u4ee5\u7528                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u95ee\u4e0b\u5404\u4f4d\u5927\u4f6c\uff0c Python \u4e0b\u9664&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/238020"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=238020"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/238020\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=238020"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=238020"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=238020"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}