图像内的图像检测 [英] Image detection inside an image

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

问题描述

我通常玩一个名为 Burako.它有一些颜色从 1 到 13 的数字.

I usually play a game called Burako. It has some color playing pieces with numbers from 1-13.

比赛结束后,您必须计算积分.例如:

After a match finishes you have to count your points. For example:

 1 == 15 points
 2 == 20 points

我想创建一个应用程序,它可以为我拍照并计算碎片.所以我需要一些能够识别图像中图像的东西.

I want to create an app that takes a picture and count the pieces for me. So I need something that recognizes an image inside an image.

我正要阅读 OpenCV 因为有一个 Android 端口 但感觉应该有更简单的方法来做到这一点.

I was about to read about OpenCV since there is an Android port but it feels there should be something simpler to do this.

你怎么看?

推荐答案

我没有使用过 Android 端口,但我认为它在良好的照明条件下是可行的.

I had not used the Android port, but i think it's doable under good lighting conditions.

我会获得每个部分的最小边界框并相应地旋转它,以便您可以将其与模型图像进行比较.

I would obtain the minimal bounding boxes of each of the pieces and rotate it accordingly so you can compare it with a model image.

另一种方法是获取写在棋子上的数字的轮廓(我猜是彩色的)并与数字进行一些轮廓匹配.

Another way could be to get the contour of the numbers written on the piece ( which i guess are in color) and do some contour matching with the numbers.

Opencv 是一个庞大而复杂的框架,但它也适用于像这样的简单任务.

Opencv is a big and complex framework but it's also suitable for simple tasks like this.

这篇关于图像内的图像检测的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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