JeVois  1.20
JeVois Smart Embedded Machine Vision Toolkit
Share this page:

#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 RawImageget1 (bool casync) const
 Get the next captured camera image, thin wrapper for default arg value. More...
 
const RawImageget () 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 RawImageget21 (bool casync) const
 Get the next captured camera image, ISP-scaled second frame. More...
 
const RawImageget2 () const
 Get the next captured camera image, ISP-scaled second frame. More...
 
const RawImagegetp1 (bool casync) const
 Get the next captured camera image that is intended for processing. More...
 
const RawImagegetp () 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
 

Constructor & Destructor Documentation

◆ InputFramePython() [1/2]

jevois::InputFramePython::InputFramePython ( )
default

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

◆ InputFramePython() [2/2]

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.

Member Function Documentation

◆ done()

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.

◆ done2()

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.

◆ get()

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.

◆ get1()

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.

◆ get2()

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.

◆ get21()

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.

◆ getCvBGR()

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.

◆ getCvBGR1()

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.

◆ getCvBGRp()

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.

◆ getCvGRAY()

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.

◆ getCvGRAY1()

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.

◆ getCvGRAYp()

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.

◆ getCvRGB()

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.

◆ getCvRGB1()

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.

◆ getCvRGBA()

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.

◆ getCvRGBA1()

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.

◆ getCvRGBAp()

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.

◆ getCvRGBp()

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.

◆ getp()

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.

◆ getp1()

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.

◆ hasScaledImage()

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.

Friends And Related Function Documentation

◆ GUIhelperPython

friend class GUIhelperPython
friend

Definition at line 119 of file PythonModule.H.


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