filmov
tv
Fun Python Exercise - Convert Numbers to Images with NumPy, OpenCV and Pillow
![preview_player](https://i.ytimg.com/vi/8O_fU_qrDoY/maxresdefault.jpg)
Показать описание
In this exercise we will use our NumPy skills to convert numbers into images 💪💪💪 We will see examples of 2 very useful Python image libraries: OpenCV (cv2) and Pillow (PIL). And also discuss the differences between them.
The purpose of this tutorial is to guide you step by step from creating the most simple greyscale image - all the way until drawing a complex structure of RGB windows! or even a smooth turquoise gradient image! 🤩
⭐ Clone Complete Tutorial Code ⭐
--------------------------------------------------------------
🛑 If this is the first time you are working with NumPy,
I recommend watching the beginning of my Ultimate Guide to NumPy Arrays tutorial:
🛑 If this is the first time you are working with RGB/BGR/Greyscale,
I recommend watching my Image into Matrix Tutorial:
⌚ TIME STAMPS ⌚
---------------------------------------
00:00 - intro
00:34 - import NumPy and OpenCv
00:58 - create empty array
01:41 - save array as PNG image
02:30 - grayscale image - 50 Shades of Grey
03:26 - region of interest
04:27 - floor division
06:21 - smooth greyscale gradient image
---------------------------------------
06:43 - convert grayscale image to BGR
08:02 - red gradient BGR image
09:01 - turquoise/yellow gradient BGR images
---------------------------------------
09:35 - artistic RGB image with Pillow
11:29 - fill NumPy image background
11:40 - draw square with NumPy
13:15 - working with relative coordinates
15:17 - draw window pattern with NumPy
18:49 - apply random color
20:57 - thanks for watching!
👨👩👧 RELATED VIDEOS OF MINE 👨👩👧
---------------------------------------
⭐ Image into Matrix:
⭐ Draw with OpenCV:
⭐ Ultimate Guide to NumPy Arrays:
⭐ Ultimate Guide to NumPy Operations:
🐦 SOCIAL MEDIA 🐦
---------------------------------------
Share your NumPy Images with Me! 🤩🤩🤩
⭐ LinkedIn:
⭐ Twitter:
* CREDITS *
---------------------------------------
The purpose of this tutorial is to guide you step by step from creating the most simple greyscale image - all the way until drawing a complex structure of RGB windows! or even a smooth turquoise gradient image! 🤩
⭐ Clone Complete Tutorial Code ⭐
--------------------------------------------------------------
🛑 If this is the first time you are working with NumPy,
I recommend watching the beginning of my Ultimate Guide to NumPy Arrays tutorial:
🛑 If this is the first time you are working with RGB/BGR/Greyscale,
I recommend watching my Image into Matrix Tutorial:
⌚ TIME STAMPS ⌚
---------------------------------------
00:00 - intro
00:34 - import NumPy and OpenCv
00:58 - create empty array
01:41 - save array as PNG image
02:30 - grayscale image - 50 Shades of Grey
03:26 - region of interest
04:27 - floor division
06:21 - smooth greyscale gradient image
---------------------------------------
06:43 - convert grayscale image to BGR
08:02 - red gradient BGR image
09:01 - turquoise/yellow gradient BGR images
---------------------------------------
09:35 - artistic RGB image with Pillow
11:29 - fill NumPy image background
11:40 - draw square with NumPy
13:15 - working with relative coordinates
15:17 - draw window pattern with NumPy
18:49 - apply random color
20:57 - thanks for watching!
👨👩👧 RELATED VIDEOS OF MINE 👨👩👧
---------------------------------------
⭐ Image into Matrix:
⭐ Draw with OpenCV:
⭐ Ultimate Guide to NumPy Arrays:
⭐ Ultimate Guide to NumPy Operations:
🐦 SOCIAL MEDIA 🐦
---------------------------------------
Share your NumPy Images with Me! 🤩🤩🤩
⭐ LinkedIn:
⭐ Twitter:
* CREDITS *
---------------------------------------
Комментарии