blob: 12ad9b4e718499b3d1b4fd8be1be6f9fd4ff88c3 [file] [log] [blame]
Brian Silvermanfac9b872020-02-05 20:07:38 -08001include "y2020/vision/sift/sift.fbs";
2
3namespace frc971.vision.sift;
4
5// Represents a single image we train against.
6table TrainingImage {
7 features:[Feature];
8
9 // Field coordinates of the target, represented as a transformation matrix
10 // from the target to the field. See CameraPose in :sift_fbs for details of
11 // the conventions of this.
12 field_to_target:TransformationMatrix;
Jim Ostrowskiad5d8a72020-02-28 00:15:26 -080013
14 // 2D image coordinate representing target location on the training image
15 target_point_x:float;
16 target_point_y:float;
Jim Ostrowski18f7fbf2020-03-01 13:53:22 -080017 // Radius of target circle
18 target_point_radius:float;
Brian Silvermanfac9b872020-02-05 20:07:38 -080019}
20
21// Represents the information used to match incoming images against.
22table TrainingData {
23 images:[TrainingImage];
Brian Silverman4d4a70d2020-02-17 13:03:19 -080024
25 // Calibration information for all the cameras we know about.
26 camera_calibrations:[CameraCalibration];
Brian Silvermanfac9b872020-02-05 20:07:38 -080027}
28
29root_type TrainingData;