jp.digitalmuseum.capture
インタフェース VideoCapture

既知の実装クラスの一覧:
VideoCaptureAbstractImpl, VideoCaptureDS, VideoCaptureDummy, VideoCaptureJMF, VideoCaptureQT

public interface VideoCapture
Interface for providing a way to capture images in real-time by web cameras and other capturing devices.
作成者:
Jun KATO

フィールドの概要
static float DEFAULT_FRAMERATE
          Default value for capturing frame rate.
static int DEFAULT_HEIGHT
           
static int DEFAULT_WIDTH
           
 
メソッドの概要
 float getFrameRate()
          Get frame rate (frame per second).
 int getHeight()
          Get height of the resolution.
 java.lang.String getIdentifier()
          Get a String expression of the identifier for this instance, with which users can rebuild the instance over sessions.
 java.lang.String getName()
          Get a name for this instance.
 int getWidth()
          Get width of the resolution.
 java.awt.image.BufferedImage grabFrame()
          Grab a frame in BufferedImage.
 byte[] grabFrameData()
          Grab a frame in a byte array.
 boolean isGrayScale()
          Get gray scale mode.
 boolean isPaused()
          Get if capturing is paused or not.
 boolean isReversedX()
          Get whether captured images are reversed by X-axis.
 boolean isReversedY()
          Get whether captured images are reversed by Y-axis.
 boolean isStarted()
          Get if capturing is started or not.
 void pause()
          Pause capturing.
Capturing process must be started before calling this method.
 void resume()
          Resume capturing.
Capturing process must be started before calling this method.
 void reverse(boolean reverseX, boolean reverseY)
          Reverse captured images by axis.
 void reverseX(boolean reverse)
          Reverse captured images by X-axis.
 void reverseY(boolean reverse)
          Reverse captured images by Y-axis.
 boolean setFrameRate(float fps)
          Set frame rate (frame per second).
 void setGrayScale(boolean getGrayScale)
          Set gray scale mode.
 boolean setSize(int width, int height)
          Set resolution.
 void setSource(java.lang.Object source)
          Specify a source for capturing images.
 void start()
          Start capturing images.
 void stop()
          Stop capturing.
 
フィールドの詳細

DEFAULT_FRAMERATE

static final float DEFAULT_FRAMERATE
Default value for capturing frame rate.
関連項目:
定数フィールド値

DEFAULT_WIDTH

static final int DEFAULT_WIDTH
関連項目:
定数フィールド値

DEFAULT_HEIGHT

static final int DEFAULT_HEIGHT
関連項目:
定数フィールド値
メソッドの詳細

getIdentifier

java.lang.String getIdentifier()
Get a String expression of the identifier for this instance, with which users can rebuild the instance over sessions.
戻り値:
String identifier.
関連項目:
getName()

getName

java.lang.String getName()
Get a name for this instance. Compared to getIdentifier(), this method may return the same name with another instance.
関連項目:
getIdentifier()

setFrameRate

boolean setFrameRate(float fps)
Set frame rate (frame per second).
戻り値:
Whether setting is succeeded or failed.

getFrameRate

float getFrameRate()
Get frame rate (frame per second).
戻り値:
Frame per second.

setSize

boolean setSize(int width,
                int height)
Set resolution.
戻り値:
Whether setting is succeeded or failed.

getWidth

int getWidth()
Get width of the resolution.
戻り値:
Width of the resolution in pixels.

getHeight

int getHeight()
Get height of the resolution.
戻り値:
Height of the resolution in pixels.

setGrayScale

void setGrayScale(boolean getGrayScale)
                  throws java.lang.Exception
Set gray scale mode.
例外:
java.lang.Exception

grabFrame

java.awt.image.BufferedImage grabFrame()
Grab a frame in BufferedImage.
戻り値:
Grabbed frame in BufferedImage.

grabFrameData

byte[] grabFrameData()
Grab a frame in a byte array.
戻り値:
Grabbed frame in a byte array.

setSource

void setSource(java.lang.Object source)
               throws java.lang.Exception
Specify a source for capturing images.
例外:
java.lang.Exception

start

void start()
           throws java.lang.Exception
Start capturing images.
例外:
java.lang.Exception

pause

void pause()
Pause capturing.
Capturing process must be started before calling this method.

resume

void resume()
Resume capturing.
Capturing process must be started before calling this method.

stop

void stop()
Stop capturing.

reverse

void reverse(boolean reverseX,
             boolean reverseY)
Reverse captured images by axis.
パラメータ:
reverseX - Whether to reverse images by X-axis or not.
reverseY - Whether to reverse images by Y-axis or not.

reverseX

void reverseX(boolean reverse)
Reverse captured images by X-axis.

reverseY

void reverseY(boolean reverse)
Reverse captured images by Y-axis.

isGrayScale

boolean isGrayScale()
Get gray scale mode.
戻り値:
Whether capturing images in gray scale or not.

isStarted

boolean isStarted()
Get if capturing is started or not.
戻り値:
Whether capturing is started or not.

isPaused

boolean isPaused()
Get if capturing is paused or not.
戻り値:
Whether capturing is paused or not.

isReversedX

boolean isReversedX()
Get whether captured images are reversed by X-axis.

isReversedY

boolean isReversedY()
Get whether captured images are reversed by Y-axis.


Copyright by Jun KATO (arc@dmz) at https://mr.digitalmuseum.jp/