JeVois  1.22
JeVois Smart Embedded Machine Vision Toolkit
Share this page:
Loading...
Searching...
No Matches
PythonSupport.C File Reference
Include dependency graph for PythonSupport.C:

Go to the source code of this file.

Namespaces

namespace  jevois
 Main namespace for all JeVois classes and functions.
 
namespace  jevois::python
 Python-related helpers and functions.
 

Macros

#define PY_ARRAY_UNIQUE_SYMBOL   pbcvt_ARRAY_API
 
#define JEVOIS_PYTHON_FUNC(funcname)   boost::python::def(#funcname, jevois::funcname)
 
#define JEVOIS_PYTHON_RAWIMAGE_FUNC(funcname)   boost::python::def(#funcname, jevois::rawimage::funcname)
 
#define JEVOIS_PYTHON_RAWIMAGE_ENUM_VAL(val)   value(#val, jevois::rawimage::val)
 
#define JEVOIS_PYTHON_ENUM_VAL(val)   value(#val, jevois::python::val)
 
#define JEVOIS_PYTHON_CONSTANT(cst)   boost::python::scope().attr(#cst) = cst;
 
#define JEVOIS_PYTHON_DNN_FUNC(funcname)   boost::python::def(#funcname, jevois::dnn::funcname)
 

Enumerations

enum  jevois::python::YUYV {
  jevois::python::Black = 0x8000 , jevois::python::DarkGrey = 0x8050 , jevois::python::MedGrey = 0x8080 , jevois::python::LightGrey = 0x80a0 ,
  jevois::python::White = 0x80ff , jevois::python::DarkGreen = 0x0000 , jevois::python::MedGreen = 0x0040 , jevois::python::LightGreen = 0x00ff ,
  jevois::python::DarkTeal = 0x7070 , jevois::python::MedTeal = 0x7090 , jevois::python::LightTeal = 0x70b0 , jevois::python::DarkPurple = 0xa030 ,
  jevois::python::MedPurple = 0xa050 , jevois::python::LightPurple = 0xa080 , jevois::python::DarkPink = 0xff00 , jevois::python::MedPink = 0xff80 ,
  jevois::python::LightPink = 0xffff
}
 

Functions

 JEVOIS_PYTHON_CONSTANT (LOG_DEBUG)
 
 JEVOIS_PYTHON_CONSTANT (LOG_INFO)
 
 JEVOIS_PYTHON_CONSTANT (LOG_ERR)
 
 JEVOIS_PYTHON_CONSTANT (LOG_CRIT)
 
 JEVOIS_PYTHON_FUNC (fccstr)
 
 JEVOIS_PYTHON_FUNC (cvtypestr)
 
 JEVOIS_PYTHON_FUNC (cvBytesPerPix)
 
 JEVOIS_PYTHON_FUNC (strfcc)
 
 JEVOIS_PYTHON_FUNC (v4l2BytesPerPix)
 
 JEVOIS_PYTHON_FUNC (v4l2ImageSize)
 
 JEVOIS_PYTHON_FUNC (blackColor)
 
 JEVOIS_PYTHON_FUNC (whiteColor)
 
 JEVOIS_PYTHON_FUNC (flushcache)
 
 JEVOIS_PYTHON_FUNC (system)
 

Variables

Enginejevois::python::engineForPythonModule = nullptr
 
void(* imgToStd1 )(float &x, float &y, jevois::RawImage const &camimg, float const eps) = jevois::coords::imgToStd
 
void(* imgToStd2 )(float &x, float &y, unsigned int const width, unsigned int const height, float const eps)
 
void(* stdToImg1 )(float &x, float &y, jevois::RawImage const &camimg, float const eps) = jevois::coords::stdToImg
 
void(* stdToImg2 )(float &x, float &y, unsigned int const width, unsigned int const height, float const eps)
 

Macro Definition Documentation

◆ JEVOIS_PYTHON_CONSTANT

#define JEVOIS_PYTHON_CONSTANT (   cst)    boost::python::scope().attr(#cst) = cst;

Definition at line 59 of file PythonSupport.C.

◆ JEVOIS_PYTHON_DNN_FUNC

#define JEVOIS_PYTHON_DNN_FUNC (   funcname)    boost::python::def(#funcname, jevois::dnn::funcname)

Definition at line 62 of file PythonSupport.C.

◆ JEVOIS_PYTHON_ENUM_VAL

#define JEVOIS_PYTHON_ENUM_VAL (   val)    value(#val, jevois::python::val)

Definition at line 56 of file PythonSupport.C.

◆ JEVOIS_PYTHON_FUNC

