I am the moment trying to convert a rgb to hsv, which seems impossible.. I thought i might have been due the Mat being empty.. but thats not the case...
I get this error message.
/build/buildd/opencv-2.4.8+dfsg1/modules/imgproc/src/color.cpp:3642: error: (-215) depth == CV_8U || depth == CV_16U || depth == CV_32F in function cvtColor
for these lines of code..
Point find(Mat frame) {
Mat imgOriginal = frame.clone();
Mat imgHSV = frame.clone();
if (frame.empty())
{
cout << "Empty...';
exit -1;
}
cvtColor(imgOriginal, imgHSV, COLOR_BGR2HSV); //Convert the captured frame from BGR to HSV
what could be going wrong here???