@Namespace(value="dai") @NoOffset @Properties(inherit=depthai.class) public class CameraControl extends Buffer
CONTINUOUS_VIDEO mode,
auto-white-balance in AUTO mode, and auto-exposure with anti-banding for
50Hz mains frequency.Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
CameraControl()
Construct CameraControl message
|
CameraControl(long size)
Native array allocator.
|
CameraControl(Pointer p)
Pointer cast constructor.
|
CameraControl(RawCameraControl ptr) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getCaptureStill()
Check whether command to capture a still is set
|
Pointer |
getExposureTime()
Retrieves exposure time
|
int |
getLensPosition()
Retrieves lens position, range 0..255.
|
CameraControl |
getPointer(long i) |
int |
getSensitivity()
Retrieves sensitivity, as an ISO value
|
CameraControl |
position(long position) |
CameraControl |
setAntiBandingMode(byte mode) |
CameraControl |
setAntiBandingMode(RawCameraControl.AntiBandingMode mode)
Set a command to specify anti-banding mode.
|
CameraControl |
setAutoExposureCompensation(int compensation)
Set a command to specify auto exposure compensation
|
CameraControl |
setAutoExposureEnable()
Set a command to enable auto exposure
|
CameraControl |
setAutoExposureLock(boolean lock)
Set a command to specify lock auto exposure
|
CameraControl |
setAutoExposureRegion(short startX,
short startY,
short width,
short height)
Set a command to specify auto exposure region in pixels.
|
CameraControl |
setAutoFocusLensRange(int infinityPosition,
int macroPosition)
Set autofocus lens range,
infinityPosition < macroPosition, valid values 0..255. |
CameraControl |
setAutoFocusMode(byte mode) |
CameraControl |
setAutoFocusMode(RawCameraControl.AutoFocusMode mode)
Set a command to specify autofocus mode.
|
CameraControl |
setAutoFocusRegion(short startX,
short startY,
short width,
short height)
Set a command to specify focus region in pixels.
|
CameraControl |
setAutoFocusTrigger()
Set a command to trigger autofocus
|
CameraControl |
setAutoWhiteBalanceLock(boolean lock)
Set a command to specify auto white balance lock
|
CameraControl |
setAutoWhiteBalanceMode(byte mode) |
CameraControl |
setAutoWhiteBalanceMode(RawCameraControl.AutoWhiteBalanceMode mode)
Set a command to specify auto white balance mode
|
CameraControl |
setBrightness(int value)
Set a command to adjust image brightness
|
CameraControl |
setCaptureStill(boolean capture)
Set a command to capture a still image
|
CameraControl |
setChromaDenoise(int value)
Set a command to adjust chroma denoise amount
|
CameraControl |
setContrast(int value)
Set a command to adjust image contrast
|
CameraControl |
setEffectMode(byte mode) |
CameraControl |
setEffectMode(RawCameraControl.EffectMode mode)
Set a command to specify effect mode
|
CameraControl |
setExternalTrigger(int numFramesBurst,
int numFramesDiscard)
Set a command to enable external trigger snapshot mode
A rising edge on the sensor FSIN pin will make it capture a sequence of
numFramesBurst frames. |
CameraControl |
setFrameSyncMode(byte mode) |
CameraControl |
setFrameSyncMode(RawCameraControl.FrameSyncMode mode)
Set the frame sync mode for continuous streaming operation mode,
translating to how the camera pin FSIN/FSYNC is used: input/output/disabled
|
CameraControl |
setLumaDenoise(int value)
Set a command to adjust luma denoise amount
|
CameraControl |
setManualExposure(int exposureTimeUs,
int sensitivityIso)
Set a command to manually specify exposure
|
void |
setManualExposure(Pointer exposureTime,
int sensitivityIso)
Set a command to manually specify exposure
|
CameraControl |
setManualFocus(byte lensPosition)
Set a command to specify manual focus position
|
CameraControl |
setManualWhiteBalance(int colorTemperatureK)
Set a command to manually specify white-balance color correction
|
CameraControl |
setSaturation(int value)
Set a command to adjust image saturation
|
CameraControl |
setSceneMode(byte mode) |
CameraControl |
setSceneMode(RawCameraControl.SceneMode mode)
Set a command to specify scene mode
|
CameraControl |
setSharpness(int value)
Set a command to adjust image sharpness
|
CameraControl |
setStartStreaming()
Set a command to start streaming
|
CameraControl |
setStopStreaming()
Set a command to stop streaming
|
CameraControl |
setStrobeDisable()
Disable STROBE output
|
CameraControl |
setStrobeExternal(int gpioNumber) |
CameraControl |
setStrobeExternal(int gpioNumber,
int activeLevel)
Enable STROBE output driven by a MyriadX GPIO, optionally configuring the polarity
This normally requires a FSIN/FSYNC/trigger input for MyriadX (usually GPIO 41),
to generate timings
|
CameraControl |
setStrobeSensor() |
CameraControl |
setStrobeSensor(int activeLevel)
Enable STROBE output on sensor pin, optionally configuring the polarity.
|
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic CameraControl(Pointer p)
Pointer(Pointer).public CameraControl(long size)
Pointer.position(long).public CameraControl()
public CameraControl(@SharedPtr RawCameraControl ptr)
public CameraControl position(long position)
public CameraControl getPointer(long i)
getPointer in class Buffer@ByRef public CameraControl setCaptureStill(@Cast(value="bool") boolean capture)
@ByRef public CameraControl setStartStreaming()
@ByRef public CameraControl setStopStreaming()
@ByRef public CameraControl setExternalTrigger(int numFramesBurst, int numFramesDiscard)
numFramesBurst frames. First numFramesDiscard will be skipped as
configured (can be set to 0 as well), as they may have degraded quality@ByRef public CameraControl setFrameSyncMode(RawCameraControl.FrameSyncMode mode)
@ByRef public CameraControl setFrameSyncMode(@Cast(value="dai::RawCameraControl::FrameSyncMode") byte mode)
@ByRef public CameraControl setStrobeSensor(int activeLevel)
@ByRef public CameraControl setStrobeSensor()
@ByRef public CameraControl setStrobeExternal(int gpioNumber, int activeLevel)
@ByRef public CameraControl setStrobeExternal(int gpioNumber)
@ByRef public CameraControl setStrobeDisable()
@ByRef public CameraControl setAutoFocusMode(RawCameraControl.AutoFocusMode mode)
CONTINUOUS_VIDEO@ByRef public CameraControl setAutoFocusMode(@Cast(value="dai::RawCameraControl::AutoFocusMode") byte mode)
@ByRef public CameraControl setAutoFocusTrigger()
@ByRef public CameraControl setAutoFocusLensRange(int infinityPosition, int macroPosition)
infinityPosition < macroPosition, valid values 0..255.
May help to improve autofocus in case the lens adjustment is not typical/tuned@ByRef public CameraControl setAutoFocusRegion(@Cast(value="uint16_t") short startX, @Cast(value="uint16_t") short startY, @Cast(value="uint16_t") short width, @Cast(value="uint16_t") short height)
startX - X coordinate of top left corner of regionstartY - Y coordinate of top left corner of regionwidth - Region widthheight - Region height@ByRef public CameraControl setManualFocus(@Cast(value="uint8_t") byte lensPosition)
lensPosition - specify lens position 0..255@ByRef public CameraControl setAutoExposureEnable()
@ByRef public CameraControl setAutoExposureLock(@Cast(value="bool") boolean lock)
lock - Auto exposure lock mode enabled or disabled@ByRef public CameraControl setAutoExposureRegion(@Cast(value="uint16_t") short startX, @Cast(value="uint16_t") short startY, @Cast(value="uint16_t") short width, @Cast(value="uint16_t") short height)
startX - X coordinate of top left corner of regionstartY - Y coordinate of top left corner of regionwidth - Region widthheight - Region height@ByRef public CameraControl setAutoExposureCompensation(int compensation)
compensation - Compensation value between -9..9, default 0@ByRef public CameraControl setAntiBandingMode(RawCameraControl.AntiBandingMode mode)
mode - Anti-banding mode to use. Default: MAINS_50_HZ@ByRef public CameraControl setAntiBandingMode(@Cast(value="dai::RawCameraControl::AntiBandingMode") byte mode)
@ByRef public CameraControl setManualExposure(@Cast(value="uint32_t") int exposureTimeUs, @Cast(value="uint32_t") int sensitivityIso)
exposureTimeUs - Exposure time in microsecondssensitivityIso - Sensitivity as ISO value, usual range 100..1600public void setManualExposure(@ByVal @Cast(value="std::chrono::microseconds*") Pointer exposureTime, @Cast(value="uint32_t") int sensitivityIso)
exposureTime - Exposure timesensitivityIso - Sensitivity as ISO value, usual range 100..1600@ByRef public CameraControl setAutoWhiteBalanceMode(RawCameraControl.AutoWhiteBalanceMode mode)
mode - Auto white balance mode to use. Default AUTO@ByRef public CameraControl setAutoWhiteBalanceMode(@Cast(value="dai::RawCameraControl::AutoWhiteBalanceMode") byte mode)
@ByRef public CameraControl setAutoWhiteBalanceLock(@Cast(value="bool") boolean lock)
lock - Auto white balance lock mode enabled or disabled@ByRef public CameraControl setManualWhiteBalance(int colorTemperatureK)
colorTemperatureK - Light source color temperature in kelvins, range 1000..12000@ByRef public CameraControl setBrightness(int value)
value - Brightness, range -10..10, default 0@ByRef public CameraControl setContrast(int value)
value - Contrast, range -10..10, default 0@ByRef public CameraControl setSaturation(int value)
value - Saturation, range -10..10, default 0@ByRef public CameraControl setSharpness(int value)
value - Sharpness, range 0..4, default 1@ByRef public CameraControl setLumaDenoise(int value)
value - Luma denoise amount, range 0..4, default 1@ByRef public CameraControl setChromaDenoise(int value)
value - Chroma denoise amount, range 0..4, default 1@ByRef public CameraControl setSceneMode(RawCameraControl.SceneMode mode)
mode - Scene mode@ByRef public CameraControl setSceneMode(@Cast(value="dai::RawCameraControl::SceneMode") byte mode)
@ByRef public CameraControl setEffectMode(RawCameraControl.EffectMode mode)
mode - Effect mode@ByRef public CameraControl setEffectMode(@Cast(value="dai::RawCameraControl::EffectMode") byte mode)
@Cast(value="bool") public boolean getCaptureStill()
@ByVal @Cast(value="std::chrono::microseconds*") public Pointer getExposureTime()
public int getSensitivity()
public int getLensPosition()
Copyright © 2023. All rights reserved.