函数 | |
def | work_thread (cam, pData, nDataSize) |
def | press_any_key_exit () |
变量 | |
bool | g_bExit = False |
stDevInfo = MV_CC_DEVICE_INFO() | |
stGigEDev = MV_GIGE_DEVICE_INFO() | |
deviceIp = input("please input current camera ip : ") | |
netIp = input("please input your PC ip : ") | |
deviceIpList = deviceIp.split('.') | |
nCurrentIp | |
netIpList = netIp.split('.') | |
nNetExport | |
nTLayerType | |
stGigEInfo | |
cam = MvCamera() | |
ret = cam.MV_CC_CreateHandle(stDevInfo) | |
nPacketSize = cam.MV_CC_GetOptimalPacketSize() | |
stParam = MVCC_INTVALUE() | |
nPayloadSize = stParam.nCurValue | |
tuple | data_buf = (c_ubyte * nPayloadSize)() |
hThreadHandle = threading.Thread(target=work_thread, args=(cam, byref(data_buf), nPayloadSize)) | |
def ConnectSpecCamera.work_thread | ( | cam, | |
pData, | |||
nDataSize | |||
) |
def ConnectSpecCamera.press_any_key_exit | ( | ) |
bool g_bExit = False |
stDevInfo = MV_CC_DEVICE_INFO() |
stGigEDev = MV_GIGE_DEVICE_INFO() |
deviceIp = input("please input current camera ip : ") |
netIp = input("please input your PC ip : ") |
deviceIpList = deviceIp.split('.') |
nCurrentIp |
netIpList = netIp.split('.') |
nNetExport |
nTLayerType |
stGigEInfo |
cam = MvCamera() |
ret = cam.MV_CC_CreateHandle(stDevInfo) |
nPacketSize = cam.MV_CC_GetOptimalPacketSize() |
stParam = MVCC_INTVALUE() |
nPayloadSize = stParam.nCurValue |
tuple data_buf = (c_ubyte * nPayloadSize)() |
hThreadHandle = threading.Thread(target=work_thread, args=(cam, byref(data_buf), nPayloadSize)) |