Skip to content

armhf support #4

@amm385

Description

@amm385

I found a .so library supposedly supporting armhf here: http://www.touptek.com/download/showdownload.php?lang=en&id=32
but am currently unable to get things working completely.

Specifically, the Toupcam_StartPullModeWithCallback function is returning a non-zero value and Toupcam_PullImage is returning an array of zeroes. Other simple functions are also returning non-zero response codes (e.g. Toupcam_get_HwVersion, Toupcam_get_SerialNumber). Relevant code below.

Unsure given the lack of error if this is user error on my part or some more legitimate bug, however

# Camera Initialization
class HToupCam(ctypes.Structure):
    _fields_ = [('unused', ctypes.c_int)]
...
func = lib.Toupcam_OpenByIndex
func.restype = ctypes.POINTER(HToupCam)
cam = func(index)

# Start Pull Mode
CB = ctypes.CFUNCTYPE(None, ctypes.c_uint, ctypes.c_void_p)
def dummy_fn():
    return True
frame_fn = CB(dummy_fn)
result = lib.Toupcam_StartPullModeWithCallback(cam, frame_fn)
# result = -2147467259

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions