OpenCV 使用光流法检测物体运动

本文介绍了如何利用OpenCV的光流法来检测物体运动,通过示例代码和图片展示了运行效果,帮助读者理解这一技术。
摘要由CSDN通过智能技术生成
               

OpenCV 可以使用光流法检测物体运动,贴上代码以及效果。

// opticalflow.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"// Example 10-1. Pyramid Lucas-Kanade optical flow code///* *************** License:**************************   Oct. 3, 2008   Right to use this code in any way you want without warrenty, support or any guarentee of it working.   BOOK: It would be nice if you cited it:   Learning OpenCV: Computer Vision with the OpenCV Library     by Gary Bradski and Adrian Kaehler     Published by O'Reilly Media, October 3, 2008    AVAILABLE AT:      http://www.amazon.com/Learning-OpenCV-Computer-Vision-Library/dp/0596516134     Or: http://oreilly.com/catalog/9780596516130/     ISBN-10: 0596516134 or: ISBN-13: 978-0596516130       OTHER OPENCV SITES:   * The source code is on sourceforge at:     http://sourceforge.net/projects/opencvlibrary/   * The OpenCV wiki page (As of Oct 1, 2008 this is down for changing over servers, but should come back):     http://opencvlibrary.sourceforge.net/   * An active user group is at:     http://tech.groups.yahoo.com/group/OpenCV/   * The minutes of weekly OpenCV development meetings are at:     http://pr.willowgarage.com/wiki/OpenCV   ***********************************************
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值