-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels