img = cv2.imread("C:/Users/91638/Downloads/vecteezy_30-second-animation-from-30-to-0-seconds-modern-flat-design_8663528 (1).mp4") ...
Two-dimensional (2D) shapes are completely flat ... That means that the rectangle is not a regular polygon. Even though a rectangle has four equal angles, it does not have sides that are all ...
but it seemed to not be as accurate as using the cv2.inRange() function. I used two layers to capture the darker red colors and the lighter red colors of the cone I drew rectangles around the contours ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results