Ernestpneug 发表于 昨天 23:16

利用微信OCR的简单离线截图ocr c#版

昨天看到大牛做的《基于AARDIO开发的无需联网准确快速实现文字识别-微信OCR离线版》,也试着用c#做了个简单的,也没有美化,效果如下:


操作简单只有一个截图按钮,点击截图--框选--双击框选内容

https://pan.baidu.com/s/1qKrS4wZOC-gw2e0JP1yu1Q?pwd=52pj(已失效,请下载新版本)


二次改版:
应吾友要求增加了快捷键,并进行了一次美化
https://attach.52pojie.cn/forum/202501/13/143432pp9o7gt2i7qt39s6.png

下载地址:https://pan.baidu.com/s/1KcFTAZr2Z4q2Q2J5TJCZnA?pwd=52pj 提取码: 52pj

huoxianghui913 发表于 昨天 23:16

快捷键功能已更新https://pan.baidu.com/s/1KcFTAZr2Z4q2Q2J5TJCZnA?pwd=52pj 提取码: 52pj

风之影赫 发表于 昨天 23:17

有关调用实时(JIT)调试而不是此对话框的详细信息,
请参见此消息的结尾。

************** 异常文本 **************
Newtonsoft.Json.JsonReaderException: Error reading JObject from JsonReader. Path '', line 0, position 0.
   at Newtonsoft.Json.Linq.JObject.Load(JsonReader reader, JsonLoadSettings settings)
   at Newtonsoft.Json.Linq.JObject.Parse(String json, JsonLoadSettings settings)
   at Newtonsoft.Json.Linq.JObject.Parse(String json)
   at WXOCR.Form1.PictureBoxExample() in E:\截图OCR\Form1.cs:line 99
   at WXOCR.Form1.button1_Click(Object sender, EventArgs e) in E:\截图OCR\Form1.cs:line 66
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.PerformClick()
   at WXOCR.Form1.GlobalKeyProcess() in E:\截图OCR\Form1.cs:line 144
   at WXOCR.Form1.WndProc(Message& m) in E:\截图OCR\Form1.cs:line 160
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(HWND hWnd, MessageId msg, WPARAM wparam, LPARAM lparam)


************** 已加载的程序集 **************
System.Private.CoreLib
    程序集版本: 8.0.0.0
    位置: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.20\System.Private.CoreLib.dll
----------------------------------------
WXOCR
    程序集版本: 1.0.0.0
    位置: D:\green tools\利用微信OCR的简单离线截图ocr-C井版net8.0-windows\WXOCR.dll
----------------------------------------
System.Runtime
    程序集版本: 8.0.0.0
    位置: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.20\System.Runtime.dll
----------------------------------------
System.Windows.Forms
    程序集版本: 8.0.0.0
    位置: C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\8.0.20\System.Windows.Forms.dll
----------------------------------------
System.ComponentModel.Primitives
    程序集版本: 8.0.0.0
    位置: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.20\System.ComponentModel.Primitives.dll
----------------------------------------
System.Windows.Forms.Primitives
    程序集版本: 8.0.0.0
    位置: C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\8.0.20\System.Windows.Forms.Primitives.dll
----------------------------------------
System.Drawing.Primitives
    程序集版本: 8.0.0.0
    位置: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.20\System.Drawing.Primitives.dll
----------------------------------------
System.Collections.Specialized
    程序集版本: 8.0.0.0
    位置: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.20\System.Collections.Specialized.dll
----------------------------------------
System.Runtime.InteropServices
    程序集版本: 8.0.0.0
    位置: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.20\System.Runtime.InteropServices.dll
----------------------------------------
System.Threading
    程序集版本: 8.0.0.0
    位置: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.20\System.Threading.dll
----------------------------------------
System.Diagnostics.TraceSource
    程序集版本: 8.0.0.0
    位置: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.20\System.Diagnostics.TraceSource.dll
----------------------------------------
System.Collections
    程序集版本: 8.0.0.0
    位置: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.20\System.Collections.dll
----------------------------------------
System.Drawing.Common
    程序集版本: 8.0.0.0
    位置: C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\8.0.20\System.Drawing.Common.dll
----------------------------------------
Microsoft.Win32.Primitives
    程序集版本: 8.0.0.0
    位置: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.20\Microsoft.Win32.Primitives.dll
----------------------------------------
System.ComponentModel.EventBasedAsync
    程序集版本: 8.0.0.0
    位置: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.20\System.ComponentModel.EventBasedAsync.dll
