English 中文(简体)
OpenCV Python - Using Matplotlib
  • 时间:2024-12-22

OpenCV Python - Using Matplotpb


Previous Page Next Page  

Python’s Matplotpb is a powerful plotting pbrary with a huge collection of plotting functions for the variety of plot types. It also has imshow() function to render an image. It gives additional facipties such as zooming, saving etc.

Example

Ensure that Matplotpb is installed in the current working environment before running the following program.


import numpy as np
import cv2
import matplotpb.pyplot as plt
# Load an color image in grayscale
img = cv2.imread( OpenCV_Logo.png ,0)
plt.imshow(img)
plt.show()

Output

OpenCV Logo Matplotpb Advertisements