Loading... 图片ROI区域选取:`img[0:100,0:100]` ```py img[垂直区域, 水平区域, 颜色通道] ``` 注:`cv2.imread()`读取顺序是BGR --- 取单通道值: ```python # 将G,B通道写入0 img[:,:,0] = 0 img[:,:,1] = 0 ``` 垂直翻转:`img[::-1,:]` 水平翻转:`img[:,::-1]` Last modification:September 24, 2022 © Allow specification reprint Like 0 如果觉得我的文章对你有用,请随意赞赏
Comment here is closed