Giter Site home page Giter Site logo

cython_opencvmat's People

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

Watchers

 avatar  avatar

cython_opencvmat's Issues

Cannot compile with Ubuntu 20.04, OpenCV 4.2.0 and Python 3.8.0

Hi @solivr,

Have you had a chance to test the compilation of the cython wrapper with Ubuntu 20.04? Following your instructions, I tried to compile it but it fails.

Here is the console output

icore_base@icore-nitro5:~/Documents/semantic_single_agent/cython_lib/cython_opencvMat$ python3 setup.py build_ext --inplace
running build_ext
x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/home/icore_base/.local/lib/python3.8/site-packages/numpy/core/include -I/usr/local/include -I/usr/include/python3.8 -c opencv_mat.cpp -o build/temp.linux-x86_64-3.8/opencv_mat.o
In file included from /home/icore_base/.local/lib/python3.8/site-packages/numpy/core/include/numpy/ndarraytypes.h:1960,
                 from /home/icore_base/.local/lib/python3.8/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,
                 from /home/icore_base/.local/lib/python3.8/site-packages/numpy/core/include/numpy/arrayobject.h:5,
                 from opencv_mat.cpp:642:
/home/icore_base/.local/lib/python3.8/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
   17 | #warning "Using deprecated NumPy API, disable it with " \
      |  ^~~~~~~
opencv_mat.cpp:650:10: fatal error: core/core.hpp: No such file or directory
  650 | #include "core/core.hpp"
      |          ^~~~~~~~~~~~~~~
compilation terminated.
error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1

Any help in solving the compilation issue will be highly appreciated.

Segmentation fault error when import

Hello, when import this module into my project I encountered "Segmentation fault (core dumped)". Would you please help me look into this problem?

The system is Ubuntu 16.04. Build with Python 3.6, Cython 0.29 and OpenCV 3.2.

Thank you!

maybe a little Problem with types

Hey,
nice solution. Thank you.
There seems to be a problem in sizeof(CV_8UC3) when converting Mat. Since CV_8UC3 is type int it seems not to change its value when changed to CV_64FC3 for example.

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.