----------------------------------------
System.Threading.Thread
    程序集版本: 8.0.0.0
    位置: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.20\System.Threading.Thread.dll
----------------------------------------
Accessibility
    程序集版本: 4.0.0.0
    位置: C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\8.0.20\Accessibility.dll
----------------------------------------
System.ComponentModel.TypeConverter
    程序集版本: 8.0.0.0
    位置: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.20\System.ComponentModel.TypeConverter.dll
----------------------------------------
System.ComponentModel
    程序集版本: 8.0.0.0
    位置: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.20\System.ComponentModel.dll
----------------------------------------
System.Resources.Extensions
    程序集版本: 8.0.0.0
    位置: C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\8.0.20\System.Resources.Extensions.dll
----------------------------------------
System.Memory
    程序集版本: 8.0.0.0
    位置: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.20\System.Memory.dll
----------------------------------------
System.Drawing
    程序集版本: 8.0.0.0
    位置: C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\8.0.20\System.Drawing.dll
----------------------------------------
System.Collections.Concurrent
    程序集版本: 8.0.0.0
    位置: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.20\System.Collections.Concurrent.dll
----------------------------------------
System.ObjectModel
    程序集版本: 8.0.0.0
    位置: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.20\System.ObjectModel.dll
----------------------------------------
System.Numerics.Vectors
    程序集版本: 8.0.0.0
    位置: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.20\System.Numerics.Vectors.dll
----------------------------------------
Microsoft.Win32.SystemEvents
    程序集版本: 8.0.0.0
    位置: C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\8.0.20\Microsoft.Win32.SystemEvents.dll
----------------------------------------
System.Linq
    程序集版本: 8.0.0.0
    位置: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.20\System.Linq.dll
----------------------------------------
System.Collections.NonGeneric
    程序集版本: 8.0.0.0
    位置: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.20\System.Collections.NonGeneric.dll
----------------------------------------
System.Runtime.Serialization.Formatters
    程序集版本: 8.0.0.0
    位置: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.20\System.Runtime.Serialization.Formatters.dll
----------------------------------------
mscorlib
    程序集版本: 4.0.0.0
    位置: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.20\mscorlib.dll
----------------------------------------
Newtonsoft.Json
    程序集版本: 13.0.0.0
    位置: D:\green tools\利用微信OCR的简单离线截图ocr-C井版net8.0-windows\Newtonsoft.Json.dll
----------------------------------------
System.Linq.Expressions
    程序集版本: 8.0.0.0
    位置: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.20\System.Linq.Expressions.dll
----------------------------------------
System.Runtime.Loader
    程序集版本: 8.0.0.0
    位置: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.20\System.Runtime.Loader.dll
----------------------------------------
System.Windows.Forms.resources
    程序集版本: 8.0.0.0
    位置: C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\8.0.20\zh-Hans\System.Windows.Forms.resources.dll
----------------------------------------
System.Diagnostics.StackTrace
    程序集版本: 8.0.0.0
    位置: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.20\System.Diagnostics.StackTrace.dll
----------------------------------------
System.Reflection.Metadata
    程序集版本: 8.0.0.0
    位置: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.20\System.Reflection.Metadata.dll
----------------------------------------
System.Collections.Immutable
    程序集版本: 8.0.0.0
    位置: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.20\System.Collections.Immutable.dll
----------------------------------------
System.IO.MemoryMappedFiles
    程序集版本: 8.0.0.0
    位置: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.20\System.IO.MemoryMappedFiles.dll
----------------------------------------
System.Text.Encoding.Extensions
    程序集版本: 8.0.0.0
    位置: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.20\System.Text.Encoding.Extensions.dll
----------------------------------------

************** JIT 调试 **************

风之影赫 发表于 昨天 23:18

支持一下

huoxianghui913 发表于 昨天 23:18

支持win7系统吗

huoxianghui913 发表于 昨天 23:19

试试,不知道对表格的识别效果怎么样呢

huoxianghui913 发表于 昨天 23:19

支持一下~~!!

huoxianghui913 发表于 昨天 23:20

感谢分享。。。。。。

huoxianghui913 发表于 昨天 23:20

多屏电脑只能截主显示器屏幕。按ESC退不出来

寒哥Gh61ac8 发表于 昨天 23:21

蹲一个后续更新~
页: [1] 2
查看完整版本: 利用微信OCR的简单离线截图ocr c#版