/home/ci/opencv/doc/tutorials/imgproc/histograms/histogram_calculation/histogram_calculation.markdown File Reference
Примеры с cv2.imshow требуют сборки OpenCV с GUI. В ноутбуке с headless-версией используйте вывод изображений через Matplotlib.
/home/ci/opencv/doc/tutorials/imgproc/histograms/histogram_calculation/histogram_calculation.markdown File Reference