如何从图像中读取符号 [英] How do I read symbols from an image
问题描述
好吧,我想要实现的是从图像中读取某些符号然后将其转换为普通字符串。
现在的程序是从窗口创建一个位图,现在需要查看创建的位图并找到我要查找的符号,我有另一个包含所有符号的位图。
我不知道到底要去哪里,我可以改变位图只能制作这些符号所在位置的图像,因为它们总是以不同的顺序位于同一位置。
任何领先的去哪里都会受到赞赏。
我的尝试:
我不知道该怎么做,但我想在块上切割创建的位图,因为每个符号是一行6x11像素的块,然后对位图做同样的事情与它可以找到的所有符号。在这之后我只需要使用switch语句进行比较。
图像识别是一项非常复杂的任务。以下是关于此主题的Google搜索:微软图像识别 - Google搜索 [ ^ ]
以上是搜索上面的几个链接:
* 比较五大计算机视觉API - Gaurav Oberoi [ ^ ]
* 计算机视觉 - 图像处理和分析| Microsoft Azure [ ^ ]
* 实验室图像识别| Microsoft Docs [ ^ ]
Alright, so what I am trying to achieve is to read certain symbols from an image and then converting that to a normal string.
The program right now is creating a bitmap from the window, it now needs to go over the created bitmap and find the symbols I am looking for, I've got another bitmap that has all said symbols.
I don't know where to go exactly, I could change the bitmap to only make an image of where those symbols would be at, as they are always on the same position just in a different order.
Any lead on where to go would be appreciated.
What I have tried:
I don't know what to do exactly, but I figured to chop the created bitmap up on blocks, as each symbol is a block of 6x11 pixels in a row, and then doing the same to the bitmap with all symbols that it could find. After doing that I would just have to use a switch statement for comparing.
Image recognition is a very complex task. Here is a Google Search on the subject: microsoft image recognition - Google Search[^]
And here are a couple of links from above search:
* Comparing the Top Five Computer Vision APIs – Gaurav Oberoi[^]
* Computer vision – Image processing and analytics | Microsoft Azure[^]
* Hands-on Labs Image Recognition | Microsoft Docs[^]
这篇关于如何从图像中读取符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!