Brian Silverman | fac9b87 | 2020-02-05 20:07:38 -0800 | [diff] [blame] | 1 | include "y2020/vision/sift/sift.fbs"; |
| 2 | |
| 3 | namespace frc971.vision.sift; |
| 4 | |
| 5 | // Represents a single image we train against. |
| 6 | table 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 Ostrowski | ad5d8a7 | 2020-02-28 00:15:26 -0800 | [diff] [blame] | 13 | |
| 14 | // 2D image coordinate representing target location on the training image |
| 15 | target_point_x:float; |
| 16 | target_point_y:float; |
Brian Silverman | fac9b87 | 2020-02-05 20:07:38 -0800 | [diff] [blame] | 17 | } |
| 18 | |
| 19 | // Represents the information used to match incoming images against. |
| 20 | table TrainingData { |
| 21 | images:[TrainingImage]; |
Brian Silverman | 4d4a70d | 2020-02-17 13:03:19 -0800 | [diff] [blame] | 22 | |
| 23 | // Calibration information for all the cameras we know about. |
| 24 | camera_calibrations:[CameraCalibration]; |
Brian Silverman | fac9b87 | 2020-02-05 20:07:38 -0800 | [diff] [blame] | 25 | } |
| 26 | |
| 27 | root_type TrainingData; |