close
01-Live
import ctypes
import tisgrabber as tis
ic = ctypes.cdll.LoadLibrary("./tisgrabber_x64.dll")
tis.declareFunctions(ic)
ic.IC_InitLibrary(0)
hGrabber = ic.IC_ShowDeviceSelectionDialog(None)
if(ic.IC_IsDevValid(hGrabber)):
ic.IC_StartLive(hGrabber, 1)
ic.IC_MsgBox(tis.T("Click OK to stop"), tis.T("Simple Live Video"))
ic.IC_StopLive(hGrabber)
else:
ic.IC_MsgBox(tis.T("No device opened"), tis.T("Simple Live Video"))
ic.IC_ReleaseGrabber(hGrabber)
camera #1: DMK 72AUC02
camera #2: DFx 72BUC02
06-list-devices 搜尋所有裝置
1.0.0.0
Device DFx 72BUC02
Unique Name : DFx 72BUC02 19214042
Device DMK 72AUC02
Unique Name : DMK 72AUC02 23324029
全站熱搜