KO
|
EN
gitlite — search
Search
#javascript
#php
#ruby
#java
#python
#hacktoberfest
#nodejs
#c-sharp
#csharp
#objective-c
#community
#shell
cython_opencvMat
★ 35
Open GitHub ↗
Cython wrapper for cv::Mat class
Download README (.md)
Explore Similar Repositories
tinyaes-py
:
tiny-AES-c wrapper in Cython
cythonwrapper
:
Automatically generates a Cython wrapper for C++ code
PyQUDA
:
Use Python for lattice QCD research based on the QUDA library.
cyllama
:
A thin cython wrapper around llama.cpp, whisper.cpp and stable-diffusion.cpp
cykhash
:
cython wrapper for khash
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
cython_opencvMat
?
Download (.md)
# cython wrapper `np.array` <-> `cv::Mat` Implementation of cython wrapper to allow the convertion between a `numpy.array` and a `cv::Mat` and the other way arround (`cv::Mat` to `numpy.array`). To build, run `python setup.py build_ext --inplace`. Then try : ```python import opencv_mat from scipy import misc im_np = misc.imread(filename/image) im_np2Mat2np = opencv_mat.np2Mat2np(im_np) ``` We get back `im_np2Mat2np` which is the same as `im_np`. Feel free to integrate the `cdef np2Mat` and `cdef Mat2np` functions to your code! _Used with Python 3.5 and Opencv 3.2_