Skip to content

Commit

Permalink
Added UpdateBoundingBox
Browse files Browse the repository at this point in the history
  • Loading branch information
vpandiarajan20 committed Aug 28, 2024
1 parent 8d4c379 commit 764103a
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions proto/viam/app/data/v1/data.proto
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ service DataService {
// BoundingBoxLabelsByFilter gets all string labels for bounding boxes from data based on given filter.
rpc BoundingBoxLabelsByFilter(BoundingBoxLabelsByFilterRequest) returns (BoundingBoxLabelsByFilterResponse);

// UpdateBoundingBox updates the bounding box with the given image and bounding box ID.
rpc UpdateBoundingBox(UpdateBoundingBoxRequest) returns (UpdateBoundingBoxResponse);

// GetDatabaseConnection gets a connection to access a MongoDB Atlas Data Federation instance. It
// returns the hostname of the federated database.
rpc GetDatabaseConnection(GetDatabaseConnectionRequest) returns (GetDatabaseConnectionResponse);
Expand Down Expand Up @@ -420,6 +423,19 @@ message RemoveBoundingBoxFromImageByIDRequest {

message RemoveBoundingBoxFromImageByIDResponse {}

// UpdateBoundingBoxRequest updates the bounding box with specified bbox ID for the file represented by the binary id.
message UpdateBoundingBoxRequest {
BinaryID binary_id = 1;
string bbox_id = 2;
optional string label = 3;
optional double x_min_normalized = 4;
optional double y_min_normalized = 5;
optional double x_max_normalized = 6;
optional double y_max_normalized = 7;
}

message UpdateBoundingBoxResponse {}

// BoundingBoxLabelsByFilterRequest requests all the labels of the bounding boxes from files from a given filter.
message BoundingBoxLabelsByFilterRequest {
Filter filter = 1;
Expand Down

0 comments on commit 764103a

Please sign in to comment.