Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7907275
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T11:21:23+00:00 2026-06-03T11:21:23+00:00

I am new to OpenCV. I am specifically exploring Face recognition capabilities added in

  • 0

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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T11:21:24+00:00Added an answer on June 3, 2026 at 11:21 am

    I got in touch with Philipp Wagner, who has written the face recognition code. I received a reply from him.

    His Reply: A small bug happened while it was ported to OpenCV 2.4.
    I’ll fix it in the SVN as soon as I find the time. For now I have
    uploaded a corrected facerec_demo.cpp for OpenCV 2.4
    here

    So on this note, I am closing this thread.
    @karlphillip Thanks a lot for all you help.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to use the new 2.0 c++ version of OpenCV , but everything
I'm new in opencv and use the version 2.3 in C++. My approach is
i am completly new in openCV(EmguCV) and face comparision. I am trying to implement
I'm trying to use the new OpenCV 2.0 API in MS Visual C++ 2008
I'm new to OpenCV and would like to use its Python binding. When trying
I'm new to the opencv...i want to find the minimum value in the matrix..but
I am new to OpenCV and I have only Tiny C compiler configured on
i'm new to image processing and opencv, but so far the easy to understand
I am trying to use the Qt new functions described here: http://opencv.willowgarage.com/documentation/cpp/qt_new_functions.html#cv-createbutton And I
A few days back, I started using new OpenCV-Python interface, cv2 . My question

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.