###### 问题遇到的现象和发生背景
###### 问题相关代码,请勿粘贴截图
new = np.zeros((image.shape[0], 256, 3))
# 对图像进行直方图计算
hist_item = cv.calcHist([image], [0], None, [256], [0, 256])
cv.normalize(hist_item, hist_item, 0, 255, cv.NORM_MINMAX)
hist = np.int32(np.around(hist_item))
for x, y in enumerate(hist):
cv.line(new, (x, 0), (x, y), (255, 255, 255))
###### 运行结果及报错内容
###### 我的解答思路和尝试过的方法
###### 我想要达到的结果
y的类型出错,转成int