Draw with OpenCV - No more Photoshop! Graphic Design with Python!

Опубликовано: 28 Сентябрь 2024
на канале: Python Simplified
34,735
1.5k

In this tutorial, you'll find out how to draw basic shapes with OpenCV - which is a very popular computer vision library, not only for Python! 🔴🟢🔵
We will create a drawing of some trees on a sunny background, we will add some text and we will save it as a "png" file to our computer.

⭐ Image Into Matrix - Convert Like a Pro!! ⭐
   • Convert Image into Matrix - Like a Pro!  

*******************************
Want to learn more about ⭐Computer Vision?⭐

🎥 Stream Videos with OpenCV 🎥
   • Stream Live Video from Mobile Phone C...  

😴 Image Processing with Pillow 😴
   • Image Processing with Pillow - a Pyth...  

Also, if you don't feel like coding along, you can still access my script:
https://github.com/MariyaSha/OpenCV_D...

*******************************
⏰ timestamps ⏰
*******************************
00:00 - Intro
00:26 - import OpenCV / import cv2
00:41 - image data type overview
01:06 - create blank image with Numpy / np.zeros()
02:30 - show image with OpenCV
02:50 - cv.waitKey(0)
03:16 - cv.destroyAllWindows
04:01 - draw rectangle with OpenCV
05:24 - fill rectangle with OpenCV
06:19 - draw circle with OpenCV
07:11 - outline line thickness with OpenCV
07:46 - draw line with OpenCV
08:50 - draw triangle with OpenCV and Numpy
10:36 - write text with OpenCV
12:32 - repetition with classes (coming soon)
13:17 - save image with OpenCV / imwrite
13:56 - thanks for watching!

*******************************
See you in the next tutorial, where we will create an entire forest of tree objects!
Thanks for watching ♥