PerkLab / MCSTrack

Multi-camera spatial tracking
MIT License
0 stars 4 forks source link

Added a Board representation of the ChArUco board using Pydantic #22

Closed Rampex1 closed 6 months ago

Rampex1 commented 6 months ago

Created a BoardMarker to indicate the ID, and the coordinates of the four corners of the marker. Created an ArucoBoardSpecification to indicate the list of markers it contains. Pydantic used for data validation and json serialization.

Rampex1 commented 6 months ago

Added validator to make sure that the length of the list of points is exactly four. Removed data type validator since Pydantic does it. Removed as_dict since Pydantic has its own function as_dict(). Changed class name from ArucoBoardSpecification to Board.

Rampex1 commented 6 months ago

Also, I should probably have named my commit with MNT.

vaughantnrc commented 6 months ago

Thank you David