From 0bcc8c89da094dc63d1708daa0fbfbfb486f1d2e Mon Sep 17 00:00:00 2001
From: liuxiaolong <736321739@qq.com>
Date: 星期三, 22 五月 2019 16:38:03 +0800
Subject: [PATCH] test
---
protomsg.proto | 94 +++++++++++++++++++++++++++++++++++++++--------
1 files changed, 78 insertions(+), 16 deletions(-)
diff --git a/protomsg.proto b/protomsg.proto
index 3edec29..3d645fc 100644
--- a/protomsg.proto
+++ b/protomsg.proto
@@ -7,6 +7,7 @@
int32 index = 3 ;
}
+//SdkMessage struct test
message SdkMessage {
string cid = 1;
TaskLabel tasklab = 2;
@@ -57,6 +58,11 @@
bool del_flag = 8;
}
+message TaskSdkInfo {
+ Task task = 1;
+ repeated Sdk sdks = 2;
+}
+
//鎽勫儚鏈轰换鍔�
message CameraTask {
string id = 1;
@@ -92,12 +98,6 @@
repeated Point points = 4;//鐐圭殑闆嗗悎
}
-//Point struct
-message Point {
- string x = 1;
- string y = 2;
-}
-
message CameraTaskArgs {
string id =1;
string camera_task_id =2;
@@ -117,15 +117,16 @@
//Sdk struct
message Sdk {
string id = 1;
- string create_time = 2;
- string update_time = 3;
- string create_by = 4;
- string del_flag = 5;//鏄惁鍒犻櫎
- string enabled = 6;//鏄惁鍚敤
- string sdk_name = 7;//sdk鍚嶇О
- string icon = 8;//绠楁硶鍥炬爣
- string url = 9;//绠楁硶涓嬭浇鍦板潃
- repeated SdkArg args = 10;
+ string sdk_type = 2;//绠楁硶绫诲瀷
+ string sdk_name = 3;//sdk鍚嶇О
+ repeated SdkArg args = 4;//绠楁硶鍙傛暟
+ string icon = 5;//绠楁硶鍥炬爣
+ string url = 6;//绠楁硶涓嬭浇鍦板潃
+ string create_time = 7;
+ string update_time = 8;
+ string create_by = 9;
+ string enabled = 10;//鏄惁鍚敤
+ string del_flag = 11;//鏄惁鍒犻櫎
}
//SdkArg struct
@@ -136,4 +137,65 @@
bool must = 5;//鍙傛暟鏄惁蹇呭~
string range = 6;//鍙傛暟鐨勮寖鍥�
int32 sort = 7;//鍙傛暟鎺掑簭
-}
\ No newline at end of file
+}
+
+// struct for sdk
+message Point{
+ int32 x = 1;
+ int32 y = 2;
+}
+message Rect{
+ int32 left = 1;
+ int32 top = 2;
+ int32 right = 3;
+ int32 bottom = 4;
+}
+message FaceAngle{
+ int32 yaw = 1;
+ int32 pitch =2;
+ int32 roll = 3;
+ float confidence =4;
+}
+message ThftResult{
+ int32 gender = 1;
+ int32 age = 2;
+ int32 race = 3;
+ int32 beauty = 4;
+ int32 smile = 5;
+}
+message FacePos{
+ Rect rcFace = 1;
+ Point ptLeftEye = 2;
+ Point ptRightEye = 3;
+ Point ptMouth = 4;
+ Point ptNose = 5;
+ FaceAngle fAngle = 6;
+ int32 quality = 7;
+ bytes facialData = 8;
+}
+message FaceInfo{
+ Rect rcFace = 1;
+ Point ptLeftEye = 2;
+ Point ptRightEye = 3;
+ Point ptMouth = 4;
+ Point ptNose = 5;
+ FaceAngle fAngle = 6;
+ int32 quality = 7;
+ bytes facialData = 8;
+ int64 faceID = 9;
+}
+message ObjInfo{
+ Rect rcObj = 1;
+ int32 typ = 2;
+ float prob = 3;
+}
+// sdk face property
+message ParamFaceProperty{
+ FacePos pos = 1;
+ Image img = 2;
+}
+// sdk face extract
+message ParamFaceCompare{
+ bytes feat1 = 1;
+ bytes feat2 = 2;
+}
--
Gitblit v1.8.0