Just a ping to nag @kwagyeman to please take a look at this. I’m stalled until this gets fixed (or someone tells me how to do it properly – right now it’s undocumented, so I’m just guessing)
Here’s some code that works to stream images for TCP. Just connect to the IP address printed out and UDP port 8080 with Open Terminal in the IDE. Frame rate seems to be low, will have to look into that.
Um, so, try the non AP script. That should work for Open Terminal definitely (the first script I posted). Just connect to the IP_address:8080 that the cam prints out.
Update2: AP mode works on one Windows machine but not the other. Curiouser and curiouser.
Quick aside: can you run code from the Open Terminal window? I see a Run button, but no obvious way to open a Python file or even paste or type code into the terminal
The run button executes whatever python script is being displayed in the editor. It does this by sending repl commands over the connection. For a good test try opening a serial port connection to the camera while the IDE is not connected.
Note however… I’ve noticed a bug where the repl code drops bytes when being sent data in paste mode. I think I have to slow down how fast I send out a script. Only short scripts seem to work.
My question is how you get code to display in an Open Terminal at all. There’s no obvious way to load a file in or even type or paste code. What am I missing?
So, whatever is in the editor will be sent to the device when you click the run button in the terminal. The terminal doesn’t locally echo. So, the microcontroller needs to be running a repl terminal over the serial connection.
To demonstrate this just try to connect the OpenMV Cam’s virtual serial port that appears normally when plugged into your computer. This should have the repl terminal on it by default. If you press enter in the terminal window area then you should see “>>>”. Try typing stuff, etc. Then hit the run button to run whatever script is in the editor window.