Using a GPIO to draw on video?

Hi there,

I am trying to figure out the best way to design the following project:

A camera at a fixed position is looking at a moving object in a scene (for example, looking at a drone flying in the sky). The Jetson is tracking this object, and whenever a GPIO pin is held high (or button is held down), the Jetson should continuously draw a marker (or bounding box) at the position of the tracked object at that instant (or duration of button press).

I am just looking for some input on what tools to use to do the interfacing of the GPIO input to the rendering of graphics over the camera recording, any thoughts?


hello mike6789,

did I understanding correctly that you would like to draw the tracks on the video streaming? then you should looking for an object tracking algorithm.
may I have more details about what’s your use-case for GPIO pin?