@Namespace(value="dai::node") @NoOffset @Properties(inherit=depthai.class) public class ColorCamera extends ColorCameraPropertiesNode
Node.Connection, Node.DatatypeHierarchy, Node.Input, Node.InputMap, Node.Output, Node.OutputMapPointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
ColorCamera(PipelineImpl par,
long nodeId)
Constructs ColorCamera node.
|
ColorCamera(PipelineImpl par,
long nodeId,
ColorCameraProperties props) |
ColorCamera(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Node.Output |
frameEvent()
Outputs metadata-only ImgFrame message as an early indicator of an incoming frame.
|
depthai.CameraBoardSocket |
getBoardSocket()
Retrieves which board socket to use
|
BytePointer |
getCamera()
Retrieves which camera to use by name
|
long |
getCamId()
Deprecated.
|
ColorCameraProperties.ColorOrder |
getColorOrder()
Get color order of preview output frames.
|
boolean |
getFp16()
Get fp16 (0..255) data of preview output frames
|
float |
getFps()
Get rate at which camera should produce frames
|
IntPointer |
getFrameEventFilter() |
depthai.CameraImageOrientation |
getImageOrientation()
Get camera image orientation
|
boolean |
getInterleaved()
Get planar or interleaved data of preview output frames
|
int |
getIspHeight()
Get 'isp' output height
|
int |
getIspNumFramesPool()
Get number of frames in isp pool
|
Pointer |
getIspSize()
Get 'isp' output resolution as size, after scaling
|
int |
getIspWidth()
Get 'isp' output width
|
int |
getPreviewHeight()
Get preview height
|
boolean |
getPreviewKeepAspectRatio() |
int |
getPreviewNumFramesPool()
Get number of frames in preview pool
|
Pointer |
getPreviewSize()
Get preview size as tuple
|
int |
getPreviewWidth()
Get preview width
|
int |
getRawNumFramesPool()
Get number of frames in raw pool
|
ColorCameraProperties.SensorResolution |
getResolution()
Get sensor resolution
|
int |
getResolutionHeight()
Get sensor resolution height
|
Pointer |
getResolutionSize()
Get sensor resolution as size
|
int |
getResolutionWidth()
Get sensor resolution width
|
int |
getScaledSize(int input,
int num,
int denom)
Computes the scaled size given numerator and denominator
|
Pointer |
getSensorCrop() |
float |
getSensorCropX()
Get sensor top left x crop coordinate
|
float |
getSensorCropY()
Get sensor top left y crop coordinate
|
int |
getStillHeight()
Get still height
|
int |
getStillNumFramesPool()
Get number of frames in still pool
|
Pointer |
getStillSize()
Get still size as tuple
|
int |
getStillWidth()
Get still width
|
int |
getVideoHeight()
Get video height
|
int |
getVideoNumFramesPool()
Get number of frames in video pool
|
Pointer |
getVideoSize()
Get video size as tuple
|
int |
getVideoWidth()
Get video width
|
boolean |
getWaitForConfigInput()
Deprecated.
|
CameraControl |
initialControl()
Initial control options to apply to sensor
|
Node.Input |
inputConfig()
Input for ImageManipConfig message, which can modify crop parameters in runtime
Default queue is non-blocking with size 8
|
Node.Input |
inputControl()
Input for CameraControl message, which can modify camera parameters in runtime
Default queue is blocking with size 8
|
Node.Output |
isp()
Outputs ImgFrame message that carries YUV420 planar (I420/IYUV) frame data.
|
static BytePointer |
NAME() |
Node.Output |
preview()
Outputs ImgFrame message that carries BGR/RGB planar/interleaved encoded frame data.
|
Node.Output |
raw()
Outputs ImgFrame message that carries RAW10-packed (MIPI CSI-2 format) frame data.
|
void |
sensorCenterCrop()
Specify sensor center crop.
|
void |
setBoardSocket(depthai.CameraBoardSocket boardSocket)
Specify which board socket to use
|
void |
setBoardSocket(int boardSocket) |
void |
setCamera(ByteBuffer name) |
void |
setCamera(BytePointer name)
Specify which camera to use by name
|
void |
setCamera(String name) |
void |
setCamId(long id)
Deprecated.
|
void |
setColorOrder(ColorCameraProperties.ColorOrder colorOrder)
Set color order of preview output images.
|
void |
setColorOrder(int colorOrder) |
void |
setFp16(boolean fp16)
Set fp16 (0..255) data type of preview output frames
|
void |
setFps(float fps)
Set rate at which camera should produce frames
|
void |
setFrameEventFilter(int[] events) |
void |
setFrameEventFilter(IntBuffer events) |
void |
setFrameEventFilter(IntPointer events) |
void |
setImageOrientation(depthai.CameraImageOrientation imageOrientation)
Set camera image orientation
|
void |
setImageOrientation(int imageOrientation) |
void |
setInterleaved(boolean interleaved)
Set planar or interleaved data of preview output frames
|
void |
setIsp3aFps(int isp3aFps)
Isp 3A rate (auto focus, auto exposure, auto white balance, camera controls etc.).
|
void |
setIspNumFramesPool(int num)
Set number of frames in isp pool
|
void |
setIspScale(int numerator,
int denominator)
Set 'isp' output scaling (numerator/denominator), preserving the aspect ratio.
|
void |
setIspScale(int horizNum,
int horizDenom,
int vertNum,
int vertDenom)
Set 'isp' output scaling, per each direction.
|
void |
setIspScale(Pointer scale)
Set 'isp' output scaling, as a tuple
|
void |
setIspScale(Pointer horizScale,
Pointer vertScale)
Set 'isp' output scaling, per each direction, as
|
void |
setNumFramesPool(int raw,
int isp,
int preview,
int video,
int still)
Set number of frames in all pools
|
void |
setPreviewKeepAspectRatio(boolean keep)
Specifies whether preview output should preserve aspect ratio,
after downscaling from video size or not.
|
void |
setPreviewNumFramesPool(int num)
Set number of frames in preview pool
|
void |
setPreviewSize(int width,
int height)
Set preview output size
|
void |
setPreviewSize(Pointer size)
Set preview output size, as a tuple
|
void |
setRawNumFramesPool(int num)
Set number of frames in raw pool
|
void |
setResolution(ColorCameraProperties.SensorResolution resolution)
Set sensor resolution
|
void |
setSensorCrop(float x,
float y)
Specifies sensor crop rectangle
|
void |
setStillNumFramesPool(int num)
Set number of frames in preview pool
|
void |
setStillSize(int width,
int height)
Set still output size
|
void |
setStillSize(Pointer size)
Set still output size, as a tuple
|
void |
setVideoNumFramesPool(int num)
Set number of frames in preview pool
|
void |
setVideoSize(int width,
int height)
Set video output size
|
void |
setVideoSize(Pointer size)
Set video output size, as a tuple
|
void |
setWaitForConfigInput(boolean _wait)
Deprecated.
|
Node.Output |
still()
Outputs ImgFrame message that carries NV12 encoded (YUV420, UV plane interleaved) frame data.
|
Node.Output |
video()
Outputs ImgFrame message that carries NV12 encoded (YUV420, UV plane interleaved) frame data.
|
clone, getName, properties, propertiesassetManager, getAssetManager, getInputRefs, getInputs, getOutputRefs, getOutputs, getParentPipeline, getProperties, getRequiredOpenVINOVersion, id, inputMapRefs, inputRefs, outputMapRefs, outputRefs, propertiesHolder, setInputMapRefs, setInputRefs, setOutputMapRefs, setOutputRefsaddress, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic ColorCamera(Pointer p)
Pointer(Pointer).public ColorCamera(@SharedPtr PipelineImpl par, @Cast(value="int64_t") long nodeId)
public ColorCamera(@SharedPtr PipelineImpl par, @Cast(value="int64_t") long nodeId, @UniquePtr ColorCameraProperties props)
@MemberGetter @Cast(value="const char*") public static BytePointer NAME()
public int getScaledSize(int input,
int num,
int denom)
@MemberGetter @ByRef public CameraControl initialControl()
@MemberGetter @ByRef public Node.Input inputConfig()
@MemberGetter @ByRef public Node.Input inputControl()
@MemberGetter @ByRef public Node.Output video()
@MemberGetter @ByRef public Node.Output preview()
@MemberGetter @ByRef public Node.Output still()
@MemberGetter @ByRef public Node.Output isp()
@MemberGetter @ByRef public Node.Output raw()
@MemberGetter @ByRef public Node.Output frameEvent()
public void setBoardSocket(depthai.CameraBoardSocket boardSocket)
boardSocket - Board socket to usepublic depthai.CameraBoardSocket getBoardSocket()
public void setCamera(@StdString BytePointer name)
name - Name of the camera to usepublic void setCamera(@StdString ByteBuffer name)
public void setCamera(@StdString String name)
@StdString public BytePointer getCamera()
@Deprecated public void setCamId(@Cast(value="int64_t") long id)
@Cast(value="int64_t") @Deprecated public long getCamId()
public void setImageOrientation(depthai.CameraImageOrientation imageOrientation)
public void setImageOrientation(@Cast(value="dai::CameraImageOrientation") int imageOrientation)
public depthai.CameraImageOrientation getImageOrientation()
public void setColorOrder(ColorCameraProperties.ColorOrder colorOrder)
public void setColorOrder(@Cast(value="dai::ColorCameraProperties::ColorOrder") int colorOrder)
public ColorCameraProperties.ColorOrder getColorOrder()
public void setInterleaved(@Cast(value="bool") boolean interleaved)
@Cast(value="bool") public boolean getInterleaved()
public void setFp16(@Cast(value="bool") boolean fp16)
@Cast(value="bool") public boolean getFp16()
public void setPreviewSize(int width,
int height)
public void setPreviewSize(@ByVal @Cast(value="std::tuple<int,int>*") Pointer size)
public void setPreviewNumFramesPool(int num)
public void setVideoSize(int width,
int height)
public void setVideoSize(@ByVal @Cast(value="std::tuple<int,int>*") Pointer size)
public void setVideoNumFramesPool(int num)
public void setStillSize(int width,
int height)
public void setStillSize(@ByVal @Cast(value="std::tuple<int,int>*") Pointer size)
public void setStillNumFramesPool(int num)
public void setResolution(@ByVal ColorCameraProperties.SensorResolution resolution)
@ByVal public ColorCameraProperties.SensorResolution getResolution()
public void setRawNumFramesPool(int num)
public void setIspNumFramesPool(int num)
public void setNumFramesPool(int raw,
int isp,
int preview,
int video,
int still)
public void setIspScale(int numerator,
int denominator)
public void setIspScale(@ByVal @Cast(value="std::tuple<int,int>*") Pointer scale)
public void setIspScale(int horizNum,
int horizDenom,
int vertNum,
int vertDenom)
public void setIspScale(@ByVal @Cast(value="std::tuple<int,int>*") Pointer horizScale, @ByVal @Cast(value="std::tuple<int,int>*") Pointer vertScale)
public void setFps(float fps)
fps - Rate in frames per secondpublic void setIsp3aFps(int isp3aFps)
public void setFrameEventFilter(@StdVector @Cast(value="dai::FrameEvent*") IntPointer events)
public void setFrameEventFilter(@StdVector @Cast(value="dai::FrameEvent*") IntBuffer events)
public void setFrameEventFilter(@StdVector @Cast(value="dai::FrameEvent*") int[] events)
@StdVector @Cast(value="dai::FrameEvent*") public IntPointer getFrameEventFilter()
public float getFps()
@ByVal @Cast(value="std::tuple<int,int>*") public Pointer getPreviewSize()
public int getPreviewWidth()
public int getPreviewHeight()
@ByVal @Cast(value="std::tuple<int,int>*") public Pointer getVideoSize()
public int getVideoWidth()
public int getVideoHeight()
@ByVal @Cast(value="std::tuple<int,int>*") public Pointer getStillSize()
public int getStillWidth()
public int getStillHeight()
@ByVal @Cast(value="std::tuple<int,int>*") public Pointer getResolutionSize()
public int getResolutionWidth()
public int getResolutionHeight()
@ByVal @Cast(value="std::tuple<int,int>*") public Pointer getIspSize()
public int getIspWidth()
public int getIspHeight()
public void sensorCenterCrop()
public void setSensorCrop(float x,
float y)
x - Top left X coordinatey - Top left Y coordinate@ByVal @Cast(value="std::tuple<float,float>*") public Pointer getSensorCrop()
public float getSensorCropX()
public float getSensorCropY()
@Deprecated public void setWaitForConfigInput(@Cast(value="bool") boolean _wait)
wait - True to wait for inputConfig message, false otherwise@Cast(value="bool") @Deprecated public boolean getWaitForConfigInput()
setWaitForConfigInputpublic void setPreviewKeepAspectRatio(@Cast(value="bool") boolean keep)
keep - If true, a larger crop region will be considered to still be able to
create the final image in the specified aspect ratio. Otherwise video size is resized to fit preview size@Cast(value="bool") public boolean getPreviewKeepAspectRatio()
setPreviewKeepAspectRatiopublic int getPreviewNumFramesPool()
public int getVideoNumFramesPool()
public int getStillNumFramesPool()
public int getRawNumFramesPool()
public int getIspNumFramesPool()
Copyright © 2023. All rights reserved.