使用网络摄像头进行太阳追踪 [英] Using webcam for sun tracking

查看:93
本文介绍了使用网络摄像头进行太阳追踪的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要设计一个太阳能追踪器太阳的图片并分析其在天空中的位置(类似于以下内容: http://www.cs.cmu.edu/~meteorite/Antarctica97/SunTracking/) .我从未开发过基于网络摄像头/机器视觉的应用程序,因此我需要一些有关如何解决此问题的建议;一世 可以据此学习并从那里得到帮助.

I need to design a solar tracker that takes a picture of the sun and analyzes its position in the sky (something similar to this: http://www.cs.cmu.edu/~meteorite/Antarctica97/SunTracking/). I have never developed webcam/machine vision based applications and so I need some advice on how to approach this issue; I can learn accordingly and get things going from there. 

我打算将摄像头放在双轴定日镜上.该网络摄像头频繁拍摄天空快照(例如,每分钟拍摄一次).我打算的申请 开发应该分析每个快照,定位太阳并计算其质心;它本质上标识了天空中最亮的点(在位图框架中),并试图标识其形状(希望它将变成一个圆形). 由于这是一个基本的网络摄像头应用程序,因此我假设我不需要研究机器视觉算法等.我应该学习什么主题来实现这一目标?据我了解,我应该学习如何使用DirectShow连接网络摄像头 并获取位图和hellip;.如何分析位图和hellip ;?应该有一些算法来识别最亮的斑点.我可以为此使用opencv吗?是否有关于该主题的书籍,我应该从头开始.我看了一些亚马逊的书. 我只是不知道从哪里开始.任何建议都将受到高度赞赏… 谢谢

I intend to put a webcam on a dual axis heliostat. This webcam takes snap shots of the sky at frequent intervals (say once every minute). The application that I intend to develop is supposed to analyze each snapshot, locate the sun and compute its centroid; it essentially identifies the brightest spot in the sky (in the bitmap frame) and tries to identify its shape (hopefully it is going to turn out to be a circle). Since this is a basic webcam application, I am assuming that I don’t need to study machine vision algorithms etc… What topics should I learn to achieve this…? As far as I understand, I should learn how to interface a webcam using directshow and grab bitmaps…. How can I analyze the bitmaps…? There should be some algorithms to identify the brightest spot…. Can I use opencv for this? Are there any books that I should start off on this topic. I looked at some books in amazon; I just don’t know where to start. Any advice is highly appreciated… Thanks,

> 推荐答案

从摄像机发出的实时视觉信息基本上是一系列图像或帧. Direct Show可让您实时捕获这些实时图像并对其进行处理.

The live visual information that comes out of camera are basically a series of images or frames. Direct Show lets you capture these live images in the real time and lets you process them.

您所期待的是图像处理,对象识别和跟踪领域. Direct Show可以让您实时地实时完成这三个操作,并且您需要以下内容才能开始使用

Here what you are looking forward is the area of image processing, object recognition and tracking. Direct Show lets you do all the three in real time and you need the following things to get started

1)源过滤器-通常与您购买的摄像机一起提供,并在安装摄像机驱动程序时安装

1) a Source filter  - this comes usually along with the camera you purchase and gets installed when you install camera drivers

2)变换滤镜-它必须是就位变换滤镜,它可以对对象进行图像处理和跟踪(此处为太阳).您可以购买此类过滤器,也可以学习图像处理和跟踪的基础知识并尝试构建 一个这样的过滤器.

2) a Transform Filter - this has to be an in-place transform filter that does the image processing  and tracking of the object ( Here sun is the object). You can either purchase such filters or learn basics of image processing and tracking and try building one such a filter.

一旦有了以上两个,就可以将它们连接起来并进行查看(跟踪).跟踪过滤器可以实现将实时返回对象(太阳)坐标的方法.这将帮助您相应地定位双轴定日镜.

Once you have the above two, you can just connect them and see it happen (tracking). The tracking filter can implement methods that will return co-ordinates of the object(sun) in real time. This will help you position the dual axis Heliostat accordingly.

,是,您可以在就地转换过滤器中使用OpenCV,您将开发并执行图像处理.如果您是图像处理的新手,OpenCV可以为您提供许多图像处理方法.

and YES you can use OpenCV inside the in-place transform filter, you are about to develop and perform image processing. If you are newbie to image processing OpenCV can help you with lot of image processing methods.

我建议您先先连接过滤器,然后再学习开发DirectShow转换过滤器,以学习如何构建DirectShow应用程序.

I suggest you to learn How to build directshow applications by just connecting the filters first and then learn Developing a DirectShow transform Filter.

 


这篇关于使用网络摄像头进行太阳追踪的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