About 27,200,000 results
Open links in new tab
  1. Python OpenCV | cv2.rectangle() method - GeeksforGeeks

    Aug 12, 2024 · method is used to draw a rectangle on any image. Syntax: cv2.rectangle (image, start_point, end_point, color, thickness) Parameters:image: It is the image on which rectangle …

  2. python - OpenCV: draw a rectangle around a region - Stack Overflow

    Jun 7, 2023 · The code for drawing a rectangle on an image is: cv2.rectangle(image, pt1, pt2, color, thickness) where pt1 is starting point-->(x,y) and pt2 is end point-->(x+w,y+h).

  3. Python OpenCV cv2.rectangle() Guide - PyTutorial

    Jan 15, 2025 · Learn how to use Python OpenCV cv2.rectangle() to draw rectangles on images. This guide includes examples, code, and explanations for beginners.

  4. How to Draw Rectangles in OpenCV and Python

    Dec 9, 2023 · In this Python and OpenCV tutorial, we explain how to draw rectangles. We explain how to draw both filled rectangles and rectangles with only boundary lines. In addition to this, …

  5. Learn to Draw Rectangle in OpenCV Python using cv2.rectangle

    Oct 1, 2021 · In this tutorial, we are going to show you how we can draw rectangles in OpenCV Python by using cv2.rectangle() function. Rectangles are commonly used to create a bounding …

  6. How to Draw a Rectangle in Python using OpenCV - Learning …

    In this article, we show how to draw a rectangle in Python using the OpenCV module. OpenCV allows a user to create a wide variety of shapes, including rectangles, squares, circles, etc. …

  7. How to Draw a Rectangle Using OpenCV Module in Python

    Feb 2, 2024 · In this article, we will learn how to use the OpenCV module to draw rectangles. Draw Rectangles Using OpenCV. OpenCV module has a rectangle() function that can be used …

  8. How to Draw Shapes (Lines, Circles, Rectangles) on Images Using …

    Apr 9, 2025 · Use cv2.rectangle( ) to draw a rectangle: # Draw a green rectangle cv2.rectangle(image, (100, 100), (400, 300), (0, 255, 0), thickness=3) Explaintation: (100, …

  9. Python | cv2 rectangle() Method - Java2Blog

    Dec 23, 2020 · In this tutorial, we will see how to draw a Rectangle shape, Square shapes on the given input image in python by the use of open-cv which exists as cv2 (computer vision) …

  10. Draw a rectangle on an image using OpenCV in Python

    Step by step guide to draw a rectangle on an image using the OpenCV cv2.rectangle() or cv2.line() or cv2.polylines() in Python.

  11. Some results have been removed
Refresh