项目作者: goruck

项目描述 :
Semantic segmentation served over grpc using Google Edge TPU.
高级语言: Python
项目地址: git://github.com/goruck/semantic-segmentation-server.git
创建时间: 2020-05-10T02:53:31Z
项目社区:https://github.com/goruck/semantic-segmentation-server

开源协议:MIT License

下载


Work in progress - p/o the radar-ml project

semantic-segmentation-server

Semantic segmentation served over grpc using Google Edge TPU.

  1. service SemanticSegmentation {
  2. // A simple RPC.
  3. rpc GetSegmentedObjects(Empty) returns (SegmentedObjectData) {}
  4. rpc GetCameraResolution(Empty) returns (CameraResolution) {}
  5. }
  6. message SegmentedObject {
  7. // Most likely semantic segment label.
  8. string label = 1;
  9. // Score of label.
  10. // This can be used as a measure of confidence.
  11. float score = 2;
  12. // Relative area of segment. Max = 1.
  13. float area = 3;
  14. // Relative segment centroid coords.
  15. // (0,0) is top left of image containing the segment.
  16. // (1,0) is top right "".
  17. // (0,1) is bottom left "".
  18. // (1,1) is bottom right "".
  19. message Centroid {
  20. float cx = 1;
  21. float cy = 2;
  22. }
  23. Centroid centroid = 4;
  24. }
  25. message SegmentedObjectData {
  26. // Recognized and segmented object data.
  27. repeated SegmentedObject data = 1;
  28. }
  29. message CameraResolution {
  30. int32 width = 1;
  31. int32 height = 2;
  32. }
  33. message Empty {
  34. // Placeholder.
  35. }