|
19 | 19 | """ |
20 | 20 |
|
21 | 21 | from tensorflow_lite_support.python.task.processor.proto import bounding_box_pb2 |
| 22 | +from tensorflow_lite_support.python.task.processor.proto import class_pb2 |
22 | 23 | from tensorflow_lite_support.python.task.processor.proto import classification_options_pb2 |
23 | 24 | from tensorflow_lite_support.python.task.processor.proto import classifications_pb2 |
24 | 25 | from tensorflow_lite_support.python.task.processor.proto import detection_options_pb2 |
25 | 26 | from tensorflow_lite_support.python.task.processor.proto import detections_pb2 |
26 | 27 | from tensorflow_lite_support.python.task.processor.proto import embedding_options_pb2 |
27 | 28 | from tensorflow_lite_support.python.task.processor.proto import embedding_pb2 |
28 | | -from tensorflow_lite_support.python.task.processor.proto import segmentation_options_pb2 |
29 | | -from tensorflow_lite_support.python.task.processor.proto import segmentations_pb2 |
30 | 29 | from tensorflow_lite_support.python.task.processor.proto import search_options_pb2 |
31 | 30 | from tensorflow_lite_support.python.task.processor.proto import search_result_pb2 |
| 31 | +from tensorflow_lite_support.python.task.processor.proto import segmentation_options_pb2 |
| 32 | +from tensorflow_lite_support.python.task.processor.proto import segmentations_pb2 |
32 | 33 |
|
33 | 34 | BoundingBox = bounding_box_pb2.BoundingBox |
| 35 | +Category = class_pb2.Category |
34 | 36 | ClassificationOptions = classification_options_pb2.ClassificationOptions |
35 | 37 | Classifications = classifications_pb2.Classifications |
| 38 | +ClassificationResult = classifications_pb2.ClassificationResult |
36 | 39 | DetectionOptions = detection_options_pb2.DetectionOptions |
| 40 | +Detection = detections_pb2.Detection |
37 | 41 | DetectionResult = detections_pb2.DetectionResult |
38 | 42 | EmbeddingOptions = embedding_options_pb2.EmbeddingOptions |
| 43 | +FeatureVector = embedding_pb2.FeatureVector |
39 | 44 | Embedding = embedding_pb2.Embedding |
40 | | -SegmentationOptions = segmentation_options_pb2.SegmentationOptions |
41 | | -Segmentation = segmentations_pb2.Segmentation |
| 45 | +EmbeddingResult = embedding_pb2.EmbeddingResult |
42 | 46 | SearchOptions = search_options_pb2.SearchOptions |
43 | 47 | SearchResult = search_result_pb2.SearchResult |
| 48 | +NearestNeighbor = search_result_pb2.NearestNeighbor |
| 49 | +SegmentationOptions = segmentation_options_pb2.SegmentationOptions |
| 50 | +Segmentation = segmentations_pb2.Segmentation |
| 51 | +SegmentationResult = segmentations_pb2.SegmentationResult |
44 | 52 |
|
45 | 53 | # Remove unnecessary modules to avoid duplication in API docs. |
46 | 54 | del bounding_box_pb2 |
| 55 | +del class_pb2 |
47 | 56 | del classification_options_pb2 |
48 | 57 | del classifications_pb2 |
49 | 58 | del detection_options_pb2 |
|
0 commit comments