xulihang / ImageTrans-docs

Documentation of ImageTrans, a computer-aided image translation tool. ImageTrans的文档项目。ImageTrans是一款计算机辅助图片/漫画翻译软件。
https://imagetrans.readthedocs.io/
85 stars 9 forks source link

Support of Image Translation API #470

Closed xulihang closed 1 year ago

xulihang commented 1 year ago

There are image translation APIs provided by companies like Yandex and Baidu, which sends the image to the server and gets the OCR result, machine translation and the translation injected image.

We can create OCR plugins for such services. ImageTrans has to be adapted so that OCR plugins can also set the translation of text boxes.

xulihang commented 1 year ago

I've implemented Baidu Fanyi's image translation plugin: https://github.com/xulihang/ImageTrans_plugins/tree/master/imgBaiduOCR

It requires APPID and KEY to be set. You can get them in Baidu Fanyi's webpage: https://fanyi-api.baidu.com/api/trans/product/desktop

Then fill them in the preferences:

image

It has a fee quota which is 10000 times per month.

lhj5426 commented 1 year ago

嗯 其实有道也有相关的相关的 图片翻译 image image