How to write autonomous code and run?

Hi. I have a project that i need to process(on rpi4b or jetson) the image from camera(arducam) than move autonomously. How will i do these? Where and how to write the codes and than run the code?

I would like to process data in the vehicle but if it’s not possible than i can do it on the top computer.