blob: d4fa7401f87f455604df2047c9074656a08b05be [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;
Brian Silvermanfac9b872020-02-05 20:07:38 -080017}
18
19// Represents the information used to match incoming images against.
20table TrainingData {
21 images:[TrainingImage];
Brian Silverman4d4a70d2020-02-17 13:03:19 -080022
23 // Calibration information for all the cameras we know about.
24 camera_calibrations:[CameraCalibration];
Brian Silvermanfac9b872020-02-05 20:07:38 -080025}
26
27root_type TrainingData;