Skip to content

Commit

Permalink
Fix: typo, close #9
Browse files Browse the repository at this point in the history
  • Loading branch information
陆天睿 committed Jul 14, 2020
1 parent a257de3 commit 26818e0
Show file tree
Hide file tree
Showing 20 changed files with 15 additions and 22 deletions.
Empty file modified .gitignore
100644 → 100755
Empty file.
Empty file modified LICENSE
100644 → 100755
Empty file.
13 changes: 7 additions & 6 deletions README-EN.md
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -30,22 +30,23 @@

## Python Module

### CNOCR

### Online OCR

```bash
pip install cnocr
pip install requests
```

### ZXing
### CNOCR (Offline OCR)

```bash
pip install zxing
pip install cnocr
```

### Others
### ZXing

```bash
pip install requests
pip install zxing
```

## Interfaces
Expand Down
24 changes: 8 additions & 16 deletions README.md
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,10 @@

## 版本

### 4.7

- 紧急修复批量文件识别报错的问题

### 4.6
### 近期更新

- 紧急修复批量文件识别报错的问题;
- 更改 CNOCR 的触发方式,现与其余 OCR 一致;
- CNOCR 上游更新至 V1.1.1 ([查看详情](https://github.com/breezedeus/cnocr))。

### 4.5

- 支持百度 OCR 自定义语种识别,详情请见:[https://github.com/Chandler-Lu/alfred-ocr#自定义语种](https://github.com/Chandler-Lu/alfred-ocr#自定义语种)

## 能力
Expand All @@ -48,9 +41,9 @@
4. 您需要申请并将对应接口的配置填入环境变量,部分接口附带我自己的 Key,但严禁滥用。
5. 具体配置方法请移步 [安装方式][4]

### 截图权限
<!-- ### 截图权限
第一次使用时,请先用 `oo` 触发 CNOCR(无论你是否安装/需要 CNOCR 模块),此时 Alfred 会向系统请求屏幕录制权限,授权后,方可正常通过 `ctrl+v` 触发截屏。
第一次使用时,请先用 `oo` 触发 CNOCR(无论你是否安装/需要 CNOCR 模块),此时 Alfred 会向系统请求屏幕录制权限,授权后,方可正常通过 `ctrl+v` 触发截屏。 -->

## 依赖

Expand Down Expand Up @@ -104,13 +97,12 @@ pip install zxing

#### 自定义语种

> 目前仅支持通用 OCR 选择语
> 目前仅通用 OCR 支持选择语言
语种选择逻辑:

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

第一语言选择位置:

Expand Down Expand Up @@ -182,7 +174,7 @@ pip install zxing

#### 触发

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

#### 说明

Expand Down
Empty file modified examples/demo_ocr_cn.gif
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified examples/demo_ocr_en.gif
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified examples/demo_trans.gif
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified examples/env_button.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified examples/env_value.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified examples/file_ocr.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified examples/first_lang_select.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified examples/icon.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified examples/second_lang_select.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified src_alfred/config.py
100644 → 100755
Empty file.
Empty file modified src_alfred/ocr.py
100644 → 100755
Empty file.
Empty file modified src_alfred/pngpaste/LICENSE
100644 → 100755
Empty file.
Empty file modified src_alfred/translate.py
100644 → 100755
Empty file.
Empty file modified src_quicker/API_Key.json
100644 → 100755
Empty file.
Empty file modified src_quicker/README.md
100644 → 100755
Empty file.
Empty file modified src_quicker/ocr.py
100644 → 100755
Empty file.

0 comments on commit 26818e0

Please sign in to comment.