JeVois  1.17
JeVois Smart Embedded Machine Vision Toolkit
Share this page:
PythonOpenCV.H File Reference
#include <Python.h>
#include <numpy/ndarrayobject.h>
#include <opencv2/core/core.hpp>
#include <boost/python.hpp>
#include <cstdio>
Include dependency graph for PythonOpenCV.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  pbcvt::matToNDArrayBoostConverter
 
struct  pbcvt::matFromNDArrayBoostConverter
 Converter from Python numpy NDarray to cv::Mat. More...
 

Namespaces

 pbcvt
 

Macros

#define NPY_NO_DEPRECATED_API   NPY_1_7_API_VERSION
 
#define ERRWRAP2(expr)
 

Functions

PyObject * pbcvt::fromMatToNDArray (const Mat &m)
 
Mat pbcvt::fromNDArrayToMat (PyObject *o)
 

Variables

PyObject * pbcvt::opencv_error = nullptr
 

Macro Definition Documentation

◆ ERRWRAP2

#define ERRWRAP2 (   expr)
Value:
try \
{ \
PyAllowThreads allowThreads; \
expr; \
} \
catch (const cv::Exception &e) \
{ \
PyErr_SetString(opencv_error, e.what()); \
return 0; \
}

Definition at line 64 of file PythonOpenCV.H.

◆ NPY_NO_DEPRECATED_API

#define NPY_NO_DEPRECATED_API   NPY_1_7_API_VERSION

Definition at line 49 of file PythonOpenCV.H.

pbcvt::opencv_error
PyObject * opencv_error
Definition: PythonOpenCV.C:52