MIPI - Physical Interface for MIDI Files
Loading...
Searching...
No Matches
test5 Namespace Reference

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)
 

Function Documentation

◆ main()

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.

Parameters
argsOptional command line argumant list forwarded to rclpy.init()
Here is the call graph for this function:

Variable Documentation

◆ BLACK_KEY_OFFSET

tuple test5.BLACK_KEY_OFFSET = (0, 10)

◆ DISPLAY_SCALE

float test5.DISPLAY_SCALE = 1.0

◆ WHITE_KEY_OFFSET

tuple test5.WHITE_KEY_OFFSET = (0, 30)

( X offset, Y offset ) pixel offset added to the raw white- black key centroide before publishing

◆ YOLO_HALF

bool test5.YOLO_HALF = True

◆ YOLO_IMG_SIZE

int test5.YOLO_IMG_SIZE = 640

◆ YOLO_SKIP

int test5.YOLO_SKIP = 1