The Image Processing Series: Drawing with OpenCV

The Image Processing Series: Drawing with OpenCV

In this article, we'll talk about Drawing with OpenCV. If you haven't done so already, be sure to read the previous article on setting pixels with Python

In this article, we’ll talk about Drawing with OpenCV. If you haven’t done so already, be sure to read the previous article on setting pixels with Python OpenCV.

A large part of working with Image Processing has to do with identifying objects and contours in a provided image.

This can be done by marking these shapes during the processing.

But, how do we do so?

The same question that plagued the scientists working on Image Processing led to the development of drawing in OpenCV.

We’ll be using a few of these functions to begin working with drawing in OpenCV in this article.

Note that this is the third article of the Image Processing Series, and it might a good idea to look into the introductory session before proceeding through this article!

python cv2 drawing image img numpy opencv processing

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

Python cv2 rectangle: Draw a Rectangle using OpenCV

To draw a rectangle in Python using OpenCV, use cv2.rectangle() function. The cv2 rectangle() method is used to draw a rectangle on any image.

Python cv2: How to Filter Image Pixels using OpenCV

To filter image pixels means you can convert the image from color to grayscale or add an extra layer to the image.

Python cv2 Image Size: How to Get Image Size in Python

To get the proper size of an image, use numpy.shape property. In OpenCV, the image size (width, height) can be obtained as a tuple.

Find and Draw Contours using Python OpenCV | Image Segmentation OpenCV

This video explains how to find and draw image contours using Python's Opencv. It will also explain the concept of image segmentation in opencv, a technique

Python cv2 erode: How to Erode Images using OpenCV

There are two main morphological transformations.1) Image Dilate 2) Image Erosion. The cv2 module that supports the following two 1) cv2.dilate() 2) cv2.erode().