Any function in OpenCV that is similar to plt.hist(... density=True)?

I would recommend multiplying with the number of bins (assuming they’re all the same size). that’ll scale the histogram to have proportional area.