1 | initial version |
try a `>>> help(cvtColor)
and you get:
cvtColor(...)
cvtColor(src, code[, dst[, dstCn]]) -> dst
. @brief Converts an image from one color space to another.
so you have to use it like:
img_plane_hsi = cv2.cvtColor(img_plane_rgb, cv2.COLOR_BGR2HSV)
2 | No.2 Revision |
try a `>>>
and you get:help(cvtColor)help(cv2.cvtColor)
cvtColor(...)
cvtColor(src, code[, dst[, dstCn]]) -> dst
. @brief Converts an image from one color space to another.
so you have to use it like:
img_plane_hsi = cv2.cvtColor(img_plane_rgb, cv2.COLOR_BGR2HSV)
3 | No.3 Revision |
try a `>>> help(cv2.cvtColor)
and you get:
cvtColor(...)
cvtColor(src, code[, dst[, dstCn]]) -> dst
. @brief Converts an image from one color space to another.
so you have to use it like:
img_plane_hsi = cv2.cvtColor(img_plane_rgb, cv2.COLOR_BGR2HSV)