Giter Club home page Giter Club logo

common-cv's People

Contributors

byulparan avatar jl2 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

common-cv's Issues

deprecated opencv function

when i try to load the system with quicklisp i get the following:

Unable to load foreign library (LIBOPENCV_WRAP-742).
  Error opening shared object "/home/amsha/quicklisp/local-projects/common-cv/C/libopencv_wrap":
  /home/amsha/quicklisp/local-projects/common-cv/C/libopencv_wrap: undefined symbol: cvQueryHistValue_3D.

I tried manually running make, i got the following:

cc `pkg-config --cflags opencv` -std=c99 -fPIC   -c -o IplImage.o IplImage.c
cc `pkg-config --cflags opencv` -std=c99 -fPIC   -c -o filter.o filter.c
filter.c: In function ‘cv_CvtPixToPlane’:
filter.c:47:3: warning: implicit declaration of function ‘cvCvtPixToPlane’ [-Wimplicit-function-declaration]
   cvCvtPixToPlane(src, dst0,dst1,dst2,dst3);
   ^~~~~~~~~~~~~~~
cc `pkg-config --cflags opencv` -std=c99 -fPIC   -c -o draw.o draw.c
cc `pkg-config --cflags opencv` -std=c99 -fPIC   -c -o imageproc.o imageproc.c
cc `pkg-config --cflags opencv` -std=c99 -fPIC   -c -o hist.o hist.c
hist.c: In function ‘cv_QueryHistValue_1D’:
hist.c:6:10: warning: implicit declaration of function ‘cvQueryHistValue_1D’ [-Wimplicit-function-declaration]
   return cvQueryHistValue_1D(hist, idx0);
          ^~~~~~~~~~~~~~~~~~~
hist.c: In function ‘cv_QueryHistValue_2D’:
hist.c:10:10: warning: implicit declaration of function ‘cvQueryHistValue_2D’ [-Wimplicit-function-declaration]
   return cvQueryHistValue_2D(hist, idx0, idx1);
          ^~~~~~~~~~~~~~~~~~~
hist.c: In function ‘cv_QueryHistValue_3D’:
hist.c:14:10: warning: implicit declaration of function ‘cvQueryHistValue_3D’ [-Wimplicit-function-declaration]
   return cvQueryHistValue_3D(hist, idx0, idx1, idx2);
          ^~~~~~~~~~~~~~~~~~~
hist.c: In function ‘cv_QueryHistValue_nD’:
hist.c:18:10: warning: implicit declaration of function ‘cvQueryHistValue_nD’ [-Wimplicit-function-declaration]
   return cvQueryHistValue_nD(hist, idx);
          ^~~~~~~~~~~~~~~~~~~
cc `pkg-config --cflags opencv` -std=c99 -fPIC   -c -o contours.o contours.c
cc -shared -o libopencv_wrap IplImage.o filter.o draw.o imageproc.o hist.o contours.o `pkg-config --libs opencv`

If i am correct the functions cv_QueryHistValue_*D is deprecated. Any workarounds?

License

Currently, this project is listed on https://github.com/CodyReichert/awesome-cl, but with "no license specified".

Please consider adding a file called LICENSE or COPYING containing the license text. I'd also suggest mentioning the license in the README, and maybe linking to the license file there.

cannot compile C codes

Hi, I'm trying to compile C codes inside C directory, but I cannot...
Could you tell me which part to fix in makefile?

$ make
cc `pkg-config --cflags opencv` -std=c99 -fPIC   -c -o IplImage.o IplImage.c
In file included from IplImage.c:2:
In file included from /usr/local/Cellar/opencv/3.3.1/include/opencv/highgui.h:45:
In file included from /usr/local/Cellar/opencv/3.3.1/include/opencv2/core/core_c.h:48:
/usr/local/Cellar/opencv/3.3.1/include/opencv2/core/types_c.h:929:13: warning: 
      implicit declaration of function 'cvRound' is invalid in C99
      [-Wimplicit-function-declaration]
    ipt.x = cvRound(point.x);
            ^
