Commit 0585234e authored by PiDanShouRouZhouXD's avatar PiDanShouRouZhouXD
Browse files

Update Readme

parent 9613950a
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -169,12 +169,16 @@ 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
 * 所有 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)
   * 推荐文本检测设置为团子Detector时,将OCR设为none_ocr,直接读取文本,节省时间和请求次数。


### 图像修复
  * AOT 修复模型来自 manga-image-translator
+6 −1
Original line number Diff line number Diff line
@@ -203,11 +203,16 @@ This project is heavily dependent upon [manga-image-translator](https://github.c
[Sugoi translator](https://sugoitranslator.com/) is created by [mingshiba](https://www.patreon.com/mingshiba).
  
## 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 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)

## 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.

## Inpainting
  * AOT is from [manga-image-translator](https://github.com/zyddnys/manga-image-translator).

doc/团子OCR说明.md

0 → 100644
+39 −0
Original line number Diff line number Diff line
## 官方提供的请求参数参考:
<p align = "center">
<img src="https://github.com/PiDanShouRouZhouXD/BallonsTranslator/assets/38401147/3c3985e9-f36e-41fb-af94-d6a8088e5ccd" width="85%" height="85%">

</p>

## Token 获取方法

### 方法1:从cookies中获取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。