import cv2
import numpy as np
# Path to the image you want to read
image_path = 'path/to/your/image.jpg'
# Read the image using OpenCV
image = cv2.imread(image_path)
# Convert the image from BGR to RGB (if necessary)
image = cv2.cvtColor(image, cv2.COLOR_BGR2RGB)
# Now, 'image' is a NumPy array containing the pixel values of the image
print("Shape of the image array:", image.shape)
# You can also display the image using a library like Matplotlib
import matplotlib.pyplot as plt
plt.imshow(image)
plt.axis('off')
plt.show()