JeVois  1.22
JeVois Smart Embedded Machine Vision Toolkit
Share this page:
Loading...
Searching...
No Matches

#include <jevois/Core/PythonModule.H>

Wrapper around OutputFrame to be used by Python.

This wrapper is to work around the lack of move semantics in our Python support. This class is not intended for general use, but only for use by PythonModule. Users of this class must ensure that the original OutputFrame will outlive any and all OutputFramePython instances, since OutputFramePython just references to the source OutputFrame by unprotected raw pointer. Although the C++ object is called OutputFramePython, we will expose it to python under the name OutputFrame (see PythonSupport.C).

Definition at line 129 of file PythonModule.H.

Public Member Functions

 OutputFramePython ()=default
 Default constructor to keep boost::python happy, object is not operational.
 
 OutputFramePython (OutputFrame *src)
 Construct from a regular (move-only) OutputFrame that should be be coming from Engine.
 
RawImage const & get () const
 Get the next captured camera image.
 
void send () const
 Indicate that user processing is done with the image previously obtained via get()
 
void sendCv1 (cv::Mat const &img, int quality) const
 Shorthand to send a cv::Mat after scaling/converting it to the current output format.
 
void sendCv (cv::Mat const &img) const
 Shorthand to send a cv::Mat after scaling/converting it to the current output format.
 
void sendCvGRAY1 (cv::Mat const &img, int quality) const
 Shorthand to send a GRAY cv::Mat after converting it to the current output format.
 
void sendCvGRAY (cv::Mat const &img) const
 Shorthand to send a GRAY cv::Mat after converting it to the current output format.
 
void sendCvBGR1 (cv::Mat const &img, int quality) const
 Shorthand to send a BGR cv::Mat after converting it to the current output format.
 
void sendCvBGR (cv::Mat const &img) const
 Shorthand to send a BGR cv::Mat after converting it to the current output format.
 
void sendCvRGB1 (cv::Mat const &img, int quality) const
 Shorthand to send a RGB cv::Mat after converting it to the current output format.
 
void sendCvRGB (cv::Mat const &img) const
 Shorthand to send a RGB cv::Mat after converting it to the current output format.
 
void sendCvRGBA1 (cv::Mat const &img, int quality) const
 Shorthand to send a RGBA cv::Mat after converting it to the current output format.
 
void sendCvRGBA (cv::Mat const &img) const
 Shorthand to send a RGBA cv::Mat after converting it to the current output format.
 
void sendScaledCvGRAY1 (cv::Mat const &img, int quality) const
 Shorthand to send a GRAY cv::Mat after scaling/converting it to the current output format.
 
void sendScaledCvGRAY (cv::Mat const &img) const
 Shorthand to send a GRAY cv::Mat after scaling/converting it to the current output format.
 
void sendScaledCvBGR1 (cv::Mat const &img, int quality) const
 Shorthand to send a BGR cv::Mat after scaling/converting it to the current output format.
 
void sendScaledCvBGR (cv::Mat const &img) const
 Shorthand to send a BGR cv::Mat after scaling/converting it to the current output format.
 
void sendScaledCvRGB1 (cv::Mat const &img, int quality) const
 Shorthand to send a RGB cv::Mat after scaling/converting it to the current output format.
 
void sendScaledCvRGB (cv::Mat const &img) const
 Shorthand to send a RGB cv::Mat after scaling/converting it to the current output format.
 
void sendScaledCvRGBA1 (cv::Mat const &img, int quality) const
 Shorthand to send a RGBA cv::Mat after scaling/converting it to the current output format.
 
void sendScaledCvRGBA (cv::Mat const &img) const
 Shorthand to send a RGBA cv::Mat after scaling/converting it to the current output format.
 

Constructor & Destructor Documentation

◆ OutputFramePython() [1/2]

jevois::OutputFramePython::OutputFramePython ( )
default

Default constructor to keep boost::python happy, object is not operational.

◆ OutputFramePython() [2/2]

jevois::OutputFramePython::OutputFramePython ( OutputFrame src)

Construct from a regular (move-only) OutputFrame that should be be coming from Engine.

Definition at line 142 of file PythonModule.C.

References LFATAL.

Member Function Documentation

◆ get()

jevois::RawImage const & jevois::OutputFramePython::get ( ) const

Get the next captured camera image.

Definition at line 145 of file PythonModule.C.

◆ send()

void jevois::OutputFramePython::send ( ) const

Indicate that user processing is done with the image previously obtained via get()

Definition at line 150 of file PythonModule.C.

◆ sendCv()

void jevois::OutputFramePython::sendCv ( cv::Mat const &  img) const

