简体   繁体   English

使用OpenCV检测实时视频帧中LED阵列的每个LED

[英]Detect each LED of LED array in real time video frames with OpenCV

I have an array composed of LEDs whose size is 64*64. 我有一个由大小为64 * 64的LED组成的阵列。 Every LED can light up in various colors and change its color very quickly. 每个LED都可以以各种颜色点亮,并且可以快速更改其颜色。 My ultimate goal is : for every frame received by a webcam, I want to be able to "extract" the array of leds from the frame and store the color code of each led in an array of integers in the computer. 我的最终目标是:对于网络摄像头接收到的每个帧,我希望能够从帧中“提取” led阵列并将每个led的颜色代码存储在计算机中的整数数组中。

So I guess that what I will need is first a way to identify the LEDs array on an image. 因此,我想我首先需要的是一种识别图像上的LED阵列的方法。 Then a way to individually Identify every LED of the array. 然后是一种单独识别阵列中每个LED的方法。 And finally, a way to extract the color code of the LED (but that really looks like the easy part). 最后,一种提取LED颜色代码的方法(但实际上看起来很简单)。

I am using C++ and OpenCV. 我正在使用C ++和OpenCV。 Can you provide me some guideliness, functions that would be useful, or even simply ideas ? 您能为我提供一些有用的准则,功能,甚至只是一些想法吗? I'm quite a beginner with OpenCV, I only realized one project consisting in improving the snake contour algorithm for detecting contours on a image. 我是OpenCV的初学者,我只实现了一个项目,该项目涉及改进用于检测图像轮廓的蛇形轮廓算法。 So I know at least the basics of OpenCV. 所以我至少知道OpenCV的基础知识。

I think that your task is similar to reading colors of rubik's cube edge. 我认为您的任务类似于读取魔方边缘的颜色。

You can find good approach here: http://www.cs.ubc.ca/~andrejk/525project/ 您可以在这里找到好的方法: http : //www.cs.ubc.ca/~andrejk/525project/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM