从BitmapImage获取base64字符串 [英] Get base64 string from BitmapImage

查看:314
本文介绍了从BitmapImage获取base64字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何从Silverlight中的BitmapImage获取base64字符串

How can I get Get base64 string from BitmapImage in silverlight

推荐答案

您需要的是OCR: http://en.wikipedia.org/wiki/Optical_character_recognition [ ^ ]。



您对base64字符串感兴趣的事实并没有太多改变问题。它变得更容易一点,因为字符数较少: http://en.wikipedia.org/wiki/Base64 [ ^ ]。



OCR问题已经成功解决,但仍然是一个非常困难的问题;并且很难找到好的源代码。我会告诉你这个:事实上,你以某种方式遇到了位图中有一些base64字符串的情况是高度病态的。即使这不是你的错,这也是一个很大的丑陋错误,没有别的。无论你有多大的成功帮助,你只是想做坏事。所以,它对OCR的认真讨论对我来说并不是很有趣。因此,我只会给你一个链接到我过去的答案:



我需要一个ocr用于摄像头图像捕获 [ ^ ]。



在该页面上,您将看到更多链接。如果它可以帮到你,我将非常高兴。



它有一个你可以使用的.NET包装器:http://www.pixel-technology.com/freeware/tessnet2/ [ ^ ]。



因为字符集非常有限,一个重要的产品要知道,Tesseract:

http://en.wikipedia.org/wiki/ Tesseract_%28软件%29 [ ^ ]。





-SA
What you need is called OCR: http://en.wikipedia.org/wiki/Optical_character_recognition[^].

The fact that you are interested in base64 string, does not change the problem much. It becomes just a bit easier, just because the number of characters is less: http://en.wikipedia.org/wiki/Base64[^].

The OCR problem is very successfully solved, but still, this is a very difficult problem; and a good source code is hard to find. I''ll tell you this: the mere fact that you somehow came to the situation where you have some base64 string in a bitmap is highly pathological. Even if this is not your fault, this is a big ugly fault, nothing else. You are just trying to do bad business, no matter how much of success you are going to help. So, it makes serious discussion of the OCR not really interesting to me. Therefore, I''ll just give you one link to my past answer:

i need an ocr for a camera image capture[^].

On that page, you will see further links. I''ll be very glad if it can help you.

It has a .NET wrapper you can use: http://www.pixel-technology.com/freeware/tessnet2/[^].

As the character set is very limited, one important product to know, Tesseract:
http://en.wikipedia.org/wiki/Tesseract_%28software%29[^].


—SA


这篇关于从BitmapImage获取base64字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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