Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Video Rework #31

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions video.proto
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Version: 1.1

syntax = "proto3";
import "utils.proto";
import "version.proto";

enum CameraStatus {
Expand All @@ -26,6 +27,13 @@ enum CameraName {
BOTTOM_RIGHT = 8;
}

enum TargetDetectionType {
DETECTION_TYPE_UNDEFINED = 0;
ARUCO = 1;
HAMMER = 2;
BOTTLE = 3;
}

/// Details about a specific camera.
message CameraDetails {
/// The name of the camera.
Expand Down Expand Up @@ -54,6 +62,36 @@ message CameraDetails {

int32 focus = 11;

float diagonal_fov = 12;

float horizontal_fov = 13;

float vertical_fov = 14;

/// The width of the image data streamed
int32 stream_width = 15;
/// The height of the image data streamed
int32 stream_height = 16;
}

message TrackedTarget {
TargetDetectionType detectionType = 1;

int32 tagId = 2;
float yaw = 3;
float pitch = 4;
float area = 5;
float areaPercent = 6;
int32 centerX = 7;
int32 centerY = 8;
repeated int32 corners = 9;
}

message DetectionResult {
Version version = 1;
CameraName camera = 2;
BoolState hasAruco = 3;
repeated TrackedTarget arucoDetections = 4;
}

/// Reports data about a camera.
Expand Down