omv — OpenMV Cam Information

The omv module exposes runtime information about the OpenMV Cam itself – the firmware version, the underlying MCU architecture, the board model and a stable board ID – so that scripts can adapt their behaviour to the hardware they are running on. It also reports whether the OpenMV IDE is currently attached over the debug protocol via debug_mode(), which is useful for switching between live preview and standalone operation.

Example usage:

import omv

print("board:       ", omv.board_type(), omv.board_id())
print("arch:        ", omv.arch())
print("firmware:    ", omv.version_string())
print("IDE attached:", omv.debug_mode())

Functions

omv.version_string() str

Returns the firmware version string (e.g. "2.8.0").

omv.arch() str

Returns the board architecture string.

omv.board_type() str

Returns the board type string.

omv.board_id() str

Returns the board id string.

omv.debug_mode() bool

Returns True if the OpenMV debug protocol is currently active (i.e. the cam is connected to the IDE), False otherwise.

Constants

omv.version_major: int

The firmware major version number.

omv.version_minor: int

The firmware minor version number.

omv.version_patch: int

The firmware patch version number.