Go to the documentation of this file.
18 constexpr
static const char*
NAME =
"ColorCamera";
30 ColorCamera(
const std::shared_ptr<PipelineImpl>& par, int64_t nodeId);
31 ColorCamera(
const std::shared_ptr<PipelineImpl>& par, int64_t nodeId, std::unique_ptr<Properties> props);
127 [[deprecated(
"Use 'setBoardSocket()' instead")]]
void setCamId(int64_t
id);
130 [[deprecated(
"Use 'setBoardSocket()' instead")]] int64_t
getCamId()
const;
214 void setIspScale(
int horizNum,
int horizDenom,
int vertNum,
int vertDenom);
217 void setIspScale(std::tuple<int, int> horizScale, std::tuple<int, int> vertScale);
233 [[deprecated(
"setIsp3aFps is unstable")]]
void setIsp3aFps(
int isp3aFps);
312 [[deprecated(
"Use 'inputConfig.setWaitForMessage()' instead")]]
void setWaitForConfigInput(
bool wait);
int getStillHeight() const
Get still height.
void setPreviewKeepAspectRatio(bool keep)
bool getInterleaved() const
Get planar or interleaved data of preview output frames.
void setWaitForConfigInput(bool wait)
int getRawNumFramesPool()
Get number of frames in raw pool.
int getIspHeight() const
Get 'isp' output height.
bool getFp16() const
Get fp16 (0..255) data of preview output frames.
void setResolution(Properties::SensorResolution resolution)
Set sensor resolution.
int getResolutionWidth() const
Get sensor resolution width.
void setIsp3aFps(int isp3aFps)
std::vector< dai::FrameEvent > getFrameEventFilter() const
ColorCamera node. For use with color sensors.
std::tuple< int, int > getResolutionSize() const
Get sensor resolution as size.
void setIspNumFramesPool(int num)
Set number of frames in isp pool.
CameraBoardSocket getBoardSocket() const
int getVideoNumFramesPool()
Get number of frames in video pool.
void setFrameEventFilter(const std::vector< dai::FrameEvent > &events)
void setRawNumFramesPool(int num)
Set number of frames in raw pool.
int getPreviewHeight() const
Get preview height.
int64_t getCamId() const
Get which color camera to use.
void setColorOrder(ColorCameraProperties::ColorOrder colorOrder)
Set color order of preview output images. RGB or BGR.
int getStillWidth() const
Get still width.
int getVideoHeight() const
Get video height.
Properties & getProperties()
void setPreviewNumFramesPool(int num)
Set number of frames in preview pool.
int getStillNumFramesPool()
Get number of frames in still pool.
std::tuple< int, int > getStillSize() const
Get still size as tuple.
ColorCamera(const std::shared_ptr< PipelineImpl > &par, int64_t nodeId)
void setSensorCrop(float x, float y)
int getVideoWidth() const
Get video width.
float getSensorCropX() const
Get sensor top left x crop coordinate.
std::tuple< float, float > getSensorCrop() const
constexpr auto size(const C &c) -> decltype(c.size())
void setVideoSize(int width, int height)
Set video output size.
std::shared_ptr< RawCameraControl > rawControl
void setRawOutputPacked(bool packed)
void setStillNumFramesPool(int num)
Set number of frames in preview pool.
int getPreviewWidth() const
Get preview width.
void setBoardSocket(CameraBoardSocket boardSocket)
void setImageOrientation(CameraImageOrientation imageOrientation)
Set camera image orientation.
void setFp16(bool fp16)
Set fp16 (0..255) data type of preview output frames.
bool getPreviewKeepAspectRatio()
CameraImageOrientation getImageOrientation() const
Get camera image orientation.
int getIspWidth() const
Get 'isp' output width.
Base Properties structure.
void setStillSize(int width, int height)
Set still output size.
int getPreviewNumFramesPool()
Get number of frames in preview pool.
int getIspNumFramesPool()
Get number of frames in isp pool.
void setInterleaved(bool interleaved)
Set planar or interleaved data of preview output frames.
int getResolutionHeight() const
Get sensor resolution height.
bool getWaitForConfigInput() const
void setNumFramesPool(int raw, int isp, int preview, int video, int still)
Set number of frames in all pools.
std::string getCamera() const
float getSensorCropY() const
Get sensor top left y crop coordinate.
constexpr static const char * NAME
std::tuple< int, int > getPreviewSize() const
Get preview size as tuple.
void setPreviewSize(int width, int height)
Set preview output size.
void setVideoNumFramesPool(int num)
Set number of frames in preview pool.
std::tuple< int, int > getVideoSize() const
Get video size as tuple.
std::tuple< int, int > getIspSize() const
Get 'isp' output resolution as size, after scaling.
Properties::SensorResolution getResolution() const
Get sensor resolution.
void setIspScale(int numerator, int denominator)
ColorCameraProperties::ColorOrder getColorOrder() const
Get color order of preview output frames. RGB or BGR.
void setCamera(std::string name)
int getScaledSize(int input, int num, int denom) const
CameraControl initialControl
void setCamId(int64_t id)
Set which color camera to use.
depthai
Author(s): Martin Peterlin
autogenerated on Sat Mar 22 2025 02:58:19