-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add grpc python server * add api server grpc
- Loading branch information
Showing
20 changed files
with
620 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
syntax = "proto3"; | ||
|
||
package image_process; | ||
|
||
service ImageProcess { | ||
rpc GetBarcodeInfoFromUrl(ImageInfo) returns (BarcodeInfos) {} | ||
} | ||
|
||
message ImageInfo { | ||
string image_url = 1; | ||
} | ||
|
||
message BarcodeInfos { | ||
message BarcodeInfo { | ||
message Rect { | ||
int32 left = 1; | ||
int32 top = 2; | ||
int32 width = 3; | ||
int32 height = 4; | ||
} | ||
message Point { | ||
int32 x = 1; | ||
int32 y = 2; | ||
} | ||
string data = 1; | ||
string type = 2; | ||
Rect rect = 3; | ||
repeated Point polygon = 4; | ||
string orientation = 5; | ||
int32 quality = 6; | ||
} | ||
repeated BarcodeInfo barcode_infos = 1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
syntax = "proto3"; | ||
|
||
package image_process; | ||
|
||
service ImageProcess { | ||
rpc GetBarcodeInfoFromUrl(ImageInfo) returns (BarcodeInfos) {} | ||
} | ||
|
||
message ImageInfo { | ||
string image_url = 1; | ||
} | ||
|
||
message BarcodeInfos { | ||
message BarcodeInfo { | ||
message Rect { | ||
int32 left = 1; | ||
int32 top = 2; | ||
int32 width = 3; | ||
int32 height = 4; | ||
} | ||
message Point { | ||
int32 x = 1; | ||
int32 y = 2; | ||
} | ||
string data = 1; | ||
string type = 2; | ||
Rect rect = 3; | ||
repeated Point polygon = 4; | ||
string orientation = 5; | ||
int32 quality = 6; | ||
} | ||
repeated BarcodeInfo barcode_infos = 1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.