JeVois
1.20
JeVois Smart Embedded Machine Vision Toolkit
|
|
#include <jevois/Core/PythonModule.H>
Wrapper around InputFrame 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 InputFrame will outlive any and all InputFramePython instances, since InputFramePython just references to the source InputFrame by unprotected raw pointer. Although the C++ object is called InputFramePython, we will expose it to python under the name InputFrame (see PythonSupport.C).
Definition at line 46 of file PythonModule.H.
Public Member Functions | |
InputFramePython ()=default | |
Default constructor to keep boost::python happy, object is not operational. More... | |
InputFramePython (InputFrame *src) | |
Construct from a regular (move-only) InputFrame that should be be coming from Engine. More... | |
const RawImage & | get1 (bool casync) const |
Get the next captured camera image, thin wrapper for default arg value. More... | |
const RawImage & | get () const |
Get the next captured camera image, thin wrapper for default arg value. More... | |
bool | hasScaledImage () const |
Check whether a second input image scaled by the JeVoisPro Platform ISP is available. More... | |
void | done () const |
Indicate that user processing is done with the image previously obtained via get() More... | |
void | done2 () const |
Indicate that user processing is done with the ISP-scaled image previously obtained via get2() More... | |
const RawImage & | get21 (bool casync) const |
Get the next captured camera image, ISP-scaled second frame. More... | |
const RawImage & | get2 () const |
Get the next captured camera image, ISP-scaled second frame. More... | |
const RawImage & | getp1 (bool casync) const |
Get the next captured camera image that is intended for processing. More... | |
const RawImage & | getp () const |
Get the next captured camera image that is intended for processing. More... | |
cv::Mat | getCvGRAY1 (bool casync) const |
Shorthand to get the input image as a GRAY cv::Mat and release the raw buffer. More... | |
cv::Mat | getCvGRAY () const |
Shorthand to get the input image as a GRAY cv::Mat and release the raw buffer. More... | |
cv::Mat | getCvBGR1 (bool casync) const |
Shorthand to get the input image as a BGR cv::Mat and release the raw buffer. More... | |
cv::Mat | getCvBGR () const |
Shorthand to get the input image as a BGR cv::Mat and release the raw buffer. More... | |
cv::Mat | getCvRGB1 (bool casync) const |
Shorthand to get the input image as a RGB cv::Mat and release the raw buffer. More... | |
cv::Mat | getCvRGB () const |
Shorthand to get the input image as a RGB cv::Mat and release the raw buffer. More... | |
cv::Mat | getCvRGBA1 (bool casync) const |
Shorthand to get the input image as a RGBA cv::Mat and release the raw buffer. More... | |
cv::Mat | getCvRGBA () const |
Shorthand to get the input image as a RGBA cv::Mat and release the raw buffer. More... | |
cv::Mat | getCvGRAYp () const |
Shorthand to get the input image for processing as a GRAY cv::Mat and release the raw buffer. More... | |
cv::Mat | getCvBGRp () const |
Shorthand to get the input image for processing as a BGR cv::Mat and release the raw buffer. More... | |
cv::Mat | getCvRGBp () const |
Shorthand to get the input image for processing as a RGB cv::Mat and release the raw buffer. More... | |
cv::Mat | getCvRGBAp () const |
Shorthand to get the input image for processing as a RGBA cv::Mat and release the raw buffer. More... | |
Friends | |
class | GUIhelperPython |
|
default |
Default constructor to keep boost::python happy, object is not operational.
jevois::InputFramePython::InputFramePython | ( | InputFrame * | src | ) |
Construct from a regular (move-only) InputFrame that should be be coming from Engine.
Definition at line 31 of file PythonModule.C.
void jevois::InputFramePython::done | ( | ) | const |
Indicate that user processing is done with the image previously obtained via get()
Definition at line 76 of file PythonModule.C.
References LFATAL.
void jevois::InputFramePython::done2 | ( | ) | const |
Indicate that user processing is done with the ISP-scaled image previously obtained via get2()
Definition at line 82 of file PythonModule.C.
References LFATAL.
const jevois::RawImage & jevois::InputFramePython::get | ( | ) | const |
Get the next captured camera image, thin wrapper for default arg value.
Definition at line 40 of file PythonModule.C.
References LFATAL.
const jevois::RawImage & jevois::InputFramePython::get1 | ( | bool | casync | ) | const |
Get the next captured camera image, thin wrapper for default arg value.
Definition at line 34 of file PythonModule.C.
References LFATAL.
const jevois::RawImage & jevois::InputFramePython::get2 | ( | ) | const |
Get the next captured camera image, ISP-scaled second frame.
Definition at line 58 of file PythonModule.C.
References LFATAL.
const jevois::RawImage & jevois::InputFramePython::get21 | ( | bool | casync | ) | const |
Get the next captured camera image, ISP-scaled second frame.
Definition at line 52 of file PythonModule.C.
References LFATAL.
cv::Mat jevois::InputFramePython::getCvBGR | ( | ) | const |
Shorthand to get the input image as a BGR cv::Mat and release the raw buffer.
Definition at line 106 of file PythonModule.C.
References LFATAL.
cv::Mat jevois::InputFramePython::getCvBGR1 | ( | bool | casync | ) | const |
Shorthand to get the input image as a BGR cv::Mat and release the raw buffer.
Definition at line 100 of file PythonModule.C.
References LFATAL.
cv::Mat jevois::InputFramePython::getCvBGRp | ( | ) | const |
Shorthand to get the input image for processing as a BGR cv::Mat and release the raw buffer.
Definition at line 142 of file PythonModule.C.
References LFATAL.
cv::Mat jevois::InputFramePython::getCvGRAY | ( | ) | const |
Shorthand to get the input image as a GRAY cv::Mat and release the raw buffer.
Definition at line 94 of file PythonModule.C.
References LFATAL.
cv::Mat jevois::InputFramePython::getCvGRAY1 | ( | bool | casync | ) | const |
Shorthand to get the input image as a GRAY cv::Mat and release the raw buffer.
Definition at line 88 of file PythonModule.C.
References LFATAL.
cv::Mat jevois::InputFramePython::getCvGRAYp | ( | ) | const |
Shorthand to get the input image for processing as a GRAY cv::Mat and release the raw buffer.
Definition at line 136 of file PythonModule.C.
References LFATAL.
cv::Mat jevois::InputFramePython::getCvRGB | ( | ) | const |
Shorthand to get the input image as a RGB cv::Mat and release the raw buffer.
Definition at line 118 of file PythonModule.C.
References LFATAL.
cv::Mat jevois::InputFramePython::getCvRGB1 | ( | bool | casync | ) | const |
Shorthand to get the input image as a RGB cv::Mat and release the raw buffer.
Definition at line 112 of file PythonModule.C.
References LFATAL.
cv::Mat jevois::InputFramePython::getCvRGBA | ( | ) | const |
Shorthand to get the input image as a RGBA cv::Mat and release the raw buffer.
Definition at line 130 of file PythonModule.C.
References LFATAL.
cv::Mat jevois::InputFramePython::getCvRGBA1 | ( | bool | casync | ) | const |
Shorthand to get the input image as a RGBA cv::Mat and release the raw buffer.
Definition at line 124 of file PythonModule.C.
References LFATAL.
cv::Mat jevois::InputFramePython::getCvRGBAp | ( | ) | const |
Shorthand to get the input image for processing as a RGBA cv::Mat and release the raw buffer.
Definition at line 154 of file PythonModule.C.
References LFATAL.
cv::Mat jevois::InputFramePython::getCvRGBp | ( | ) | const |
Shorthand to get the input image for processing as a RGB cv::Mat and release the raw buffer.
Definition at line 148 of file PythonModule.C.
References LFATAL.
const jevois::RawImage & jevois::InputFramePython::getp | ( | ) | const |
Get the next captured camera image that is intended for processing.
Definition at line 70 of file PythonModule.C.
References LFATAL.
const jevois::RawImage & jevois::InputFramePython::getp1 | ( | bool | casync | ) | const |
Get the next captured camera image that is intended for processing.
Definition at line 64 of file PythonModule.C.
References LFATAL.
bool jevois::InputFramePython::hasScaledImage | ( | ) | const |
Check whether a second input image scaled by the JeVoisPro Platform ISP is available.
Definition at line 46 of file PythonModule.C.
References LFATAL.
|
friend |
Definition at line 119 of file PythonModule.H.