How does OpenMV IDE stream video from a Nicla vision over USB?
How can I achieve this without using OpenMV (directly from the command line of a Raspberry Pi)?
Thanks, which script should I be running on the Nicla side?
Also, when I run python3 ./pyopenmv_fb.py
, I get the following:
pygame 2.6.1 (SDL 2.28.4, Python 3.8.10)
Hello from the pygame community. https://www.pygame.org/contribute.html
Failed to connect to OpenMV's serial port.
Please install OpenMV's udev rules first:
sudo cp openmv/udev/50-openmv.rules /etc/udev/rules.d/
sudo udevadm control --reload-rules
/etc/udev/rules.d/50-openmv.rules
contains:
# OpenMV
# If you share your linux system with other users, or just don't like the
# idea of write permission for everybody, you can replace MODE:="0666" with
# OWNER:="yourusername" to create the device owned by you, or with
# GROUP:="somegroupname" and mange access using standard unix groups.
ATTRS{idVendor}=="1209", ATTRS{idProduct}=="abd1", ENV{ID_MM_DEVICE_IGNORE}="1"
ATTRS{idVendor}=="1209", ATTRS{idProduct}=="abd1", ENV{MTP_NO_PROBE}="1"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="df11", MODE:="0666", SYMLINK+="openmvdfu"
KERNEL=="ttyACM*", ATTRS{idVendor}=="1209", ATTRS{idProduct}=="abd1", MODE:="0666", SYMLINK+="openmvcam"
KERNEL=="ttyACM*", ATTRS{idVendor}=="2341", ATTRS{idProduct}=="045f", MODE:="0666", SYMLINK+="niclacam"
(I added the last line based on the Vendor and Product IDs I detected in the output of the dmesg
command, after I plugged in the Nicla over USB).
Hi, you need to specify the serial port for the camera to connect to. That’s just a general error message when it can’t open the default port. Note that you need to have pyserial installed and not have OpenMV IDE using the port.
Be aware, the serial
python package is not pyserial
.
Thanks, it works now!
Uninstalling serial
and installing pyserial
seems to have done the trick.