Firmware (namespace)

用于检查和更新相机固件的自由函数。

请参阅 C++ API 参考 中的 Zivid::Firmware。

class Updater

Public Static Functions

static void Update (Camera ^ camera)

If the current API requires a different firmware than what is present on the camera, the firmware will be updated to this version.

The function throws if the camera is connected, or if the camera is already up to date. Call IsUpToDate first to check if the camera is up to date.

参数:

camera -- A disconnected camera with out of sync firmware.

static void Update (Camera ^ camera, ProgressCallback ^ callback)

If the current API requires a different firmware than what is present on the camera, the firmware will be updated to this version.

The function throws if the camera is connected, or if the camera is already up to date. Call IsUpToDate first to check if the camera is up to date.

参数:
  • camera -- A disconnected camera with out of sync firmware.

  • callback -- A callback function to track progress of update.

static bool IsUpToDate (Camera ^ camera)

Check if the firmware on the camera is of the version that is required by the API.

参数:

camera -- A camera to check if firmware is up to date.

update(camera: Camera, progress_callback=None) → None

Update camera firmware.

If the current API requires a different firmware than what is present on the camera, the firmware will be updated to this version. The function throws if the camera is connected, or if the camera is already up to date. Call is_up_to_date() first to check if the camera is up to date.

参数:
  • camera -- The camera to be updated.

  • progress_callback -- A callback function to track progress of update. The callable is taking a float and a string as progress and description respectively.

is_up_to_date(camera: Camera) → bool

Check if the firmware on the camera is of the version that is required by the API.

参数:

camera -- The camera to check the firmware of (must be in disconnected state)

返回:

A bool that is True if the firmware is up to date

另请参阅