函数 | |
def | event_callback (pEventInfo, pUser) |
def | press_any_key_exit () |
变量 | |
winfun_ctype = CFUNCTYPE | |
stEventInfo = POINTER(MV_EVENT_OUT_INFO) | |
pData = POINTER(c_ubyte) | |
EventInfoCallBack = winfun_ctype(None, stEventInfo, c_void_p) | |
CALL_BACK_FUN = EventInfoCallBack(event_callback) | |
deviceList = MV_CC_DEVICE_INFO_LIST() | |
tlayerType = MV_GIGE_DEVICE | MV_USB_DEVICE | |
ret = MvCamera.MV_CC_EnumDevices(tlayerType, deviceList) | |
mvcc_dev_info = cast(deviceList.pDeviceInfo[i], POINTER(MV_CC_DEVICE_INFO)).contents | |
string | strModeName = "" |
tuple | nip1 = ((mvcc_dev_info.SpecialInfo.stGigEInfo.nCurrentIp & 0xff000000) >> 24) |
tuple | nip2 = ((mvcc_dev_info.SpecialInfo.stGigEInfo.nCurrentIp & 0x00ff0000) >> 16) |
tuple | nip3 = ((mvcc_dev_info.SpecialInfo.stGigEInfo.nCurrentIp & 0x0000ff00) >> 8) |
tuple | nip4 = (mvcc_dev_info.SpecialInfo.stGigEInfo.nCurrentIp & 0x000000ff) |
string | strSerialNumber = "" |
nConnectionNum = input("please input the number of the device to connect:") | |
cam = MvCamera() | |
stDeviceList = cast(deviceList.pDeviceInfo[int(nConnectionNum)], POINTER(MV_CC_DEVICE_INFO)).contents | |
nPacketSize = cam.MV_CC_GetOptimalPacketSize() | |
def Events.event_callback | ( | pEventInfo, | |
pUser | |||
) |
def Events.press_any_key_exit | ( | ) |
winfun_ctype = CFUNCTYPE |
stEventInfo = POINTER(MV_EVENT_OUT_INFO) |
pData = POINTER(c_ubyte) |
EventInfoCallBack = winfun_ctype(None, stEventInfo, c_void_p) |
CALL_BACK_FUN = EventInfoCallBack(event_callback) |
deviceList = MV_CC_DEVICE_INFO_LIST() |
tlayerType = MV_GIGE_DEVICE | MV_USB_DEVICE |
mvcc_dev_info = cast(deviceList.pDeviceInfo[i], POINTER(MV_CC_DEVICE_INFO)).contents |
string strModeName = "" |
tuple nip1 = ((mvcc_dev_info.SpecialInfo.stGigEInfo.nCurrentIp & 0xff000000) >> 24) |
tuple nip2 = ((mvcc_dev_info.SpecialInfo.stGigEInfo.nCurrentIp & 0x00ff0000) >> 16) |
tuple nip3 = ((mvcc_dev_info.SpecialInfo.stGigEInfo.nCurrentIp & 0x0000ff00) >> 8) |
tuple nip4 = (mvcc_dev_info.SpecialInfo.stGigEInfo.nCurrentIp & 0x000000ff) |
string strSerialNumber = "" |
nConnectionNum = input("please input the number of the device to connect:") |
cam = MvCamera() |
stDeviceList = cast(deviceList.pDeviceInfo[int(nConnectionNum)], POINTER(MV_CC_DEVICE_INFO)).contents |
nPacketSize = cam.MV_CC_GetOptimalPacketSize() |