ZhangZhihui's Blog  

import cv2 as cv

for item in dir(cv):
    if item.startswith('IMREAD'):
        print(item, ':', eval('{}.{}'.format('cv', item)))

 

Output:

IMREAD_ANYCOLOR : 4
IMREAD_ANYDEPTH : 2
IMREAD_COLOR : 1
IMREAD_GRAYSCALE : 0
IMREAD_IGNORE_ORIENTATION : 128
IMREAD_LOAD_GDAL : 8
IMREAD_REDUCED_COLOR_2 : 17
IMREAD_REDUCED_COLOR_4 : 33
IMREAD_REDUCED_COLOR_8 : 65
IMREAD_REDUCED_GRAYSCALE_2 : 16
IMREAD_REDUCED_GRAYSCALE_4 : 32
IMREAD_REDUCED_GRAYSCALE_8 : 64
IMREAD_UNCHANGED : -1
posted on 2020-03-18 19:06  ZhangZhihuiAAA  阅读(1762)  评论(0编辑  收藏  举报