JeVois
1.20
JeVois Smart Embedded Machine Vision Toolkit
|
|
#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. More... | |
OutputFramePython (OutputFrame *src) | |
Construct from a regular (move-only) OutputFrame that should be be coming from Engine. More... | |
const RawImage & | get () const |
Get the next captured camera image. More... | |
void | send () const |
Indicate that user processing is done with the image previously obtained via get() More... | |
void | sendCv1 (cv::Mat const &img, int quality) const |
Shorthand to send a cv::Mat after scaling/converting it to the current output format. More... | |
void | sendCv (cv::Mat const &img) const |
Shorthand to send a cv::Mat after scaling/converting it to the current output format. More... | |
void | sendCvGRAY1 (cv::Mat const &img, int quality) const |
Shorthand to send a GRAY cv::Mat after converting it to the current output format. More... | |
void | sendCvGRAY (cv::Mat const &img) const |
Shorthand to send a GRAY cv::Mat after converting it to the current output format. More... | |
void | sendCvBGR1 (cv::Mat const &img, int quality) const |
Shorthand to send a BGR cv::Mat after converting it to the current output format. More... | |
void | sendCvBGR (cv::Mat const &img) const |
Shorthand to send a BGR cv::Mat after converting it to the current output format. More... | |
void | sendCvRGB1 (cv::Mat const &img, int quality) const |
Shorthand to send a RGB cv::Mat after converting it to the current output format. More... | |
void | sendCvRGB (cv::Mat const &img) const |
Shorthand to send a RGB cv::Mat after converting it to the current output format. More... | |
void | sendCvRGBA1 (cv::Mat const &img, int quality) const |
Shorthand to send a RGBA cv::Mat after converting it to the current output format. More... | |
void | sendCvRGBA (cv::Mat const &img) const |
Shorthand to send a RGBA cv::Mat after converting it to the current output format. More... | |
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. More... | |
void | sendScaledCvGRAY (cv::Mat const &img) const |
Shorthand to send a GRAY cv::Mat after scaling/converting it to the current output format. More... | |
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. More... | |
void | sendScaledCvBGR (cv::Mat const &img) const |
Shorthand to send a BGR cv::Mat after scaling/converting it to the current output format. More... | |
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. More... | |
void | sendScaledCvRGB (cv::Mat const &img) const |
Shorthand to send a RGB cv::Mat after scaling/converting it to the current output format. More... | |
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. More... | |
void | sendScaledCvRGBA (cv::Mat const &img) const |
Shorthand to send a RGBA cv::Mat after scaling/converting it to the current output format. More... | |
|
default |
Default constructor to keep boost::python happy, object is not operational.
jevois::OutputFramePython::OutputFramePython | ( | OutputFrame * | src | ) |
Construct from a regular (move-only) OutputFrame that should be be coming from Engine.
Definition at line 163 of file PythonModule.C.
const jevois::RawImage & jevois::OutputFramePython::get | ( | ) | const |
Get the next captured camera image.
Definition at line 166 of file PythonModule.C.
References LFATAL.
void jevois::OutputFramePython::send | ( | ) | const |
Indicate that user processing is done with the image previously obtained via get()
Definition at line 172 of file PythonModule.C.
References LFATAL.
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 184 of file PythonModule.C.
References LFATAL.
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 178 of file PythonModule.C.
References LFATAL.
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 208 of file PythonModule.C.
References LFATAL.
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 202 of file PythonModule.C.
References LFATAL.
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 196 of file PythonModule.C.
References LFATAL.
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 190 of file PythonModule.C.
References LFATAL.
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 220 of file PythonModule.C.
References LFATAL.
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 214 of file PythonModule.C.
References LFATAL.
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 232 of file PythonModule.C.
References LFATAL.
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 226 of file PythonModule.C.
References LFATAL.
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 256 of file PythonModule.C.
References LFATAL.
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 250 of file PythonModule.C.
References LFATAL.
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 244 of file PythonModule.C.
References LFATAL.
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 238 of file PythonModule.C.
References LFATAL.
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 268 of file PythonModule.C.
References LFATAL.
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 262 of file PythonModule.C.
References LFATAL.
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 280 of file PythonModule.C.
References LFATAL.
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 274 of file PythonModule.C.
References LFATAL.