V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
爱意满满的作品展示区。
CatStudioApp
V2EX  ›  分享创造

最近用 SwiftUI 做了个离线文字识别 OCR app,欢迎使用!

  •  1
     
  •   CatStudioApp · 2021-04-13 08:55:30 +08:00 via iPhone · 3465 次点击
    这是一个创建于 1103 天前的主题,其中的信息可能已经有所发展或是发生改变。
    截图,介绍: https://www.snapic.app


    https://apps.apple.com/us/app/snapic-ocr-with-privacy/id1542223945

    价格目前免费,童叟无欺,保护隐私,断网也可以使用。
    24 条回复    2021-07-20 20:50:59 +08:00
    eric1202
        1
    eric1202  
       2021-04-13 09:05:08 +08:00
    为啥最低版本 iOS 14...
    uclort
        2
    uclort  
       2021-04-13 09:14:22 +08:00
    @eric1202 #1 因为 SwiftUI 呀。
    CatStudioApp
        3
    CatStudioApp  
    OP
       2021-04-13 09:18:38 +08:00
    @eric1202

    1. Apple OCR 在 13 上不支持中文
    2. SwiftUI
    Arlene666
        4
    Arlene666  
       2021-04-13 09:21:44 +08:00
    离线可以用还挺不错的,感谢!
    lijiale2012
        5
    lijiale2012  
       2021-04-13 09:30:46 +08:00
    基本不可用的状态,识别 10 次 9 次都全是乱码,另外一次是个别文字+乱码
    youthfire
        6
    youthfire  
       2021-04-13 09:36:38 +08:00
    ocr 识别除了精度外,最难的是表格,表格部分难的是 pdf 无边框表格和可随意增添删减行列线功能。多年下来,能综合做得最好的只有 abbyy 的 Finereader 。感觉国内大多数的 ocr 都只是纯文字抽取比较多。腾讯 api 的处理能力甚至还不如十年前的 Finereader 。

    当然,谢谢楼主分享,就是看到了想到了一说。
    LuffyVer
        7
    LuffyVer  
       2021-04-13 09:44:31 +08:00
    支持 简洁好用
    xylxAdai
        8
    xylxAdai  
       2021-04-13 11:48:38 +08:00
    用 python 和 shell 自己做了一个命令行的中英文 OCR 识别,截图自动保存并识别复制到粘贴板,命令`myocr image_path`直接复制到粘贴板。还是挺好用的。识别率大概在 95%以上。
    catchexception
        9
    catchexception  
       2021-04-13 16:20:22 +08:00   ❤️ 1
    感谢分享。这让我回忆起自己大三用 MatLab 基于 BPNN 写的 OCR 工具.......
    zerohzd
        10
    zerohzd  
       2021-04-13 18:45:22 +08:00
    @youthfire 试试 www.textin.com ,表格支持还可以
    iOCZ
        11
    iOCZ  
       2021-04-13 21:21:08 +08:00
    用的啥识别?
    CatStudioApp
        12
    CatStudioApp  
    OP
       2021-04-13 23:03:12 +08:00
    @youthfire 表格不考虑了,大公司也做不到。
    CatStudioApp
        13
    CatStudioApp  
    OP
       2021-04-13 23:03:39 +08:00
    @lijiale2012 方便发个样例图吗
    domodomo
        14
    domodomo  
       2021-04-14 00:56:07 +08:00
    @iOCZ 应该是系统自带的 Vision Framework,VNRecognizeTextRequest,实现简单,精准度尚可,支持中英德。
    不过想要做好的 OCR 还是得自己训练模型才行,Vision 的功能有限。
    iOCZ
        15
    iOCZ  
       2021-04-14 14:22:16 +08:00
    @domodomo Vision 目前好像只支持英文,3 楼也说到了这个问题
    domodomo
        16
    domodomo  
       2021-04-14 17:01:05 +08:00
    @iOCZ 支持中英德,别好像了,自己试一下或者看下文档。
    iOCZ
        17
    iOCZ  
       2021-04-18 14:18:22 +08:00
    @domodomo 您说的在理。VNRecognizeTextRequestRevision2 supports English, Chinese, Portuguese, French, Italian, German and Spanish in the accurate recognition level. The fast recognition level supports English, Portuguese, French, Italian, German and Spanish. Best practice is to use supportedRecognitionLanguagesForTextRecognitionLevel to check for supported languages. As the underlying engine has changed from VNRecognizeTextRequestRevision1, results can differ but are generally more accurate.
    jianzong
        18
    jianzong  
       2021-04-20 09:01:18 +08:00
    挖新坑了啊
    CatStudioApp
        19
    CatStudioApp  
    OP
       2021-04-20 10:23:51 +08:00 via iPhone
    @jianzong 硬核练习 SwiftUI
    1219178163
        20
    1219178163  
       2021-06-02 14:07:54 +08:00
    中文识别乱码?你如何解决的
    CatStudioApp
        21
    CatStudioApp  
    OP
       2021-06-15 08:31:48 +08:00
    @1219178163 没遇到乱码?
    smartdone
        22
    smartdone  
       2021-07-05 07:46:29 +08:00
    @1219178163 recognitionLevel 设置成 accurate,然后 recognitionLanguages 设置成["zh-Hans"]再把 usesLanguageCorrection 设置成 true 中文就不乱码了,但是比 recognitionLevel 设置成 fast 处理要慢很多
    1219178163
        23
    1219178163  
       2021-07-20 14:29:33 +08:00
    @smartdone 需要其他设置吗?扫描出来还是乱码?
    CatStudioApp
        24
    CatStudioApp  
    OP
       2021-07-20 20:50:59 +08:00
    @1219178163 能否发下反馈,方便的话附上 app 截图和您拍照的图片
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2926 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 02:55 · PVG 10:55 · LAX 19:55 · JFK 22:55
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.