Skip to content

Solution for Getting Correct Serial Number of the Camera #3

Open
@AmilaCabral

Description

@AmilaCabral

Solution Received from the official TIS

ic.IC_GetSerialNumber.argtypes = [ctypes.POINTER(tis.HGRABBER), ctypes.c_char_p]
tmpstring = ctypes.create_string_buffer(b'xxxxxxxxxxxxxxxxxxxxxxxx') # serial_number = (ctypes.c_char * 20)() is also OK
ic.IC_GetSerialNumber(hGrabber, tmpstring)
serial = format(int(tmpstring.value.decode('utf-8')), 'x')
print(serial)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions