From d4d8c66ee48401a65236f6a5ecbb5de897d2d7be Mon Sep 17 00:00:00 2001 From: "menghaiwen@fusen.cn" Date: Mon, 22 Jan 2024 15:02:31 +0800 Subject: [PATCH] =?UTF-8?q?logo=E7=AE=97=E6=B3=95=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E6=8F=90=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service/resource.proto | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/service/resource.proto b/service/resource.proto index afd1974..f48441c 100644 --- a/service/resource.proto +++ b/service/resource.proto @@ -41,7 +41,25 @@ service resource { // logo缩略处理 rpc LogoResize(LogoResizeReq) returns (LogoResizeRes) {} + // logo算法信息提取 + rpc LogoAiInfoGet(LogoAiInfoGetReq) returns (LogoAiInfoGetRes) {} + } + +/* logo算法信息提取 */ +message LogoAiInfoGetReq { + string logo_url = 1;// logo地址 + string version = 2;// 算法版本 + string is_reverse = 3; // 是否反白 + string logo_crop_type = 4; // 可拆类型 + repeated string recommend_templates = 5; // 推荐模版 + string is_all_template = 6; // 是否全部模版 +} +message LogoAiInfoGetRes { + bytes metadata =1; +} +/* logo算法信息提取 */ + /* logo缩略处理 */ message LogoResizeReq{ string resource_id=1; // 资源ID