python historgrm of image code example Example: histogram image processing python img = cv2.imread('home.jpg',0) hist = cv2.calcHist([img],[0],None,[256],[0,256])