Image histogram in python


import cv2
import numpy as np
from matplotlib import pyplot as plt

img = cv2.imread('Dragon-ball-Super-100-Jiren.jpg',0)
plt.hist(img.ravel(),256,[0,256])

    plt.show() 

No comments:

Post a Comment

Building a CLI-Based People Tracking and Dwell Time Analytics System Using YOLOv8 and DeepSORT

  Introduction Tracking people across video frames and analyzing their behavior (like  dwell time ) is a crucial task for many real-world ap...