A4_exam
A4_exam
waitKey(1)
cv.putText(img, text_form, (x + 10, y + 20), <FONT>, 1, (0, 255, 0)) cv.imshow("blue", img_blue)
cv.resizeWindow("TrackBar", 450, 230) cv.rectangle(image, (_x, _y), (_x + _w, _y + _h), color, 2)
cv.createTrackbar("h min", "TrackBar", 0, 255, vide) cv.putText(image, color_name, (_x, _y), cv.FONT_HERSHEY_SIMPLEX,
cv.createTrackbar("s min", "TrackBar", 0, 255, vide) green = np.array([[25, 52, 72], [102, 255, 255]])
cv.createTrackbar("s max", "TrackBar", 255, 255, vide) blue = np.array([[94, 80, 2], [120, 255, 255]])
cv.createTrackbar("v max", "TrackBar", 255, 255, vide) while not cv.waitKey(1) == 27:
hsv_max = np.array([h_max, s_max, v_max]) detect(img, (0, 255, 0), "Green", green_countours)
cv.rectangle(img, (x, y), (x + w, y + h), (0, 255, 0), 2) chapeau_img = cv.imread('chapeau.png', -1)
cv.rectangle(img, (x, y), (x + w, y + h), (0, 255, 255), 2) img_pos[i, j] = image[i, j, :3]
kernel = 3
while True:
_, img = cap.read()
img = cv.flip(img, 1)