pyecvl:ECVL的Python包装器 源码
PyECVL是 (欧洲计算机视觉库)的Python包装器。 这是您可以使用PyECVL进行操作的简短示例: import numpy as np import pyecvl . ecvl as ecvl def inc_brightness ( img , rate ): a = np . array ( img , copy = False ) max_val = np . iinfo ( a . dtype ). max a [ a > max_val - rate ] = max_val a [ a <= max_val - rate ] += rate def main (): img = ecvl . ImRead ( "test.jpg" ) inc_brightness ( img , 10 ) ecvl . ImWr
用户评论