Giter Site home page Giter Site logo

Comments (5)

mrnugget avatar mrnugget commented on August 26, 2024

Are you sure? Last time I checked I didn't need the cvsampleoutput.cpp. Does it fail to compile for you? Which version?

from opencv-haar-classifier-training.

lethic avatar lethic commented on August 26, 2024

Yes, it might be a version problem. My version is opencv-2.4.10. But someone on stackoverflow using 2.4.9 also got the same problem:

undefined reference to `IOutput::createOutput(char const*, IOutput::OutputType)'

from opencv-haar-classifier-training.

mrnugget avatar mrnugget commented on August 26, 2024

I can't reproduce this with opencv-2.4.9. I just ran the commands from scratch described in the README:

$ cd opencv-2.4.9
/opencv-2.4.9 $ cd apps/haartraining
/opencv-2.4.9/apps/haartraining $ cp ~/code/projects/opencv-haar-classifier-training/src/mergevec.cpp .
/opencv-2.4.9/apps/haartraining $ g++ `pkg-config --libs --cflags opencv | sed 's/libtbb\.dylib/tbb/'` -I. -o mergevec mergevec.cpp cvboost.cpp cvcommon.cpp cvsamples.cpp cvhaarclassifier.cpp cvhaartraining.cpp -lopencv_core -lopencv_calib3d -lopencv_imgproc -lopencv_highgui -lopencv_objdetect
/opencv-2.4.9/apps/haartraining $ ls -la ./mergevec
-rwxr-xr-x  1 mrnugget  staff  306596 Jan 24 15:35 ./mergevec

Please note: the steps described in the README are based on my experiences running it on OS X.

from opencv-haar-classifier-training.

lethic avatar lethic commented on August 26, 2024

I was using Ubuntu 14.04. I don't know why it behaves differently in different operation system.
Anyway, thank you for your replication and your instruction which did help me a lot.

from opencv-haar-classifier-training.

mrnugget avatar mrnugget commented on August 26, 2024

I think there are several reasons why it might behave differently:

  • different compiler
  • different header files
  • different ifdefs in the header files
  • different pkg-config configuration

That's why building complex projects without a proper build tool is such a hassle and why I'm hesitant about recommending to use this tutorial on anything other than OS X.

If someone wants to do the work and update the instructions for Linux, I'd happily merge this :)

from opencv-haar-classifier-training.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.