没有合适的资源?快使用搜索试试~
我知道了~
温馨提示
个人硬件:海康威视工业相机CA013-A0UC USB3 注意是usb3 linux版本环境比较麻烦,要注意自己的硬件系统是x86还是ARM等等, 我个人是ubuntu18 https://www.hikrobotics.com/cn/machinevision/service/download?module=0在海康官方下载其linux版本的MVS,下载完成后有很多版本的,根据自己电脑是x86或者arm来选择解压,同时在其中文文档中根据要求需要配置好环境变量!!! 文件夹中的海康文档给出了命令行 可以在终端中输入export查看环境变量是否导入了路径 第一次添加环境变量后需要重启(这点可能因人而异) 压缩包中有两个文件夹 一个是直接运行的脚本 一个是封装成类 根据需要自取,运行hik2cv.py即可
收起资源包目录
hik_get_cv(linux).rar
(28个子文件)
hik_get_cv(封装成类)
hik_get_cv(linux)
MvImport
PixelType_header.py
7KB
MvCameraControl_class.py
16KB
PixelType_const.py
701B
__pycache__
PixelType_const.cpython-36.pyc
431B
MvCameraControl_header.cpython-36.pyc
21KB
PixelType_header.cpython-36.pyc
5KB
MvErrorDefine_const.cpython-36.pyc
2KB
CameraParams_header.cpython-36.pyc
21KB
CameraParams_const.cpython-36.pyc
1KB
MvCameraControl_class.cpython-36.pyc
10KB
MvCameraControl_header.py
33KB
CameraParams_const.py
2KB
CameraParams_header.py
33KB
MvErrorDefine_const.py
5KB
hic2cv.py
9KB
__pycache__
PixelType_const.cpython-36.pyc
431B
MvCameraControl_header.cpython-36.pyc
21KB
PixelType_header.cpython-36.pyc
5KB
MvErrorDefine_const.cpython-36.pyc
2KB
CameraParams_header.cpython-36.pyc
21KB
CameraParams_const.cpython-36.pyc
1KB
MvCameraControl_class.cpython-36.pyc
10KB
.idea
MvImport.iml
284B
misc.xml
185B
modules.xml
268B
workspace.xml
3KB
.gitignore
47B
inspectionProfiles
profiles_settings.xml
174B
共 28 条
- 1
# generated by 'xml2py'
# flags '-c -d -v C:\test_h\MvCameraControl.xml -o MvCameraControl_header.py'
from ctypes import *
STRING = c_char_p
PixelType_Gvsp_BayerBG12 = 17825811
MV_TRIGGER_SOURCE_LINE1 = 1
PixelType_Gvsp_Mono8_Signed = 17301506
MV_BALANCEWHITE_AUTO_ONCE = 2
PixelType_Gvsp_BayerGB8 = 17301514
MV_BALANCEWHITE_AUTO_OFF = 0
MV_Image_Jpeg = 2
PixelType_Gvsp_Mono12 = 17825797
MV_GAMMA_SELECTOR_SRGB = 2
PixelType_Gvsp_Coord3D_ABC32f_Planar = 39846081
PixelType_Gvsp_Coord3D_AC32f = 36176066
MV_EXPOSURE_AUTO_MODE_ONCE = 1
MV_GAMMA_SELECTOR_USER = 1
AM_WO = 2
PixelType_Gvsp_BayerBG10 = 17825807
PixelType_Gvsp_RGB10_Planar = 36700194
PixelType_Gvsp_BayerGB12 = 17825810
MV_BALANCEWHITE_AUTO_CONTINUOUS = 1
PixelType_Gvsp_BayerRG8 = 17301513
PixelType_Gvsp_COORD3D_DEPTH_PLUS_MASK = -2112094207
PixelType_Gvsp_RGB12_Planar = 36700195
PixelType_Gvsp_Mono10 = 17825795
PixelType_Gvsp_Undefined = -1
PixelType_Gvsp_BayerRG10_Packed = 17563687
PixelType_Gvsp_BayerGR16 = 17825838
PixelType_Gvsp_BayerBG12_Packed = 17563693
PixelType_Gvsp_BayerGB16 = 17825840
MV_TRIGGER_MODE_OFF = 0
PixelType_Gvsp_BayerRG16 = 17825839
PixelType_Gvsp_YCBCR709_411_8_CBYYCRYY = 34340930
PixelType_Gvsp_BayerBG16 = 17825841
PixelType_Gvsp_RGB8_Planar = 35127329
PixelType_Gvsp_RGB8_Packed = 35127316
PixelType_Gvsp_BGR8_Packed = 35127317
PixelType_Gvsp_RGBA8_Packed = 35651606
PixelType_Gvsp_YCBCR422_8_CBYCRY = 34603075
PixelType_Gvsp_RGB565_Packed = 34603061
PixelType_Gvsp_YCBCR422_8 = 34603067
PixelType_Gvsp_YUV444_Packed = 35127328
PixelType_Gvsp_YCBCR709_422_8_CBYCRY = 34603077
PixelType_Gvsp_YCBCR709_422_8 = 34603073
PixelType_Gvsp_RGB10_Packed = 36700184
PixelType_Gvsp_YCBCR8_CBYCR = 35127354
PixelType_Gvsp_YCBCR709_8_CBYCR = 35127360
PixelType_Gvsp_YCBCR601_411_8_CBYYCRYY = 34340927
IFT_IBoolean = 3
PixelType_Gvsp_RGB12_Packed = 36700186
PixelType_Gvsp_YUV422_YUYV_Packed = 34603058
PixelType_Gvsp_YCBCR601_422_8 = 34603070
PixelType_Gvsp_RGB16_Packed = 36700211
PixelType_Gvsp_BGR12_Packed = 36700187
PixelType_Gvsp_BayerGB12_Packed = 17563692
PixelType_Gvsp_BGR565_Packed = 34603062
PixelType_Gvsp_YCBCR601_422_8_CBYCRY = 34603076
PixelType_Gvsp_YUV411_Packed = 34340894
PixelType_Gvsp_BayerRG12_Packed = 17563691
PixelType_Gvsp_RGB10V1_Packed = 35651612
PixelType_Gvsp_YUV422_Packed = 34603039
MV_GAIN_MODE_ONCE = 1
MV_GAIN_MODE_CONTINUOUS = 2
MV_GAIN_MODE_OFF = 0
MV_GIGE_TRANSTYPE_MULTICAST = 1
MV_GIGE_TRANSTYPE_UNICAST = 0
AM_NI = 0
IFT_IValue = 0
PixelType_Gvsp_BGRA8_Packed = 35651607
MV_GIGE_TRANSTYPE_LIMITEDBROADCAST = 2
MV_GIGE_TRANSTYPE_CAMERADEFINED = 4
MV_GIGE_TRANSTYPE_SUBNETBROADCAST = 3
PixelType_Gvsp_BGR10_Packed = 36700185
MV_GIGE_TRANSTYPE_UNICAST_WITHOUT_RECV = 65536
V_Guru = 2
MV_GIGE_TRANSTYPE_UNICAST_DEFINED_PORT = 5
MV_GIGE_TRANSTYPE_MULTICAST_WITHOUT_RECV = 65537
PixelType_Gvsp_BayerGB10 = 17825806
IFT_ICategory = 8
PixelType_Gvsp_Coord3D_ABC32f = 39846080
MV_EXPOSURE_MODE_TRIGGER_WIDTH = 1
PixelType_Gvsp_BayerRG10 = 17825805
IFT_IEnumeration = 9
IFT_IFloat = 5
PixelType_Gvsp_RGB16_Planar = 36700196
PixelType_Gvsp_Mono14 = 17825829
IFT_IString = 6
PixelType_Gvsp_YCBCR411_8_CBYYCRYY = 34340924
PixelType_Gvsp_Mono12_Packed = 17563654
PixelType_Gvsp_Mono8 = 17301505
AM_CycleDetect = 6
PixelType_Gvsp_Mono4p = 17039417
PixelType_Gvsp_Mono10_Packed = 17563652
AM_Undefined = 5
MV_EXPOSURE_MODE_TIMED = 0
PixelType_Gvsp_BayerRG12 = 17825809
PixelType_Gvsp_BayerGR12 = 17825808
IFT_IEnumEntry = 10
AM_RW = 4
PixelType_Gvsp_Mono16 = 17825799
PixelType_Gvsp_BayerGR8 = 17301512
IFT_IInteger = 2
AM_RO = 3
MV_EXPOSURE_AUTO_MODE_OFF = 0
PixelType_Gvsp_Mono2p = 16908344
PixelType_Gvsp_BayerGR12_Packed = 17563690
PixelType_Gvsp_BayerGB10_Packed = 17563688
PixelType_Gvsp_BayerGR10_Packed = 17563686
PixelType_Gvsp_BayerBG10_Packed = 17563689
PixelType_Gvsp_YCBCR601_8_CBYCR = 35127357
IFT_IPort = 11
IFT_IBase = 1
V_Invisible = 3
V_Beginner = 0
PixelType_Gvsp_Jpeg = -2145910783
MV_Image_Undefined = 0
MV_EXPOSURE_AUTO_MODE_CONTINUOUS = 2
MV_Image_Bmp = 1
MV_TRIGGER_SOURCE_SOFTWARE = 7
IFT_IRegister = 7
MV_Image_Png = 3
MV_ACQ_MODE_SINGLE = 0
MV_Image_Tif = 4
V_Expert = 1
MV_ACQ_MODE_CONTINUOUS = 2
MV_ACQ_MODE_MUTLI = 1
PixelType_Gvsp_BayerGR10 = 17825804
AM_NA = 1
V_Undefined = 99
MV_TRIGGER_SOURCE_FrequencyConverter = 8
IFT_ICommand = 4
MV_TRIGGER_MODE_ON = 1
PixelType_Gvsp_RGB10V2_Packed = 35651613
PixelType_Gvsp_BayerBG8 = 17301515
MV_TRIGGER_SOURCE_LINE2 = 2
PixelType_Gvsp_RGB12V1_Packed = 35913780
MV_TRIGGER_SOURCE_LINE3 = 3
MV_TRIGGER_SOURCE_COUNTER0 = 4
MV_TRIGGER_SOURCE_LINE0 = 0
PixelType_Gvsp_Mono1p = 16842807
int8_t = c_int8
int16_t = c_int16
int32_t = c_int32
int64_t = c_int64
uint8_t = c_uint8
uint16_t = c_uint16
uint32_t = c_uint32
uint64_t = c_uint64
int_least8_t = c_byte
int_least16_t = c_short
int_least32_t = c_int
int_least64_t = c_long
uint_least8_t = c_ubyte
uint_least16_t = c_ushort
uint_least32_t = c_uint
uint_least64_t = c_ulong
int_fast8_t = c_byte
int_fast16_t = c_long
int_fast32_t = c_long
int_fast64_t = c_long
uint_fast8_t = c_ubyte
uint_fast16_t = c_ulong
uint_fast32_t = c_ulong
uint_fast64_t = c_ulong
intptr_t = c_long
uintptr_t = c_ulong
intmax_t = c_long
uintmax_t = c_ulong
# CameraParams.h 21
class _MV_GIGE_DEVICE_INFO_(Structure):
_MV_GIGE_DEVICE_INFO_._fields_ = [
# CameraParams.h 21
('nIpCfgOption', c_uint),
('nIpCfgCurrent', c_uint),
('nCurrentIp', c_uint),
('nCurrentSubNetMask', c_uint),
('nDefultGateWay', c_uint),
('chManufacturerName', c_ubyte * 32),
('chModelName', c_ubyte * 32),
('chDeviceVersion', c_ubyte * 32),
('chManufacturerSpecificInfo', c_ubyte * 48),
('chSerialNumber', c_ubyte * 16),
('chUserDefinedName', c_ubyte * 16),
('nNetExport', c_uint),
('nReserved', c_uint * 4),
MV_GIGE_DEVICE_INFO = _MV_GIGE_DEVICE_INFO_
# CameraParams.h 42
class _MV_USB3_DEVICE_INFO_(Structure):
_MV_USB3_DEVICE_INFO_._fields_ = [
# CameraParams.h 42
('CrtlInEndPoint', c_ubyte),
('CrtlOutEndPoint', c_ubyte),
('StreamEndPoint', c_ubyte),
('EventEndPoint', c_ubyte),
('idVendor', c_ushort),
('idProduct', c_ushort),
('nDeviceNumber', c_uint),
('chDeviceGUID', c_ubyte * 64),
('chVendorName', c_ubyte * 64),
('chModelName', c_ubyte * 64),
('chFamilyName', c_ubyte * 64),
('chDeviceVersion', c_ubyte * 64),
('chManufacturerName', c_ubyte * 64),
('chSerialNumber', c_ubyte * 64),
('chUserDefinedName', c_ubyte * 64),
('nbcdUSB', c_uint),
('nReserved', c_uint * 3),
MV_USB3_DEVICE_INFO = _MV_USB3_DEVICE_INFO_
# CameraParams.h 64
class _MV_CC_DEVICE_INFO_(Structure):
# CameraParams.h 76
class N19_MV_CC_DEVICE_INFO_3DOT_0E(Union):
N19_MV_CC_DEVICE_INFO_3DOT_0E._fields_ = [
# CameraParams.h 76
('stGigEInfo', MV_GIGE_DEVICE_INFO),
('stUsb3VInfo', MV_USB3_DEVICE_INFO),
_MV_CC_DEVICE_INFO_._fields_ = [
# CameraParams.h 64
('nMajorVer', c_ushort),
('nMinorVer', c_ushort),
('nMacAddrHigh', c_uint),
('nMacAddrLow', c_uint),
('nTLayerType', c_uint),
('nReserved', c_uint * 4),
('SpecialInfo', N19_MV_CC_DEVICE_INFO_3DOT_0E),
MV_CC_DEVICE_INFO = _MV_CC_DEVICE_INFO_
# CameraParams.h 86
class _MV_NETTRANS_INFO_(Structure):
_MV_NETTRANS_INFO_._fields_ = [
# CameraParams.h 86
('nReviceDataSize', int64_t),
('nThrowFrameCount', c_int),
('nReserved', c_uint * 5),
MV_NETTRANS_INFO = _MV_NETTRANS_INFO_
# CameraParams.h 101
class _MV_CC_DEVICE_INFO_LIST_(Structure):
_MV_CC_DEVICE_INFO_LIST_._fields_ = [
# CameraParams.h 101
('nDeviceNum', c_uint),
('pDeviceInfo', POINTER(MV_CC_DEVICE_INFO) * 256),
MV_CC_DEVICE_INFO_LIST = _MV_CC_DEVICE_INFO_LIST_
# CameraParams.h 110
class _MV_FRAME_
评论0