Open Larry-u opened 4 years ago
The default dimension of a gray image read by opencv is 2, which means using img.shape[2] will raise index error.
The default dimension of a gray image read by opencv is 2, which means using img.shape[2] will raise index error.