JeVois  1.22
JeVois Smart Embedded Machine Vision Toolkit
Share this page:
Loading...
Searching...
No Matches
Helper definitions for different camera sensors

Collaboration diagram for Helper definitions for different camera sensors:

Functions

 jevois::JEVOIS_DEFINE_ENUM_CLASS (CameraSensor,(any)(imx290)(os08a10)(ar0234))
 Enum for different sensor models.
 
 jevois::JEVOIS_DEFINE_ENUM_CLASS (CameraLens,(standard)(custom1)(custom2)(custom3)(custom4)(custom5))
 
bool jevois::sensorSupportsFormat (CameraSensor s, VideoMapping const &m)
 Check whether a given resolution and frame rate is supported by a sensor.
 
bool jevois::sensorHasIMU (CameraSensor s)
 Check whether sensor has an IMU (inertial measurement unit)
 
void jevois::sensorPrepareSetFormat (CameraSensor s, VideoMapping const &m, unsigned int &capw, unsigned int &caph, int &preset)
 Load a sensor preset (JeVois-Pro only) and return native sensor grab dims (when cropping and/or scaling)
 

Function Documentation

◆ JEVOIS_DEFINE_ENUM_CLASS() [1/2]

jevois::JEVOIS_DEFINE_ENUM_CLASS ( CameraLens  ,
(standard)(custom1)(custom2)(custom3)(custom4)(custom5)   
)

◆ JEVOIS_DEFINE_ENUM_CLASS() [2/2]

jevois::JEVOIS_DEFINE_ENUM_CLASS ( CameraSensor  ,
(any)(imx290)(os08a10)(ar0234)   
)

Enum for different sensor models.

Use 'any' when you either don't know (e.g., running in host mode with an unknown dumb USB webcam), or when you don't care (e.g., we use 'any' in jevois-add-videomapping so that it will always succeed).

  • Parallel CSI sensors are for JeVois-A33 hardware: ov9650, ov2640, ov7725, ar0135
  • MIPI sensors are for JeVois-Pro hardware: imx290, os08a10, ar0234

Here, we also define a CameraLens enum that is used for camera calibration.

◆ sensorHasIMU()

bool jevois::sensorHasIMU ( CameraSensor  s)

Check whether sensor has an IMU (inertial measurement unit)

Definition at line 279 of file CameraSensor.C.

Referenced by jevois::Engine::postInit().

◆ sensorPrepareSetFormat()

void jevois::sensorPrepareSetFormat ( CameraSensor  s,
VideoMapping const &  m,
unsigned int &  capw,
unsigned int &  caph,
int &  preset 
)

Load a sensor preset (JeVois-Pro only) and return native sensor grab dims (when cropping and/or scaling)

Referenced by jevois::Camera::setFormat().

◆ sensorSupportsFormat()

bool jevois::sensorSupportsFormat ( CameraSensor  s,
VideoMapping const &  m 
)

Check whether a given resolution and frame rate is supported by a sensor.

Returns true if the sensor is capable of capturing video at the given format, resolution, and frame rate.