骰子面值识别 [英] Dice face value recognition

查看:568
本文介绍了骰子面值识别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想建立一个简单的应用程序,它会识别两个6面骰子的值。我在找一些一般的指针,甚至可能在一个开源项目。

I’m trying to build a simple application that will recognize the values of two 6-sided dice. I’m looking for some general pointers, or maybe even an open source project.

两个骰子将分别是黑色和白色,白色和黑色的点。它们对摄像机距离将始终是相同的,但他们的演奏表面上的位置和取向将是随机的。

The two dice will be black and white, with white and black pips respectively. Their distance to the camera will always be the same, but their position and orientation on the playing surface will be random.

结果
(不是最好的例子,表面会有更鲜明的色彩和阴影将会消失)

我对开发这个没有任何经验一种识别软件,但我会假设,关键是要通过搜索与一个主导的白色或黑色的方形轮廓第一隔离面(图像的其余部分,即表/打面,将明显不同的颜色) ,然后分离为计数的点子。 。阴影将自上而下照明被淘汰。

I have no prior experience with developing this kind of recognition software, but I would assume the trick is to first isolate the faces by searching for the square profile with a dominating white or black color (the rest of the image, i.e. the table/playing surface, will in distinctly different colors), and then isolate the pips for the count. Shadows will be eliminated by top down lighting.

我希望的描述的场景是如此的简单(读:常见)它甚至可以作为一个入门演习对OCR技术或类似的计算机视觉挑战的开发人员。

I’m hoping the described scenario is so simple (read: common) it may even be used as an "introductory exercise" for developers working on OCR technologies or similar computer vision challenges.

更新:

我做了一些进一步的谷歌搜索和跨出来的这个视频这奇怪的是的究竟我要找的。这似乎也是它的 OpenCV的项目是我最好的选择,到目前为止,我会试着用这个用它的其他项目,OpenCVDotNet Emgu CV

I did some further googling and came across this video which strangely enough is exactly what I'm looking for. It also seems it's the OpenCV project is my best bet so far, I'll try and use it with this other project, OpenCVDotNet or Emgu CV.

更新:结果
仍苦苦挣扎,无法获得Emgu CV工作。

Update:
Still struggling, can't get Emgu CV to work.

理念,指针,思想等仍然非常欢迎!

Ideas, pointers, thoughts, etc are still very much welcome!

推荐答案

虽然形象培训是不平凡为@布赖恩说,这实际上是一个非常简单的程序编写。你需要做的是制定骰子哈尔分类。您将需要6个分类共有。该分类是关键,良好的形象再认识,并哈尔分类是最好的现在是正确的有。他们需要很长的时间做。这里有让你用哈尔级联熟悉一些很好的链接:

While image training is "non-trivial" as @Brian said, that will actually be a pretty easy program to write. What you need to do is develop haar classifiers for the dice. You will need 6 classifiers total. The classifiers are the key to good image recongnition, and haar classifiers are the best there are right now. They take a long time to make. Here are some good links to get you familiarized with haar cascades:

http://www.computer-vision-software.com/blog/2009/11/faq-opencv-haartraining/

http://www.cognotics.com/opencv/docs/1.0/haartraining。 HTM

HTTP://note.sonots。 COM / SciSoftware / haartraining.html

看看这个家伙的YouTube视频,然后从他在视频中提供的链接下载他的源代码,看看他是如何应用在EmguCV级联文件。 ,这将是东西给你建立在

Check out this guys youtube video and then download his source from the link he provides in the video to see how he applied the cascade files in EmguCV. It will be something for you to build on.

HTTP:/ /www.youtube.com/watch?v=07QAhRJmcKQ

本网站的帖子链接到一些来源可爱的小工具,增添了些许的自动化重茬图像和创建所需创建哈尔级联的索引文件。我用它几个月前,我无法得到它的工作的权利,但我修改它,它的哈尔(不HMM)伟大的工作。如果你想要的版本我修改后回来,我会得到它给你。

This site posts the link to some source for nice little tool that adds a little automation to cropping the images and creating the index files needed for the creation of the haar cascades. I used it a few months back and I couldn't get it to work right, but I modified it and it worked great for haar (not HMM). If you want the version I modified post back and I will get it to you.

http://sandarenu.blogspot.com/2009/03/opencv-haar-training-resources.html

这篇关于骰子面值识别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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