Код: Выделить всё
cv2.imwrite('hip_dir.jpg',hip_dir)
Код: Выделить всё
cv2.imshow('img0',hip_dir)
cv2.waitKey(0)
cv2.destroyAllWindows()
Как правильно использовать imshow?
Изменить:
Использование команды cv2.cvtColor приводит к следующей ошибке:
Код: Выделить всё
error: OpenCV(4.1.0) c:\projects\opencv-
python\opencv\modules\imgproc\src\color.simd_helpers.hpp:94: error:
(-2:Unspecified error) in function '__cdecl cv::impl::`anonymous-namespace'::CvtHelper
Подробнее здесь: [url]https://stackoverflow.com/questions/57107376/cv2-imshow-shows-binary-image[/url]
Мобильная версия