Open
Description
Calling vz_cam.VZ_SetColorPixelFormat(VzPixelFormat.VzPixelFormatGray8)
with any of the VzPixelFormat enum values fails with message:
File "......./API/VzenseDS_api.py", line 145, in VZ_SetColorPixelFormat
return self.vz_cam_lib.VZ_SetColorPixelFormat(self.device_handle, pixelFormat)
ctypes.ArgumentError: argument 2: TypeError: Don't know how to convert parameter 2
Passing it as an integer instead works.
See MWE below.
from API.VzenseDS_api import VzenseTofCam
from API.VzenseDS_enums import VzPixelFormat
def main():
vz_cam = VzenseTofCam()
ip = "<cam_ip_addr>"
ret = vz_cam.VZ_OpenDeviceByIP(bytes(ip, 'utf-8'))
if not ret == 0:
print("No camera found")
ret = vz_cam.VZ_SetColorPixelFormat(VzPixelFormat.VzPixelFormatGray8)
if not ret == 0:
print("Failed setting pixel format")
return 1
return 0
if __name__ == "__main__":
main()
Running on linux x86_64 with Nebula Version: 1.1.17.834828436
I Couldn't find anything related in the release notes, but please let me know if updating will solve this issue.
Metadata
Metadata
Assignees
Labels
No labels