From the course: OpenCV for Python Developers
Unlock the full course today
Join today to access over 24,400 courses taught by industry experts.
Access and understand pixel data
From the course: OpenCV for Python Developers
Access and understand pixel data
- [Instructor] Sometimes it can be difficult to visualize data structures, but it is particularly important for computer vision applications to stay aware of what data you are accessing and keeping track of the data types. To get started, note that I've already changed my directory into the chapter two, module two begin folder, and additionally, we still have our opencv-logo png. Opening my Python3 environment, I'm going to import our NumPy library as well as our cv2 library. Next, I'm going to read back in our logo using cv2.imread, then opencv-logo.png, and this time I'm going to pass in a value of one. You could also pass in the value cv2.imread_color. This is telling opencv to try and load the image as a full color image. If we were to pass in a value of zero, we would actually read in the image as black and white. Now that we have loaded in our image, let's actually take a look at the data it contains. Simply…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
Get started with OpenCV and Python5m 36s
-
(Locked)
Get started with OpenCV and Python: Google Collab6m 5s
-
(Locked)
Access and understand pixel data4m 12s
-
(Locked)
Data types and structures7m 36s
-
(Locked)
Image types and color channels8m 51s
-
(Locked)
Pixel manipulations and filtering4m 41s
-
(Locked)
Blur, dilation, and erosion5m 50s
-
(Locked)
Scale and rotate images5m 14s
-
(Locked)
Use video inputs4m 57s
-
(Locked)
Create custom interfaces4m 50s
-
(Locked)
Challenge: Create a simple drawing app2m 15s
-
(Locked)
Solution: Create a simple drawing app7m 32s
-
-
-
-