Hi @ssicari,
Do you have dedicated hardware you’re wanting to run this on, or are you planning to run it on the onboard computer (Raspberry Pi)? If the latter then the recommended approach would be to develop an Extension that runs your code, but you’ll need to be mindful of the processing requirements of your program (video decoding and computer vision can be quite intense), and will potentially need to upgrade your onboard computer to have sufficient processing capability.
Alternatively
- there are machine-vision cameras that allow you to run models on the camera hardware (e.g. the Luxonis OAK cameras), or
- you could run the model on some other intermediary hardware that sits between the camera and the onboard computer, or
- (as @ryan354 suggested) you could process on the (topside) control station computer and send relevant control commands back to the vehicle.