IS there a way to display the video from the cam while a program is running without the clutter of the entire IDE running?
Thanks…
Yes there’s an RPC library:
# OpenMV Remote Python Call Library
The `rpc` module on the OpenMV Cam allows you to connect your OpenMV Cam to another microcontroller or computer and execute remote python (or procedure) calls on your OpenMV Cam. The `rpc` module also allows for the reverse too if you want your OpenMV Cam to be able to execute remote procedure (or python) calls on another microcontroller or computer.
For computer control the [rpc](rpc.py) python module in this directory implements the OpenMV `rpc` protocol for control of an OpenMV Cam over USB VCP (i.e. a USB serial port) or over Ethernet/WiFi (i.e. over sockets).
# Library Dependencies
The OpenMV Cam `rpc` library on the computer only depends on [pyserial](https://pythonhosted.org/pyserial/). All other modules used by it come installed with python. To get `pyserial` just do:
pip install pyserial
However, the examples depend on [pygame](https://www.pygame.org/news) so you need to install pygame too:
pip install pygame
Because the interface library is implemented in pure python with no external dependencies it works on Windows, Mac, and Linux.
## UART Support
This file has been truncated. show original
You can also use the drawer buttons in the IDE to hide parts of it. Just drag the sliders in the IDE on areas until things collapse.
I looked at your video on using the rpc and can see the live video stream on a window.
However, in my application, the program is doing edge detection and I want to display the same image as in the IDE to the remote window.
How will I make that work?
Thanks…
You’d edit the script to include your code.
But, it’s easier just to drag the sliders in the IDE to hide everything but the window. When you’re done developing move to the RPC scripts.