我的图像,从一现场摄像头拍摄,我希望能够检测图像中的特定对象,并提取该部分的它做一些进一步的处理。
I have an image, taken from a live webcam, and I want to be able to detect a specific object in the image and extract that portion of it to do some further processing.
具体而言,图像将是一个游戏板,我们先来说说这个问题,这是一个数独游戏板的目的。这里是一个样本图片。
Specifically, the image would be of a game board, let's say for the purposes of this question that it's a Sudoku game board. Here is a sample image.
我最初的做法是寻找对比的地区,从那里工作了,但我似乎结束了很多潜在的边缘(许多错误),并没有真正的线索,如何制定出哪些是那些其实我是想!
My initial approach was to look for contrasting areas and work it out from there, but I seem to end up with a lot of potential edges (many erroneous) and no real clue as to how to work out which ones are the ones I actually want!
是否有任何的算法,图书馆,code样品,甚至只是高见在那里,至于我怎么会去寻找和提取图像的相关部分?
Are there any algorithms, libraries, code samples, or even just bright ideas out there, as to how I would go about finding and extracting the relevant part of the image?
使用免费 AForge.Net 的图像处理库这一点。有一吨的很酷的东西玩。
use the free AForge.Net image processing library for this. there's a ton of cool stuff to play with.