Skip to content

Latest commit

 

History

History
712 lines (653 loc) · 490 KB

image_translation.md

File metadata and controls

712 lines (653 loc) · 490 KB

?> One of the advanced features: translate the screenshot content into any 100+ languages to get the language of another picture.

Introduction

SunnyCapturer provides a built-in account by default, but does not guarantee its stability, and does not make any commitment or responsibility.

  • Built-in account Built-in account **Built-in account

    • Pros: Free of charge, the quota is automatically reset on the 1st of every month, no setup required by the user

    • Disadvantages: shared by all users, occasional concurrency limit, quota used up before the end of the month.

  • Private account Pros.

    • Pros: Private account only, register on your own platform and fill in the key in the settings screen.
    • Disadvantages: paid, expensive, when the base quota is used up.

The following cloud API platforms are currently supported, with a total of 100+ languages supported for translation;

Register Tencent Cloud | Tencent Cloud

The monthly quota for “Image Translation” is 1 w times, reset at the beginning of the month. The monthly quota for “Image Translation” is 1 w times, reset at the beginning of month. After opening paid services, the QPS limit for both individual and enterprise authentication users is 10

Official website registration: https://cloud.tencent.com

Key Generation: https://console.cloud.tencent.com/cam

Registration Diagram:

The location of the fill key for this program:



Sign up for Baidu Cloud | Baidu Cloud

『Machine Translation』 10,000 times, valid for 1 year; QPS/concurrent limit is 5; after that, you need to pay to use it;

Official website registration: https://cloud.baidu.com

Registration Diagram:

The location of the fill key for this program:



Register for Youdao Cloud | Youdao Cloud

『Picture Translation』 New account will be given 50RMB credit, no free times, API interface need to pay to use!

Official website registration: https://ai.youdao.com

Registration Diagram:

The location of the fill key for this program:

Translation Languages Supported by the Cloud API

Image Translation API Supported Languages
Tencent cloudBaidu cloudYoudao cloud
Official documentOfficial document Official document
English nameChinese nameCode English nameChinese nameCode English nameChinese nameCode
 自动识别auto  自动检测autoArabic 阿拉伯语ar
Simplified Chinese简体中文zh English英语en German德语de
Traditional Chinese繁体中文zh-TW Simplified   Chinese中文zh English英语en
English英语enJapanese 日语jpSpanish 西班牙语es
Japanese日语jaKorean 韩语korFrench 法语fr
Korean韩语koPortuguese 葡萄牙语ptHindi 印地语hi
Russian俄语ruFrench 法语fraIndonesian 印度尼西亚语id
French法语frGerman 德语deItalian 意大利语it
German德语deItalian 意大利语itJapanese 日语ja
Italian意大利语itSpanish 西班牙spaKorean 韩语ko
Spanish西班牙语esRussian 俄语ruDutch 荷兰语nl
Portuguese葡萄牙语ptDutch 荷兰语nlPortuguese 葡萄牙语pt
Malay马来西亚语msMalay 马来语mayRussian 俄语ru
Thai泰语thDanish 丹麦语danThai 泰语th
Vietnamese越南语viSwedish 瑞典语sweVietnamese 越南语vi
   Indonesian 印尼语id中文  zh-CHS
   Polish 波兰语pl中文繁体  zh-CHT
   Romanian 罗马尼亚语romAfrikaans 南非荷兰语af
   Turkish 土耳其语trAzeerbaijani 阿塞拜疆语az
   Greek 希腊语elBelarusian 白俄罗斯语be
   Hungarian 匈牙利语huBulgarian 保加利亚语bg
       Bangla孟加拉语 bn
       Bosnian   (Latin)波斯尼亚语 bs
       Catalan加泰隆语 ca
       Cebuano宿务语 ceb
       Corsican科西嘉语 co
       Czech捷克语 cs
       Welsh威尔士语 cy
       Danish丹麦语 da
       Greek希腊语 el
       Esperanto世界语 eo
       Estonian爱沙尼亚语 et
       Basque巴斯克语 eu
       Persian波斯语 fa
       Finnish芬兰语 fi
       Frisian弗里西语 fy
       Irish爱尔兰语 ga
       Scots苏格兰盖尔语 gd
       Galician加利西亚语 gl
       Gujarati古吉拉特语 gu
       Hausa豪萨语 ha
       Hawaiian夏威夷语 haw
       Hebrew希伯来语 he
       Croatian克罗地亚语 hr
       Haitian海地克里奥尔语 ht
       Hungarian匈牙利语 hu
       Armenian亚美尼亚语 hy
       Igbo伊博语 ig
       Icelandic冰岛语 is
       Javanese爪哇语 jw
       Georgian格鲁吉亚语 ka
       Kazakh哈萨克语 kk
       Khmer高棉语 km
       Kannada卡纳达语 kn
       Kurdish库尔德语 ku
       Kyrgyz柯尔克孜语 ky
       Latin拉丁语 la
       Luxembourgish卢森堡语 lb
       Lao老挝语 lo
       Lithuanian立陶宛语 lt
       Latvian拉脱维亚语 lv
       Malagasy马尔加什语 mg
       Maori毛利语 mi
       Macedonian马其顿语 mk
       Malayalam马拉雅拉姆语 ml
       Mongolian蒙古语 mn
       Marathi马拉地语 mr
       Malay马来语 ms
       Maltese马耳他语 mt
       Myanmar   (Burmese) 缅甸语my
       Nepali尼泊尔语 ne
       Norwegian挪威语 no
       Nyanja   (Chichewa)齐切瓦语 ny
       Punjabi旁遮普语 pa
       Polish波兰语 pl
       Pashto普什图语 ps
       Romanian罗马尼亚语 ro
       Sindhi信德语 sd
       Sinhala   (Sinhalese)僧伽罗语 si
       Slovak斯洛伐克语 sk
       Slovenian斯洛文尼亚语 sl
       Samoan萨摩亚语 sm
       Shona修纳语 sn
       Somali索马里语 so
       Albanian阿尔巴尼亚语 sq
       Serbian   (Cyrillic) 塞尔维亚语(西里尔文)sr-Cyrl
       Serbian   (Latin)塞尔维亚语(拉丁文) sr-Latn
       Sesotho塞索托语 st
       Sundanese巽他语 su
       Swedish瑞典语 sv
       Kiswahili斯瓦希里语 sw
       Tamil泰米尔语 ta
       Telugu泰卢固语 te
       Tajik塔吉克语 tg
       Filipino菲律宾语 tl
       Turkish土耳其语 tr
       Ukrainian乌克兰语 uk
       Urdu乌尔都语 ur
       Uzbek乌兹别克语 uz
       Yiddish意第绪语 yi
       Yoruba约鲁巴语 yo
       Cantonese   (Traditional) 粤语yue
       Zulu南非祖鲁语 zu

