code tim diem anh mau vang
user_8607526207
python
3 years ago
252 B
11
Indexable
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)
Editor is loading...