I am new to OpenCV. I am specifically exploring Face recognition capabilities added in OpenCV2.4beta version. After compiling and executing samples/cpp/facerec_demo.cpp, I get following runtime error.
OpenCV Error: Assertion failed (depth == CV_8U || depth == CV_16U || depth == CV_32F) in cvtColor, file /home/truptivk/Desktop/Face Recognition /OpenCV-2.4.0-beta2/modules/imgproc/src/color.cpp, line 3143
terminate called after throwing an instance of 'cv::Exception'
what(): /home/truptivk/Desktop/Face Recognition /OpenCV-2.4.0-beta2/modules/imgproc/src/color.cpp:3143: error: (-215) depth == CV_8U || depth == CV_16U || depth == CV_32F in function cvtColor
Aborted (core dumped)
After dumping the depth value it shows CV_64F.
I have created csvfile.ext for AT&T database. (Images have 8-bit grey levels.) and I am using Ubuntu 12.04 32 bit version. I am clueless from where its picking up CV_64F.
Please help me to rectify this error. What needs to be one in order to avoid this?
Thanks & Regards
I got in touch with Philipp Wagner, who has written the face recognition code. I received a reply from him.
So on this note, I am closing this thread.
@karlphillip Thanks a lot for all you help.