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 8613831
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T04:58:34+00:00 2026-06-12T04:58:34+00:00

I am working on Ubuntu 12.04,32 bit platform with OpenCV Version 2.4.1 on eclipse

  • 0

I am working on Ubuntu 12.04,32 bit platform with OpenCV Version 2.4.1 on eclipse ide. The cvLoadImage() function is returning me a NULL value even after putting the image in the current Location of the project where I have the cpp file.

#include "highgui.h"
#include<iostream>
using namespace std;
int main( int argc, char** argv )
{
  char image[80]="baboon.jpg";
  IplImage* img = cvLoadImage(image,CV_LOAD_IMAGE_COLOR);
  cout<<img<<endl;
}

Following are my include file directory:

-I/usr/local/include/opencv -I/usr/local/include

and

Following are the library files:

/usr/local/lib/libopencv_calib3d.so
/usr/local/lib/libopencv_contrib.so /usr/local/lib/libopencv_core.so
/usr/local/lib/libopencv_features2d.so
/usr/local/lib/libopencv_flann.so /usr/local/lib/libopencv_gpu.so
/usr/local/lib/libopencv_highgui.so
/usr/local/lib/libopencv_imgproc.so /usr/local/lib/libopencv_legacy.so
/usr/local/lib/libopencv_ml.so /usr/local/lib/libopencv_nonfree.so
/usr/local/lib/libopencv_objdetect.so
/usr/local/lib/libopencv_photo.so
/usr/local/lib/libopencv_stitching.so /usr/local/lib/libopencv_ts.so
/usr/local/lib/libopencv_video.so
/usr/local/lib/libopencv_videostab.so

My img value is always zero (NULL). I am not getting any compilation errors.I checked similar posts on the forum but none of them could solve my problem.I even tried with a PNG image but faced the same issue.Kindly let know if anyone faced a similar issue before.
Thanks in advance

  • 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-12T04:58:35+00:00Added an answer on June 12, 2026 at 4:58 am

    Did you try to give a full path to your image file? If didn’t, make sure the image file is in the folder with an executable file ( some IDEs have a separate folder for debug and for release ).

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

Sidebar

Related Questions

My PC CONFIGURATION : UBUNTU 11.10 version 64 bit , ECLIPSE 3.7 , ANDROID
I am working on ubuntu OS,I have started working on pentaho-BI using eclipse.. Just
In my Eclipse Indigo (64-bit) under Ubuntu, the SVNKit client doesn't show up in
First a bit of background. I have been working on the MS platform for
I'm working on a Ubuntu 8.04 / 32 bit (as virtual machine). While performing
I am working in Ubuntu Opencv.I am trying to do PCA analysis of a
Iam working on Ubuntu.(Linux) I want to redirect from the page one.php to two.php,
I am working on Ubuntu environment (LAMP) .But when i install symfony2 on windows
I am working on Ubuntu and installed the Azure SDK for Linux and got
I'm working on Ubuntu.(Linux) I want to display all .php pages to .html in

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.