Horje
plt clor image histogram Code Example
plt clor image histogram
import cv2
import numpy as np
from matplotlib import pyplot as plt

file0 = 'image.jpg'
img = cv2.imread(file0)
color = ('b','g','r')
plt.figure()
for i,col in enumerate(color):
    histr = cv2.calcHist([img],[i],None,[256],[0,256])
    plt.plot(histr,color = col)
    plt.xlim([0,256])
plt.show()




Python

Related
python + credit-german.csv + class Code Example python + credit-german.csv + class Code Example
print torch model python Code Example print torch model python Code Example
sql o que é Code Example sql o que é Code Example
correct code to read csv file in python Code Example correct code to read csv file in python Code Example
pomodoro timer in python Code Example pomodoro timer in python Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9