OpenCV-Python常量类型

原文链接:http://www.juzicode.com/archives/5950

在OpenCV-Python中常量类型可以通过dir(cv2)的方法列出,通过列表推导式加判断条件查询到某一种类型的常量,比如加入判断条件”CV_”找出所有的dtype类型:

import cv2
color = [c for c in dir(cv2) if c.startswith('CV_')]

1、dtype类型

CV_16S CV_16SC1 CV_16SC2 CV_16SC3 CV_16SC4 
CV_16U CV_16UC1 CV_16UC2 CV_16UC3 CV_16UC4 
CV_32F CV_32FC1 CV_32FC2 CV_32FC3 CV_32FC4 
CV_32S CV_32SC1 CV_32SC2 CV_32SC3 CV_32SC4 
CV_64F CV_64FC1 CV_64FC2 CV_64FC3 CV_64FC4 
CV_8S CV_8SC1 CV_8SC2 CV_8SC3 CV_8SC4 
CV_8U CV_8UC1 CV_8UC2 CV_8UC3 CV_8UC4 

2、色彩空间

COLOR_BAYER_BG2BGR	COLOR_BAYER_BG2BGRA	COLOR_BAYER_BG2BGR_EA	
COLOR_BAYER_BG2BGR_VNG	COLOR_BAYER_BG2GRAY	COLOR_BAYER_BG2RGB	
COLOR_BAYER_BG2RGBA	COLOR_BAYER_BG2RGB_EA	COLOR_BAYER_BG2RGB_VNG	
COLOR_BAYER_GB2BGR	COLOR_BAYER_GB2BGRA	COLOR_BAYER_GB2BGR_EA	
COLOR_BAYER_GB2BGR_VNG	COLOR_BAYER_GB2GRAY	COLOR_BAYER_GB2RGB	
COLOR_BAYER_GB2RGBA	COLOR_BAYER_GB2RGB_EA	COLOR_BAYER_GB2RGB_VNG	
COLOR_BAYER_GR2BGR	COLOR_BAYER_GR2BGRA	COLOR_BAYER_GR2BGR_EA	
COLOR_BAYER_GR2BGR_VNG	COLOR_BAYER_GR2GRAY	COLOR_BAYER_GR2RGB	
COLOR_BAYER_GR2RGBA	COLOR_BAYER_GR2RGB_EA	COLOR_BAYER_GR2RGB_VNG	
COLOR_BAYER_RG2BGR	COLOR_BAYER_RG2BGRA	COLOR_BAYER_RG2BGR_EA	
COLOR_BAYER_RG2BGR_VNG	COLOR_BAYER_RG2GRAY	COLOR_BAYER_RG2RGB	
COLOR_BAYER_RG2RGBA	COLOR_BAYER_RG2RGB_EA	COLOR_BAYER_RG2RGB_VNG	
COLOR_BGR2BGR555	COLOR_BGR2BGR565	COLOR_BGR2BGRA	
COLOR_BGR2GRAY	COLOR_BGR2HLS	COLOR_BGR2HLS_FULL	
COLOR_BGR2HSV	COLOR_BGR2HSV_FULL	COLOR_BGR2LAB	
COLOR_BGR2LUV	COLOR_BGR2Lab	COLOR_BGR2Luv	
COLOR_BGR2RGB	COLOR_BGR2RGBA	COLOR_BGR2XYZ	
COLOR_BGR2YCR_CB	COLOR_BGR2YCrCb	COLOR_BGR2YUV	
COLOR_BGR2YUV_I420	COLOR_BGR2YUV_IYUV	COLOR_BGR2YUV_YV12	
COLOR_BGR5552BGR	COLOR_BGR5552BGRA	COLOR_BGR5552GRAY	
COLOR_BGR5552RGB	COLOR_BGR5552RGBA	COLOR_BGR5652BGR	
COLOR_BGR5652BGRA	COLOR_BGR5652GRAY	COLOR_BGR5652RGB	
COLOR_BGR5652RGBA	COLOR_BGRA2BGR	COLOR_BGRA2BGR555	
COLOR_BGRA2BGR565	COLOR_BGRA2GRAY	COLOR_BGRA2RGB	
COLOR_BGRA2RGBA	COLOR_BGRA2YUV_I420	COLOR_BGRA2YUV_IYUV	
COLOR_BGRA2YUV_YV12	COLOR_BayerBG2BGR	COLOR_BayerBG2BGRA	
COLOR_BayerBG2BGR_EA	COLOR_BayerBG2BGR_VNG	COLOR_BayerBG2GRAY	
COLOR_BayerBG2RGB	COLOR_BayerBG2RGBA	COLOR_BayerBG2RGB_EA	
COLOR_BayerBG2RGB_VNG	COLOR_BayerGB2BGR	COLOR_BayerGB2BGRA	
COLOR_BayerGB2BGR_EA	COLOR_BayerGB2BGR_VNG	COLOR_BayerGB2GRAY	
COLOR_BayerGB2RGB	COLOR_BayerGB2RGBA	COLOR_BayerGB2RGB_EA	
COLOR_BayerGB2RGB_VNG	COLOR_BayerGR2BGR	COLOR_BayerGR2BGRA	
COLOR_BayerGR2BGR_EA	COLOR_BayerGR2BGR_VNG	COLOR_BayerGR2GRAY	
COLOR_BayerGR2RGB	COLOR_BayerGR2RGBA	COLOR_BayerGR2RGB_EA	
COLOR_BayerGR2RGB_VNG	COLOR_BayerRG2BGR	COLOR_BayerRG2BGRA	
COLOR_BayerRG2BGR_EA	COLOR_BayerRG2BGR_VNG	COLOR_BayerRG2GRAY	
COLOR_BayerRG2RGB	COLOR_BayerRG2RGBA	COLOR_BayerRG2RGB_EA	
COLOR_BayerRG2RGB_VNG	COLOR_COLORCVT_MAX	COLOR_GRAY2BGR	
COLOR_GRAY2BGR555	COLOR_GRAY2BGR565	COLOR_GRAY2BGRA	
COLOR_GRAY2RGB	COLOR_GRAY2RGBA	COLOR_HLS2BGR	
COLOR_HLS2BGR_FULL	COLOR_HLS2RGB	COLOR_HLS2RGB_FULL	
COLOR_HSV2BGR	COLOR_HSV2BGR_FULL	COLOR_HSV2RGB	
COLOR_HSV2RGB_FULL	COLOR_LAB2BGR	COLOR_LAB2LBGR	
COLOR_LAB2LRGB	COLOR_LAB2RGB	COLOR_LBGR2LAB	
COLOR_LBGR2LUV	COLOR_LBGR2Lab	COLOR_LBGR2Luv	
COLOR_LRGB2LAB	COLOR_LRGB2LUV	COLOR_LRGB2Lab	
COLOR_LRGB2Luv	COLOR_LUV2BGR	COLOR_LUV2LBGR	
COLOR_LUV2LRGB	COLOR_LUV2RGB	COLOR_Lab2BGR	
COLOR_Lab2LBGR	COLOR_Lab2LRGB	COLOR_Lab2RGB	
COLOR_Luv2BGR	COLOR_Luv2LBGR	COLOR_Luv2LRGB	
COLOR_Luv2RGB	COLOR_M_RGBA2RGBA	COLOR_RGB2BGR	
COLOR_RGB2BGR555	COLOR_RGB2BGR565	COLOR_RGB2BGRA	
COLOR_RGB2GRAY	COLOR_RGB2HLS	COLOR_RGB2HLS_FULL	
COLOR_RGB2HSV	COLOR_RGB2HSV_FULL	COLOR_RGB2LAB	
COLOR_RGB2LUV	COLOR_RGB2Lab	COLOR_RGB2Luv	
COLOR_RGB2RGBA	COLOR_RGB2XYZ	COLOR_RGB2YCR_CB	
COLOR_RGB2YCrCb	COLOR_RGB2YUV	COLOR_RGB2YUV_I420	
COLOR_RGB2YUV_IYUV	COLOR_RGB2YUV_YV12	COLOR_RGBA2BGR	
COLOR_RGBA2BGR555	COLOR_RGBA2BGR565	COLOR_RGBA2BGRA	
COLOR_RGBA2GRAY	COLOR_RGBA2M_RGBA	COLOR_RGBA2RGB	
COLOR_RGBA2YUV_I420	COLOR_RGBA2YUV_IYUV	COLOR_RGBA2YUV_YV12	
COLOR_RGBA2mRGBA	COLOR_XYZ2BGR	COLOR_XYZ2RGB	
COLOR_YCR_CB2BGR	COLOR_YCR_CB2RGB	COLOR_YCrCb2BGR	
COLOR_YCrCb2RGB	COLOR_YUV2BGR	COLOR_YUV2BGRA_I420	
COLOR_YUV2BGRA_IYUV	COLOR_YUV2BGRA_NV12	COLOR_YUV2BGRA_NV21	
COLOR_YUV2BGRA_UYNV	COLOR_YUV2BGRA_UYVY	COLOR_YUV2BGRA_Y422	
COLOR_YUV2BGRA_YUNV	COLOR_YUV2BGRA_YUY2	COLOR_YUV2BGRA_YUYV	
COLOR_YUV2BGRA_YV12	COLOR_YUV2BGRA_YVYU	COLOR_YUV2BGR_I420	
COLOR_YUV2BGR_IYUV	COLOR_YUV2BGR_NV12	COLOR_YUV2BGR_NV21	
COLOR_YUV2BGR_UYNV	COLOR_YUV2BGR_UYVY	COLOR_YUV2BGR_Y422	
COLOR_YUV2BGR_YUNV	COLOR_YUV2BGR_YUY2	COLOR_YUV2BGR_YUYV	
COLOR_YUV2BGR_YV12	COLOR_YUV2BGR_YVYU	COLOR_YUV2GRAY_420	
COLOR_YUV2GRAY_I420	COLOR_YUV2GRAY_IYUV	COLOR_YUV2GRAY_NV12	
COLOR_YUV2GRAY_NV21	COLOR_YUV2GRAY_UYNV	COLOR_YUV2GRAY_UYVY	
COLOR_YUV2GRAY_Y422	COLOR_YUV2GRAY_YUNV	COLOR_YUV2GRAY_YUY2	
COLOR_YUV2GRAY_YUYV	COLOR_YUV2GRAY_YV12	COLOR_YUV2GRAY_YVYU	
COLOR_YUV2RGB	COLOR_YUV2RGBA_I420	COLOR_YUV2RGBA_IYUV	
COLOR_YUV2RGBA_NV12	COLOR_YUV2RGBA_NV21	COLOR_YUV2RGBA_UYNV	
COLOR_YUV2RGBA_UYVY	COLOR_YUV2RGBA_Y422	COLOR_YUV2RGBA_YUNV	
COLOR_YUV2RGBA_YUY2	COLOR_YUV2RGBA_YUYV	COLOR_YUV2RGBA_YV12	
COLOR_YUV2RGBA_YVYU	COLOR_YUV2RGB_I420	COLOR_YUV2RGB_IYUV	
COLOR_YUV2RGB_NV12	COLOR_YUV2RGB_NV21	COLOR_YUV2RGB_UYNV	
COLOR_YUV2RGB_UYVY	COLOR_YUV2RGB_Y422	COLOR_YUV2RGB_YUNV	
COLOR_YUV2RGB_YUY2	COLOR_YUV2RGB_YUYV	COLOR_YUV2RGB_YV12	
COLOR_YUV2RGB_YVYU	COLOR_YUV420P2BGR	COLOR_YUV420P2BGRA	
COLOR_YUV420P2GRAY	COLOR_YUV420P2RGB	COLOR_YUV420P2RGBA	
COLOR_YUV420SP2BGR	COLOR_YUV420SP2BGRA	COLOR_YUV420SP2GRAY	
COLOR_YUV420SP2RGB	COLOR_YUV420SP2RGBA	COLOR_YUV420p2BGR	
COLOR_YUV420p2BGRA	COLOR_YUV420p2GRAY	COLOR_YUV420p2RGB	
COLOR_YUV420p2RGBA	COLOR_YUV420sp2BGR	COLOR_YUV420sp2BGRA	
COLOR_YUV420sp2GRAY	COLOR_YUV420sp2RGB	COLOR_YUV420sp2RGBA	
COLOR_mRGBA2RGBA	

 

