Ask Your Question

patrickhuie19's profile - activity

2019-05-24 16:03:19 -0600 received badge  Popular Question (source)
2016-01-12 20:02:03 -0600 received badge  Enthusiast
2016-01-11 22:40:57 -0600 commented question OpenCV installation into eclipse

Hey Pedro, one quick question. In the Berriel tutorial i watched and read (http://rodrigoberriel.com/2014/10/usi...) He said that in the final step to run your project, you should write ./ProjectName ~PathToImage If you have multiple .cpp files in your project, how will the compiler know which one to run? Does this only work if there is one .cpp file in the project?

2016-01-10 19:11:01 -0600 commented question OpenCV installation into eclipse

Hey Pedro, I can understand why you think I have no experience - but you would be wrong! I am a complete beginner to C++, and I am fairly new to Ubuntu as well. But don't let that fool you - I compete well in the USACO, am captain of my school's (which is a charter school for the sciences) programming team, and have won internships at big programming companies. Thank you so much for all of your help. My main language is Java, so you are right in some ways -I have little experience with C++ and even less with linux GCC. Please don't ignore this thread just yet - you've been so helpful and I hope that if there's any other small question I have, you might be able to answer that!

2016-01-07 20:58:44 -0600 commented question OpenCV installation into eclipse

The test executable was made! Which is great, but when I try to run it, I get this error. ~/workspace/Machine Vision CPP/Release$ ./test terminate called after throwing an instance of 'std::logic_error' what(): basic_string::_S_construct null not valid Aborted (core dumped)

2016-01-07 06:30:39 -0600 commented question OpenCV installation into eclipse

Machine Vision CPP is the name of my project, so it's a folder. Yeah, in the openCV tutorial posted on their website, you can see the executable from eclipse and run it from there. The problem is, the executable is not being made. I did that in terminal just to be certain, and it's not there

2016-01-06 20:32:45 -0600 commented question OpenCV installation into eclipse

however, printf still does and no executable is formed in the release folder.

2016-01-06 20:32:16 -0600 commented question OpenCV installation into eclipse

as well, once I added "using namespace std", cout no longer gave me any problems- so thanks!

2016-01-06 20:25:57 -0600 commented question OpenCV installation into eclipse

patrickhuie19@UbuntuS55:~/workspace/Machine Vision CPP/Release$ ls

Machine Vision CPP objects.mk subdir.mk test2.o test.o makefile sources.mk test2.d test.d

those are the contents of my release folder. I will the post the code I'm trying to compile in the question.

2016-01-06 08:38:52 -0600 commented question OpenCV installation into eclipse

An executable is not being made in the release folder, so there is nothing for me to run. As well, eclipse doesn't recognize the printf function (or cout for that matter) even though I've included all the libraries and iostream.

2016-01-05 22:21:38 -0600 commented question Build folder missing

im sorry, could you perhaps link me to the build tutorial so I know for sure I'm reading the right one?

2016-01-05 22:17:01 -0600 commented question Build folder missing

I did that tutorial as well. Same problem, they need to get the jars from a build folder I don't have. Which means the build folder wasn't part of the download package?

2016-01-05 22:08:48 -0600 commented question Build folder missing

I downloaded both versions directly from the site.

2016-01-05 22:08:26 -0600 received badge  Editor (source)
2016-01-05 20:46:12 -0600 asked a question Build folder missing

In both the 2.4.1 and 3.1.0 version I dowloaded(directly from the website), the build folder was missing. In all openCV with java and eclipse tutorials, they tell me I need to get the jars from the build folder. But there is no build folder. I have the following folders: 3rdparty , apps, cmake, doc , data, include, modules, platforms, samples

I do need a build folder, right?? For a side note, I'm using eclipse mars, on ubuntu 14.04.

I have another interesting question. When i was trying to install openCV with eclipse CDT, in all the tutorials I did, in the end, no executable was made in the Release folder. (after 3 weeks of trying). I think it is a build issue, and now that I see the build folder missing from openCV, would that have anything do with this?

2016-01-05 20:36:29 -0600 commented answer opencv 2.4.3 - missing include files

what if your build folder is completely missing? I downloaded a version of openCV 2.4.1 and 3.1.0 and no build folder existed in either!

2016-01-05 17:26:13 -0600 commented answer OpenCV installation into eclipse

Hi Cabezon, Sorry about missing the last part. I thought it didn't apply to openCV because it was for something else. That is actually exactly how I attempted to do it. I hadn't done the runtime variable before, but the result is the same - there is still no executable for me to run.

2016-01-05 12:57:57 -0600 commented answer OpenCV installation into eclipse

I'm a bit confused. I don't think the pdf you sent me had any openCV in it. Is openCV included with openGL??

2016-01-05 12:50:54 -0600 commented question OpenCV installation into eclipse

Hi Pedro, I am aware that OpenCV is a library. As stated above, I did follow the tutorial, including the link on installing the OpenCV libraries. If I had not done so, then all of the object types like Mat would be giving me issues as well. I did the pkg config command on the terminal to find where my opencv libraries were stored, and they were stored under usr/lib .

2016-01-05 03:44:18 -0600 asked a question OpenCV installation into eclipse

General Note: I'm using Ubuntu 14.04.3 I am following the standard tutorial for installing OpenCV with eclipse cdt : http://docs.opencv.org/2.4/doc/tutori...

I installed all the libraries, exactly as directed. I checked where all of the libraries were installed in the terminal. However, eclipse tells me that it doesn't recognize the printf function.

Also in the tutorial, it says if you look in the folder, you'll find an executable. All I have that looks remotely runnable is a .o file. (I called my file test2.cpp, so this file is called test2.o) Is this the executable? Nothing in the Release folder looks like it could be run.

I actually had the same problem in another tutorial - this one by Rodrigo Berriel. http://rodrigoberriel.com/2014/10/usi... This one is different, because most of the work done is in the terminal.

With both tutorials, the results are the same. I get all the libraries installed, but for some reason, there isn't a clear executable. In the case of Berriel's tutorial, we went into the Release folder from the terminal, and the executable is supposed to be clearly marked(because it is coloured in the Linux terminal), but nothing like that was there. I've asked him why, and we are still working on it. When I do the step in the tutorial that goes into run configurations, and then presses on the c++ application tab, my Release folder comes up, instead of the file names. (test.cpp is for Berriel's tutorial, test2.cpp is for the standard one).

Specifically: C/C++ Application Machine Vision CPP Release C/C++ Container Launcher

Note that my whole project is called Machine Vision CPP. I don't think my Release folder is an executable. Even then, I don't get the Debug keyword at the end.

What should I do? Help? (note that i would really appreciate detailed instructions because i've followed 3 tutorials now, all with extremely clear and simple steps, and it still doesn't work me!)

Here is the code I'm trying to run: file: test.cpp

 #include <opencv2/opencv.hpp>
using namespace cv;

int main(int argc, char** argv) {
    Mat inputImage = imread(argv[1]);
    imshow("Input Image", inputImage);

    waitKey(0);
    return 0;
}

file test2.cpp

#include <cv.h>
#include <highgui.h>
#include <iostream>

using namespace cv;
using namespace std;

int main( int argc, char** argv )
{
  Mat image;
  image = imread( argv[1], 1 );

  if( argc != 2 || !image.data )
    {
      printf("No image data \n");
      cout <<  "No image data";
  return -1;
    }

  namedWindow( "Display Image", CV_WINDOW_AUTOSIZE );
  imshow( "Display Image", image );

  waitKey(0);

  return 0;
}