code tim diem anh mau vang
user_8607526207
python
2 years ago
252 B
2
Indexable
Never
import cv2 image = cv2.imread("data.jpg") height = image.shape[0] weight = image.shape[1] print(weight) yellow = [214, 131, 77] for a in range(weight-1): for i in range(height -1): color = image[i, 0] if color == yellow: print(a)