3、图片读入方式

IMREAD_ANYCOLOR	
IMREAD_ANYDEPTH	
IMREAD_COLOR	
IMREAD_GRAYSCALE	
IMREAD_IGNORE_ORIENTATION	
IMREAD_LOAD_GDAL	
IMREAD_REDUCED_COLOR_2	
IMREAD_REDUCED_COLOR_4	
IMREAD_REDUCED_COLOR_8	
IMREAD_REDUCED_GRAYSCALE_2	
IMREAD_REDUCED_GRAYSCALE_4	
IMREAD_REDUCED_GRAYSCALE_8	
IMREAD_UNCHANGED	

 

4、视频读入方式

CAP_ANDROID	
CAP_ANY	
CAP_ARAVIS	
CAP_AVFOUNDATION	
CAP_CMU1394	
CAP_DC1394	
CAP_DSHOW	
CAP_FFMPEG	
CAP_FIREWARE	
CAP_FIREWIRE	
CAP_GIGANETIX	
CAP_GPHOTO2	
CAP_GSTREAMER	
CAP_IEEE1394	
CAP_IMAGES	
CAP_INTELPERC	
CAP_INTELPERC_DEPTH_GENERATOR	
CAP_INTELPERC_DEPTH_MAP	
CAP_INTELPERC_GENERATORS_MASK	
CAP_INTELPERC_IMAGE	
CAP_INTELPERC_IMAGE_GENERATOR	
CAP_INTELPERC_IR_GENERATOR	
CAP_INTELPERC_IR_MAP	
CAP_INTELPERC_UVDEPTH_MAP	
CAP_INTEL_MFX	
CAP_MSMF	
CAP_OPENCV_MJPEG	
CAP_OPENNI	
CAP_OPENNI2	
CAP_OPENNI2_ASTRA	
CAP_OPENNI2_ASUS	
CAP_OPENNI_ASUS	
CAP_OPENNI_BGR_IMAGE	
CAP_OPENNI_DEPTH_GENERATOR	
CAP_OPENNI_DEPTH_GENERATOR_BASELINE	
CAP_OPENNI_DEPTH_GENERATOR_FOCAL_LENGTH	
CAP_OPENNI_DEPTH_GENERATOR_PRESENT	
CAP_OPENNI_DEPTH_GENERATOR_REGISTRATION	
CAP_OPENNI_DEPTH_GENERATOR_REGISTRATION_ON	
CAP_OPENNI_DEPTH_MAP	
CAP_OPENNI_DISPARITY_MAP	
CAP_OPENNI_DISPARITY_MAP_32F	
CAP_OPENNI_GENERATORS_MASK	
CAP_OPENNI_GRAY_IMAGE	
CAP_OPENNI_IMAGE_GENERATOR	
CAP_OPENNI_IMAGE_GENERATOR_OUTPUT_MODE	
CAP_OPENNI_IMAGE_GENERATOR_PRESENT	
CAP_OPENNI_IR_GENERATOR	
CAP_OPENNI_IR_GENERATOR_PRESENT	
CAP_OPENNI_IR_IMAGE	
CAP_OPENNI_POINT_CLOUD_MAP	
CAP_OPENNI_QVGA_30HZ	
CAP_OPENNI_QVGA_60HZ	
CAP_OPENNI_SXGA_15HZ	
CAP_OPENNI_SXGA_30HZ	
CAP_OPENNI_VALID_DEPTH_MASK	
CAP_OPENNI_VGA_30HZ	
CAP_PROP_APERTURE	
CAP_PROP_ARAVIS_AUTOTRIGGER	
CAP_PROP_AUTOFOCUS	
CAP_PROP_AUTO_EXPOSURE	
CAP_PROP_AUTO_WB	
CAP_PROP_BACKEND	
CAP_PROP_BACKLIGHT	
CAP_PROP_BITRATE	
CAP_PROP_BRIGHTNESS	
CAP_PROP_BUFFERSIZE	
CAP_PROP_CHANNEL	
CAP_PROP_CODEC_PIXEL_FORMAT	
CAP_PROP_CONTRAST	
CAP_PROP_CONVERT_RGB	
CAP_PROP_DC1394_MAX	
CAP_PROP_DC1394_MODE_AUTO	
CAP_PROP_DC1394_MODE_MANUAL	
CAP_PROP_DC1394_MODE_ONE_PUSH_AUTO	
CAP_PROP_DC1394_OFF	
CAP_PROP_EXPOSURE	
CAP_PROP_EXPOSUREPROGRAM	
CAP_PROP_FOCUS	
CAP_PROP_FORMAT	
CAP_PROP_FOURCC	
CAP_PROP_FPS	
CAP_PROP_FRAME_COUNT	
CAP_PROP_FRAME_HEIGHT	
CAP_PROP_FRAME_WIDTH	
CAP_PROP_GAIN	
CAP_PROP_GAMMA	
CAP_PROP_GIGA_FRAME_HEIGH_MAX	
CAP_PROP_GIGA_FRAME_OFFSET_X	
CAP_PROP_GIGA_FRAME_OFFSET_Y	
CAP_PROP_GIGA_FRAME_SENS_HEIGH	
CAP_PROP_GIGA_FRAME_SENS_WIDTH	
CAP_PROP_GIGA_FRAME_WIDTH_MAX	
CAP_PROP_GPHOTO2_COLLECT_MSGS	
CAP_PROP_GPHOTO2_FLUSH_MSGS	
CAP_PROP_GPHOTO2_PREVIEW	
CAP_PROP_GPHOTO2_RELOAD_CONFIG	
CAP_PROP_GPHOTO2_RELOAD_ON_CHANGE	
CAP_PROP_GPHOTO2_WIDGET_ENUMERATE	
CAP_PROP_GSTREAMER_QUEUE_LENGTH	
CAP_PROP_GUID	
CAP_PROP_HUE	
CAP_PROP_HW_ACCELERATION	
CAP_PROP_HW_DEVICE	
CAP_PROP_IMAGES_BASE	
CAP_PROP_IMAGES_LAST	
CAP_PROP_INTELPERC_DEPTH_CONFIDENCE_THRESHOLD	
CAP_PROP_INTELPERC_DEPTH_FOCAL_LENGTH_HORZ	
CAP_PROP_INTELPERC_DEPTH_FOCAL_LENGTH_VERT	
CAP_PROP_INTELPERC_DEPTH_LOW_CONFIDENCE_VALUE	
CAP_PROP_INTELPERC_DEPTH_SATURATION_VALUE	
CAP_PROP_INTELPERC_PROFILE_COUNT	
CAP_PROP_INTELPERC_PROFILE_IDX	
CAP_PROP_IOS_DEVICE_EXPOSURE	
CAP_PROP_IOS_DEVICE_FLASH	
CAP_PROP_IOS_DEVICE_FOCUS	
CAP_PROP_IOS_DEVICE_TORCH	
CAP_PROP_IOS_DEVICE_WHITEBALANCE	
CAP_PROP_IRIS	
CAP_PROP_ISO_SPEED	
CAP_PROP_MODE	
CAP_PROP_MONOCHROME	
CAP_PROP_OPENNI2_MIRROR	
CAP_PROP_OPENNI2_SYNC	
CAP_PROP_OPENNI_APPROX_FRAME_SYNC	
CAP_PROP_OPENNI_BASELINE	
CAP_PROP_OPENNI_CIRCLE_BUFFER	
CAP_PROP_OPENNI_FOCAL_LENGTH	
CAP_PROP_OPENNI_FRAME_MAX_DEPTH	
CAP_PROP_OPENNI_GENERATOR_PRESENT	
CAP_PROP_OPENNI_MAX_BUFFER_SIZE	
CAP_PROP_OPENNI_MAX_TIME_DURATION	
CAP_PROP_OPENNI_OUTPUT_MODE	
CAP_PROP_OPENNI_REGISTRATION	
CAP_PROP_OPENNI_REGISTRATION_ON	
CAP_PROP_ORIENTATION_AUTO	
CAP_PROP_ORIENTATION_META	
CAP_PROP_PAN	
CAP_PROP_POS_AVI_RATIO	
CAP_PROP_POS_FRAMES	
CAP_PROP_POS_MSEC	
CAP_PROP_PVAPI_BINNINGX	
CAP_PROP_PVAPI_BINNINGY	
CAP_PROP_PVAPI_DECIMATIONHORIZONTAL	
CAP_PROP_PVAPI_DECIMATIONVERTICAL	
CAP_PROP_PVAPI_FRAMESTARTTRIGGERMODE	
CAP_PROP_PVAPI_MULTICASTIP	
CAP_PROP_PVAPI_PIXELFORMAT	
CAP_PROP_RECTIFICATION	
CAP_PROP_ROLL	
CAP_PROP_SAR_DEN	
CAP_PROP_SAR_NUM	
CAP_PROP_SATURATION	
CAP_PROP_SETTINGS	
CAP_PROP_SHARPNESS	
CAP_PROP_SPEED	
CAP_PROP_TEMPERATURE	
CAP_PROP_TILT	
CAP_PROP_TRIGGER	
CAP_PROP_TRIGGER_DELAY	
CAP_PROP_VIEWFINDER	
CAP_PROP_WB_TEMPERATURE	
CAP_PROP_WHITE_BALANCE_BLUE_U	
CAP_PROP_WHITE_BALANCE_RED_V	
CAP_PROP_XI_ACQ_BUFFER_SIZE	
CAP_PROP_XI_ACQ_BUFFER_SIZE_UNIT	
CAP_PROP_XI_ACQ_FRAME_BURST_COUNT	
CAP_PROP_XI_ACQ_TIMING_MODE	
CAP_PROP_XI_ACQ_TRANSPORT_BUFFER_COMMIT	
CAP_PROP_XI_ACQ_TRANSPORT_BUFFER_SIZE	
CAP_PROP_XI_AEAG	
CAP_PROP_XI_AEAG_LEVEL	
CAP_PROP_XI_AEAG_ROI_HEIGHT	
CAP_PROP_XI_AEAG_ROI_OFFSET_X	
CAP_PROP_XI_AEAG_ROI_OFFSET_Y	
CAP_PROP_XI_AEAG_ROI_WIDTH	
CAP_PROP_XI_AE_MAX_LIMIT	
CAP_PROP_XI_AG_MAX_LIMIT	
CAP_PROP_XI_APPLY_CMS	
CAP_PROP_XI_AUTO_BANDWIDTH_CALCULATION	
CAP_PROP_XI_AUTO_WB	
CAP_PROP_XI_AVAILABLE_BANDWIDTH	
CAP_PROP_XI_BINNING_HORIZONTAL	
CAP_PROP_XI_BINNING_PATTERN	
CAP_PROP_XI_BINNING_SELECTOR	
CAP_PROP_XI_BINNING_VERTICAL	
CAP_PROP_XI_BPC	
CAP_PROP_XI_BUFFERS_QUEUE_SIZE	
CAP_PROP_XI_BUFFER_POLICY	
CAP_PROP_XI_CC_MATRIX_00	
CAP_PROP_XI_CC_MATRIX_01	
CAP_PROP_XI_CC_MATRIX_02	
CAP_PROP_XI_CC_MATRIX_03	
CAP_PROP_XI_CC_MATRIX_10	
CAP_PROP_XI_CC_MATRIX_11	
CAP_PROP_XI_CC_MATRIX_12	
CAP_PROP_XI_CC_MATRIX_13	
CAP_PROP_XI_CC_MATRIX_20	
CAP_PROP_XI_CC_MATRIX_21	
CAP_PROP_XI_CC_MATRIX_22	
CAP_PROP_XI_CC_MATRIX_23	
CAP_PROP_XI_CC_MATRIX_30	
CAP_PROP_XI_CC_MATRIX_31	
CAP_PROP_XI_CC_MATRIX_32	
CAP_PROP_XI_CC_MATRIX_33	
CAP_PROP_XI_CHIP_TEMP	
CAP_PROP_XI_CMS	
CAP_PROP_XI_COLOR_FILTER_ARRAY	
CAP_PROP_XI_COLUMN_FPN_CORRECTION	
CAP_PROP_XI_COOLING	
CAP_PROP_XI_COUNTER_SELECTOR	
CAP_PROP_XI_COUNTER_VALUE	
CAP_PROP_XI_DATA_FORMAT	
CAP_PROP_XI_DEBOUNCE_EN	
CAP_PROP_XI_DEBOUNCE_POL	
CAP_PROP_XI_DEBOUNCE_T0	
CAP_PROP_XI_DEBOUNCE_T1	
CAP_PROP_XI_DEBUG_LEVEL	
CAP_PROP_XI_DECIMATION_HORIZONTAL	
CAP_PROP_XI_DECIMATION_PATTERN	
CAP_PROP_XI_DECIMATION_SELECTOR	
CAP_PROP_XI_DECIMATION_VERTICAL	
CAP_PROP_XI_DEFAULT_CC_MATRIX	
CAP_PROP_XI_DEVICE_MODEL_ID	
CAP_PROP_XI_DEVICE_RESET	
CAP_PROP_XI_DEVICE_SN	
CAP_PROP_XI_DOWNSAMPLING	
CAP_PROP_XI_DOWNSAMPLING_TYPE	
CAP_PROP_XI_EXPOSURE	
CAP_PROP_XI_EXPOSURE_BURST_COUNT	
CAP_PROP_XI_EXP_PRIORITY	
CAP_PROP_XI_FFS_ACCESS_KEY	
CAP_PROP_XI_FFS_FILE_ID	
CAP_PROP_XI_FFS_FILE_SIZE	
CAP_PROP_XI_FRAMERATE	
CAP_PROP_XI_FREE_FFS_SIZE	
CAP_PROP_XI_GAIN	
CAP_PROP_XI_GAIN_SELECTOR	
CAP_PROP_XI_GAMMAC	
CAP_PROP_XI_GAMMAY	
CAP_PROP_XI_GPI_LEVEL	
CAP_PROP_XI_GPI_MODE	
CAP_PROP_XI_GPI_SELECTOR	
CAP_PROP_XI_GPO_MODE	
CAP_PROP_XI_GPO_SELECTOR	
CAP_PROP_XI_HDR	
CAP_PROP_XI_HDR_KNEEPOINT_COUNT	
CAP_PROP_XI_HDR_T1	
CAP_PROP_XI_HDR_T2	
CAP_PROP_XI_HEIGHT	
CAP_PROP_XI_HOUS_BACK_SIDE_TEMP	
CAP_PROP_XI_HOUS_TEMP	
CAP_PROP_XI_HW_REVISION	
CAP_PROP_XI_IMAGE_BLACK_LEVEL	
CAP_PROP_XI_IMAGE_DATA_BIT_DEPTH	
CAP_PROP_XI_IMAGE_DATA_FORMAT	
CAP_PROP_XI_IMAGE_DATA_FORMAT_RGB32_ALPHA	
CAP_PROP_XI_IMAGE_IS_COLOR	
CAP_PROP_XI_IMAGE_PAYLOAD_SIZE	
CAP_PROP_XI_IS_COOLED	
CAP_PROP_XI_IS_DEVICE_EXIST	
CAP_PROP_XI_KNEEPOINT1	
CAP_PROP_XI_KNEEPOINT2	
CAP_PROP_XI_LED_MODE	
CAP_PROP_XI_LED_SELECTOR	
CAP_PROP_XI_LENS_APERTURE_VALUE	
CAP_PROP_XI_LENS_FEATURE	
CAP_PROP_XI_LENS_FEATURE_SELECTOR	
CAP_PROP_XI_LENS_FOCAL_LENGTH	
CAP_PROP_XI_LENS_FOCUS_DISTANCE	
CAP_PROP_XI_LENS_FOCUS_MOVE	
CAP_PROP_XI_LENS_FOCUS_MOVEMENT_VALUE	
CAP_PROP_XI_LENS_MODE	
CAP_PROP_XI_LIMIT_BANDWIDTH	
CAP_PROP_XI_LUT_EN	
CAP_PROP_XI_LUT_INDEX	
CAP_PROP_XI_LUT_VALUE	
CAP_PROP_XI_MANUAL_WB	
CAP_PROP_XI_OFFSET_X	
CAP_PROP_XI_OFFSET_Y	
CAP_PROP_XI_OUTPUT_DATA_BIT_DEPTH	
CAP_PROP_XI_OUTPUT_DATA_PACKING	
CAP_PROP_XI_OUTPUT_DATA_PACKING_TYPE	
CAP_PROP_XI_RECENT_FRAME	
CAP_PROP_XI_REGION_MODE	
CAP_PROP_XI_REGION_SELECTOR	
CAP_PROP_XI_ROW_FPN_CORRECTION	
CAP_PROP_XI_SENSOR_BOARD_TEMP	
CAP_PROP_XI_SENSOR_CLOCK_FREQ_HZ	
CAP_PROP_XI_SENSOR_CLOCK_FREQ_INDEX	
CAP_PROP_XI_SENSOR_DATA_BIT_DEPTH	
CAP_PROP_XI_SENSOR_FEATURE_SELECTOR	
CAP_PROP_XI_SENSOR_FEATURE_VALUE	
CAP_PROP_XI_SENSOR_MODE	
CAP_PROP_XI_SENSOR_OUTPUT_CHANNEL_COUNT	
CAP_PROP_XI_SENSOR_TAPS	
CAP_PROP_XI_SHARPNESS	
CAP_PROP_XI_SHUTTER_TYPE	
CAP_PROP_XI_TARGET_TEMP	
CAP_PROP_XI_TEST_PATTERN	
CAP_PROP_XI_TEST_PATTERN_GENERATOR_SELECTOR	
CAP_PROP_XI_TIMEOUT	
CAP_PROP_XI_TRANSPORT_PIXEL_FORMAT	
CAP_PROP_XI_TRG_DELAY	
CAP_PROP_XI_TRG_SELECTOR	
CAP_PROP_XI_TRG_SOFTWARE	
CAP_PROP_XI_TRG_SOURCE	
CAP_PROP_XI_TS_RST_MODE	
CAP_PROP_XI_TS_RST_SOURCE	
CAP_PROP_XI_USED_FFS_SIZE	
CAP_PROP_XI_WB_KB	
CAP_PROP_XI_WB_KG	
CAP_PROP_XI_WB_KR	
CAP_PROP_XI_WIDTH	
CAP_PROP_ZOOM	
CAP_PVAPI	
CAP_PVAPI_DECIMATION_2OUTOF16	
CAP_PVAPI_DECIMATION_2OUTOF4	
CAP_PVAPI_DECIMATION_2OUTOF8	
CAP_PVAPI_DECIMATION_OFF	
CAP_PVAPI_FSTRIGMODE_FIXEDRATE	
CAP_PVAPI_FSTRIGMODE_FREERUN	
CAP_PVAPI_FSTRIGMODE_SOFTWARE	
CAP_PVAPI_FSTRIGMODE_SYNCIN1	
CAP_PVAPI_FSTRIGMODE_SYNCIN2	
CAP_PVAPI_PIXELFORMAT_BAYER16	
CAP_PVAPI_PIXELFORMAT_BAYER8	
CAP_PVAPI_PIXELFORMAT_BGR24	
CAP_PVAPI_PIXELFORMAT_BGRA32	
CAP_PVAPI_PIXELFORMAT_MONO16	
CAP_PVAPI_PIXELFORMAT_MONO8	
CAP_PVAPI_PIXELFORMAT_RGB24	
CAP_PVAPI_PIXELFORMAT_RGBA32	
CAP_QT	
CAP_REALSENSE	
CAP_UEYE	
CAP_UNICAP	
CAP_V4L	
CAP_V4L2	
CAP_VFW	
CAP_WINRT	
CAP_XIAPI	
CAP_XINE	

5、字体

FONT_HERSHEY_COMPLEX	
FONT_HERSHEY_COMPLEX_SMALL	
FONT_HERSHEY_DUPLEX	
FONT_HERSHEY_PLAIN	
FONT_HERSHEY_SCRIPT_COMPLEX	
FONT_HERSHEY_SCRIPT_SIMPLEX	
FONT_HERSHEY_SIMPLEX	
FONT_HERSHEY_TRIPLEX	
FONT_ITALIC	

6、阈值化type参数类型

'THRESH_BINARY', 
'THRESH_BINARY_INV', 
'THRESH_MASK', 
'THRESH_OTSU', 
'THRESH_TOZERO', 
'THRESH_TOZERO_INV', 
'THRESH_TRIANGLE', 
'THRESH_TRUNC'

扩展阅读:

  1. OpenCV-Python教程

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注