All Projects → Chandler-Lu → Alfred Ocr

Chandler-Lu / Alfred Ocr

Licence: agpl-3.0
OCR & Translate using multiple interfaces for Alfred Workflow

Programming Languages

python
139335 projects - #7 most used programming language

Labels

Projects that are alternatives of or similar to Alfred Ocr

Sightseq
Computer vision tools for fairseq, containing PyTorch implementation of text recognition and object detection
Stars: ✭ 116 (-14.71%)
Mutual labels:  ocr
Cpp Image Analysis
DataCore bot image analysis component
Stars: ✭ 125 (-8.09%)
Mutual labels:  ocr
Ssocr
Seven Segment Optical Character Recognition
Stars: ✭ 133 (-2.21%)
Mutual labels:  ocr
Evernote Alfred
使用 Alfred 快速搜索印象笔记中的内容
Stars: ✭ 116 (-14.71%)
Mutual labels:  alfred
Typefont
The first open-source library that detects the font of a text in a image.
Stars: ✭ 1,575 (+1058.09%)
Mutual labels:  ocr
Alfred Vpn Manager
Manage Tunnelblick & Viscosity VPN connections from Alfred
Stars: ✭ 127 (-6.62%)
Mutual labels:  alfred
Pythonml
Artificial neural network classes and tools in Python and TensorFlow.
Stars: ✭ 114 (-16.18%)
Mutual labels:  ocr
Easyocr
Ready-to-use OCR with 80+ supported languages and all popular writing scripts including Latin, Chinese, Arabic, Devanagari, Cyrillic and etc.
Stars: ✭ 13,379 (+9737.5%)
Mutual labels:  ocr
Shanbay Alfred2
扇贝词典的alfred2 workflow, 支持查询和添加单词到自己词库。
Stars: ✭ 124 (-8.82%)
Mutual labels:  alfred
Transformer str
PyTorch implementation of my new method for Scene Text Recognition (STR) based on Transformer,Equipped with Transformer, this method outperforms the best model of the aforementioned deep-text-recognition-benchmark by 7.6% on CUTE80.
Stars: ✭ 131 (-3.68%)
Mutual labels:  ocr
Alfred Awesome Lists
Alfred workflow to search awesome lists
Stars: ✭ 118 (-13.24%)
Mutual labels:  alfred
Tesseract Ocr for windows
Visual Studio Projects for Tessearct and dependencies
Stars: ✭ 122 (-10.29%)
Mutual labels:  ocr
Robin
RObust document image BINarization
Stars: ✭ 131 (-3.68%)
Mutual labels:  ocr
Gaspumpocr
Python and OpenCV scripts to detect digits on a Gas Pump
Stars: ✭ 116 (-14.71%)
Mutual labels:  ocr
Textrecognitiondatagenerator
A synthetic data generator for text recognition
Stars: ✭ 2,075 (+1425.74%)
Mutual labels:  ocr
Alfred Learn Anything
Alfred workflow to search Learn Anything
Stars: ✭ 115 (-15.44%)
Mutual labels:  alfred
Craft Remade
Implementation of CRAFT Text Detection
Stars: ✭ 127 (-6.62%)
Mutual labels:  ocr
Alfred
My Alfred Theme And Workflow
Stars: ✭ 135 (-0.74%)
Mutual labels:  alfred
Hrcloud2
A full-featured home hosted Cloud Drive, Personal Assistant, App Launcher, File Converter, Streamer, Share Tool & More!
Stars: ✭ 134 (-1.47%)
Mutual labels:  ocr
Spacextract
Extraction and analysis of telemetry from rocket launch webcasts (from SpaceX and RocketLab)
Stars: ✭ 131 (-3.68%)
Mutual labels:  ocr

Alfred - OCR and Translation

下载地址

Packal | 国内直链

OCR Demo

Demo_OCR

Translate Demo

Demo_Trans

版本

4.9

  1. 删除腾讯优图接口;
  2. 新增腾讯云文字识别接口(正式版);
  3. 新版本不再发布至 GitHub Release,将发布至 Packal。

近期更新

  • 百度 OCR 更换接口参数,已修复
  • 支持 Mathpix 公式识别;
  • 由于可选识别方式过多,CNOCR 的触发方式修改为唯一触发词 ooc (CNOCR)

