I bought an openmv camera, and I don't understand how to work with it. As I understand it, it is main.py
a script in which you can write your own code to work with it. Okay, that's clear.
But here's the question: I want to write 1 more qt app that will work with this script on the camera, that is, for example, I have a script on the camera that stores the value string = "string"
.
I want to get this value in my qt app, but I can't seem to understand how, if it is not clear how to run the script on the camera, through my qt app. I kind of understood that main.py
should be written in MicroPython, or something like that, but I am confused.
To summarize, I need to link my scripts on a PC with a script main.py
lying on the camera connected via USB. I thought to do it through the com ports, but how do I run the script on the camera so that the com ports listen to each other?
I tried to do it via COM ports, and the idea came up to do it via sockets, but I'm not good at it, + you can probably write a web API for data exchange. But I don't think this is a good idea. Why do I need a web API if the devices are connected via USB?