Cloud API Image Translation Returned Error Codes and Meanings

Cloud API Error Codes and Meaning for Image Translation
Tencent cloudBaidu cloudYoudao cloud
Official documentOfficial document Official document
Error codeClarificationError code Error messageDescripcionSolution Error codeMeaning
FailedOperation.ErrorUserArea用户区域与请求服务区域不一致。0 Success成功  101缺少必填的参数,首先确保必填参数齐全,然后确认参数书写是否正确。
FailedOperation.InsertErr数据插入错误。52001 TIMEOUT请求超时重试 102不支持的语言类型
FailedOperation.LanguageRecognitionErr暂时无法识别该语种。52002 SYSTEM ERROR系统错误重试 103翻译文本过长
FailedOperation.NoFreeAmount本月免费额度已用完,如需继续使用您可以在机器翻译控制台升级为付费使用。54000 PARAM_FROM_TO_OR_Q_EMPTY必填参数为空或固定参数有误检查参数是否误传 104不支持的API类型
FailedOperation.RequestAiLabErr内部请求错误。54003 Invalid Access Limit访问频率受限请降低您的访问频率 105不支持的签名类型
FailedOperation.ServiceIsolate账号因为欠费停止服务,请在腾讯云账户充值。54005 Long query overflow, retry later长query请求频繁请降低长query的发送频率,3s后再试 106不支持的响应类型
FailedOperation.StopUsing账号已停服。58001 INVALID_TO_PARAM译文语言方向不支持,或译文语言字段有误请检查译文语言是否在语言列表里 107不支持的传输加密类型
FailedOperation.SubmissionLimitReached当日提交任务数达到上限69001 picture fail上传图片数据有误检查图片是否有问题 108应用ID无效,注册账号,登录后台创建应用和实例并完成绑定,可获得应用ID和应用密钥等信息,
FailedOperation.TooManyWaitProcess过多未完成任务69002 picture recognition time out图片识别超时重试 109batchLog格式不正确
FailedOperation.UserHasNoFreeAmount本月免费额度已用完,如需继续使用您可以在机器翻译控制台购买资源包或开通后付费使用。69003 picture recognition fail内容识别失败更换图片重试 110无相关服务的有效实例,应用没有绑定服务实例,可以新建服务实例,绑定服务实例。注:某些服务的翻译结果发音需要tts实例,需要在控制台创建语音合成实例绑定应用后方能使用。
FailedOperation.UserNotRegistered服务未开通,请在腾讯云官网机器翻译控制台开通服务。69004 picture recognition empty识别内容为空更换图片重试 111开发者账号无效
InternalError.BackendTimeout后台服务超时,请稍后重试。69005 picture size limit 4M图片大小超限(超过4M)更换图片重试 112请求服务无效
InternalError.ErrorGetRoute路由获取错误。69006 picture px error图片尺寸不符合标准(最短边至少30px,最长边最大4096px)更换图片重试 113q不能为空
InternalError.ErrorUnknown未知错误。69007 picture format error图片格式不支持更换图片重试 114不支持的图片传输方式
InternalError.RequestFailed请求失败。69012 Invalid param paste type文字贴合参数异常请检查参数   paste,枚举示例:0-关闭文字贴合 1-返回整图贴合 2-返回块区贴合 201解密失败,可能为DES,BASE64,URLDecode的错误
InvalidParameter.DuplicatedSessionIdAndSeq重复的SessionUuid和Seq组合。     202 签名检验失败,如果确认应用ID和应用密钥的正确性,仍返回202,一般是编码问题。请确保翻译文本 q 为UTF-8编码.
InvalidParameter.MissingParameter参数错误。     203访问IP地址不在可访问IP列表
InvalidParameter.SeqIntervalTooLargeSeq之间的间隙请不要大于2000。     205 请求的接口与应用的平台类型不一致,确保接入方式(Android   SDK、IOS SDK、API)与创建的应用平台类型一致。如有疑问请参考入门指南.
LimitExceeded.LimitedAccessFrequency超出请求频率。     206 因为时间戳无效导致签名校验失败
UnauthorizedOperation.ActionNotFound请填写正确的Action字段名称。     207 重放请求(接口salt+curtime来防重放(即一个请求不可以被请求2次),所以salt最好为UUID。)
UnsupportedOperation.AudioDurationExceed音频分片长度超过限制,请保证分片长度小于8s。     301 辞典查询失败
UnsupportedOperation.TextTooLong单次请求text超过长度限制。     302 翻译查询失败
UnsupportedOperation.UnSupportedTargetLanguage不支持的目标语言,请参照语言列表。     303 服务端的其它异常
UnsupportedOperation.UnsupportedLanguage不支持的语言,请参照语言列表。     304 会话闲置太久超时
UnsupportedOperation.UnsupportedSourceLanguage不支持的源语言,请参照语言列表。     401 账户已经欠费停
       402offlinesdk不可用
       411访问频率受限,请稍后访问
       412长请求过于频繁,请稍后访问
       1001无效的OCR类型
       1002不支持的OCR image类型
       1003不支持的OCR Language类型
       1004识别图片过大
       1201图片base64解密失败
       1301OCR段落识别失败
       1411访问频率受限
       1412超过最大识别字节数
       2003不支持的语言识别Language类型
       2004合成字符过长
       2005不支持的音频文件类型
       2006不支持的发音类型
       2201解密失败
       2301服务的异常
       2411访问频率受限,请稍后访问
       2412超过最大请求字符数
       3001不支持的语音格式
       3002不支持的语音采样率
       3003不支持的语音声道
       3004不支持的语音上传类型
       3005不支持的语言类型
       3006不支持的识别类型
       3007识别音频文件过大
       3008识别音频时长过长
       3009不支持的音频文件类型
       3010不支持的发音类型
       3201解密失败
       3301语音识别失败
       3302语音翻译失败
       3303服务的异常
       3411访问频率受限,请稍后访问
       3412超过最大请求字符数
       4001不支持的语音识别格式
       4002不支持的语音识别采样率
       4003不支持的语音识别声道
       4004不支持的语音上传类型
       4005不支持的语言类型
       4006识别音频文件过大
       4007识别音频时长过长
       4201解密失败
       4301语音识别失败
       4303服务的异常
       4411访问频率受限,请稍后访问
       4412超过最大请求时长
       5001无效的OCR类型
       5002不支持的OCR image类型
       5003不支持的语言类型
       5004识别图片过大
       5005不支持的图片类型
       5006文件为空
       5201解密错误,图片base64解密失败
       5301OCR段落识别失败
       5411访问频率受限
       5412超过最大识别流量
       9001不支持的语音格式
       9002不支持的语音采样率
       9003不支持的语音声道
       9004不支持的语音上传类型
       9005不支持的语音识别   Language类型
       9301ASR识别失败
       9303服务器内部错误
       9411访问频率受限(超过最大调用次数)
       9412超过最大处理语音长度
       10001无效的OCR类型
       10002不支持的OCR image类型
       10004识别图片过大
       10201图片base64解密失败
       10301OCR段落识别失败
       10411访问频率受限
       10412超过最大识别流量
       11001不支持的语音识别格式
       11002不支持的语音识别采样率
       11003不支持的语音识别声道
       11004不支持的语音上传类型
       11005不支持的语言类型
       11006识别音频文件过大
       11007识别音频时长过长,最大支持30s
       11201解密失败
       11301语音识别失败
       11303服务的异常
       11411访问频率受限,请稍后访问
       11412超过最大请求时长
       12001图片尺寸过大
       12002图片base64解密失败
       12003引擎服务器返回错误
       12004图片为空
       12005不支持的识别图片类型
       12006图片无匹配结果
       13001不支持的角度类型
       13002不支持的文件类型
       13003表格识别图片过大
       13004文件为空
       13301表格识别失败
       15001需要图片
       15002图片过大(1M)
       15003服务调用失败
       17001需要图片
       17002图片过大(1M)
       17003识别类型未找到
       17004不支持的识别类型
       17005服务调用失败

Cloud API Privacy Agreements by Platform