#define JEVOIS_PYTHON_FUNC (   funcname)    boost::python::def(#funcname, jevois::funcname)

Definition at line 47 of file PythonSupport.C.

◆ JEVOIS_PYTHON_RAWIMAGE_ENUM_VAL

#define JEVOIS_PYTHON_RAWIMAGE_ENUM_VAL (   val)    value(#val, jevois::rawimage::val)

Definition at line 53 of file PythonSupport.C.

◆ JEVOIS_PYTHON_RAWIMAGE_FUNC

#define JEVOIS_PYTHON_RAWIMAGE_FUNC (   funcname)    boost::python::def(#funcname, jevois::rawimage::funcname)

Definition at line 50 of file PythonSupport.C.

◆ PY_ARRAY_UNIQUE_SYMBOL

#define PY_ARRAY_UNIQUE_SYMBOL   pbcvt_ARRAY_API

Definition at line 42 of file PythonSupport.C.

Function Documentation

◆ JEVOIS_PYTHON_CONSTANT() [1/4]

JEVOIS_PYTHON_CONSTANT ( LOG_CRIT  )

◆ JEVOIS_PYTHON_CONSTANT() [2/4]

JEVOIS_PYTHON_CONSTANT ( LOG_DEBUG  )

◆ JEVOIS_PYTHON_CONSTANT() [3/4]

JEVOIS_PYTHON_CONSTANT ( LOG_ERR  )

◆ JEVOIS_PYTHON_CONSTANT() [4/4]

JEVOIS_PYTHON_CONSTANT ( LOG_INFO  )

◆ JEVOIS_PYTHON_FUNC() [1/10]

JEVOIS_PYTHON_FUNC ( blackColor  )

◆ JEVOIS_PYTHON_FUNC() [2/10]

JEVOIS_PYTHON_FUNC ( cvBytesPerPix  )

◆ JEVOIS_PYTHON_FUNC() [3/10]

JEVOIS_PYTHON_FUNC ( cvtypestr  )

◆ JEVOIS_PYTHON_FUNC() [4/10]

JEVOIS_PYTHON_FUNC ( fccstr  )

◆ JEVOIS_PYTHON_FUNC() [5/10]

JEVOIS_PYTHON_FUNC ( flushcache  )

◆ JEVOIS_PYTHON_FUNC() [6/10]

JEVOIS_PYTHON_FUNC ( strfcc  )

◆ JEVOIS_PYTHON_FUNC() [7/10]

JEVOIS_PYTHON_FUNC ( system  )

◆ JEVOIS_PYTHON_FUNC() [8/10]

JEVOIS_PYTHON_FUNC ( v4l2BytesPerPix  )

◆ JEVOIS_PYTHON_FUNC() [9/10]

JEVOIS_PYTHON_FUNC ( v4l2ImageSize  )

◆ JEVOIS_PYTHON_FUNC() [10/10]

JEVOIS_PYTHON_FUNC ( whiteColor  )

Variable Documentation

◆ imgToStd1

void(* imgToStd1) (float &x, float &y, jevois::RawImage const &camimg, float const eps) ( float &  x,
float &  y,
jevois::RawImage const &  camimg,
float const  eps 
) = jevois::coords::imgToStd

Definition at line 292 of file PythonSupport.C.

◆ imgToStd2

void(* imgToStd2) (float &x, float &y, unsigned int const width, unsigned int const height, float const eps) ( float &  x,
float &  y,
unsigned int const  width,
unsigned int const  height,
float const  eps 
)
Initial value:
=
void imgToStd(float &x, float &y, RawImage const &camimg, float const eps=0.1F)
Transform coordinates in-place from camera to standardized, using a RawImage to establish image size.
Definition Coordinates.C:22

Definition at line 293 of file PythonSupport.C.

◆ stdToImg1

void(* stdToImg1) (float &x, float &y, jevois::RawImage const &camimg, float const eps) ( float &  x,
float &  y,
jevois::RawImage const &  camimg,
float const  eps 
) = jevois::coords::stdToImg

Definition at line 298 of file PythonSupport.C.

◆ stdToImg2

void(* stdToImg2) (float &x, float &y, unsigned int const width, unsigned int const height, float const eps) ( float &  x,
float &  y,
unsigned int const  width,
unsigned int const  height,
float const  eps 
)
Initial value:
=
void stdToImg(float &x, float &y, RawImage const &camimg, float const eps=0.1F)
Transform coordinates in-place from standardized to image, using a RawImage to establish image size.
Definition Coordinates.C:60

Definition at line 299 of file PythonSupport.C.