def hist2d_demo(image):
    hsv = cv.cvtColor(image, cv.COLOR_BGR2HSV)
    hist = cv.calcHist([image], [0, 1], None, [32, 32], [0, 180, 0, 256])
    plt.imshow(hist, interpolation='nearest')
    plt.title('2D Histogram')
    plt.show()
def hist2d_demo(image):
    hsv = cv.cvtColor(image, cv.COLOR_BGR2HSV)
    hist = cv.calcHist([image], [0, 1], None, [32, 32], [0, 180, 0, 256])
    plt.imshow(hist, interpolation='nearest')
    plt.title('2D Histogram')
    plt.show()