女朋友扫雷很厉害,我昨天又败给她了。
当时我就在想,java有没有什么方法可以识别图片上的数字,然后通过这个途径,做一个破解扫雷的东西。
所以就在网上搜了一下,原来Asprise OCR(Optical character recognise,光学字符识别,貌似很牛逼的样子)可以做到。
今天上午试了一下,可以识别普通的数字与字母。现将过程记录下来,分享一下。
package org.liujia.basic.ocr; import java.awt.image.BufferedImage; import java.io.File; import java.io.IOException; import javax.imageio.ImageIO; import com.asprise.util.ocr.OCR; public class AspriseOCRTest { public static void main(String[] args) { File f = new File("d:\\1.png"); try { BufferedImage image = ImageIO.read(f); String s = new OCR().recognizeCharacters(image); System.out.println(s); } catch (IOException e) { e.printStackTrace(); } } }
图1 1.png内容
输出为:
3210
ABcDEFGHI K
明显,这个东西只能做一些简单的识别。不过还是挺牛的,至少我目前做不出来。
需要注意的是,项目需要导入aspriseOCR.jar,然后右键点击项目import ---file system--选择运行必须的三个dll文件。
这样就可以运行了,不过在运行的时候会出现一点问题。因为是试用版,所以会有弹窗,直接点击“否”就可以了。
相关推荐
asprise ocr 识别破解版,使用官方实例,内部包含源码,aocr_x64.dll等,破解弹窗问题
Asprise Ocr识别包 包含DEMO
[DllImport(@"F:\ocr\OCR\OCR 图片识别\AspriseOCR 4.0破解dll\AspriseOCR.dll", EntryPoint = "OCR", CallingConvention = CallingConvention.Cdecl)] public static extern IntPtr OCR(string file, int type); ...
利用AspriseOCR进行图片识别的库文件,简单的使用请参考我的博客“AspriseOCR图片识别”
资源有两块内容: 1:AspriseOcr.DLL 该3个dll为无弹窗dll。...2:AspriseOcr的VB.net实例,用于图像识别技术OCR。里面的源码及dll没有改过,你可以感受一下替换1的内容后的不同。 希望对程序猿的你有用。
利用AspriseOCR进行图片识别的简单Demo,简单的使用请参考我的博客“AspriseOCR图片识别”
人工神经网络算法的OCR识别,这是最新破解版。附上函数说明。 [DllImport("AspriseOCR.dll", EntryPoint = "OCR")] public static extern IntPtr OCR(string file, int type); [DllImport("AspriseOCR.dll", ...
上个月传了一个5.01的版本,但只...http://cdn.asprise.com/ocr/files/downloads/15/asprise-ocr-csharp-vb.net-15.3-trail.zip ----------- 另,因为我在项目中只是去进行验证码的识别,其它有什么问题我没做测试。
资源是C#源代码,带DLL可以直接运行。基于AspriseOCR识别的,识别英文和数字准确率比较高。
此次真正破解的是AspriseOCR.dll这个文件。根据跟踪运行主要汇编代码如下: 10006CF4 . 50 push eax ; /pSystemTime 10006CF5 . FF15 C0931110 call dword ptr ds:[; \GetSystemTime 10006D19 . 68 02000080 push 0x...
AspriseOCR图片文字识别 破解版
AspriseOCR 4 完美破解 识别验证码 经过测试可以用 char * OCR ( char* imagePath, int imageFileType)
已经去掉窗口弹出功能,相比较于tesseract(一堆的DLL,合计来几百MB),只有一个DLL,小巧,识别率高。...但AspriseOCR官网上下载的只是测试版,循环1000次发现有非常严重的内存泄漏(跟是否破解无关)。
Asprise-OCR4.0 图像识别控件,包含开发文档,里面含有VB例子。 已将OOXX。
IntPtr ptr = com_asprise_ocr_recognize(_handle.ToInt64(), [图片路径], -1, -1, -1, -1, -1, "all", "text", "", "|", "="); string s = Marshal.PtrToStringAnsi(ptr).Replace("\n", ""); ============ 官方下载...
delphi验证码识别aspriseOCR
数字图片识别 Asprise-OCR-Java 破解版 Eclipse工程 开发实例代码
很好用的一个工具,本人用C#已经做出自己想用的东西了
验证码自动识别代码-最新2012版AspriseOCR 2012版AspriseOCR 32位 64位 验证码自动识别 验证码自动识别控件,代码,非常经典