{"id":849,"date":"2013-05-02T14:18:35","date_gmt":"2013-05-02T06:18:35","guid":{"rendered":"http:\/\/www.shizhiyou.com\/blog\/?p=849"},"modified":"2013-05-02T14:18:35","modified_gmt":"2013-05-02T06:18:35","slug":"opencv1-x-%e7%89%88%e6%9c%ac%e5%92%8c%e6%96%b0%e7%89%88%e6%9c%ac-2-x-x%e7%9a%84%e4%b8%80%e4%ba%9b%e5%a4%a7%e7%9a%84%e5%8c%ba%e5%88%ab","status":"publish","type":"post","link":"http:\/\/www.youthtribe.com\/archives\/849","title":{"rendered":"opencv1.x \u7248\u672c\u548c\u65b0\u7248\u672c 2.X.x\u7684\u4e00\u4e9b\u5927\u7684\u533a\u522b"},"content":{"rendered":"

opencv1.x \u7248\u672c\u548c\u65b0\u7248\u672c 2.X.x\u7684\u4e00\u4e9b\u5927\u7684\u533a\u522b\uff1a<\/p>\n

1. \u9996\u5148\uff0c\u65b0\u7684\u7248\u672c\u51e0\u4e4e\u5b8c\u5168\u5411\u4e0b\u517c\u5bb9\uff0c\u53d8\u5316\u4e3b\u8981\u4f53\u73b0\u73b0\u5728\uff1a
\na. \u589e\u52a0\u65b0\u7684\/\u4f18\u5316\u7684\u7b97\u6cd5\u5b9e\u73b0\u3002\uff08\u4e0d\u591a\uff0c\u56e0\u4e3a\u56fe\u50cf\u5904\u7406\u7ecf\u5178\u7684\u7b97\u6cd5\u5c31\u90a3\u4e48\u591a\uff09
\nb. \u5bf9\u591a\u8bed\u8a00\/\u5e73\u53f0\u7684\u652f\u6301\uff0c\u6bd4\u5982python, c++,android\u3002\u8fd9\u4e0e\u73b0\u5728\u7684\u5546\u4e1a\u5e94\u7528\u6709\u5173\u3002
\nc. \u6587\u4ef6\u547d\u540d\u89c4\u5219\u53d1\u751f\u4e86\u4e00\u4e9b\u53d8\u5316\uff0c\u6bd4\u5982\u73b0\u5728\u7684\u5e93\u7edf\u4e00\u4e3aopencv_xxxxx.lib\uff0c\u52a0\u4e86\u524d\u7f00\u3002\uff08\u4ec5\u4e3e\u4f8b\uff0c\u53ef\u80fd\u8fd8\u6709\u522b\u7684\uff09
\nd. \u6570\u636e\u7ed3\u6784\u53d1\u751f\u4e86\u53d8\u5316\u30022.0\u4ee5\u540e\uff0c\u63d0\u5021\u4f7f\u7528Mat \u7ed3\u6784\uff0c\u6765\u4ee3\u66ff\u4ee5\u524d\u7684IplImage,Array\u3002\u7ed3\u6784\u8ddf\u6613\u4e8e\u4f7f\u7528\u3002(\u4ec5\u4e3e\u4f8b\uff0c\u53ef\u80fd\u8fd8\u6709\u522b\u7684)
\ne. \u76ee\u5f55\u7ed3\u6784\u53d1\u751f\u4e86\u53d8\u5316\uff0copencv opencv2\uff0c\u4f60\u89c2\u5bdf\u4e00\u4e0b\u5c31\u77e5\u9053\u4e86\u3002\u5bf9\u65e7\u7684\u4ee3\u7801\uff0c\u8981\u8bbe\u7f6e\u597dinlucde\u8def\u5f84\u3002<\/p>\n

2. \u662f\u5426\u9700\u8981\u4e0b\u8f7d\u65b0\u7684\u7248\u672c\uff0c\u53d6\u51b3\u4f60\u7684\u60c5\u51b5\u3002
\na. \u7814\u7a76\u5b66\u4e60\uff08\u5728\u6821\u5b66\u751f\uff09\u7684\u8bdd\uff0c\u4e2a\u4eba\u89c9\u5f97\u8d8a\u65b0\u8d8a\u597d\u3002\u4ee3\u4ef7\u662f\u4e00\u4e9b\u65e7\u7684\u4ee3\u7801\u53ef\u80fd\u9700\u8981\u591a\u82b1\u4e9b\u65f6\u95f4\u8c03\u8bd5\uff08\u5b66\u751f\u591a\u662f\u8fd9\u79cd\u9700\u6c42\u5427\uff1f\u00a0\":-D\"\uff09\u3002
\nb. \u9879\u76ee\u5f00\u53d1\u7684\u8bdd\uff0c\u5982\u679c\u4f60\u4e0d\u662f\u51b3\u7b56\u8005\uff0c\u5c31\u65e0\u987b\u62c5\u5fe7\u8fd9\u4e2a\u95ee\u9898\u3002\u4f1a\u6709\u4eba\u51b3\u5b9a\u7684\u3002\u2014\u2014\u770b\u95ee\u9898\uff0c\u4f60\u5e94\u8be5\u4e0d\u662f\u3002<\/p>\n

3. \u4f7f\u7528c\u98ce\u683c\u8fd8\u662fc++\u98ce\u683c\uff1a
\na. \u5176\u5b9eopencv\u5bf9\u5f85c \u4e0ec++\uff0c\u5982\u540c\u5bf9\u5f85c\u4e0epython\u4e00\u6837\uff0c\u5206\u522b\u63d0\u4f9b\u4e86\u4e0d\u540c\u7684API,\u5b8c\u5168\u72ec\u7acb\u3002\u53ea\u662f\u56e0\u4e3ac\u4e0ec++\u7684\u5173\u7cfb\uff0c\u4e24\u8005\u624d\u663e\u5f97\u7ea0\u7ed3\u4e0d\u6e05\u3002
\nb. \u4f7f\u7528\u8c01\u5b8c\u5168\u53d6\u51b3\u4e8e\u4f60\u3002c++\u7684\u8bed\u6cd5\u76f8\u5bf9\u5bbd\u677e\uff0c\u63a5\u53e3\u7b80\u5355\uff0c\u6613\u4e8e\u4f7f\u7528\u3002c\u7684\u5df2\u6709\u4ee3\u7801\u3001\u8d44\u6599\u4f1a\u591a\u4e00\u4e9b\u3002\u2014\u2014\u4e00\u822c\u6765\u8bf4\uff0c\u662f\u4f1a\u6df7\u7528\u7684\u3002:-D \u56e0\u4e3a\u5927\u591a\u6570\u7a0b\u5e8f\u5458\u90fd\u5206\u4e0d\u6e05c\u4e0ec++\u7684\u533a\u522b\u3002
\nc. \u7b80\u5355\u8bf4\uff0c\u5c31\u662f\u4e0d\u7528\u7ea0\u7ed3\u8fd9\u4e2a\u95ee\u9898\uff0c\u628a\u529f\u80fd\u5b9e\u73b0\u5373\u53ef\u3002<\/p>\n

\u4e2a\u4eba\u7684\u4e00\u4e9b\u6d45\u8584\u7b80\u4ecb\uff0c\u5e0c\u671b\u80fd\u5e2e\u5230\u4f60\u3002\u4e5f\u662f\u521a\u5f00\u59cb\u4f7f\u7528OpenCV\u3002<\/p>\n

\u6574\u7406\u81ea\uff1ahttp:\/\/www.opencv.org.cn\/forum<\/p>\n","protected":false},"excerpt":{"rendered":"

opencv1.x \u7248\u672c\u548c\u65b0\u7248\u672c 2.X.x\u7684\u4e00\u4e9b\u5927\u7684\u533a\u522b\uff1a 1. \u9996\u5148\uff0c\u65b0\u7684\u7248\u672c\u51e0\u4e4e\u5b8c\u5168\u5411\u4e0b\u517c\u5bb9\uff0c\u53d8\u5316\u4e3b\u8981\u4f53\u73b0\u73b0\u5728\uff1a a. \u589e\u52a0\u65b0\u7684\/\u4f18\u5316\u7684\u7b97\u6cd5\u5b9e\u73b0\u3002\uff08\u4e0d\u591a\uff0c\u56e0\u4e3a\u56fe\u50cf\u5904\u7406\u7ecf\u5178\u7684\u7b97\u6cd5\u5c31\u90a3\u4e48\u591a\uff09 b. \u5bf9\u591a\u8bed\u8a00\/\u5e73\u53f0\u7684\u652f\u6301\uff0c\u6bd4\u5982python, c++,android\u3002\u8fd9\u4e0e\u73b0\u5728\u7684\u5546\u4e1a\u5e94\u7528\u6709\u5173\u3002 c. \u6587\u4ef6\u547d\u540d\u89c4\u5219\u53d1\u751f\u4e86\u4e00\u4e9b\u53d8\u5316\uff0c\u6bd4\u5982\u73b0\u5728\u7684\u5e93\u7edf\u4e00\u4e3aopencv_xxxxx.lib\uff0c\u52a0\u4e86\u524d\u7f00\u3002\uff08\u4ec5\u4e3e\u4f8b\uff0c\u53ef\u80fd\u8fd8\u6709\u522b\u7684\uff09 d. \u6570\u636e\u7ed3\u6784\u53d1\u751f\u4e86\u53d8\u5316\u30022.0\u4ee5\u540e\uff0c\u63d0\u5021\u4f7f\u7528Mat \u7ed3\u6784\uff0c\u6765\u4ee3\u66ff\u4ee5\u524d\u7684IplImage,Array\u3002\u7ed3\u6784\u8ddf\u6613\u4e8e\u4f7f\u7528\u3002(\u4ec5\u4e3e\u4f8b\uff0c\u53ef\u80fd\u8fd8\u6709\u522b\u7684) e. \u76ee\u5f55\u7ed3\u6784\u53d1\u751f\u4e86\u53d8\u5316\uff0copencv o<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1,9],"tags":[139],"_links":{"self":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/849"}],"collection":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/comments?post=849"}],"version-history":[{"count":2,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/849\/revisions"}],"predecessor-version":[{"id":851,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/849\/revisions\/851"}],"wp:attachment":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/media?parent=849"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/categories?post=849"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/tags?post=849"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}