public class RealSenseFrameGrabber extends FrameGrabber
FrameGrabber.Array, FrameGrabber.Exception, FrameGrabber.ImageMode, FrameGrabber.PropertyEditor, FrameGrabber.SampleMode
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_COLOR_FRAMERATE |
static int |
DEFAULT_COLOR_HEIGHT |
static int |
DEFAULT_COLOR_WIDTH |
static int |
DEFAULT_DEPTH_HEIGHT |
static int |
DEFAULT_DEPTH_WIDTH |
aspectRatio, audioBitrate, audioChannels, audioCodec, audioCodecName, audioDisposition, audioMetadata, audioOptions, audioSideData, audioStream, bpp, charset, deinterlace, format, frameNumber, frameRate, gamma, imageHeight, imageMode, imageScalingFlags, imageWidth, list, maxDelay, metadata, numBuffers, options, pixelFormat, sampleFormat, sampleMode, sampleRate, SENSOR_PATTERN_BGGR, SENSOR_PATTERN_GBRG, SENSOR_PATTERN_GRBG, SENSOR_PATTERN_RGGB, sensorPattern, startTime, timeout, timestamp, triggerMode, videoBitrate, videoCodec, videoCodecName, videoDisposition, videoMetadata, videoOptions, videoSideData, videoStream
Constructor and Description |
---|
RealSenseFrameGrabber(int deviceNumber) |
Modifier and Type | Method and Description |
---|---|
static RealSenseFrameGrabber |
createDefault(File deviceFile) |
static RealSenseFrameGrabber |
createDefault(int deviceNumber) |
static RealSenseFrameGrabber |
createDefault(String devicePath) |
void |
disableColorStream() |
void |
disableDepthStream() |
void |
disableIRStream() |
void |
enableColorStream() |
void |
enableDepthStream() |
void |
enableIRStream() |
protected void |
finalize() |
ByteOrder |
getByteOrder() |
int |
getDepthFrameRate() |
int |
getDepthImageHeight() |
int |
getDepthImageWidth() |
float |
getDepthScale() |
static String[] |
getDeviceDescriptions() |
double |
getFrameRate() |
double |
getGamma() |
int |
getIRFrameRate() |
int |
getIRImageHeight() |
int |
getIRImageWidth() |
device |
getRealSenseDevice()
Warning can lead to unsafe situations.
|
Frame |
grab()
Each call to grab stores the new image in the memory address for the previously returned frame.
|
IplImage |
grabDepth() |
IplImage |
grabIR() |
IplImage |
grabVideo() |
device |
loadDevice() |
static void |
main(String[] args) |
void |
release() |
void |
set(int value)
Enable / disable color backlight compensation
|
void |
setAccuracy(int value)
Set the number of patterns projected per frame.
|
void |
setAutoExposureBottomEdge(int value)
(Requires LR-Auto-Exposure ON) Auto-Exposure region-of-interest bottom
edge (in pixels)
|
void |
setAutoExposureBrightRatioSetPoint(int value)
(Requires LR-Auto-Exposure ON) Bright ratio set point
|
void |
setAutoExposureKpDarkThreshold(int value)
(Requires LR-Auto-Exposure ON) Kp Dark Threshold
|
void |
setAutoExposureKpExposure(int value)
(Requires LR-Auto-Exposure ON) Kp Exposure
|
void |
setAutoExposureKpGain(int value)
(Requires LR-Auto-Exposure ON) Kp Gain
|
void |
setAutoExposureLeftEdge(int value)
(Requires LR-Auto-Exposure ON) Auto-Exposure region-of-interest left edge
(in pixels)
|
void |
setAutoExposureMeanIntensitySetPoint(int value)
(Requires LR-Auto-Exposure ON) Mean intensity set point
|
void |
setAutoExposureRightEdge(int value)
(Requires LR-Auto-Exposure ON) Auto-Exposure region-of-interest right
edge (in pixels)
|
void |
setAutoExposureTopEdge(int value)
(Requires LR-Auto-Exposure ON) Auto-Exposure region-of-interest top edge
(in pixels)
|
void |
setBackgroundSegmentationPreset() |
void |
setByteOrder(ByteOrder byteOrder) |
void |
setColorBrightness(int value)
Color image brightness
|
void |
setColorContrast(int value)
COLOR image contrast
|
void |
setColorEnableAutoExposure(int value)
Enable / disable color image auto-exposure
|
void |
setColorEnableAutoWhiteBalance(int value)
Enable / disable color image auto-white-balance
|
void |
setColorExposure(int value)
Controls exposure time of color camera.
|
void |
setColorGain(int value)
Color image gain
|
void |
setColorGamma(int value)
Color image gamma setting
|
void |
setColorHue(int value)
Color image hue
|
void |
setColorSaturation(int value)
Color image saturation setting
|
void |
setColorSharpness(int value)
Color image sharpness setting
|
void |
setColorWhiteBalance(int value)
Controls white balance of color image.
|
void |
setConfidenceThreshold(int value)
The confidence level threshold used by the Depth algorithm pipe to set
whether a pixel will get a valid range or will be marked with invalid
range
|
void |
setCursorPreset() |
void |
setDefaultPreset() |
void |
setDepthClampMax(int value)
Maximum depth in current depth units that will be output.
|
void |
setDepthClampMin(int value)
Minimum depth in current depth units that will be output.
|
void |
setDepthControlEstimateMedianDecrement(int value)
Value to subtract when estimating the median of the correlation surface
|
void |
setDepthControlEstimateMedianIncrement(int value)
Value to add when estimating the median of the correlation surface
|
void |
setDepthControlLRThreshold(int value)
Left-Right threshold value for depth calculation
|
void |
setDepthControlMedianThreshold(int value)
A threshold by how much the winning score must beat the median
|
void |
setDepthControlMinimumThreshold(int value)
The minimum correlation score that is considered acceptable
|
void |
setDepthControlNeighborThreshold(int value)
Neighbor threshold value for depth calculation
|
void |
setDepthControlScoreMaximumThreshold(int value)
The maximum correlation score that is considered acceptable
|
void |
setDepthControlSecondPeakThreshold(int value)
A threshold on how much the minimum correlation score must differ from
the next best score
|
void |
setDepthControlTextureCountThreshold(int value)
A parameter for determining whether the texture in the region is
sufficient to justify a depth result
|
void |
setDepthControlTextureDifference(int value)
A parameter for determining whether the texture in the region is
sufficient to justify a depth result
|
void |
setDepthFrameRate(int frameRate) |
void |
setDepthImageHeight(int depthImageHeight) |
void |
setDepthImageWidth(int depthImageWidth) |
void |
setDepthUnits(int value)
Micrometers per increment in integer depth values, 1000 is default (mm
scale).
|
void |
setDisparityMultiplier(int value)
The disparity scale factor used when in disparity output mode.
|
void |
setDisparityShift(int value)
{0 - 512}.
|
void |
setDynamicFPS(int value)
(F200-only) Allows to reduce FPS without restarting streaming.
|
void |
setEmitterEnabled(int value)
Enables / disables R200 emitter
|
void |
setFilterOption(int value)
Set the filter to apply to each depth frame.
|
void |
setFisheyeAutoExposureAntiflickerRate(int value)
Fisheye auto-exposure anti-flicker rate, can be 50 or 60 Hz
|
void |
setFisheyeAutoExposureMode(int value)
0 - static auto-exposure, 1 - anti-flicker auto-exposure, 2 - hybrid
|
void |
setFisheyeAutoExposurePixelSampleRate(int value)
In Fisheye auto-exposure sample frame every given number of pixels
|
void |
setFisheyeAutoExposureSkipFrames(int value)
In Fisheye auto-exposure sample every given number of frames
|
void |
setFisheyeEnableAutoExposure(int value)
Enable / disable fisheye auto-exposure
|
void |
setFisheyeExposure(int value)
Fisheye image exposure time in msec
|
void |
setFisheyeExternalTrigger(int value)
Enables / disables fisheye external trigger mode.
|
void |
setFisheyeGain(int value)
Fisheye image gain
|
void |
setFisheyeStobe(int value)
Enables / disables fisheye strobe.
|
void |
setFramesQueueSize(int value)
Number of frames the user is allowed to keep per stream.
|
void |
setGestureRecognitionPreset() |
void |
setHardwareLoggerEnabled(int value)
Enable / disable fetching log data from the device
|
void |
setIRFrameRate(int IRFrameRate) |
void |
setIRImageHeight(int IRImageHeight) |
void |
setIRImageWidth(int IRImageWidth) |
void |
setIROnlyPreset() |
void |
setLaserPower(int value)
Power of the F200 / SR300 projector, with 0 meaning projector off
|
void |
setLongRange() |
void |
setLR_AutoExposureEnabled(int value)
Enables / disables R200 auto-exposure.
|
void |
setLR_Exposure(int value)
This control allows manual adjustment of the exposure time value for the
L/R imagers
|
void |
setLR_Gain(int value)
IR image gain
|
void |
setMidRange() |
void |
setMotionRange(int value)
Motion vs.
|
void |
setObjectScanningPreset() |
void |
setOption(int option,
int value) |
void |
setPreset(int preset) |
void |
setShortRange() |
void |
start() |
void |
stop() |
void |
trigger() |
static void |
tryLoad() |
close, create, create, create, create, createArray, delayedGrab, flush, get, getAspectRatio, getAudioBitrate, getAudioChannels, getAudioCodec, getAudioCodecName, getAudioDisposition, getAudioMetadata, getAudioMetadata, getAudioOption, getAudioOptions, getAudioSideData, getAudioSideData, getAudioStream, getBitsPerPixel, getCharset, getDefault, getDelayedFrame, getDelayedTime, getFormat, getFrameNumber, getImageHeight, getImageMode, getImageScalingFlags, getImageWidth, getLengthInFrames, getLengthInTime, getMaxDelay, getMetadata, getMetadata, getNumBuffers, getOption, getOptions, getPixelFormat, getSampleFormat, getSampleMode, getSampleRate, getSensorPattern, getTimeout, getTimestamp, getVideoBitrate, getVideoCodec, getVideoCodecName, getVideoDisposition, getVideoMetadata, getVideoMetadata, getVideoOption, getVideoOptions, getVideoSideData, getVideoSideData, getVideoStream, grabAtFrameRate, grabFrame, init, isDeinterlace, isTriggerMode, resetStartTime, restart, setAspectRatio, setAudioBitrate, setAudioChannels, setAudioCodec, setAudioCodecName, setAudioDisposition, setAudioMetadata, setAudioMetadata, setAudioOption, setAudioOptions, setAudioSideData, setAudioSideData, setAudioStream, setBitsPerPixel, setCharset, setDeinterlace, setFormat, setFrameNumber, setFrameRate, setGamma, setImageHeight, setImageMode, setImageScalingFlags, setImageWidth, setMaxDelay, setMetadata, setMetadata, setNumBuffers, setOption, setOptions, setPixelFormat, setSampleFormat, setSampleMode, setSampleRate, setSensorPattern, setTimeout, setTimestamp, setTriggerMode, setVideoBitrate, setVideoCodec, setVideoCodecName, setVideoDisposition, setVideoMetadata, setVideoMetadata, setVideoOption, setVideoOptions, setVideoSideData, setVideoSideData, setVideoStream, waitForTimestamp
public static int DEFAULT_DEPTH_WIDTH
public static int DEFAULT_DEPTH_HEIGHT
public static int DEFAULT_COLOR_WIDTH
public static int DEFAULT_COLOR_HEIGHT
public static int DEFAULT_COLOR_FRAMERATE
public static String[] getDeviceDescriptions() throws FrameGrabber.Exception
FrameGrabber.Exception
public ByteOrder getByteOrder()
public void setByteOrder(ByteOrder byteOrder)
public static RealSenseFrameGrabber createDefault(int deviceNumber) throws FrameGrabber.Exception
FrameGrabber.Exception
public static RealSenseFrameGrabber createDefault(File deviceFile) throws FrameGrabber.Exception
FrameGrabber.Exception
public static RealSenseFrameGrabber createDefault(String devicePath) throws FrameGrabber.Exception
FrameGrabber.Exception
public static void tryLoad() throws FrameGrabber.Exception
FrameGrabber.Exception
public static void main(String[] args)
public void enableColorStream()
public void disableColorStream()
public void enableDepthStream()
public void disableDepthStream()
public void enableIRStream()
public void disableIRStream()
public void release() throws FrameGrabber.Exception
release
in class FrameGrabber
FrameGrabber.Exception
protected void finalize() throws Throwable
public device getRealSenseDevice()
public float getDepthScale()
public double getFrameRate()
getFrameRate
in class FrameGrabber
public device loadDevice() throws FrameGrabber.Exception
FrameGrabber.Exception
public void start() throws FrameGrabber.Exception
start
in class FrameGrabber
FrameGrabber.Exception
public void stop() throws FrameGrabber.Exception
stop
in class FrameGrabber
Exception
FrameGrabber.Exception
public IplImage grabDepth()
public IplImage grabVideo()
public IplImage grabIR()
public Frame grab() throws FrameGrabber.Exception
FrameGrabber
grabber.grab() == grabber.grab()
Frame.clone()
the
returned frame as the next call to grab will overwrite your existing image's memory.
grab
in class FrameGrabber
FrameGrabber.Exception
public void trigger() throws FrameGrabber.Exception
trigger
in class FrameGrabber
FrameGrabber.Exception
public int getDepthImageWidth()
public void setDepthImageWidth(int depthImageWidth)
public int getDepthImageHeight()
public void setDepthImageHeight(int depthImageHeight)
public int getIRImageWidth()
public void setIRImageWidth(int IRImageWidth)
public int getIRImageHeight()
public void setIRImageHeight(int IRImageHeight)
public int getDepthFrameRate()
public void setDepthFrameRate(int frameRate)
public int getIRFrameRate()
public void setIRFrameRate(int IRFrameRate)
public double getGamma()
getGamma
in class FrameGrabber
public void setPreset(int preset)
public void setShortRange()
public void setLongRange()
public void setMidRange()
public void setDefaultPreset()
public void setObjectScanningPreset()
public void setCursorPreset()
public void setGestureRecognitionPreset()
public void setBackgroundSegmentationPreset()
public void setIROnlyPreset()
public void setOption(int option, int value)
public void set(int value)
public void setColorBrightness(int value)
public void setColorContrast(int value)
public void setColorExposure(int value)
public void setColorGain(int value)
public void setColorGamma(int value)
public void setColorHue(int value)
public void setColorSaturation(int value)
public void setColorSharpness(int value)
public void setColorWhiteBalance(int value)
public void setColorEnableAutoExposure(int value)
public void setColorEnableAutoWhiteBalance(int value)
public void setLaserPower(int value)
public void setAccuracy(int value)
public void setMotionRange(int value)
public void setFilterOption(int value)
public void setConfidenceThreshold(int value)
public void setDynamicFPS(int value)
public void setLR_AutoExposureEnabled(int value)
public void setLR_Gain(int value)
public void setLR_Exposure(int value)
public void setEmitterEnabled(int value)
public void setDepthUnits(int value)
public void setDepthClampMin(int value)
public void setDepthClampMax(int value)
public void setDisparityMultiplier(int value)
public void setDisparityShift(int value)
public void setAutoExposureMeanIntensitySetPoint(int value)
public void setAutoExposureBrightRatioSetPoint(int value)
public void setAutoExposureKpGain(int value)
public void setAutoExposureKpExposure(int value)
public void setAutoExposureKpDarkThreshold(int value)
public void setAutoExposureTopEdge(int value)
public void setAutoExposureBottomEdge(int value)
public void setAutoExposureLeftEdge(int value)
public void setAutoExposureRightEdge(int value)
public void setDepthControlEstimateMedianDecrement(int value)
public void setDepthControlEstimateMedianIncrement(int value)
public void setDepthControlMedianThreshold(int value)
public void setDepthControlMinimumThreshold(int value)
public void setDepthControlScoreMaximumThreshold(int value)
public void setDepthControlTextureCountThreshold(int value)
public void setDepthControlTextureDifference(int value)
public void setDepthControlSecondPeakThreshold(int value)
public void setDepthControlNeighborThreshold(int value)
public void setDepthControlLRThreshold(int value)
public void setFisheyeExposure(int value)
public void setFisheyeGain(int value)
public void setFisheyeStobe(int value)
public void setFisheyeExternalTrigger(int value)
public void setFisheyeEnableAutoExposure(int value)
public void setFisheyeAutoExposureMode(int value)
public void setFisheyeAutoExposureAntiflickerRate(int value)
public void setFisheyeAutoExposurePixelSampleRate(int value)
public void setFisheyeAutoExposureSkipFrames(int value)
public void setFramesQueueSize(int value)
public void setHardwareLoggerEnabled(int value)
Copyright © 2023. All rights reserved.