public class PS3EyeFrameGrabber extends FrameGrabber
Modifier and Type | Class and Description |
---|---|
protected static class |
PS3EyeFrameGrabber.Triggered |
FrameGrabber.Array, FrameGrabber.Exception, FrameGrabber.ImageMode, FrameGrabber.PropertyEditor, FrameGrabber.SampleMode
Modifier and Type | Field and Description |
---|---|
protected PS3EyeFrameGrabber.Triggered |
triggered |
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 |
---|
PS3EyeFrameGrabber()
Default grabber, camera idx = 0, color mode, VGA resolution, 60 FPS frame rate.
|
PS3EyeFrameGrabber(int cameraIndex)
Color mode, VGA resolution, 60 FPS frame rate.
|
PS3EyeFrameGrabber(int cameraIndex,
int imageWidth,
int imageHeight,
int framerate) |
PS3EyeFrameGrabber(int cameraIndex,
int imageWidth,
int imageHeight,
int framerate,
Object applet)
Creates grabber, the caller can control basic image and grabbing parameters.
|
Modifier and Type | Method and Description |
---|---|
static PS3EyeFrameGrabber |
createDefault(File deviceFile) |
static PS3EyeFrameGrabber |
createDefault(int deviceNumber) |
static PS3EyeFrameGrabber |
createDefault(String devicePath) |
void |
dispose()
Release internal resources, the same as calling release()
|
protected void |
finalize() |
CLCamera |
getCamera()
Return internal CLCamera object, mainly to set camera parameters,
changing camera parameters must be done on stopped camera and before start() is called.
|
static int |
getCameraCount() |
static String[] |
getDeviceDescriptions() |
String |
getUUID() |
int[] |
grab_raw()
Grab one frame and return it as int[] (in the internal camera format RGBA).
|
IplImage |
grab_RGB4()
Grab and convert one frame, default timeout is (1 + 1000/framerate) [milliseconds].
|
Frame |
grab()
Grab one frame;
the caller have to make a copy of returned image before processing.
|
static String[] |
listPS3Cameras()
Ask the driver for all installed PS3 cameras.
|
static void |
main(String[] argv)
Just for testing - loads the CL CLEyeMulticam.dll file, invokes driver
and lists available cameras.
|
IplImage |
makeImage(int[] frame)
Make IplImage form raw int[] frame data
Note: NO array size checks!!
|
void |
release()
Release resources:
- CL driver internal resources binded with camera HW
- internal IplImage
After calling this function, this mini-grabber object instance can not be used anymore.
|
void |
start()
Start camera first (before grabbing).
|
void |
stop()
Stop camera.
|
String |
toString() |
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, getGamma, 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
protected PS3EyeFrameGrabber.Triggered triggered
public PS3EyeFrameGrabber() throws FrameGrabber.Exception
FrameGrabber.Exception
public PS3EyeFrameGrabber(int cameraIndex) throws FrameGrabber.Exception
cameraIndex
- system wide camera indexFrameGrabber.Exception
public PS3EyeFrameGrabber(int cameraIndex, int imageWidth, int imageHeight, int framerate) throws FrameGrabber.Exception
FrameGrabber.Exception
public PS3EyeFrameGrabber(int cameraIndex, int imageWidth, int imageHeight, int framerate, Object applet) throws FrameGrabber.Exception
cameraIndex
- - zero based index of used camera (OS system wide)imageWidth
- - width of imageimageHeight
- - height of imageframerate
- - frame rate - see CLCamera for allowed frame rates based on resolutionapplet
- - PApplet object required by CLCameraException
- - if parameters don't follow CLCamera definition or camera is not createdFrameGrabber.Exception
public static String[] getDeviceDescriptions() throws FrameGrabber.Exception
FrameGrabber.Exception
public static PS3EyeFrameGrabber createDefault(File deviceFile) throws FrameGrabber.Exception
FrameGrabber.Exception
public static PS3EyeFrameGrabber createDefault(String devicePath) throws FrameGrabber.Exception
FrameGrabber.Exception
public static PS3EyeFrameGrabber createDefault(int deviceNumber) throws FrameGrabber.Exception
FrameGrabber.Exception
public static void tryLoad() throws FrameGrabber.Exception
FrameGrabber.Exception
public static int getCameraCount()
public static String[] listPS3Cameras()
public IplImage makeImage(int[] frame)
frame
- int[] image frame datapublic int[] grab_raw()
public void trigger() throws FrameGrabber.Exception
trigger
in class FrameGrabber
FrameGrabber.Exception
public IplImage grab_RGB4()
public Frame grab() throws FrameGrabber.Exception
grab
in class FrameGrabber
FrameGrabber.Exception
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 release()
release
in class FrameGrabber
public void dispose()
protected void finalize() throws Throwable
public CLCamera getCamera()
public String getUUID()
public String toString()
public static void main(String[] argv)
argv
- - argv is not usedCopyright © 2024. All rights reserved.