1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 15:23:05 +04:00

fix samples

This commit is contained in:
APrigarina
2021-06-29 22:15:37 +03:00
parent 8fad85edda
commit 0f24d4d2a1
3 changed files with 7 additions and 4 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ def hist_lines(im):
im = cv.cvtColor(im,cv.COLOR_BGR2GRAY)
hist_item = cv.calcHist([im],[0],None,[256],[0,256])
cv.normalize(hist_item,hist_item,0,255,cv.NORM_MINMAX)
hist=np.int32(np.around(hist_item))
hist = np.int32(np.around(hist_item))
for x,y in enumerate(hist):
cv.line(h,(x,0),(x,y[0]),(255,255,255))
y = np.flipud(h)