title
OpenCV Python Tutorial For Beginners 5 - Draw geometric shapes on images using Python OpenCV
description
In this video on OpenCV Python Tutorial For Beginners, I am going to show How to Draw geometric shapes on images using Python OpenCV.
You will learn these functions : cv.line(), cv.circle() , cv.rectangle(), cv.ellipse(), cv.putText() etc.
cv2.line() : Used to draw line on an image.
cv2.rectangle() : Used to draw rectangle on an image.
cv2.circle() : Used to draw circle on an image.
cv2.putText() : Used to write text on image.
Gist of code I used in this video (OpenCV & Python – Drawing shapes and text on images (cv2)) - http://www.codebind.com/python/opencv-python-tutorial-beginners-draw-geometric-shapes-images-using-python-opencv/
pip is a package management system used to install and manage software packages written in Python.
OpenCV is an image processing library created by Intel and later supported by Willow Garage and now maintained by Itseez. opencv is available on Mac, Windows, Linux. Works in C, C++, and Python.
it is Open Source and free. opencv is easy to use and install.
Starting with an overview of what the course will be covering, we move on to discussing morphological operations and practically learn how they work on images. We will then learn contrast enhancement using equalization and contrast limiting. Finally we will learn 3 methods to subtract the background from the video and implement them using OpenCV.
At the end of this course, you will have a firm grasp of Computer Vision techniques using OpenCV libraries. This course will be your gateway to the world of data science.
Feel the real power of Python and programming! The course offers you a unique approach of learning how to code by solving real world problems.
#ProgrammingKnowledge #ComputerVision #OpenCV
★★★Top Online Courses From ProgrammingKnowledge ★★★
Python Programming Course ➡️ http://bit.ly/2vsuMaS ⚫️ http://bit.ly/2GOaeQB
Java Programming Course ➡️ http://bit.ly/2GEfQMf ⚫️ http://bit.ly/2Vvjy4a
Bash Shell Scripting Course ➡️ http://bit.ly/2DBVF0C ⚫️ http://bit.ly/2UM06vF
Linux Command Line Tutorials ➡️ http://bit.ly/2IXuil0 ⚫️ http://bit.ly/2IXukt8
C Programming Course ➡️ http://bit.ly/2GQCiD1 ⚫️ http://bit.ly/2ZGN6ej
C++ Programming Course ➡️ http://bit.ly/2V4oEVJ ⚫️ http://bit.ly/2XMvqMs
PHP Programming Course ➡️ http://bit.ly/2XP71WH ⚫️ http://bit.ly/2vs3od6
Android Development Course ➡️ http://bit.ly/2UHih5H ⚫️ http://bit.ly/2IMhVci
C# Programming Course ➡️ http://bit.ly/2Vr7HEl ⚫️ http://bit.ly/2W6RXTU
JavaFx Programming Course ➡️ http://bit.ly/2XMvZWA ⚫️ http://bit.ly/2V2CoAi
NodeJs Programming Course ➡️ http://bit.ly/2GPg7gA ⚫️ http://bit.ly/2GQYTQ2
Jenkins Course For Developers and DevOps ➡️ http://bit.ly/2Wd4l4W ⚫️ http://bit.ly/2J1B1ug
Scala Programming Tutorial Course ➡️ http://bit.ly/2PysyA4 ⚫️ http://bit.ly/2PCaVj2
Bootstrap Responsive Web Design Tutorial ➡️ http://bit.ly/2DFQ2yC ⚫️ http://bit.ly/2VoJWwH
MongoDB Tutorial Course ➡️ http://bit.ly/2LaCJfP ⚫️ http://bit.ly/2WaI7Ap
QT C++ GUI Tutorial For Beginners ➡️ http://bit.ly/2vwqHSZ
★★★ Online Courses to learn ★★★
Get 2 FREE Months of Unlimited Classes from skillshare - https://skillshare.eqcm.net/r1KEj
Data Science - http://bit.ly/2lD9h5L | http://bit.ly/2lI8wIl
Machine Learning - http://bit.ly/2WGGQpb | http://bit.ly/2GghLXX
Artificial Intelligence - http://bit.ly/2lYqaYx | http://bit.ly/2NmaPya
MERN Stack E-Degree Program - http://bit.ly/2kx2NFe | http://bit.ly/2lWj4no
DevOps E-degree - http://bit.ly/2k1PwUQ | http://bit.ly/2k8Ypfy
Data Analytics with R - http://bit.ly/2lBKqz8 | http://bit.ly/2lAjos3
AWS Certification Training - http://bit.ly/2kmLtTu | http://bit.ly/2lAkQL1
Projects in Java - http://bit.ly/2kzn25d | http://bit.ly/2lBMffs
Machine Learning With TensorFlow - http://bit.ly/2m1z3AF | http://bit.ly/2lBMhnA
Angular 8 - Complete Essential Guide - http://bit.ly/2lYvYRP
Kotlin Android Development Masterclass - http://bit.ly/2GcblsI
Learn iOS Programming Building Advance Projects - http://bit.ly/2kyX7ue
★★★ Follow ★★★
My Website - http://www.codebind.com
DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This help support the channel and allows us to continue to make videos like this. Thank you for the support!
detail
{'title': 'OpenCV Python Tutorial For Beginners 5 - Draw geometric shapes on images using Python OpenCV', 'heatmap': [{'end': 810.727, 'start': 775.578, 'weight': 0.715}, {'end': 916.019, 'start': 859.747, 'weight': 0.828}], 'summary': 'Learn to draw geometric shapes in python using opencv, including lines, rectangles, circles, and text with customizable colors, thickness, and fill options, along with step-by-step guidance and code explanation for image manipulation.', 'chapters': [{'end': 48.751, 'segs': [{'end': 48.751, 'src': 'embed', 'start': 0.933, 'weight': 0, 'content': [{'end': 5.094, 'text': 'Hey guys, welcome to the next video on OpenCV tutorial for beginners using Python.', 'start': 0.933, 'duration': 4.161}, {'end': 11.356, 'text': 'In this video, we will learn how to draw different geometric shapes using OpenCV.', 'start': 5.855, 'duration': 5.501}, {'end': 17.578, 'text': 'So to start with, I have this code and I have already explained what this code does.', 'start': 11.636, 'duration': 5.942}, {'end': 31.302, 'text': 'So this IamRead is used to read an image and then we are just showing this image into a window using this iam show method and then using the wait key,', 'start': 18.018, 'duration': 13.284}, {'end': 40.965, 'text': 'we will wait for the closing event and the destroy all window will destroy all the windows which we have created.', 'start': 31.302, 'duration': 9.663}, {'end': 43.006, 'text': 'so this we have already seen.', 'start': 40.965, 'duration': 2.041}, {'end': 48.751, 'text': "Now let's say we want to draw some geometric shapes on this image.", 'start': 43.746, 'duration': 5.005}], 'summary': 'Opencv tutorial covers drawing geometric shapes in python.', 'duration': 47.818, 'max_score': 0.933, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/V1aMDD5583k/pics/V1aMDD5583k933.jpg'}], 'start': 0.933, 'title': 'Drawing geometric shapes', 'summary': 'Covers how to draw geometric shapes using opencv in python, demonstrating the process through code explanation and image manipulation.', 'chapters': [{'end': 48.751, 'start': 0.933, 'title': 'Opencv tutorial: drawing geometric shapes', 'summary': 'Covers how to draw geometric shapes using opencv in python, demonstrating the process through code explanation and image manipulation.', 'duration': 47.818, 'highlights': ['The video tutorial focuses on teaching how to draw different geometric shapes using OpenCV in Python.', 'The instructor provides code to read an image, display it in a window, wait for a closing event, and destroy all windows created.', 'The tutorial explains the process of drawing geometric shapes on an image using OpenCV.']}], 'duration': 47.818, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/V1aMDD5583k/pics/V1aMDD5583k933.jpg', 'highlights': ['The video tutorial focuses on teaching how to draw different geometric shapes using OpenCV in Python.', 'The tutorial explains the process of drawing geometric shapes on an image using OpenCV.', 'The instructor provides code to read an image, display it in a window, wait for a closing event, and destroy all windows created.']}, {'end': 494.348, 'segs': [{'end': 80.534, 'src': 'embed', 'start': 49.351, 'weight': 0, 'content': [{'end': 58.759, 'text': "So to start with, let's learn how to draw a line on our image which we have read from this read function.", 'start': 49.351, 'duration': 9.408}, {'end': 63.883, 'text': 'So what we are going to do is we will overwrite this image.', 'start': 59.6, 'duration': 4.283}, {'end': 68.606, 'text': 'So we have already created this image variable.', 'start': 64.303, 'duration': 4.303}, {'end': 73.909, 'text': 'So what we are going to do is we will draw a line on the same image.', 'start': 69.186, 'duration': 4.723}, {'end': 80.534, 'text': "So I'm going to just write img is equal to cv2.lines.", 'start': 74.29, 'duration': 6.244}], 'summary': 'Learn to draw a line on an image using opencv.', 'duration': 31.183, 'max_score': 49.351, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/V1aMDD5583k/pics/V1aMDD5583k49351.jpg'}, {'end': 282.991, 'src': 'embed', 'start': 236.797, 'weight': 1, 'content': [{'end': 243.059, 'text': "That's why you don't see any color on the line, but our line is created here.", 'start': 236.797, 'duration': 6.262}, {'end': 258.853, 'text': "So let's load this image in the colored format by changing this argument to 1 and let's run the code once again and you will see the image is loaded in the colored format and the line color is red.", 'start': 243.419, 'duration': 15.434}, {'end': 263.997, 'text': 'Now, if you want to change the thickness of this line, you can just increase this number.', 'start': 259.514, 'duration': 4.483}, {'end': 270.142, 'text': 'And if you want to change the color of this line, you can change it using these color channels.', 'start': 264.378, 'duration': 5.764}, {'end': 274.805, 'text': "So let's change the line color to green, let's say.", 'start': 270.222, 'duration': 4.583}, {'end': 277.187, 'text': "And I'm going to run the code.", 'start': 275.426, 'duration': 1.761}, {'end': 280.169, 'text': 'And you can see the thickness of the line is increased.', 'start': 277.587, 'duration': 2.582}, {'end': 282.991, 'text': 'And now the color of the line is green.', 'start': 280.669, 'duration': 2.322}], 'summary': 'Image line color changed to green with increased thickness.', 'duration': 46.194, 'max_score': 236.797, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/V1aMDD5583k/pics/V1aMDD5583k236797.jpg'}, {'end': 376.226, 'src': 'embed', 'start': 346.483, 'weight': 3, 'content': [{'end': 357.193, 'text': "Let's say we want to use this function which is called arrowed line and this is going to draw the arrowed line as it says.", 'start': 346.483, 'duration': 10.71}, {'end': 363.799, 'text': "So let's say we want to just draw this arrowed line in blue color.", 'start': 357.653, 'duration': 6.146}, {'end': 373.765, 'text': "So I'm going to just give the color channels here and then run the code and this arrowed line is overlapping on the previous line.", 'start': 364.179, 'duration': 9.586}, {'end': 376.226, 'text': "that's why you don't see the previous line.", 'start': 373.765, 'duration': 2.461}], 'summary': 'Using arrowed line function to draw a blue line, overlapping previous line.', 'duration': 29.743, 'max_score': 346.483, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/V1aMDD5583k/pics/V1aMDD5583k346483.jpg'}, {'end': 494.348, 'src': 'embed', 'start': 462.636, 'weight': 4, 'content': [{'end': 472.52, 'text': 'So, when you want to draw a rectangle using OpenCV, this here is a top left vertex coordinates, which is x1 and y1,', 'start': 462.636, 'duration': 9.884}, {'end': 477.142, 'text': 'and this is here the lower right vertex coordinates.', 'start': 472.52, 'duration': 4.622}, {'end': 486.025, 'text': 'So the top left vertex coordinates you give In the second argument, so let us give some coordinates here.', 'start': 477.502, 'duration': 8.523}, {'end': 494.348, 'text': 'So 384, 0 and the lower right coordinates I want to give here is let us say 510, 128.', 'start': 487.546, 'duration': 6.802}], 'summary': 'Opencv allows drawing a rectangle with top left vertex at (384, 0) and lower right vertex at (510, 128).', 'duration': 31.712, 'max_score': 462.636, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/V1aMDD5583k/pics/V1aMDD5583k462636.jpg'}], 'start': 49.351, 'title': 'Drawing lines and shapes in opencv', 'summary': 'Covers drawing lines on images using cv2.lines method with step-by-step guidance, along with changing colors and thickness of lines, and drawing arrowed lines and rectangles with specific coordinates and colors in opencv.', 'chapters': [{'end': 141.408, 'start': 49.351, 'title': 'Drawing lines on images', 'summary': 'Explains how to draw a line on an image using the cv2.lines method which takes the image, starting and ending coordinates, color, and thickness as arguments, providing a step-by-step guidance on the process.', 'duration': 92.057, 'highlights': ['The cv2.lines method is used to draw a line on an image, taking the image, starting and ending coordinates, color, and thickness as arguments, providing a comprehensive explanation of each argument and its usage.', 'The starting and ending coordinates of the line are specified as tuples, with the example demonstrating the use of (0, 0) as the starting coordinates and (255, 255) as the ending coordinates.']}, {'end': 494.348, 'start': 141.409, 'title': 'Drawing lines and shapes with opencv', 'summary': 'Covers drawing lines, changing colors, and thickness of lines in opencv, also demonstrating how to draw an arrowed line and a rectangle with specific coordinates and colors.', 'duration': 352.939, 'highlights': ['Demonstrates how to draw lines in OpenCV using BGR format and change their color and thickness. Explains the usage of BGR format for specifying color, including examples of drawing blue, green, and red lines, and explaining how to adjust line thickness.', 'Shows how to change the color of lines by adjusting the color channels and demonstrates drawing lines in different colors using RBG color picker. Illustrates the process of changing line colors using RBG color picker and providing an example of drawing a line in a custom color.', "Explains the usage of the 'arrowed line' function in OpenCV and demonstrates drawing an arrowed line in a specific color. Describes the functionality of the 'arrowed line' function and provides an example of drawing an arrowed line in a specific color.", "Demonstrates how to draw a rectangle in OpenCV using specific coordinates and colors. Illustrates the process of drawing a rectangle using specific coordinates and explains the usage of the 'rectangle' function in OpenCV."]}], 'duration': 444.997, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/V1aMDD5583k/pics/V1aMDD5583k49351.jpg', 'highlights': ['The cv2.lines method is used to draw a line on an image, providing a comprehensive explanation of each argument and its usage.', 'Demonstrates how to draw lines in OpenCV using BGR format and change their color and thickness.', 'Shows how to change the color of lines by adjusting the color channels and demonstrates drawing lines in different colors using RBG color picker.', "Explains the usage of the 'arrowed line' function in OpenCV and demonstrates drawing an arrowed line in a specific color.", 'Demonstrates how to draw a rectangle in OpenCV using specific coordinates and colors.']}, {'end': 949.809, 'segs': [{'end': 520.563, 'src': 'embed', 'start': 494.348, 'weight': 4, 'content': [{'end': 498.45, 'text': 'So let us say we want to give the red color.', 'start': 494.348, 'duration': 4.102}, {'end': 503.95, 'text': 'So I am going to just write 0, 0, 255.', 'start': 498.55, 'duration': 5.4}, {'end': 512.318, 'text': "and the thickness I want to give here is 5, and I'm going to just remove this because it will just create problems.", 'start': 503.952, 'duration': 8.366}, {'end': 520.563, 'text': "and now let's run the code and you can see the rectangle is drawn with the red color of thickness 5.", 'start': 512.318, 'duration': 8.245}], 'summary': 'Code draws a red rectangle with 5px thickness.', 'duration': 26.215, 'max_score': 494.348, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/V1aMDD5583k/pics/V1aMDD5583k494348.jpg'}, {'end': 697.474, 'src': 'embed', 'start': 668.037, 'weight': 2, 'content': [{'end': 679.103, 'text': 'So to put the text on our image we will once again use the image variable and overwrite on it and then we will use a method called putText.', 'start': 668.037, 'duration': 11.066}, {'end': 682.325, 'text': 'So this is the method which we are going to use.', 'start': 679.703, 'duration': 2.622}, {'end': 684.786, 'text': 'The first argument is the image.', 'start': 682.725, 'duration': 2.061}, {'end': 688.788, 'text': 'The second argument here is the text which we want to put.', 'start': 685.286, 'duration': 3.502}, {'end': 693.691, 'text': "So let's say we want to just print OpenCV on our image.", 'start': 689.129, 'duration': 4.562}, {'end': 697.474, 'text': 'So we can just write OpenCV as the second argument.', 'start': 693.791, 'duration': 3.683}], 'summary': "Using the puttext method to overlay 'opencv' on an image.", 'duration': 29.437, 'max_score': 668.037, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/V1aMDD5583k/pics/V1aMDD5583k668037.jpg'}, {'end': 810.727, 'src': 'heatmap', 'start': 775.578, 'weight': 0.715, 'content': [{'end': 778.539, 'text': 'the next argument we will give here is the thickness.', 'start': 775.578, 'duration': 2.961}, {'end': 782.361, 'text': "so let's say i want to provide the thickness 10 here.", 'start': 778.539, 'duration': 3.822}, {'end': 786.506, 'text': 'and the next argument you can give here is the line type.', 'start': 782.361, 'duration': 4.145}, {'end': 795.758, 'text': "so let's say i want to give the line type cv2, dot, capital line, underscore aa.", 'start': 786.506, 'duration': 9.252}, {'end': 798.12, 'text': "and now let's run our script and let's see what happens.", 'start': 795.758, 'duration': 2.362}, {'end': 810.727, 'text': 'So you can see here OpenCV is printed in the white color of thickness 10 and if you want to change this color, you can change it from here.', 'start': 798.741, 'duration': 11.986}], 'summary': 'Demonstrating setting thickness, line type in opencv with results', 'duration': 35.149, 'max_score': 775.578, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/V1aMDD5583k/pics/V1aMDD5583k775578.jpg'}, {'end': 916.019, 'src': 'heatmap', 'start': 850.477, 'weight': 1, 'content': [{'end': 859.406, 'text': 'So just import numpy as np and then we are going to use this np to call the zeros method.', 'start': 850.477, 'duration': 8.929}, {'end': 867.595, 'text': 'Now in order to create a black image using this zeros method, you need to give the first argument in the form of list.', 'start': 859.747, 'duration': 7.848}, {'end': 869.856, 'text': 'inside this list.', 'start': 868.715, 'duration': 1.141}, {'end': 876.839, 'text': 'the first element will be the height, second will be the width and third will be 3.', 'start': 869.856, 'duration': 6.983}, {'end': 887.144, 'text': "so let's say we want to provide the height 512, we want to provide the width also 512 and the third argument will be 3.", 'start': 876.839, 'duration': 10.305}, {'end': 891.166, 'text': 'and the next argument you give here is the D type or data type.', 'start': 887.144, 'duration': 4.022}, {'end': 897.969, 'text': 'so you can just write NP dot you int 8 here.', 'start': 891.166, 'duration': 6.803}, {'end': 906.033, 'text': 'So this method is going to give you a black image of the size 512 by 512.', 'start': 898.129, 'duration': 7.904}, {'end': 908.195, 'text': "So let's run our code and let's see what happens.", 'start': 906.033, 'duration': 2.162}, {'end': 909.395, 'text': 'So you can see.', 'start': 908.655, 'duration': 0.74}, {'end': 916.019, 'text': 'now you can see the black image, and on our black image the line is drawn,', 'start': 909.395, 'duration': 6.624}], 'summary': 'Using np.zeros method to create a black image of size 512x512 with line drawn', 'duration': 26.362, 'max_score': 850.477, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/V1aMDD5583k/pics/V1aMDD5583k850477.jpg'}, {'end': 940.147, 'src': 'embed', 'start': 909.395, 'weight': 0, 'content': [{'end': 916.019, 'text': 'now you can see the black image, and on our black image the line is drawn,', 'start': 909.395, 'duration': 6.624}, {'end': 922.943, 'text': 'the arrowed line is drawn and the text and the circle and the rectangle are drawn here.', 'start': 916.019, 'duration': 6.924}, {'end': 928.324, 'text': 'So this is how you can draw different geometric shapes on your image.', 'start': 923.263, 'duration': 5.061}, {'end': 931.385, 'text': 'There are several other methods you can use.', 'start': 928.844, 'duration': 2.541}, {'end': 940.147, 'text': 'For example, CV2.polyline method or CV2.eclipse method to draw eclipse and polygon on your image.', 'start': 931.445, 'duration': 8.702}], 'summary': 'Demonstrates drawing geometric shapes on images using cv2 methods.', 'duration': 30.752, 'max_score': 909.395, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/V1aMDD5583k/pics/V1aMDD5583k909395.jpg'}], 'start': 494.348, 'title': 'Drawing and adding shapes with opencv', 'summary': 'Demonstrates drawing rectangles, circles, and text with opencv, allowing customization of color, thickness, and fill options. it also explains how to add text and geometric shapes to images, demonstrating the process of adding text and creating a black image with various geometric shapes.', 'chapters': [{'end': 667.717, 'start': 494.348, 'title': 'Drawing shapes and text with opencv', 'summary': 'Demonstrates drawing a rectangle, circle, and text using opencv, allowing for customization of color, thickness, and fill options.', 'duration': 173.369, 'highlights': ['The chapter covers drawing a rectangle, circle, and text using OpenCV, with examples of customizing color, thickness, and fill options.', 'The code demonstrates drawing a rectangle with red color and a thickness of 5.', 'The chapter explains how to change the thickness of the rectangle and fill it with color by providing a specific value.', 'It also showcases drawing a circle with a specified center, radius, color, and fill option, in this case using green color and filling the circle.']}, {'end': 949.809, 'start': 668.037, 'title': 'Adding text and shapes to images', 'summary': 'Explains how to add text and geometric shapes to an image using opencv, demonstrating the process of adding text and creating a black image with various geometric shapes.', 'duration': 281.772, 'highlights': ['The method putText is used to add text to an image, with parameters such as text, starting point, font face, font size, color, thickness, and line type. The putText method is used to add text to an image, with parameters including text, starting point coordinates, font face, font size, color, thickness, and line type.', 'Demonstration of creating a black image with numpy zeros method, specifying the height, width, and data type. The process of creating a black image using the numpy zeros method, specifying the height, width, and data type, is demonstrated.', 'Explanation of drawing geometric shapes on the image, including lines, arrowed lines, text, circles, and rectangles. The tutorial explains how to draw various geometric shapes on an image, such as lines, arrowed lines, text, circles, and rectangles.']}], 'duration': 455.461, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/V1aMDD5583k/pics/V1aMDD5583k494348.jpg', 'highlights': ['The chapter covers drawing a rectangle, circle, and text using OpenCV, with examples of customizing color, thickness, and fill options.', 'Demonstration of creating a black image with numpy zeros method, specifying the height, width, and data type.', 'The method putText is used to add text to an image, with parameters such as text, starting point, font face, font size, color, thickness, and line type.', 'Explanation of drawing geometric shapes on the image, including lines, arrowed lines, text, circles, and rectangles.', 'The code demonstrates drawing a rectangle with red color and a thickness of 5.']}], 'highlights': ['The tutorial explains the process of drawing geometric shapes on an image using OpenCV.', 'The video tutorial focuses on teaching how to draw different geometric shapes using OpenCV in Python.', 'The instructor provides code to read an image, display it in a window, wait for a closing event, and destroy all windows created.', 'The chapter covers drawing a rectangle, circle, and text using OpenCV, with examples of customizing color, thickness, and fill options.', 'The cv2.lines method is used to draw a line on an image, providing a comprehensive explanation of each argument and its usage.', 'Demonstrates how to draw lines in OpenCV using BGR format and change their color and thickness.', 'Shows how to change the color of lines by adjusting the color channels and demonstrates drawing lines in different colors using RBG color picker.', "Explains the usage of the 'arrowed line' function in OpenCV and demonstrates drawing an arrowed line in a specific color.", 'Demonstrates how to draw a rectangle in OpenCV using specific coordinates and colors.', 'Demonstration of creating a black image with numpy zeros method, specifying the height, width, and data type.', 'The method putText is used to add text to an image, with parameters such as text, starting point, font face, font size, color, thickness, and line type.', 'Explanation of drawing geometric shapes on the image, including lines, arrowed lines, text, circles, and rectangles.', 'The code demonstrates drawing a rectangle with red color and a thickness of 5.']}