Go to the documentation of this file.
20 constexpr
static const char*
NAME =
"Camera";
32 Camera(
const std::shared_ptr<PipelineImpl>& par, int64_t nodeId);
33 Camera(
const std::shared_ptr<PipelineImpl>& par, int64_t nodeId, std::unique_ptr<Properties> props);
154 void setSize(
int width,
int height);
208 [[deprecated(
"setIsp3aFps is unstable")]]
void setIsp3aFps(
int isp3aFps);
238 std::tuple<int, int>
getSize()
const;
Camera(const std::shared_ptr< PipelineImpl > &par, int64_t nodeId)
Properties::WarpMeshSource getMeshSource() const
Gets the source of the warp mesh.
void setBoardSocket(CameraBoardSocket boardSocket)
void setVideoSize(int width, int height)
Set video output size.
void setCamera(std::string name)
std::tuple< int, int > getStillSize() const
Get still size as tuple.
void setImageOrientation(CameraImageOrientation imageOrientation)
Set camera image orientation.
void setIsp3aFps(int isp3aFps)
static int getScaledSize(int input, int num, int denom)
int getPreviewHeight() const
Get preview height.
void loadMeshData(span< const std::uint8_t > warpMesh)
std::tuple< int, int > getSize() const
Get sensor resolution as size.
CameraControl initialControl
Properties & getProperties()
std::shared_ptr< RawCameraControl > rawControl
CameraBoardSocket getBoardSocket() const
int getHeight() const
Get sensor resolution height.
int getPreviewWidth() const
Get preview width.
std::tuple< int, int > getPreviewSize() const
Get preview size as tuple.
constexpr auto size(const C &c) -> decltype(c.size())
int getStillHeight() const
Get still height.
constexpr static const char * NAME
void setRawOutputPacked(bool packed)
int getWidth() const
Get sensor resolution width.
std::string getCamera() const
Base Properties structure.
tl::optional< float > getCalibrationAlpha() const
Get calibration alpha parameter that determines FOV of undistorted frames.
void loadMeshFile(const dai::Path &warpMesh)
std::tuple< int, int > getMeshStep() const
Gets the distance between mesh points.
void setMeshSource(Properties::WarpMeshSource source)
Set the source of the warp mesh or disable.
void setCalibrationAlpha(float alpha)
Set calibration alpha parameter that determines FOV of undistorted frames.
void setMeshStep(int width, int height)
void setSize(std::tuple< int, int > size)
Set desired resolution. Sets sensor size to best fit.
int getVideoWidth() const
Get video width.
void setPreviewSize(int width, int height)
Set preview output size.
int getStillWidth() const
Get still width.
Represents paths on a filesystem; accepts utf-8, Windows utf-16 wchar_t, or std::filesystem::path.
CameraImageOrientation getImageOrientation() const
Get camera image orientation.
std::tuple< int, int > getVideoSize() const
Get video size as tuple.
Camera node. Experimental node, for both mono and color types of sensors.
void setStillSize(int width, int height)
Set still output size.
int getVideoHeight() const
Get video height.
depthai
Author(s): Martin Peterlin
autogenerated on Sat Mar 22 2025 02:58:18