Restart camera from raspberry pi zero

Hi,
I have connected OpenMV camera to Raspberry pi zero over USB cable.
Serial is working fine, also I can edit and update main.py
Now if I disconnect and connect USB cable OpenMV camera start to run new main.py program.
But I want to do that from Raspberry pi without disconnect and connect USB cable.

Thanks,
Petrica Chiriac

Hi, in OpenMV IDE see Tools → Reset OpenMV Cam.

ohh no UI for raspberry pi zero, I have only ssh access on pi. pi is on robot power by batteries.
I need a programmatic way to reset …

Thanks,

See here: openmv/pyopenmv.py at master · openmv/openmv · GitHub

Issue the reset command.

Thanks Nyamekye,
is working perfect!

Petrica Chiriac