最新要闻
- 改款特斯拉Model 3即将登场:预计今年三季度投产
- 苹果版“望远镜”!曝iPhone 16 Pro/16 Ultra都会配备潜望长焦
- 科学家警告:2024或成全球史上最热年份
- 育碧CEO让员工少花钱多做事 巴黎工作室将罢工抗议
- 苹果上海被强制执行1.44亿:这么多年还是第一次
- 世界通讯!微软否认“万人大裁员”:纯属谣言
- 天天讯息:7岁男孩爱撕倒刺致手指感染 医生提醒:处理不当会引发骨髓炎
- 全球今亮点!春节正常发货:仁和N95灭菌级口罩25片15.9元大促
- 世界要闻:网友3美元淘了一颗废品锐龙9 5900X:掰正针脚 点亮!
- 王晶武侠电影 《天龙八部之乔峰传》明日首映:年三十三大视频平台上线
- 全球时讯:平民也能玩8GHz超频 技嘉B760主板奉上两大绝技:内存延迟大降7ns
- 被偷家了!德国人不买大众 把美系车特斯拉买成销冠
- 12nm后 DRAM怎么办?EUV光刻也不是万能药
- 每日时讯!安徽一劳斯莱斯婚车撞上石墩受损严重 博主:可向设置限宽人员索赔
- 《蚁人3:量子狂潮》角色海报发布 蚁人女儿貌美如花
- 象是哪个少数民族的生肖?十二生肖儿歌顺口溜
广告
手机
iphone11大小尺寸是多少?苹果iPhone11和iPhone13的区别是什么?
警方通报辅警执法直播中被撞飞:犯罪嫌疑人已投案
- iphone11大小尺寸是多少?苹果iPhone11和iPhone13的区别是什么?
- 警方通报辅警执法直播中被撞飞:犯罪嫌疑人已投案
- 男子被关545天申国赔:获赔18万多 驳回精神抚慰金
- 3天内26名本土感染者,辽宁确诊人数已超安徽
- 广西柳州一男子因纠纷杀害三人后自首
- 洱海坠机4名机组人员被批准为烈士 数千干部群众悼念
家电
快资讯:opencv官网例程(4.7.0版本)运行示例
(资料图片)
使用官网 https://opencv.org/releases/ 下载4.7版本下载好后添加环境变量到安装路径下
以及在系统变量中添加OpenCV_DIR(也可以用set的方式从Cmakelist里添加)
打开我们下载后的路径,将example_cmake里的CMakeLists.txt和Makefile复制出来到samples/cpp的路径下
修改复制后的Cmakelist文件
官方示例
# Declare the executable target built from your sourcesadd_executable(opencv_example example.cpp)# Link your application with OpenCV librariestarget_link_libraries(opencv_example PRIVATE ${OpenCV_LIBS})
4.7版本,cpp名称已全部修改
add_executable(facedetect facedetect.cpp)target_link_libraries(facedetect ${OpenCV_LIBS})add_executable(facial_features facial_features.cpp)target_link_libraries(facial_features ${OpenCV_LIBS})add_executable(falsecolor falsecolor.cpp)target_link_libraries(falsecolor ${OpenCV_LIBS})add_executable(fback fback.cpp)target_link_libraries(fback ${OpenCV_LIBS})add_executable(ffilldemo ffilldemo.cpp)target_link_libraries(ffilldemo ${OpenCV_LIBS})add_executable(filestorage filestorage.cpp)target_link_libraries(filestorage ${OpenCV_LIBS})add_executable(fitellipse fitellipse.cpp)target_link_libraries(fitellipse ${OpenCV_LIBS})add_executable(flann_search_dataset flann_search_dataset.cpp)target_link_libraries(flann_search_dataset ${OpenCV_LIBS})add_executable(grabcut grabcut.cpp)target_link_libraries(grabcut ${OpenCV_LIBS})add_executable(image_alignment image_alignment.cpp)target_link_libraries(image_alignment ${OpenCV_LIBS})add_executable(imagelist_creator imagelist_creator.cpp)target_link_libraries(imagelist_creator ${OpenCV_LIBS})add_executable(imagelist_reader imagelist_reader.cpp)target_link_libraries(imagelist_reader ${OpenCV_LIBS})add_executable(imgcodecs_jpeg imgcodecs_jpeg.cpp)target_link_libraries(imgcodecs_jpeg ${OpenCV_LIBS})add_executable(inpaint inpaint.cpp)target_link_libraries(inpaint ${OpenCV_LIBS})add_executable(intelligent_scissors intelligent_scissors.cpp)target_link_libraries(intelligent_scissors ${OpenCV_LIBS})add_executable(intersectExample intersectExample.cpp)target_link_libraries(intersectExample ${OpenCV_LIBS})add_executable(kalman kalman.cpp)target_link_libraries(kalman ${OpenCV_LIBS})add_executable(kmeans kmeans.cpp)target_link_libraries(kmeans ${OpenCV_LIBS})add_executable(laplace laplace.cpp)target_link_libraries(laplace ${OpenCV_LIBS})add_executable(letter_recog letter_recog.cpp)target_link_libraries(letter_recog ${OpenCV_LIBS})add_executable(lkdemo lkdemo.cpp)target_link_libraries(lkdemo ${OpenCV_LIBS})add_executable(logistic_regression logistic_regression.cpp)target_link_libraries(logistic_regression ${OpenCV_LIBS})add_executable(lsd_lines lsd_lines.cpp)target_link_libraries(lsd_lines ${OpenCV_LIBS})add_executable(mask_tmpl mask_tmpl.cpp)target_link_libraries(mask_tmpl ${OpenCV_LIBS})add_executable(matchmethod_orb_akaze_brisk matchmethod_orb_akaze_brisk.cpp)target_link_libraries(matchmethod_orb_akaze_brisk ${OpenCV_LIBS})add_executable(minarea minarea.cpp)target_link_libraries(minarea ${OpenCV_LIBS})add_executable(morphology2 morphology2.cpp)target_link_libraries(morphology2 ${OpenCV_LIBS})add_executable(neural_network neural_network.cpp)target_link_libraries(neural_network ${OpenCV_LIBS})add_executable(npr_demo npr_demo.cpp)target_link_libraries(npr_demo ${OpenCV_LIBS})add_executable(opencv_version opencv_version.cpp)target_link_libraries(opencv_version ${OpenCV_LIBS})add_executable(pca pca.cpp)target_link_libraries(pca ${OpenCV_LIBS})add_executable(peopledetect peopledetect.cpp)target_link_libraries(peopledetect ${OpenCV_LIBS})add_executable(phase_corr phase_corr.cpp)target_link_libraries(phase_corr ${OpenCV_LIBS})add_executable(points_classifier points_classifier.cpp)target_link_libraries(points_classifier ${OpenCV_LIBS})add_executable(polar_transforms polar_transforms.cpp)target_link_libraries(polar_transforms ${OpenCV_LIBS})add_executable(qrcode qrcode.cpp)target_link_libraries(qrcode ${OpenCV_LIBS})add_executable(segment_objects segment_objects.cpp)target_link_libraries(segment_objects ${OpenCV_LIBS})add_executable(select3dobj select3dobj.cpp)target_link_libraries(select3dobj ${OpenCV_LIBS})add_executable(simd_basic simd_basic.cpp)target_link_libraries(simd_basic ${OpenCV_LIBS})add_executable(smiledetect smiledetect.cpp)target_link_libraries(smiledetect ${OpenCV_LIBS})add_executable(squares squares.cpp)target_link_libraries(squares ${OpenCV_LIBS})add_executable(stereo_calib stereo_calib.cpp)target_link_libraries(stereo_calib ${OpenCV_LIBS})add_executable(stereo_match stereo_match.cpp)target_link_libraries(stereo_match ${OpenCV_LIBS})add_executable(stitching stitching.cpp)target_link_libraries(stitching ${OpenCV_LIBS})add_executable(stitching_detailed stitching_detailed.cpp)target_link_libraries(stitching_detailed ${OpenCV_LIBS})add_executable(train_HOG train_HOG.cpp)target_link_libraries(train_HOG ${OpenCV_LIBS})add_executable(train_svmsgd train_svmsgd.cpp)target_link_libraries(train_svmsgd ${OpenCV_LIBS})add_executable(travelsalesman travelsalesman.cpp)target_link_libraries(travelsalesman ${OpenCV_LIBS})add_executable(tree_engine tree_engine.cpp)target_link_libraries(tree_engine ${OpenCV_LIBS})add_executable(videocapture_basic videocapture_basic.cpp)target_link_libraries(videocapture_basic ${OpenCV_LIBS})add_executable(videocapture_audio videocapture_audio.cpp)target_link_libraries(videocapture_audio ${OpenCV_LIBS})add_executable(videocapture_audio_combination videocapture_audio_combination.cpp)target_link_libraries(videocapture_audio_combination ${OpenCV_LIBS})add_executable(videocapture_camera videocapture_camera.cpp)target_link_libraries(videocapture_camera ${OpenCV_LIBS})add_executable(videocapture_gphoto2_autofocus videocapture_gphoto2_autofocus.cpp)target_link_libraries(videocapture_gphoto2_autofocus ${OpenCV_LIBS})add_executable(videocapture_gstreamer_pipeline videocapture_gstreamer_pipeline.cpp)target_link_libraries(videocapture_gstreamer_pipeline ${OpenCV_LIBS})add_executable(videocapture_image_sequence videocapture_image_sequence.cpp)target_link_libraries(videocapture_image_sequence ${OpenCV_LIBS})add_executable(videocapture_microphone videocapture_microphone.cpp)target_link_libraries(videocapture_microphone ${OpenCV_LIBS})add_executable(videocapture_obsensor videocapture_obsensor.cpp)target_link_libraries(videocapture_obsensor ${OpenCV_LIBS})add_executable(videocapture_openni videocapture_openni.cpp)target_link_libraries(videocapture_openni ${OpenCV_LIBS})add_executable(videocapture_realsense videocapture_realsense.cpp)target_link_libraries(videocapture_realsense ${OpenCV_LIBS})add_executable(videocapture_starter videocapture_starter.cpp)target_link_libraries(videocapture_starter ${OpenCV_LIBS})add_executable(videowriter_basic videowriter_basic.cpp)target_link_libraries(videowriter_basic ${OpenCV_LIBS})add_executable(warpPerspective_demo warpPerspective_demo.cpp)target_link_libraries(warpPerspective_demo ${OpenCV_LIBS})add_executable(watershed watershed.cpp)target_link_libraries(watershed ${OpenCV_LIBS})add_executable(3calibration 3calibration.cpp)target_link_libraries(3calibration ${OpenCV_LIBS})add_executable(application_trace application_trace.cpp)target_link_libraries(application_trace ${OpenCV_LIBS})add_executable(asift asift.cpp)target_link_libraries(asift ${OpenCV_LIBS})add_executable(audio_spectrogram audio_spectrogram.cpp)target_link_libraries(audio_spectrogram ${OpenCV_LIBS})add_executable(bgfg_segm bgfg_segm.cpp)target_link_libraries(bgfg_segm ${OpenCV_LIBS})add_executable(calibration calibration.cpp)target_link_libraries(calibration ${OpenCV_LIBS})add_executable(camshiftdemo camshiftdemo.cpp)target_link_libraries(camshiftdemo ${OpenCV_LIBS})add_executable(cloning_demo cloning_demo.cpp)target_link_libraries(cloning_demo ${OpenCV_LIBS})add_executable(cloning_gui cloning_gui.cpp)target_link_libraries(cloning_gui ${OpenCV_LIBS})add_executable(connected_components connected_components.cpp)target_link_libraries(connected_components ${OpenCV_LIBS})add_executable(contours2 contours2.cpp)target_link_libraries(contours2 ${OpenCV_LIBS})add_executable(convexhull convexhull.cpp)target_link_libraries(convexhull ${OpenCV_LIBS})add_executable(cout_mat cout_mat.cpp)target_link_libraries(cout_mat ${OpenCV_LIBS})add_executable(create_mask create_mask.cpp)target_link_libraries(create_mask ${OpenCV_LIBS})add_executable(dbt_face_detection dbt_face_detection.cpp)target_link_libraries(dbt_face_detection ${OpenCV_LIBS})add_executable(delaunay2 delaunay2.cpp)target_link_libraries(delaunay2 ${OpenCV_LIBS})add_executable(demhist demhist.cpp)target_link_libraries(demhist ${OpenCV_LIBS})add_executable(detect_blob detect_blob.cpp)target_link_libraries(detect_blob ${OpenCV_LIBS})add_executable(detect_mser detect_mser.cpp)target_link_libraries(detect_mser ${OpenCV_LIBS})add_executable(dft dft.cpp)target_link_libraries(dft ${OpenCV_LIBS})add_executable(digits_lenet digits_lenet.cpp)target_link_libraries(digits_lenet ${OpenCV_LIBS})add_executable(digits_svm digits_svm.cpp)target_link_libraries(digits_svm ${OpenCV_LIBS})add_executable(dis_opticalflow dis_opticalflow.cpp)target_link_libraries(dis_opticalflow ${OpenCV_LIBS})add_executable(drawing drawing.cpp)target_link_libraries(drawing ${OpenCV_LIBS})add_executable(distrans distrans.cpp)target_link_libraries(distrans ${OpenCV_LIBS})add_executable(edge edge.cpp)target_link_libraries(edge ${OpenCV_LIBS})add_executable(ela ela.cpp)target_link_libraries(ela ${OpenCV_LIBS})add_executable(em em.cpp)target_link_libraries(em ${OpenCV_LIBS})add_executable(essential_mat_reconstr essential_mat_reconstr.cpp)target_link_libraries(essential_mat_reconstr ${OpenCV_LIBS})
到此,就可以直接使用vs2022打开cmakelist生成全部示例的exe了
但是由于cpp都是使用的相对路径,所以需要把samples\data下的图片,全部复制到使用vs生成exe的路径下samples\cpp\out\build\x64-Debug(默认设置如下)到此配置全部结束,可以正常运行所有官网示例题外话:当然新建一个c++空项目加载cpp过来打开也是可以的,但是切换时候很不方便,就这样
-
【优秀论文解读】BoW3D: Bag of Words for Real-time Loop Closing in 3D LiDAR SLAM
论文简介本论文新颖性在于3D激光雷达中实时闭环且能够实时进行回环矫正词袋模型为BoW3D实时构建词袋效率...
来源: -
学习笔记——Spring中的AOP(AspectJ);Spring中AOP概述;Spring中AOP相关术语;AspectJ中切入点表达式;AspectJ中Jo
2023-01-18一、Spring中的AOP1、AspectJ(1)简介Java社区里最完整最流行的AOP框架在Spring2 0以上版本...
来源: 快资讯:opencv官网例程(4.7.0版本)运行示例
【优秀论文解读】BoW3D: Bag of Words for Real-time Loop Closing in 3D LiDAR SLAM
学习笔记——Spring中的AOP(AspectJ);Spring中AOP概述;Spring中AOP相关术语;AspectJ中切入点表达式;AspectJ中Jo
当前热讯:峰值21WQps、亿级DAU,小游戏《羊了个羊》是怎么架构的?
改款特斯拉Model 3即将登场:预计今年三季度投产
苹果版“望远镜”!曝iPhone 16 Pro/16 Ultra都会配备潜望长焦
科学家警告:2024或成全球史上最热年份
天天短讯!读编程与类型系统笔记10_泛型算法和迭代器
精选!【K哥爬虫普法】辛苦钱被中间商抽走八成,还因此锒铛入狱
育碧CEO让员工少花钱多做事 巴黎工作室将罢工抗议
苹果上海被强制执行1.44亿:这么多年还是第一次
世界通讯!微软否认“万人大裁员”:纯属谣言
天天讯息:7岁男孩爱撕倒刺致手指感染 医生提醒:处理不当会引发骨髓炎
全球今亮点!春节正常发货:仁和N95灭菌级口罩25片15.9元大促
世界要闻:网友3美元淘了一颗废品锐龙9 5900X:掰正针脚 点亮!
王晶武侠电影 《天龙八部之乔峰传》明日首映:年三十三大视频平台上线
Appuploader内测版本详解
热点评!使用Python的一维卷积
全球时讯:平民也能玩8GHz超频 技嘉B760主板奉上两大绝技:内存延迟大降7ns
被偷家了!德国人不买大众 把美系车特斯拉买成销冠
12nm后 DRAM怎么办?EUV光刻也不是万能药
每日时讯!安徽一劳斯莱斯婚车撞上石墩受损严重 博主:可向设置限宽人员索赔
《蚁人3:量子狂潮》角色海报发布 蚁人女儿貌美如花
象是哪个少数民族的生肖?十二生肖儿歌顺口溜
释迦牟尼佛成道日是哪一天?释迦牟尼佛的故事
国税地税税种有哪些?国税地税税种比例怎么分?
家有恶邻后面一句是什么?家有恶邻居怎么办?
最资讯丨学习笔记——AOP-代理模式
Python使用pyppeteer搭建网页截图api
三星移动硬盘质量怎么样?三星移动硬盘打不开怎么解决?
帅康燃气灶怎么样?帅康燃气灶打火后松手就熄灭怎么解决?
qq服务器拒绝发送离线文件是什么意思?qq服务器拒绝发送离线文件怎么办?
什么八字的人长得好看?什么八字的人长得丑?
光波炉的危害有哪些?光波炉与微波炉的区别
移动硬盘目录损坏如何恢复?移动硬盘目录损坏解决方法
今日快讯:官宣:F1中国站无缘2023赛季 已连续4年缺席
世界热文:开发预算突破7亿!网易400人团队“超级项目”《逆水寒》手游获批版号
天天快报!2023全球品牌价值500强出炉:苹果跌至第2 抖音杀入前10
全球观察:买一赠一:腾讯视频京东Plus会员联名年卡148元大促
《魔兽世界》电子骨灰盒出现bug:下载存档错误 账号被锁定
全球快消息!APM vs NPM
排面!小米登上《人民日报》头版
情侣拍照时戒指不慎掉入洱海 男生立即跳湖寻找:官方回应太危险不可取
天天热文:吃播账号“浪胃仙”被判属原公司:创始人涉职务侵占被捕
全球今日讯!学习笔记——Spring中组件扫描(包含扫描、排除扫描)、Spring中完全注解开发;Spring整合Junit4步骤
10辆特斯拉新车高速上集体燃烧 只剩一堆废铁架子
美国科技巨头依然寒气逼人 微软即将裁员:1万多人丢了工作
每日消息!《最后生还者》热播 收视率仅次于《龙之家族》
全球百事通!别人“借钱不还”怎么办?网友公布微信妙招 赶紧学起来
全球快资讯丨1月23日国服停!双方谈崩 网友吐槽暴雪绿茶:网易后到底谁来接盘?
世界热资讯!冬天加油枪都被冻住了 网友吐槽:国六B汽油里水加多了
当前关注:彻底闹掰!网易:暴雪提议蛮横 不符合商业逻辑
天天速看:价值10万土壤被快递弄丢 或致无法毕业 中通:找不到愿赔1000元 后续来了
央视点赞比亚迪:不惧冰雪 用技术发力高端
【天天时快讯】网友抱怨小米13前摄开孔太大!雷军回应:升级了3200万像素 无短板
数据类型的内置方法 可变类型与不可变类型
每日视讯:P1352 没有上司的舞会+P1122 最大子树和(树形DP入门)
丰收1年 挥霍掉400年的积累!东北黑土地不“黑”了
世界视讯!小米13打破安卓手机亮度纪录!雷军:显示效果特别好
环球微资讯!《魔兽世界》电子骨灰盒今日上线 网易提醒:小心安全隐患
三星旗下SEMES前员工窃密:卖给中国企业 获利6.5亿元
世界视讯!强制使用自家支付系统!苹果摊上事:俄罗斯开出12亿卢布罚单
设计模式之模板方法模式和策略模式
语音助手-智能家居
今日要闻!4K分辨率能否吼得住 RTX 3070Ti版戴尔游匣G16游戏挑战
世界最新:索尼独大的CMOS市场:;两匹中企黑马杀出来了
当前快看:年轻人第一辆车来了!传雷军亲自试驾小米汽车 标准三厢
当前关注:学习笔记——Servlet底层源码分析;Servlet接口;ServletConfig接口;
当前观点:宋浩老师专升本
全球速看:MySQL笔记01: MySQL入门_1.1 MySQL概述
速递!笔记本也不行了 将交出10年最差成绩单
天天快资讯:官方揭秘中国空间站:13年前秘密启动!至少用10年
【新要闻】专利暴露苹果野心!未来苹果全家桶将支持卫星通信
世界播报:漫威宇宙归来!两部大片《黑豹2》《蚁人3》国内定档:预告看个爽
全球最新:学习笔记——Spring中的注解;Spring中装配对象的注解;使用注解配置对象中属性
当前头条:node-sass安装问题
焦点热讯:2023首批版号出炉!米哈游双端大作《崩坏:星穹铁道》获批
讯息:特斯拉股价大跌!马斯克甩锅:未来可能跌得更狠
新动态:靠“车震”充电?宝马最新专利整活
世界观点:官方回应2000元帐篷房像45元招待所属实:游客称被气晕过去 双方已谅解
全球热讯:宏碁推出Nitro XV5 4K显示器:可超频至200Hz高刷
今日最新!LeetCode刷题:343. 整数拆分的完全背包写法解析
焦点报道:AcWing. 1073 树的中心
环球热点!湖北襄阳五分钟内连发两次地震:无破坏性 官方科普地震如何逃生
每日资讯:VScode和cmake的组合拳
手机硬件光追 为啥一直是PPT?
世界快资讯丨骁龙888站起来了!小米11系列MIUI 14稳定版就绪:流畅度暴增
简讯:《三体》电视剧第五集惊现《GTA》地图 网友:梦幻联动、双厨狂喜
滴滴回来了!但没有掌声
车主注意!今日起 全国严查酒驾醉驾
【天天报资讯】计算机基础 数据类型 流程控制 字符编码 文件操作
【新视野】ARP欺骗攻击:利用driftnet截获图片数据流
环球新消息丨剧毒蓝环章鱼再现 网友:山姆超市买的、没吃直接给扔了
今晚油价下调!春节出行加满一箱油将少花八元
全球今热点:日系车后期果然省钱!丰田10年维保花费4万元 美国车最低
环球短讯!25年经验资深机长驾驶 3D还原尼泊尔客机坠机过程:让人后怕
当前报道:三星Galaxy Book 3 Pro 360笔记本来了:12核i7 还有3K触摸屏
环球焦点!portswigger 靶场之 XSS 篇(上)
每日快播:JavaWeb开发中在服务器常用命令集锦
今日热文:学习笔记——Spring管理第三方bean;Spring中Bean的作用域;Spring中Bean的生命周期;Spring中bean的后置处理器;Sp