1. Basics of Image Processing
Activity 1.01: Mirror Effect with a Twist
- Let's start by importing the necessary libraries:
# Load modules
import numpy as np
import matplotlib.pyplot as plt
- Next, let's specify the magic command for displaying images in a notebook:
- Now, we can load the image and display it using Matplotlib.
Before proceeding, ensure that you can change the path to the images (highlighted) based on where the image is saved in your system.
The code is as follows:
# Load image
img = cv2.imread("../data/lion.jpg")
The output is as follows: