{"id":916,"date":"2013-07-10T22:06:51","date_gmt":"2013-07-10T14:06:51","guid":{"rendered":"http:\/\/www.youthtribe.com\/?p=916"},"modified":"2013-07-10T22:25:35","modified_gmt":"2013-07-10T14:25:35","slug":"%e5%a6%82%e4%bd%95%e5%9c%a8vs2010%e4%b8%ad%e5%8a%a0%e8%bd%bdopencv2-4-4%e5%ba%93-vc","status":"publish","type":"post","link":"http:\/\/www.youthtribe.com\/archives\/916","title":{"rendered":"\u5982\u4f55\u5728vs2010\u4e2d\u52a0\u8f7dopencv2.4.4\u5e93-VC++"},"content":{"rendered":"
1.\u5355\u51fb \u9879\u76ee \uff0c\uff0d\u3009\u4f60\u7684\u5de5\u7a0b\u540d+\u5c5e\u6027\uff0d\u3009\u914d\u7f6e\u5c5e\u6027\uff0d\u3009VC++\u76ee\u5f55<\/p>\n
\u5728\u53f3\u4fa7\u663e\u793a\u7684 \u5e38\u89c4\u4e2d\u5305\u542b\u76ee\u5f55\u4e2d \u6dfb\u52a0\uff1a\u4f60\u7684opencv\u5b89\u88c5\u76ee\u5f55 \\opencv2.4.4\\opencv\\build\\include,\u4f60\u7684opencv\u5b89\u88c5\u76ee\u5f55 \\opencv2.4.4\\opencv\\build\\include\\opencv,\u4f60\u7684opencv\u5b89\u88c5\u76ee\u5f55 \\opencv2.4.4\\opencv\\build\\include\\opencv2,\u8fd9\u4e09\u9879<\/p>\n
\u5728\u5e93\u76ee\u5f55\u4e2d\u6dfb\u52a0 \uff1a<\/p>\n
\u4f60\u7684opencv\u5b89\u88c5\u76ee\u5f55opencv2.4.4\\opencv\\build\\x86\\vc10\\lib<\/p>\n
2\u5728\u94fe\u63a5\u5668\uff0d\u3009\u8f93\u5165\uff0c\u53f3\u4fa7 \u9644\u52a0\u4f9d\u8d56\u9879 \u6dfb\u52a0\u5982\u4e0b\uff1a<\/p>\n
opencv_calib3d244d.lib opencv_contrib244d.lib opencv_core244d.lib opencv_features2d244d.lib opencv_flann244d.lib opencv_gpu244d.lib opencv_highgui244d.lib opencv_imgproc244d.lib opencv_legacy244d.lib opencv_ml244d.lib opencv_objdetect244d.lib opencv_ts244d.lib opencv_video244d.lib<\/p>\n
(\u8fd9\u4e9blib\u8981\u6210\u4e00\u884c\u4e00\u884c\u7684\u52a0\uff0c \u4e0d\u7136\u4f1a\u6709LINK : fatal error LNK1104: \u65e0\u6cd5\u6253\u5f00\u6587\u4ef6”.obj”\u8fd9\u4e2a\u9519\u8bef)<\/p><\/blockquote>\n
\uff08\u6ce8\uff1a\u6700\u540e\u5e26d\u7684lib\u9002\u5408debug\uff0c244\u5b9e\u9645\u4e0a\u662f\u7248\u672c\uff0c\u4e3a\u4e86\u65b9\u4fbf\u8c03\u8bd5 \u548c\u53d1\u5e03\uff0c\u6240\u4ee5\u6700\u597d\u90fd\u6dfb\u52a0\u5427\uff09<\/p>\n
3.\u5728\u9700\u8981\u7528\u5230opencv\u7684cpp\u6587\u4ef6\u4e2d\u52a0\u5165\uff1a<\/p>\n
#include <opencv2\/opencv.hpp><\/p>\n
#include <opencv\/cv.h><\/p>\n
<\/p>\n
ok\u3002\u8fd9\u6837\u597d\u50cf\u5c31\u53ef\u4ee5\u4e86\u3002\u53ea\u9002\u7528\u4e8evc2010 \u4e4b cv++<\/p>\n","protected":false},"excerpt":{"rendered":"
1.\u5355\u51fb \u9879\u76ee \uff0c\uff0d\u3009\u4f60\u7684\u5de5\u7a0b\u540d+\u5c5e\u6027\uff0d\u3009\u914d\u7f6e\u5c5e\u6027\uff0d\u3009VC++\u76ee\u5f55 \u5728\u53f3\u4fa7\u663e\u793a\u7684 \u5e38\u89c4\u4e2d\u5305\u542b\u76ee\u5f55\u4e2d \u6dfb\u52a0\uff1a\u4f60\u7684opencv\u5b89\u88c5\u76ee\u5f55 \\opencv2.4.4\\opencv\\build\\include,\u4f60\u7684opencv\u5b89\u88c5\u76ee\u5f55 \\opencv2.4.4\\opencv\\build\\include\\opencv,\u4f60\u7684opencv\u5b89\u88c5\u76ee\u5f55 \\opencv2.4.4\\opencv\\build\\include\\opencv2,\u8fd9\u4e09\u9879 \u5728\u5e93\u76ee\u5f55\u4e2d\u6dfb\u52a0 \uff1a \u4f60\u7684opencv\u5b89\u88c5\u76ee\u5f55opencv2.4.4\\opencv\\build\\x86\\vc10\\lib 2\u5728\u94fe\u63a5\u5668\uff0d\u3009\u8f93\u5165\uff0c\u53f3\u4fa7 \u9644\u52a0\u4f9d\u8d56\u9879 \u6dfb\u52a0\u5982\u4e0b\uff1a op<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1,9,150],"tags":[139,157],"_links":{"self":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/916"}],"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=916"}],"version-history":[{"count":4,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/916\/revisions"}],"predecessor-version":[{"id":918,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/916\/revisions\/918"}],"wp:attachment":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/media?parent=916"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/categories?post=916"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/tags?post=916"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}