Shorthand to send a cv::Mat after scaling/converting it to the current output format.

Definition at line 160 of file PythonModule.C.

◆ sendCv1()

void jevois::OutputFramePython::sendCv1 ( cv::Mat const &  img,
int  quality 
) const

Shorthand to send a cv::Mat after scaling/converting it to the current output format.

Definition at line 155 of file PythonModule.C.

◆ sendCvBGR()

void jevois::OutputFramePython::sendCvBGR ( cv::Mat const &  img) const

Shorthand to send a BGR cv::Mat after converting it to the current output format.

Definition at line 180 of file PythonModule.C.

◆ sendCvBGR1()

void jevois::OutputFramePython::sendCvBGR1 ( cv::Mat const &  img,
int  quality 
) const

Shorthand to send a BGR cv::Mat after converting it to the current output format.

Definition at line 175 of file PythonModule.C.

◆ sendCvGRAY()

void jevois::OutputFramePython::sendCvGRAY ( cv::Mat const &  img) const

Shorthand to send a GRAY cv::Mat after converting it to the current output format.

Definition at line 170 of file PythonModule.C.

◆ sendCvGRAY1()

void jevois::OutputFramePython::sendCvGRAY1 ( cv::Mat const &  img,
int  quality 
) const

Shorthand to send a GRAY cv::Mat after converting it to the current output format.

Definition at line 165 of file PythonModule.C.

◆ sendCvRGB()

void jevois::OutputFramePython::sendCvRGB ( cv::Mat const &  img) const

Shorthand to send a RGB cv::Mat after converting it to the current output format.

Definition at line 190 of file PythonModule.C.

◆ sendCvRGB1()

void jevois::OutputFramePython::sendCvRGB1 ( cv::Mat const &  img,
int  quality 
) const

Shorthand to send a RGB cv::Mat after converting it to the current output format.

Definition at line 185 of file PythonModule.C.

◆ sendCvRGBA()

void jevois::OutputFramePython::sendCvRGBA ( cv::Mat const &  img) const

Shorthand to send a RGBA cv::Mat after converting it to the current output format.

Definition at line 200 of file PythonModule.C.

◆ sendCvRGBA1()

void jevois::OutputFramePython::sendCvRGBA1 ( cv::Mat const &  img,
int  quality 
) const

Shorthand to send a RGBA cv::Mat after converting it to the current output format.

Definition at line 195 of file PythonModule.C.

◆ sendScaledCvBGR()

void jevois::OutputFramePython::sendScaledCvBGR ( cv::Mat const &  img) const

Shorthand to send a BGR cv::Mat after scaling/converting it to the current output format.

Definition at line 220 of file PythonModule.C.

◆ sendScaledCvBGR1()

void jevois::OutputFramePython::sendScaledCvBGR1 ( cv::Mat const &  img,
int  quality 
) const

Shorthand to send a BGR cv::Mat after scaling/converting it to the current output format.

Definition at line 215 of file PythonModule.C.

◆ sendScaledCvGRAY()

void jevois::OutputFramePython::sendScaledCvGRAY ( cv::Mat const &  img) const

Shorthand to send a GRAY cv::Mat after scaling/converting it to the current output format.

Definition at line 210 of file PythonModule.C.

◆ sendScaledCvGRAY1()

void jevois::OutputFramePython::sendScaledCvGRAY1 ( cv::Mat const &  img,
int  quality 
) const

Shorthand to send a GRAY cv::Mat after scaling/converting it to the current output format.

Definition at line 205 of file PythonModule.C.

◆ sendScaledCvRGB()

void jevois::OutputFramePython::sendScaledCvRGB ( cv::Mat const &  img) const

Shorthand to send a RGB cv::Mat after scaling/converting it to the current output format.

Definition at line 230 of file PythonModule.C.

◆ sendScaledCvRGB1()

void jevois::OutputFramePython::sendScaledCvRGB1 ( cv::Mat const &  img,
int  quality 
) const

Shorthand to send a RGB cv::Mat after scaling/converting it to the current output format.

Definition at line 225 of file PythonModule.C.

◆ sendScaledCvRGBA()

void jevois::OutputFramePython::sendScaledCvRGBA ( cv::Mat const &  img) const

Shorthand to send a RGBA cv::Mat after scaling/converting it to the current output format.

Definition at line 240 of file PythonModule.C.

◆ sendScaledCvRGBA1()

void jevois::OutputFramePython::sendScaledCvRGBA1 ( cv::Mat const &  img,
int  quality 
) const

Shorthand to send a RGBA cv::Mat after scaling/converting it to the current output format.

Definition at line 235 of file PythonModule.C.


The documentation for this class was generated from the following files: