rows = outImg.shape[0]
cols = outImg.shape[1]
for i in range(rows):#height(rows) of image
for j in range(cols):#width(colums) of image
outImg[i, j] = abs(255 - outImg[i, j])
【python+opencv學習日誌】獲取圖片的寬、高
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.