![]() |
MIPI - Physical Interface for MIDI Files
|
Classes | |
| class | AprilTagPianoDetector |
| ros 2 node combining apriltag detection with yolo based piano key segmenytation on each incoming image the node: 1) Runs Yolo segmengation and detection to locate piano keys 2) Detects AprilTags 3)Anotate a previw frame and show it in an opencv window. More... | |
Functions | |
| main (args=None) | |
| Ros 2 entery point. | |
Variables | |
| int | YOLO_IMG_SIZE = 640 |
| int | YOLO_SKIP = 1 |
| bool | YOLO_HALF = True |
| float | DISPLAY_SCALE = 1.0 |
| tuple | WHITE_KEY_OFFSET = (0, 30) |
| ( X offset, Y offset ) pixel offset added to the raw white- black key centroide before publishing | |
| tuple | BLACK_KEY_OFFSET = (0, 10) |
| test5.main | ( | args = None | ) |
Ros 2 entery point.
initilizeses the ros2 context spins the apriltagPianoDetection node until intruppted. Then tears down th OpenCV window and shuts down cleanly.
| args | Optional command line argumant list forwarded to rclpy.init() |

| tuple test5.BLACK_KEY_OFFSET = (0, 10) |
| float test5.DISPLAY_SCALE = 1.0 |
| tuple test5.WHITE_KEY_OFFSET = (0, 30) |
( X offset, Y offset ) pixel offset added to the raw white- black key centroide before publishing
| bool test5.YOLO_HALF = True |
| int test5.YOLO_IMG_SIZE = 640 |
| int test5.YOLO_SKIP = 1 |