能力

  • 离线 OCR (CNOCR)
  • 通用 OCR (百度 | 腾讯 | Google)
  • 二维码识别 (百度 | ZXing)
  • 表格文字识别 (百度)
  • 数学公式识别 (Mathpix)
  • 多文件识别 (百度)
  • 文本翻译 (彩云小译)

使用(必看!!)

  1. 不是一个开箱即用的产品!
  2. 您至少要拥有 macOS Alfred 3 及以上版本并激活 Powerpack。
  3. 您需要安装 Python 3 及相应的依赖模块,并将 Python 3 路径填写在PYTHON_PATH处。
  4. 您需要申请并将对应接口的配置填入环境变量,部分接口附带我自己的 Key,但严禁滥用。
  5. 具体配置方法请移步 安装方式

依赖

通用 OCR

pip install requests

CNOCR (离线 OCR)

pip install cnocr

ZXing (离线二维码识别)

pip install zxing

接口

CNOCR

触发

  • 截图至剪贴板后使用关键词 ooc 触发。

说明

  • 一切安装方法请依据该项目 README

Baidu AI (百度)

触发

  1. 通用 OCR:快捷键 ctrl+v 触发截图选框,或截图至剪贴板后使用关键词 oob (baidu) 触发;
  2. 二维码识别:截图后使用关键词 ooqb (qr baidu) 触发;
  3. 表格文字识别:截图后使用关键词 ooe (excel) 触发,识别后可直接复制至 Excel;
  4. 多文件识别:finder 中选中需要识别的图片并使用关键词 oof (file) 触发。

File_OCR

说明

  1. 具备中英文识别,标点符号将被替换为对应语言下的符号;
  2. 二维码识别支持同时识别多个;
  3. 自带一个测试 Token,不保证可用性,需要稳定可自行申请;
  4. 最大支持单个 4MB 的图片。

自定义语种

目前仅通用 OCR 支持选择语言

语种选择逻辑:

  1. ctrl+v 或关键词 oob 触发时,将选择环境变量中的 baidu_language_type 来定义语种。如果该值为空,则定义为默认值 CHN_ENG,即中英文混合识别;
  2. 当使用 oob 调出选择菜单,并按住 command 触发时,将使用第二语言识别。

第一语言选择位置:

First_Lang_Select

第二语言选择位置:

Second_Lang_Select

支持的全部语种及其语种代码如下所示:
- CHN_ENG:中英文混合
- ENG:英文
- JAP:日语
- KOR:韩语
- FRE:法语
- SPA:西班牙语
- POR:葡萄牙语
- GER:德语
- ITA:意大利语
- RUS:俄语

Tencent (腾讯)

触发

  • 通用 OCR:截图至剪贴板后使用关键词 oot (tencent) 触发。

说明

  1. 自带一个测试 Token,不保证可用性,需要稳定可自行申请;
  2. 最大支持 3MB 的图片。

Google OCR

触发

  • 通用 OCR:截图至剪贴板后使用关键词 oog (google) 触发。

环境变量

变量名 字段说明
google_access_token 授权密钥
google_post_referer HTTP 请求时的 Referer 参数,默认为空
google_http_proxy HTTP 代理,默认为空,填写方式如 127.0.0.1:1234

说明

  • Google OCR 为收费业务,需绑定信用卡,故本项目不带测试 Token,需要自行申请。

Mathpix

触发

  • 公式识别:截图至剪贴板后使用关键词 oom (mathpix) 触发。

说明

  • Mathpix 为收费业务,需绑定信用卡,故本项目不带测试 Token,需要自行申请

ZXing

触发

  • 截图至剪贴板后使用关键词 ooq 触发。

说明

  1. 一切安装方法请依据该项目 README;
  2. 仅支持单个二维码识别。

彩云小译

触发

  • 文本翻译:使用关键词 tc (translate caiyun) + 需要翻译的内容 来触发;输出结果可通过 command + c 复制。

说明

  1. 自带一个测试 Token,不保证可用性,需要稳定可自行申请;
  2. 支持中译英,及 X 译中(X 为彩云小译已经支持的语言类别)。

TODO

  • 段落优化
  • 截图翻译

致谢

Jetbrains

jetbrains_logo

项目

  1. breezedeus/cnocr
  2. dlenski/python-zxing
  3. ginfuru/alfred-screen-capture
  4. oott123/alfred-clipboard-ocr

用户

感谢以下小伙伴帮助测试:

  1. Elvis Cai
  2. LucasZhan
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].