Python3, Opencv, Image Processing, Machine Learning, Artificial Intelligence.
as np import cv2 cap = cv2.VideoCapture(0) while True: _, frame = cap.read() hsv = cv2.cvtColor(frame, cv2.COLOR_BGR2HSV) color_value_1 = np.arrays([0, 0, 0]) color_value_2 = np.arrays([255, 255, 255]) mask = cv2.inRange(hsv, color_value_1, color_value_2) result = cv2.bitwise_and(frame, frame, mask