solivr / cython_opencvmat Goto Github PK
View Code? Open in Web Editor NEWCython wrapper for cv::Mat class
License: MIT License
Cython wrapper for cv::Mat class
License: MIT License
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.
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!
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.