1 warning generated.
cc `pkg-config --cflags opencv` -std=c99 -fPIC   -c -o filter.o filter.c
In file included from filter.c:2:
In file included from /usr/local/Cellar/opencv/3.3.1/include/opencv/cv.h:63:
In file included from /usr/local/Cellar/opencv/3.3.1/include/opencv2/core/core_c.h:48:
/usr/local/Cellar/opencv/3.3.1/include/opencv2/core/types_c.h:929:13: warning: 
      implicit declaration of function 'cvRound' is invalid in C99
      [-Wimplicit-function-declaration]
    ipt.x = cvRound(point.x);
            ^
filter.c:47:3: warning: implicit declaration of function
      'cvCvtPixToPlane' is invalid in C99
      [-Wimplicit-function-declaration]
  cvCvtPixToPlane(src, dst0,dst1,dst2,dst3);
  ^
2 warnings generated.
cc `pkg-config --cflags opencv` -std=c99 -fPIC   -c -o draw.o draw.c
In file included from draw.c:2:
In file included from /usr/local/Cellar/opencv/3.3.1/include/opencv/highgui.h:45:
In file included from /usr/local/Cellar/opencv/3.3.1/include/opencv2/core/core_c.h:48:
/usr/local/Cellar/opencv/3.3.1/include/opencv2/core/types_c.h:929:13: warning: 
      implicit declaration of function 'cvRound' is invalid in C99
      [-Wimplicit-function-declaration]
    ipt.x = cvRound(point.x);
            ^
1 warning generated.
cc `pkg-config --cflags opencv` -std=c99 -fPIC   -c -o imageproc.o imageproc.c
In file included from imageproc.c:2:
In file included from /usr/local/Cellar/opencv/3.3.1/include/opencv/highgui.h:45:
In file included from /usr/local/Cellar/opencv/3.3.1/include/opencv2/core/core_c.h:48:
/usr/local/Cellar/opencv/3.3.1/include/opencv2/core/types_c.h:929:13: warning: 
      implicit declaration of function 'cvRound' is invalid in C99
      [-Wimplicit-function-declaration]
    ipt.x = cvRound(point.x);
            ^
1 warning generated.
cc `pkg-config --cflags opencv` -std=c99 -fPIC   -c -o hist.o hist.c
In file included from hist.c:2:
In file included from /usr/local/Cellar/opencv/3.3.1/include/opencv/cv.h:63:
In file included from /usr/local/Cellar/opencv/3.3.1/include/opencv2/core/core_c.h:48:
/usr/local/Cellar/opencv/3.3.1/include/opencv2/core/types_c.h:929:13: warning: 
      implicit declaration of function 'cvRound' is invalid in C99
      [-Wimplicit-function-declaration]
    ipt.x = cvRound(point.x);
            ^
hist.c:6:10: warning: implicit declaration of function
      'cvQueryHistValue_1D' is invalid in C99
      [-Wimplicit-function-declaration]
  return cvQueryHistValue_1D(hist, idx0);
         ^
hist.c:10:10: warning: implicit declaration of function
      'cvQueryHistValue_2D' is invalid in C99
      [-Wimplicit-function-declaration]
  return cvQueryHistValue_2D(hist, idx0, idx1);
         ^
hist.c:14:10: warning: implicit declaration of function
      'cvQueryHistValue_3D' is invalid in C99
      [-Wimplicit-function-declaration]
  return cvQueryHistValue_3D(hist, idx0, idx1, idx2);
         ^
hist.c:18:10: warning: implicit declaration of function
      'cvQueryHistValue_nD' is invalid in C99
      [-Wimplicit-function-declaration]
  return cvQueryHistValue_nD(hist, idx);
         ^
5 warnings generated.
cc `pkg-config --cflags opencv` -std=c99 -fPIC   -c -o contours.o contours.c
In file included from contours.c:2:
In file included from /usr/local/Cellar/opencv/3.3.1/include/opencv/cv.h:63:
In file included from /usr/local/Cellar/opencv/3.3.1/include/opencv2/core/core_c.h:48:
/usr/local/Cellar/opencv/3.3.1/include/opencv2/core/types_c.h:929:13: warning: 
      implicit declaration of function 'cvRound' is invalid in C99
      [-Wimplicit-function-declaration]
    ipt.x = cvRound(point.x);
            ^
1 warning generated.
cc -shared -o libopencv_wrap IplImage.o filter.o draw.o imageproc.o hist.o contours.o `pkg-config --libs opencv`
ld: library not found for -llibopencv_stitching.3.3.1.dylib
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [libopencv_wrap] Error 1
$ 

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.