allow multiple protobuf models to be loaded 64/1164/1
authorEric Z <ezavesky@research.att.com>
Fri, 2 Mar 2018 13:03:45 +0000 (07:03 -0600)
committerEric Z <ezavesky@research.att.com>
Fri, 2 Mar 2018 13:03:45 +0000 (07:03 -0600)
- modify options to accomodate multiple proto destinations
- add both pixelate and detect as destination for face demo
- add multiple proto definitions for face demo

Change-Id: I24737d7b2bc6edcbb149d3d82e02dee20d1c61ac
Signed-off-by: Eric Z <ezavesky@research.att.com>
web_demo/model.detect.proto [moved from web_demo/model.proto with 79% similarity]
web_demo/model.pixelate.proto [new file with mode: 0644]

similarity index 79%
rename from web_demo/model.proto
rename to web_demo/model.detect.proto
index f7b80f4..79f8384 100644 (file)
@@ -1,8 +1,8 @@
 syntax = "proto3";
-package sapLzHrujUMPBGCBEMWQFxEIMsxocFrG;
+package yieGOMVkeFReJTCdImEYAzGjafuIsmjG;
 
 service Model {
-  rpc transform (FaceImage) returns (DetectionFrames);
+  rpc detect (FaceImage) returns (DetectionFrames);
 }
 
 message FaceImage {
@@ -19,4 +19,4 @@ message DetectionFrames {
   repeated int64 h = 6;
   repeated string mime_type = 7;
   repeated bytes image_binary = 8;
-}
+}
\ No newline at end of file
diff --git a/web_demo/model.pixelate.proto b/web_demo/model.pixelate.proto
new file mode 100644 (file)
index 0000000..5534a69
--- /dev/null
@@ -0,0 +1,27 @@
+syntax = "proto3";
+package sapLzHrujUMPBGCBEMWQFxEIMsxocFrG;
+
+service Model {
+  rpc pixelate (FaceImage) returns (TransformedImage);
+}
+
+message FaceImage {
+  repeated string mime_type = 1;
+  repeated bytes image_binary = 2;
+}
+
+message DetectionFrames {
+  repeated int64 image = 1;
+  repeated int64 region = 2;
+  repeated int64 x = 3;
+  repeated int64 y = 4;
+  repeated int64 w = 5;
+  repeated int64 h = 6;
+  repeated string mime_type = 7;
+  repeated bytes image_binary = 8;
+}
+
+message TransformedImage {
+  repeated string mime_type = 1;
+  repeated bytes image_binary = 2;
+}
\ No newline at end of file