Commit 86701d3d authored by PiDanShouRouZhouXD's avatar PiDanShouRouZhouXD
Browse files

update readme

parent 8af61e35
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -168,16 +168,17 @@ Sugoi 翻译器作者: [mingshiba](https://www.patreon.com/mingshiba)
  
### 文本检测
 * 暂时仅支持日文(方块字都差不多)和英文检测,训练代码和说明见https://github.com/dmMaze/comic-text-detector
 * 支持使用 [星河云(团子漫画OCR)](https://cloud.stariver.org.cn/)的字体检测,需要获取并填写token
   * 参数设置、token获取方式详[团子OCR说明](doc/团子OCR说明.md)
 * 支持使用 [星河云(团子漫画OCR)](https://cloud.stariver.org.cn/)的字体检测,需要填写用户名和密码,每次启动时会自动登录。
   * 详细说明[团子OCR说明](doc/团子OCR说明.md)


### OCR
 * 所有 mit 模型来自 manga-image-translator,支持日英汉识别和颜色提取
 * [manga_ocr](https://github.com/kha-white/manga-ocr) 来自 [kha-white](https://github.com/kha-white),支持日语识别,注意选用该模型程序不会提取颜色
 * 支持使用 [星河云(团子漫画OCR)](https://cloud.stariver.org.cn/)的OCR,需要获取并填写token
   * 参数设置、token获取方式详见 [团子OCR说明](doc/团子OCR说明.md)
 * 支持使用 [星河云(团子漫画OCR)](https://cloud.stariver.org.cn/)的OCR,需要填写用户名和密码,每次启动时会自动登录。
   * 目前的实现方案是逐个textblock进行OCR,速度较慢,准确度没有明显提升,不推荐使用。如果有需要,请使用团子Detector。
   * 推荐文本检测设置为团子Detector时,将OCR设为none_ocr,直接读取文本,节省时间和请求次数。
   * 详细说明见 [团子OCR说明](doc/团子OCR说明.md)


### 图像修复
+6 −5
Original line number Diff line number Diff line
@@ -204,15 +204,16 @@ This project is heavily dependent upon [manga-image-translator](https://github.c
  
## Text detection
 * Support English and Japanese text detection, training code and more details can be found at [comic-text-detector](https://github.com/dmMaze/comic-text-detector)
* Support using text detection from [Stariver Cloud (Tuanzi Comics OCR)](https://cloud.stariver.org.cn/), requires obtaining and filling in the token
   * For parameter settings and how to obtain the token, refer to [Tuanzi OCR Instructions (Chinese only)](doc/团子OCR说明.md)
* Support using text detection from [Starriver Cloud (Tuanzi Manga OCR)](https://cloud.stariver.org.cn/). Username and password need to be filled in, and automatic login will be performed each time the program is launched.

   * For detailed instructions, see [Tuanzi OCR Instructions (Chinese only)](doc/Tuanzi_OCR_Instructions.md)
## OCR
 * All mit* models are from manga-image-translator, support English, Japanese and Korean recognition and text color extraction.
 * [manga_ocr](https://github.com/kha-white/manga-ocr) is from [kha-white](https://github.com/kha-white), text recognition for Japanese, with the main focus being Japanese manga.
* Support using OCR from [Stariver Cloud (Tuanzi Comics OCR)](https://cloud.stariver.org.cn/), requires obtaining and filling in the token
   * For parameter settings and how to obtain the token, refer to [Tuanzi OCR Instructions (Chinese only)](doc/团子OCR说明.md)
   * When setting the text detection to Tuanzi Detector, it is recommended to set OCR to none_ocr, directly read the text, saving time and number of requests.
 * Support using OCR from [Starriver Cloud (Tuanzi Manga OCR)](https://cloud.stariver.org.cn/). Username and password need to be filled in, and automatic login will be performed each time the program is launched.
   * The current implementation uses OCR on each textblock individually, resulting in slower speed and no significant improvement in accuracy. It is not recommended. If needed, please use the Tuanzi Detector instead.
   * When using the Tuanzi Detector for text detection, it is recommended to set OCR to none_ocr to directly read the text, saving time and reducing the number of requests.
   * For detailed instructions, see [Tuanzi OCR Instructions (Chinese only)](doc/Tuanzi_OCR_Instructions.md)

## Inpainting
  * AOT is from [manga-image-translator](https://github.com/zyddnys/manga-image-translator).
+7 −31
Original line number Diff line number Diff line
@@ -4,36 +4,11 @@

</p>

## Token 获取方法
## 团子OCR说明

### 方法1:从cookies中获取token
### 登录
第一次登录时可能会提示密码出错等问题,可以在确认正确输入后勾选并取消勾选`force_refresh_token`选项,以重新登陆。保存后即可正常使用。

在浏览器中登录并访问[星河云OCR](https://cloud.stariver.org.cn/),在浏览器的开发者工具中查看`cookie`,其中包含`token`字段,复制其值。
<p align = "center">
<img src="https://github.com/PiDanShouRouZhouXD/BallonsTranslator/assets/38401147/ae2cbcec-b426-4396-a484-62aa09f22cf6" width="50%" height="50%">

</p>

### 方法2:通过API获取token

通过API获取token的方法如下:

```
POST https://capiv1.ap-sh.starivercs.cn/OCR/Admin/Login


Request Body:
{
    "User": "your_username",
    "Password": "your_password"
}

Response Body:
{

    "Token": "your_token"

}
```

其中,`User``Password`为登录团子OCR的用户名和密码,`Token`为登录成功后返回的token。
### 文本检测
文本检测功能也会提取出文字,而且是整体识别提取。所以当有使用团子的需求时,推荐不要单独使用OCR功能,而是使用团子的文本检测与none_ocr。
团子有自带的拟声词过滤等功能,详细参数设置请参考上方的`官方提供的请求参数参考`
 No newline at end of file