Git Product home page Git Product logo

Comments (4)

David-Estevez avatar David-Estevez commented on June 29, 2024

I have tried to compile it with @JuanFdelArco today, and the main errors were:

  • ColorDebug has to be downloaded, maybe we should use superbuild instead of git submodules.
  • Haar cascades template file is hardcoded, resulting in errors when the location of the file changes (due to differences in the OpenCV installation). This does not cause a compilation error, but a runtime error.

from gecko.

crearo avatar crearo commented on June 29, 2024

I cloned ColorDebug and put the source in external/ folder. I then tried to build and this is the following error :

In file included from gecko/src/libraries/handUtils.h:33:0,
                 from gecko/src/libraries/handUtils.cpp:27:
gecko/src/libraries/backgroundSubstractor.h: In member function ‘void backgroundSubstractor::setbackgroundRatio(float)’:
gecko/src/libraries/backgroundSubstractor.h:37:38: error: ‘backgroundRatio’ was not declared in this scope
     void setbackgroundRatio(float a){backgroundRatio = a;}
                                      ^
gecko/src/libraries/handUtils.cpp: In function ‘void backgroundSubs(cv::Mat&, backgroundSubstractor&)’:
gecko/src/libraries/handUtils.cpp:177:18: error: no match for call to ‘(backgroundSubstractor) (cv::Mat&, cv::Mat&)’
     bg(frame,fore);
                  ^
src/libraries/CMakeFiles/HandUtils.dir/build.make:62: recipe for target 'src/libraries/CMakeFiles/HandUtils.dir/handUtils.cpp.o' failed
make[2]: *** [src/libraries/CMakeFiles/HandUtils.dir/handUtils.cpp.o] Error 1
CMakeFiles/Makefile2:283: recipe for target 'src/libraries/CMakeFiles/HandUtils.dir/all' failed
make[1]: *** [src/libraries/CMakeFiles/HandUtils.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

Could this be because I am using OpenCV 3.2? Would really love to try out/contribute to Gecko!

from gecko.

David-Estevez avatar David-Estevez commented on June 29, 2024

Hi @crearo !

I've been taking a look to the docs for OpenCV 3.2 and it seems that the related API for the background subtractor we use in Gecko has changed. In summary, the background subtractor creation is now done differenty, and our approach is no longer valid, so Gecko doesn't not work with OpenCV 3.2.

Is there any reason to use OpenCV 3.2? Could you try with the older 2.x version?

from gecko.

crearo avatar crearo commented on June 29, 2024

The reason I use OpenCV 3.2 is because of the Java wrappers that come with it. No worries though, I shall download 2.4.13 version and try to compile once again! I'll post here once I do.

Edit : Compiled successfully!

from gecko.

Related Issues (2)

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.