Camera Information
Introduction
These functions are retrieving the information from the camera device.
VxGetUSBFirmwareVersion
Function:
- C++
- Python
int VxGetUSBFirmwareVersion(std::shared_ptr<VxCamera> vxcam, std::string& fwVer)
def VxGetUSBFirmwareVersion(vxcam)
Function Description:
- This function retrieves the firmware version of the connected USB camera.
Parameter Description:
- vxcam : A pointer shared ownership of a camera obtained from VxInitialCameraDevice().
- fwVer : A string to store the firmware version.
- Return:
- C++ : return 0 = PASS, return -1 = FAIL
- Python : tuple(return_code, fwVer)
return_code : return 0 = PASS, return -1 = FAIL
Example:
- C++
- Python
std::string fwVer;
// get the version of USB device firmware
VxGetUSBFirmwareVersion(vxcam, fwVer);
# get the version of USB device firmware
result, fwVer = pyvizionsdk.VxGetUSBFirmwareVersion(vxcam)
print("USB firmware version:", fwVer)
print("Return code:", result)
VxGetTEVSFirmwareVersion
Function:
- C++
- Python
int VxGetTEVSFirmwareVersion(std::shared_ptr<VxCamera> vxcam, std::string& fwVer)
def VxGetTEVSFirmwareVersion(vxcam)
Function Description:
- This function retrieves the firmware version of the connected TEVS camera.
Parameter Description:
- vxcam : A pointer shared ownership of a camera obtained from VxInitialCameraDevice().
- fwVer : A string to store the firmware version.
- Return:
- C++ : return 0 = PASS, return -1 = FAIL
- Python : tuple(return_code, fwVer)
return_code : return 0 = PASS, return -1 = FAIL
Example:
- C++
- Python
std::string fwVer;
// get the version of TEVS device firmware
VxGetTEVSFirmwareVersion(vxcam, fwVer);
# get the version of TEVS device firmware
result, fwVer = pyvizionsdk.VxGetTEVSFirmwareVersion(vxcam)
print("TEVS firmware version:", fwVer)
print("Return code:", result)
VxGetSensorUniqueID
Function:
- C++
- Python
int VxGetSensorUniqueID(std::shared_ptr<VxCamera> vxcam, std::string& uniqueId)
def VxGetSensorUniqueID(vxcam)
Function Description:
- This function is used to retrieve the unique ID from the sensor.
Parameter Description:
- vxcam : A pointer shared ownership of a camera obtained from VxInitialCameraDevice().
- uniqueId : A string to store the sensor ID.
- Return:
- C++ : return 0 = PASS, return -1 = FAIL
- Python : tuple(return_code, uniqueId)
return_code : return 0 = PASS, return -1 = FAIL
Example:
- C++
- Python
std::string uniqueId;
// get the sensor id
VxGetSensorUniqueID(vxcam, uniqueId);
# get the sensor id
result, uniqueId = pyvizionsdk.VxGetSensorUniqueID(vxcam)
print("Sensor unique ID:", uniqueId)
print("Return code:", result)
VxGetSensorFirmwareVersion
Function:
- C++
- Python
int VxGetSensorFirmwareVersion(std::shared_ptr<VxCamera> vxcam, std::string& fwVer)
def VxGetSensorFirmwareVersion(vxcam)
Function Description:
- This function is used to retrieve the firmware version from the sensor.
Parameter Description:
- vxcam : A pointer shared ownership of a camera obtained from VxInitialCameraDevice().
- fwVer : A string to store the firmware version.
- Return:
- C++ : return 0 = PASS, return -1 = FAIL
- Python : tuple(return_code, fwVer)
return_code : return 0 = PASS, return -1 = FAIL
Example:
- C++
- Python
std::string fwVer;
// get the firmware version
VxGetSensorFirmwareVersion(vxcam, fwVer);
# get the sensor id
result, fwVer = pyvizionsdk.VxGetSensorFirmwareVersion(vxcam)
print("Sensor firmware version:", fwVer)
print("Return code:", result)