@Namespace(value="dai::node") @NoOffset @Properties(inherit=depthai.class) public class ColorCamera extends Node
Node.Connection, Node.DatatypeHierarchy, Node.Input, Node.OutputPointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
ColorCamera(PipelineImpl par,
long nodeId)
Constructs ColorCamera node.
|
ColorCamera(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
depthai.CameraBoardSocket |
getBoardSocket()
Retrieves which board socket to use
|
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
|
depthai.CameraImageOrientation |
getImageOrientation()
Get camera image orientation
|
boolean |
getInterleaved()
Get planar or interleaved data of preview output frames
|
int |
getIspHeight()
Get 'isp' output height
|
Pointer |
getIspSize()
Get 'isp' output resolution as size, after scaling
|
int |
getIspWidth()
Get 'isp' output width
|
BytePointer |
getName()
Retrieves nodes name
|
int |
getPreviewHeight()
Get preview height
|
boolean |
getPreviewKeepAspectRatio() |
Pointer |
getPreviewSize()
Get preview size as tuple
|
int |
getPreviewWidth()
Get preview width
|
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) |
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
|
Pointer |
getStillSize()
Get still size as tuple
|
int |
getStillWidth()
Get still width
|
int |
getVideoHeight()
Get video height
|
Pointer |
getVideoSize()
Get video size as tuple
|
int |
getVideoWidth()
Get video width
|
boolean |
getWaitForConfigInput() |
CameraControl |
initialControl()
Initial control options to apply to sensor
|
Node.Input |
inputConfig()
Input for ImageManipConfig message, which can modify crop paremeters 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.
|
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 |
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 |
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 |
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 |
setPreviewKeepAspectRatio(boolean keep)
Specifies whether preview output should preserve aspect ratio,
after downscaling from video size or not.
|
void |
setPreviewSize(int width,
int height)
Set preview output size
|
void |
setPreviewSize(Pointer size)
Set preview output size, as a tuple
|
void |
setResolution(ColorCameraProperties.SensorResolution resolution)
Set sensor resolution
|
void |
setSensorCrop(float x,
float y)
Specifies sensor crop rectangle
|
void |
setStillSize(int width,
int height)
Set still output size
|
void |
setStillSize(Pointer size)
Set still output size, as a tuple
|
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)
Specify to wait until inputConfig receives a configuration message,
before sending out a frame.
|
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.
|
assetManager, clone, getAssets, getInputRefs, getInputs, getOutputRefs, getOutputs, getParentPipeline, getProperties, getRequiredOpenVINOVersion, id, inputs, outputsaddress, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getPointer, getPointer, getPointer, getPointer, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, 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)
@StdString public BytePointer getName()
Nodepublic 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()
public void setBoardSocket(depthai.CameraBoardSocket boardSocket)
boardSocket - Board socket to usepublic depthai.CameraBoardSocket getBoardSocket()
@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 setVideoSize(int width,
int height)
public void setVideoSize(@ByVal @Cast(value="std::tuple<int,int>*") Pointer size)
public void setStillSize(int width,
int height)
public void setStillSize(@ByVal @Cast(value="std::tuple<int,int>*") Pointer size)
public void setResolution(@ByVal ColorCameraProperties.SensorResolution resolution)
@ByVal public ColorCameraProperties.SensorResolution getResolution()
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 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()
public void setWaitForConfigInput(@Cast(value="bool") boolean _wait)
wait - True to wait for inputConfig message, false otherwise@Cast(value="bool") 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 sizeCopyright © 2021. All rights reserved.