public class FlyCapture2FrameGrabber extends FrameGrabber
FrameGrabber.Array, FrameGrabber.Exception, FrameGrabber.ImageMode, FrameGrabber.PropertyEditor, FrameGrabber.SampleMode
Modifier and Type | Field and Description |
---|---|
static int |
CAMERA_POWER |
static int |
IMAGE_DATA_FORMAT |
static int |
INITIALIZE |
static int |
IS_CAMERA_POWER |
static int |
SOFT_ASYNC_TRIGGER |
static int |
SOFTWARE_TRIGGER |
static int |
TRIGGER_INQ |
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 |
---|
FlyCapture2FrameGrabber(int deviceNumber) |
Modifier and Type | Method and Description |
---|---|
static FlyCapture2FrameGrabber |
createDefault(File deviceFile) |
static FlyCapture2FrameGrabber |
createDefault(int deviceNumber) |
static FlyCapture2FrameGrabber |
createDefault(String devicePath) |
protected void |
finalize() |
static String[] |
getDeviceDescriptions() |
double |
getFrameRate() |
double |
getGamma() |
int |
getImageHeight() |
int |
getImageWidth() |
Frame |
grab()
Each call to grab stores the new image in the memory address for the previously returned frame.
|
void |
release() |
void |
setImageMode(FrameGrabber.ImageMode imageMode) |
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, getImageMode, getImageScalingFlags, 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, 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 final int INITIALIZE
public static final int TRIGGER_INQ
public static final int IS_CAMERA_POWER
public static final int CAMERA_POWER
public static final int SOFTWARE_TRIGGER
public static final int SOFT_ASYNC_TRIGGER
public static final int IMAGE_DATA_FORMAT
public FlyCapture2FrameGrabber(int deviceNumber) throws FrameGrabber.Exception
FrameGrabber.Exception
public static String[] getDeviceDescriptions() throws FrameGrabber.Exception
FrameGrabber.Exception
public static FlyCapture2FrameGrabber createDefault(File deviceFile) throws FrameGrabber.Exception
FrameGrabber.Exception
public static FlyCapture2FrameGrabber createDefault(String devicePath) throws FrameGrabber.Exception
FrameGrabber.Exception
public static FlyCapture2FrameGrabber createDefault(int deviceNumber) throws FrameGrabber.Exception
FrameGrabber.Exception
public static void tryLoad() throws FrameGrabber.Exception
FrameGrabber.Exception
public void release() throws FrameGrabber.Exception
release
in class FrameGrabber
FrameGrabber.Exception
protected void finalize() throws Throwable
public double getGamma()
getGamma
in class FrameGrabber
public int getImageWidth()
getImageWidth
in class FrameGrabber
public int getImageHeight()
getImageHeight
in class FrameGrabber
public double getFrameRate()
getFrameRate
in class FrameGrabber
public void setImageMode(FrameGrabber.ImageMode imageMode)
setImageMode
in class FrameGrabber
public void start() throws FrameGrabber.Exception
start
in class FrameGrabber
FrameGrabber.Exception
public void stop() throws FrameGrabber.Exception
stop
in class FrameGrabber
FrameGrabber.Exception
public void trigger() throws FrameGrabber.Exception
trigger
in class FrameGrabber
FrameGrabber.Exception
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
Copyright © 2024. All rights reserved.