'Converting HSV to RGB in opencv

My python code:

import numpy as np
hsvimg = np.zeros(10,10,3)
hsvimg[:,:,0] = np.linspace(0.2722,0.4722,10)
hsvimg[:,:,1] = np.linspace(0.5722,0.6522,10)
hsvimg[:,:,2] = np.ones(10)

how can i convert hsv image to rgb, only using opencv



Solution 1:[1]

Invalid number of channels in input image: 'VScn::contains(scn)' where 'scn' is 4

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Scanty