import cv2
import numpy as np
#cap = cv2.VideoCapture('C:/Users/Kate/PycharmProjects/pythonProject/NVR_ch1_main_20210124075900_20210124080000.asf')
image = cv2.imread("2.jpg")
#image2 = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
low_red = np.array([161, 155, 84])
high_red = np.array([179, 255, 255])
image2 = cv2.cvtColor(image, cv2.COLOR_BGR2HSV)
filtermask = cv2.inRange(image, low_red, high_red)
find_lights = cv2.bitwise_and(image, image, mask=filtermask)
cv2.imshow("Red", find_lights)
cv2.imshow("filters", filtermask)
Перемещено leave из general