opencv cvtColor dtype issue(error: (-215) )
Cvb0
more detailed error information is as follows, color.cpp:9710: error: (-215) depth == CV_8U || depth == CV_16U || depth == CV_32F in function CV ::cvtColor;
error is caused by the simple fact that the input image data type (pixel value) of the color space to be converted is not uint8 (0-255, integer value in the interval), but other type,
cv2.cvtColor(X, cv2.COLOR_RGB2HSV) ⇒ cv2.cvtColor(X.astype(np.uint8), cv2.COLOR_RGB2HSV)
div>
Read More:
- Successfully solved opencv error: assertion failed (SCN = = 3 | SCN = = 4) in CV:: cvtcolor
- OpenCV error: (-215:Assertion failed) !_src.empty() in function ‘cv::cvtColor‘
- How to Fix TypeError: Cannot cast array data from dtype(‘float64‘) to dtype(‘<U32‘)….
- Project files may be invalid appears when cmake compiles opencv3.1, and the debug additional dependency of the compiled opencv3.1 is at the end
- Opencv perfect configuration strategy 2015 (win7 + opencv 2.4.9 + vs 2013)
- Opencv problem: opencv error: assertion failed (! Empty()) in detectmultiscale
- [opencv + openvino] opencv-vino4.5.1 + opencv contrib installation
- RuntimeError: Found dtype Double but expected Float”
- Warning when using numpy: runtimewarning: numpy.dtype size changed, may indicate binary incompatibility
- Keras: Cannot convert ‘auto‘ to EagerTensor of dtype float
- Solve the problem of import Cafe: runtimewarning: numpy.dtype Size changed, may indicate binary instability
- [PostgreSQL tutorial] · out of memory issue
- [Fixed] Chrome Browser Cannot Edit Cookies Issue
- Environment configuration at the beginning of OpenCV + vs2015
- Solved: No’Access-Control-Allow-Origin’ cross-domain issue
- How to Fix “Slow Access of Stackoverflow” Issue
- [solution] build vins and orb-slam based on opencv4
- How to Solve Win 10 Kb5008212 can’t share printer Issue
- How to Solve Vue Command Not Work Issue in win7_64
- How to Solve Arduino IDE Crash Issue