1) change IP address of OAK
2) reboot the OAK
3) get focus or lens position
4) set sensor resolution
5) get sensor name
A timely reply with code excerpts will be much appreciated. 1) and 2) are of outmost importance. Thanks
1) change IP address of OAK
2) reboot the OAK
3) get focus or lens position
4) set sensor resolution
5) get sensor name
A timely reply with code excerpts will be much appreciated. 1) and 2) are of outmost importance. Thanks
Thor 1) change IP address of OAK
No way to do that inside the script node.
Thor 2) reboot the OAK
Don't think there is a way to do that either, but I'm pretty sure that triggering the exit()
will reboot the device. Not graciously though.
Thor 3) get focus or lens position
ImgFrame has getLensPosition()
method which you can use from inside the script node.
Thor 4) set sensor resolution
can't set sensor resolution during runtime anyway
Thor 5) get sensor name
Can't access it.
I think maybe the best you can do for rebooting the OAK in standalone mode, is if your POE switch has a web API, you can use script node to send an HTTP message to power cycle the port it's connected to. I've done that with a few different switches, from Omnitron, Ubiquiti, and MIkrotik.