函数 | 变量
ConnectSpecCamera 命名空间参考

函数

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))
 

函数说明

◆ work_thread()

def ConnectSpecCamera.work_thread (   cam,
  pData,
  nDataSize 
)

◆ press_any_key_exit()

def ConnectSpecCamera.press_any_key_exit ( )

变量说明

◆ g_bExit

bool g_bExit = False

◆ stDevInfo

stDevInfo = MV_CC_DEVICE_INFO()

◆ stGigEDev

stGigEDev = MV_GIGE_DEVICE_INFO()

◆ deviceIp

deviceIp = input("please input current camera ip : ")

◆ netIp

netIp = input("please input your PC ip : ")

◆ deviceIpList

deviceIpList = deviceIp.split('.')

◆ nCurrentIp

nCurrentIp

◆ netIpList

netIpList = netIp.split('.')

◆ nNetExport

nNetExport

◆ nTLayerType

nTLayerType

◆ stGigEInfo

stGigEInfo

◆ cam

cam = MvCamera()

◆ ret

◆ nPacketSize

◆ stParam

stParam = MVCC_INTVALUE()

◆ nPayloadSize

nPayloadSize = stParam.nCurValue

◆ data_buf

tuple data_buf = (c_ubyte * nPayloadSize)()

◆ hThreadHandle

hThreadHandle = threading.Thread(target=work_thread, args=(cam, byref(data_buf), nPayloadSize))