明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1988|回复: 18

[源码] ocr图片识别研究

  [复制链接]
发表于 2023-6-10 08:53 | 显示全部楼层 |阅读模式
购买主题 已有 17 人购买  本主题需向作者支付 3 个明经币 才能浏览
"觉得好,就打赏"
还没有人打赏,支持一下
发表于 2023-6-10 11:32 | 显示全部楼层
dhl 发表于 2023-6-10 10:14
我win10上找不到OCR.EXE

可以试试这个,https://github.com/zh-h/Windows.Media.Ocr.Cli


.net v4.5.1
WIN10版本要求
Build 10240, Build 10586, Build 14383, Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621

说明
===========================================================================================
Windows.Media.Ocr.Cli
Ocr 命令行工具, 本地调用 UWP API Windows.Media.Ocr 支持多种语言识别。

使用
下载
https://github.com/zh-h/Windows.Media.Ocr.Cli/releases

命令行执行
PS C:\Tools>Windows.Media.Ocr.Cli.exe .\x.png
9·哪位科学家发现了电磁感应现象?
PS C:\Tools>Windows.Media.Ocr.Cli.exe -o .\res.txt .\x.png
-> 将内容输出到res.txt中
查看帮助
PS C:\Tools>Windows.Media.Ocr.Cli.exe -h
Usage: Windows.Media.Ocr.Cli.exe [options...] <image file path>
Example: Windows.Media.Ocr.Cli.exe -o c:\res.txt x.png
-l      <language>  Default:zh-Hans-CN   Specify language to reconizing
-o      <output_path> Output the resalut to a file, It should end with a file name, such as res.txt.
-s      Show all supported languages
-h      Show help like this
运行依赖
需要 Windows 10 系统,其他平台没有测试,理论上可以支持所有支持 UWP 的设备,包括 Xbox 甚至安装 Windows 10 IoT 的树莓派,不太了解 Xamarin 能不能引入 UWP 的 runtime,如果能引入 UWP 就可以用在 iOS 和 Android 平台。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x

评分

参与人数 1明经币 +1 收起 理由
Bao_lai + 1 很给力!

查看全部评分

回复 支持 1 反对 0

使用道具 举报

 楼主| 发表于 2024-4-16 16:15 | 显示全部楼层
lea丶丶 发表于 2024-4-16 14:45
no function definition: LST->SS

(defun lst->ss (lst / SS X)
  ;图元转选择集
  (if (and lst (setq lst (vl-remove nil lst))(setq
             lst (VL-REMOVE-IF-NOT (FUNCTION (LAMBDA (A) (ENTGET A))) lst)
           ))
    (progn
      (setq ss (ssadd))
      (last
        (mapcar(function(lambda (x) (ssadd x ss)))lst)
      )
    )
  )
  SS
)
发表于 2023-6-10 08:59 | 显示全部楼层
很牛逼,win7用户路过
发表于 2023-6-10 09:00 | 显示全部楼层
错误: no function definition: GETBOX
发表于 2023-6-10 09:04 | 显示全部楼层
缺GETBOX函数,版主能不能把这个函数发出来
 楼主| 发表于 2023-6-10 09:05 | 显示全部楼层
TLQ 发表于 2023-6-10 09:00
错误: no function definition: GETBOX

已经补充了
 楼主| 发表于 2023-6-10 09:06 | 显示全部楼层
TLQ 发表于 2023-6-10 09:04
缺GETBOX函数,版主能不能把这个函数发出来

已经补充了
发表于 2023-6-10 10:14 | 显示全部楼层
我win10上找不到OCR.EXE
发表于 2023-6-10 10:39 | 显示全部楼层
非常支持楼主
发表于 2023-6-10 13:03 | 显示全部楼层
感谢大佬整理分享
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 )  
©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途

GMT+8, 2024-5-2 01:05 , Processed in 1.361843 second(s), 34 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表