OpenCV 2.1.0 with Visual Studio 2010(1)

本文详细介绍了如何在Visual Studio 2010中配置并使用OpenCV 2.1进行计算机视觉开发。包括安装步骤、环境配置及常见问题解决方法。

如果Debug下不能运行,则切换到Release版本下!!!(以前网上查到,不明真相)

实践中可用的方案1:

http://blog.aguskurniawan.net/post/OpenCV-210-with-Visual-Studio-2010.aspx


OpenCV 2.1.0 with Visual Studio 2010

By Agus Kurniawan23. 六月 2010 00:24

OpenCV (Open Source Computer Vision) is a library of programming functions for real time computer vision. Two months ago OpenCV released the new version of OpenCV 2.1. On this article, I would like to share how to use OpenCV with Visual Studio 2010.

System Requirements

  • Download OpenCV 2.1 or the latest, [V]
  • Download Visual Studio 2010, you can download an express edition [V]

I use Windows 7 x64 as development environment.

OpenCV 2.1 Installation

After you downloaded OpenCV library. Click setup file and then you’ll get a dialog as below

inst1

Click Next button

inst2

Click I Agree button

inst3

Choose Do not add OpenCV to the system PATH (you may choose any option) and then click Next button

inst4

Choose Destnation Folder that you want to store OpenCV files. After that, click Next button

inst5

Click Next button

inst6

Select the type of install Full. After that click Install button. Installer will install OpenCV library on your system.

inst7

Click Finish button to finish installation process.

Now you can see OpenCV 2.1 on your system. You can check on folder where OpenCV installed

openCV

Visual Studio 2010 Project Configuration

After you created a C/C++ project on Visual Studio 2010 you should configure OpenCV on Visual Studio 2010. Open properties dialog of project. Assume your OpenCV 2.1 installed on C:/OpenCV2.1

On properties dialog, click C/C++ –>General and entry C:/OpenCV2.1/include/opencv in Additional Include Directories

conf1

On properties dialog, click C/C++ –>Advanced and select Compile As. If you prefer C compiler, use Compile as C Code (/TC) 

conf2

On properties dialog, click Linker –>General and entry C:/OpenCV2.1/lib in Additional Library Directories

conf3

On properties dialog, click Linker –>Input and entry all *.lib files in Additional Dependencies. If you’re running on debug mode, try to entry all *d.lib files

 conf4

conf5

After you do all tasks above, click OK button on Propeties dialog.

Testing

For testing purpose, try to write this code (*note* change image file c:/temp/monas.jpg)

#include <stdio.h>
#include <highgui.h>
int main( int argc, char** argv ) 
{	
	IplImage* img = cvLoadImage( "c:/temp/monas.jpg",1 );
	cvNamedWindow("Monas", CV_WINDOW_AUTOSIZE );
	cvShowImage("Monas", img );
	cvWaitKey(0);
	cvReleaseImage( &img );
	cvDestroyWindow("Monas");
} 

Compile and run it. If success, you get image viewer dialog as below

monas

when you run this code from Visual Studio  and get error as below. Try to copy *.dll from OpenCV (C:/OpenCV2.1/bin) on folder where your executable file was located

error

 

Donate this article:   

当前评分 4.8 , 共有 4 人参与

 

FaceCat-Kronos是一款由花卷猫量化团队基于清华大学Kronos开源架构开发的金融预测系统。该系统融合了深度学习方法,通过对证券历史行情进行大规模预训练,构建了能够识别市场微观结构的分析模型。该工具的核心功能在于为做市商及短线交易者提供高精度的价格形态规律推演,从而优化其交易策略的制定过程。 从技术架构来看,该系统依托Kronos框架的高性能计算特性,实现了对海量金融时序数据的高效处理。通过引入多层神经网络,模型能够捕捉传统技术分析难以察觉的非线性关联与潜在模式。这种基于人工智能的量化分析方法,不仅提升了市场数据的信息提取效率,也为金融决策过程引入了更为客观的算法依据。 在行业应用层面,此类工具的演进反映了金融科技领域向数据驱动范式转型的趋势。随着机器学习算法的持续优化,量化预测模型在时序外推准确性方面有望取得进一步突破,这可能对市场定价机制与风险管理实践产生结构性影响。值得注意的是,在推进技术应用的同时,需同步完善数据治理框架,确保模型训练所涉及的敏感金融信息符合隐私保护与合规性要求。 总体而言,FaceCat-Kronos代表了金融分析工具向智能化方向演进的技术探索。它的发展既体现了开源计算生态与专业领域知识的有效结合,也为市场参与者提供了补充传统分析方法的算法工具。未来随着跨学科技术的持续融合,此类系统有望在风险控制、策略回测等多个维度推动投资管理的科学化进程。 资源来源于网络分享,仅用于学习交流使用,请勿用于商业,如有侵权请联系我删除!
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值