Opencv error -Unsupported depth of input image:

I am trying to convert a normalised RGB image to HSV or LAB colour space. Here is the normalisation function: here is the basic code print ('original image shape: ', image.shape) print ('normla...