简体   繁体   English

用于图像识别的模式识别

[英]Pattern recognition for image recognition

I need to write a program that recognize some patterns in different photos. 我需要编写一个程序来识别不同照片中的某些图案。 I wrote a program that take a photo as input and creates another image with the edges of previous photo. 我编写了一个程序,该程序以照片作为输入,并使用前一张照片的边缘创建另一个图像。 Now I'm stuck with pattern detection. 现在,我被模式检测所困扰。 I tried to take 2d arrays of pixel and mark each possible pattern by giving each pixel a value from 0 to n(maximum number of pixel in a sequence). 我尝试获取2d像素数组,并通过给每个像素一个从0到n(序列中最大像素数)的值来标记每个可能的图案。 Then I take the objects that the program already knows and see which one contains the more patterns that were found. 然后,我获取程序已经知道的对象,并查看哪个包含找到的更多模式。

The problem is that beside efficiency, the program won't work if the image is upside down(If I train it with a photo and then flip the photo, the program won't recognize it). 问题在于,除了效率外,如果图像倒置,该程序将无法工作(如果我先训练有照片然后翻转照片,程序将无法识别它)。

Can you tell me some methods to fulfill my task, or some good tutorials or courses that explain the process a lot deeper than just:"search for patterns"? 您能告诉我一些方法来完成我的任务吗,或者告诉我一些好的教程或课程,它们对过程的解释远不只是“搜索模式”?

Your problem description is very general. 您的问题描述非常笼统。 To get better answers provide some input data characteristics as well as describe what kind of patterns you're looking for. 为了获得更好的答案,请提供一些输入数据特征并描述您要寻找的模式。

What could be useful in general problem of pattern recognition, is using neural networks. 在模式识别的一般问题中可能有用的是使用神经网络。 For example you could check the first chap. 例如,您可以检查第一章。 of this book http://neuralnetworksanddeeplearning.com/chap1.html 本书http://neuralnetworksanddeeplearning.com/chap1.html

There's simple example of pattern recognition for handwritten digits. 有一个简单的手写数字模式识别示例。 In your case for solving rotation problem, you'd probably have to rotate training example as well. 就解决旋转问题而言,您可能还必须旋转训练示例。

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

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