rmcv  v0.1.0
A library for RoboMaster computer vision based on OpenCV.
Public Member Functions | Public Attributes | List of all members
rm::DahengCamera Class Reference

Public Member Functions

bool dahengCameraInit (char *sn, bool autoWhiteBalance=false, int expoosureTime=2000, double gainFactor=1.0)
 
Mat getFrame (bool flip=false, bool mirror=false)
 
void ProcessData (void *pImageBuf, void *pImageRaw8Buf, void *pImageRGBBuf, int nImageWidth, int nImageHeight, int nPixelFormat, int nPixelColorFilter, bool flip=false, bool mirror=false)
 

Public Attributes

long fps = 0
 
int64_t SensorWidth = -1
 
int64_t SensorHeight = -1
 

Member Function Documentation

◆ dahengCameraInit()

bool rm::DahengCamera::dahengCameraInit ( char *  sn,
bool  autoWhiteBalance = false,
int  expoosureTime = 2000,
double  gainFactor = 1.0 
)
inline

Initialize DaHeng camera with given parameters.

Parameters
snSN number of target camera.
autoWhiteBalanceAuto adjust white balance.
expoosureTimeExposure time.
gainFactorGain factor. Value should be inside [-1.0, 1.0].
Returns
Initialization status.

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