public class VideoInputFrameGrabber extends FrameGrabber
FrameGrabber.Array, FrameGrabber.Exception, FrameGrabber.ImageMode, FrameGrabber.PropertyEditor, FrameGrabber.SampleMode
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 |
---|
VideoInputFrameGrabber(int deviceNumber) |
Modifier and Type | Method and Description |
---|---|
static VideoInputFrameGrabber |
createDefault(File deviceFile) |
static VideoInputFrameGrabber |
createDefault(int deviceNumber) |
static VideoInputFrameGrabber |
createDefault(String devicePath) |
protected void |
finalize() |
static String[] |
getDeviceDescriptions() |
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 |
start() |
void |
start(int connection) |
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, getFrameRate, 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, 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 String[] getDeviceDescriptions() throws FrameGrabber.Exception
FrameGrabber.Exception
public static VideoInputFrameGrabber createDefault(File deviceFile) throws FrameGrabber.Exception
FrameGrabber.Exception
public static VideoInputFrameGrabber createDefault(String devicePath) throws FrameGrabber.Exception
FrameGrabber.Exception
public static VideoInputFrameGrabber 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 void start() throws FrameGrabber.Exception
start
in class FrameGrabber
FrameGrabber.Exception
public void start(int connection) throws FrameGrabber.Exception
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.