|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent javax.swing.JPanel jp.go.aist.dmrc.platform.beans.media.PFVideoRecorder
public class PFVideoRecorder
映像コンポーネント。 映像ファイルの再生表示とカメラやスクリーン映像表示およびファイル保存を行う。 また、映像からの静止画ファイル保存と連続静止画からの映像ファイル作成機能を有する。 このコンポーネントはJMFの機能を用いている。 このコンポーネントから以下のイベントが発生する。
トリガー | 結果データ | イベント番号 |
---|---|---|
静止画連続取得中 | 処理完了数 | 0 |
静止画連続取得完了 | なし | 1 |
静止画連続取得中止 | なし | 2 |
静止画連続取得エラー | なし | -1 |
makeProcessedImages起動 | 対象画像数 | 3 |
makeProcessedImages処理中 | 処理完了数 | 4 |
makeProcessedImages処理完了 | なし | 5 |
ファイル再生開始 | なし | 10 |
ファイル再生停止 | なし | 11 |
ファイル再生終端 | なし | 12 |
トリガー | 生成データ | イベント番号 | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
位置取得用画像処理メソッド起動 | 位置 | 0 | ||||||||
画像処理メソッド起動 | 処理後の画像 | 1 |
入れ子のクラスの概要 |
---|
クラス javax.swing.JPanel から継承された入れ子のクラス/インタフェース |
---|
javax.swing.JPanel.AccessibleJPanel |
クラス javax.swing.JComponent から継承された入れ子のクラス/インタフェース |
---|
javax.swing.JComponent.AccessibleJComponent |
クラス java.awt.Container から継承された入れ子のクラス/インタフェース |
---|
java.awt.Container.AccessibleAWTContainer |
クラス java.awt.Component から継承された入れ子のクラス/インタフェース |
---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
フィールドの概要 |
---|
クラス javax.swing.JComponent から継承されたフィールド |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
クラス java.awt.Component から継承されたフィールド |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
インタフェース java.awt.image.ImageObserver から継承されたフィールド |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
コンストラクタの概要 | |
---|---|
PFVideoRecorder()
コンポーネントを生成する。 |
メソッドの概要 | |
---|---|
void |
addPFDataCreateListener(PFDataCreateListener lis)
引数で与えられたイベントリスナを登録し、 データ生成イベント発生時に処理を行う対象とする。 |
void |
addPFProcessTerminateListener(PFProcessTerminateListener lis)
引数で与えられたイベントリスナを登録し、 処理完了イベント発生時に処理を行う対象とする。 |
void |
finalize()
終了処理。 |
void |
finishProcessingImages()
画像処理を終了する。 |
protected void |
firePFProcessTerminate(PFProcessTerminateEvent event)
処理終了イベントを発生させる。 |
int |
getCoarseLevelForProcessingImages()
画像処理用の低解像度レベルを取得する。 |
int |
getComponentID()
コンポーネントIDを取得する。 |
java.lang.String |
getComponentKey()
コンポーネントキーを取得する。 |
PFMultiLocaleString |
getComponentKeys()
全ロケール分のコンポーネントキーを返す。 |
java.lang.String |
getComponentName()
コンポーネント名称を取得する。 |
java.lang.String |
getComponentPublicName()
コンポーネント公開名を取得する. |
java.lang.String |
getComponentString()
コンポーネントの文字列表現を取得する。 |
PFObjectList |
getDeviceListForVideo()
キャプチャデバイスリストを取得する。 |
double |
getDuration()
ファイルの再生に要する時間を取得する。 |
float |
getGainLevel()
音量レベルを取得する。 |
java.util.Date |
getGrabDate()
静止画取得日時を取得する。 |
double |
getMediaTime()
再生位置を取得する。 |
int |
getModeForAutoBinarization()
画像処理モード自動二値化の番号を取得する。 |
int |
getModeForBlur()
画像処理モードぼかしの番号を取得する。 |
int |
getModeForBrightestPoint()
画像処理モード最輝点の番号を取得する。 |
int |
getModeForEdgeDetection()
画像処理モードエッジ検出の番号を取得する。 |
int |
getModeForFixedBinarization()
画像処理モード固定二値化の番号を取得する。 |
int |
getModeForNoProcessingImages()
画像処理モードなしの番号を取得する。 |
int |
getModeForPixelization()
画像処理モードモザイクの番号を取得する。 |
int |
getModeForProcessingImages()
画像処理モード番号を取得する。 |
int |
getModeForPtileBinarization()
画像処理モード固定割合二値化の番号を取得する。 |
boolean |
getMute()
ミュート状態を取得する。 |
java.lang.String |
getOutputFileTypeAVI()
動画記録用のファイルタイプAVIの文字列を取得する。 |
java.lang.String |
getOutputFileTypeMOV()
動画記録用のファイルタイプMOVの文字列を取得する。 |
java.util.Iterator |
getPFDataCreateListenerList()
データ生成イベントリスナ配列を取得する。 |
java.util.Iterator |
getPFProcessTerminateListenerList()
処理完了イベントリスナ配列を取得する。 |
boolean |
getPlaybackLoop()
ループ再生状態を取得する。 |
java.awt.Point |
getPointOnScreen(java.awt.Point point)
画素の画面内での位置を取得する。 |
java.awt.Point |
getPointOnTarget(java.awt.Point point,
int x,
int y,
int width,
int height,
boolean mirror_h,
boolean mirror_v)
画素の指定範囲内での対応位置を取得する。 |
java.awt.Point |
getPointOnTarget(java.awt.Point point,
java.awt.Rectangle target,
boolean mirror_h,
boolean mirror_v)
画素の指定範囲内での対応位置を取得する。 |
java.awt.Dimension |
getPreferredSize()
推奨サイズを取得する。 |
boolean |
getPropertyEditable()
画面上から属性が編集可能かどうかを取得する。 |
float |
getRate()
再生速度を取得する。 |
int |
getSizeForProcessingImages()
画像処理用の画素サイズを取得する。 |
int |
getThresholdForProcessingImages()
画像処理用の閾値を取得する。 |
java.awt.Dimension |
getVideoDimension()
映像のサイズ(解像度)を取得する。 |
java.awt.Image |
grabCurrentImage()
表示中の映像から静止画を取得する。 |
void |
grabImages(long interval,
int number,
java.lang.String target_dir)
表示中の映像から連続した静止画を取得して画像ファイルに保存する。 |
protected void |
init()
初期化処理。 |
void |
interruptGrabbingImages()
連続静止画取得を中止する。 |
boolean |
isAllowPullTransfer()
他PFからのPull型コンポーネント転送要求に対する可否属性を取得する. |
boolean |
isAllowPushTransfer()
他PFへのPush型コンポーネント転送要求に対する可否属性を取得する. |
boolean |
isAllowRemoteInvocation()
他PFからのコンポーネント連携要求に対する可否属性を取得する. |
boolean |
isControlPanelVisible()
ファイル再生用コントロールパネル表示の有無を取得する。 |
boolean |
isPlaying()
再生中かどうか判定する。 |
void |
localeUpdated()
ロケール変更に対応する。 |
void |
makeProcessedImages(java.lang.String open_dirname)
指定位置にある画像ファイルに画像処理を適用する。 |
void |
makeVideoFromImages(java.lang.String open_dirname,
java.lang.String save_filename,
int fps)
指定フォルダ以下のJPEG画像のリストからQuickTime映像ファイルを作成する。 |
void |
makeVideoFromImages(java.util.Vector inputFiles,
java.lang.String save_filename,
int fps)
JPEG画像ファイル名のリストからQuickTime映像ファイルを作成する。 |
void |
openFile(java.lang.String filename)
再生ファイルを開く。 |
void |
pauseCapture()
動画ファイルへの記録を中断する。 |
void |
playFile(java.lang.String filename)
ファイルを再生する。 |
void |
readXML(PFXMLLoader in)
XMLを入力する. |
void |
removePFDataCreateListener(PFDataCreateListener lis)
引数で与えられたイベントリスナを削除し、 データ生成イベント発生時に処理を行う対象から外す。 |
void |
removePFProcessTerminateListener(PFProcessTerminateListener lis)
引数で与えられたイベントリスナを削除し、 処理完了イベント発生時に処理を行う対象から外す。 |
void |
resumeCapture()
動画ファイルへの記録を再開する。 |
void |
setAllowPullTransfer(boolean flag)
他PFからのPull型コンポーネント転送要求に対する可否属性を設定する. |
void |
setAllowPushTransfer(boolean flag)
他PFへのPush型コンポーネント転送要求に対する可否属性を設定する. |
void |
setAllowRemoteInvocation(boolean flag)
他PFからのコンポーネント連携要求に対する可否属性を設定する. |
void |
setCoarseLevelForProcessingImages(int level)
画像処理用の低解像度レベルを設定する。 |
void |
setComponentID(int id)
コンポーネントIDを設定する。 |
void |
setComponentKey(java.lang.String key)
コンポーネントキーを設定する。 |
void |
setComponentKeys(PFMultiLocaleString keys)
全ロケール分のコンポーネントキーを設定する。 |
void |
setComponentPublicName(java.lang.String publicName)
コンポーネント公開名を設定する. |
void |
setControlPanelVisible(boolean visible)
ファイル再生用コントロールパネル表示の有無を設定する。 |
void |
setGainLevel(float level)
音量レベルを設定する。 |
void |
setMediaTime(double sec)
再生位置を設定する。 |
void |
setMediaTimeHead()
再生位置を先頭に設定する。 |
void |
setMediaTimeTail()
再生位置を末尾に設定する。 |
void |
setModeForProcessingImages(int mode)
画像処理モード番号を設定する。 |
void |
setMute(boolean mute)
ミュート状態を設定する。 |
void |
setOutputFileType(java.lang.String type)
動画記録用のファイルタイプ文字列を設定する。 |
void |
setPlaybackLoop(boolean val)
ループ再生状態を設定する。 |
void |
setPropertyEditable(boolean flag)
画面上から属性が編集可能かどうかを設定する。 |
void |
setRate(float factor)
再生速度比率を設定する。 |
void |
setSizeForProcessingImages(int size)
画像処理用の画素サイズを指定する。 |
void |
setThresholdForProcessingImages(int threshold)
画像処理用の閾値を設定する。 |
void |
startCapture(java.lang.String filename)
表示中の映像から動画ファイルへの記録を開始する。 |
void |
startMonitoringCamera()
カメラ映像の表示を開始する。 |
void |
startMonitoringCamera(boolean forImage)
カメラ映像の表示を開始する。 |
void |
startMonitoringCameraForImage()
カメラ映像の表示を開始する。 |
void |
startMonitoringCameraForImageAt(int index)
カメラ映像の表示を開始する。 |
void |
startMonitoringCameraForMovie(java.lang.String encoding,
java.lang.String size,
float fps,
boolean useAudio)
カメラ映像の表示を開始する。 |
void |
startMonitoringScreen(java.awt.Component comp,
float fps)
スクリーン映像の表示を開始する。 |
void |
startMonitoringScreen(int x,
int y,
int width,
int height,
float fps)
スクリーン映像の表示を開始する。 |
void |
startMonitoringScreen(int x,
int y,
int width,
int height,
float fps,
boolean forImage)
スクリーン映像の表示を開始する。 |
void |
startPlaying()
再生を開始する。 |
void |
startProcessingImagesByAutoBinarization()
自動二値化処理を開始する。 |
void |
startProcessingImagesByBlurring()
ぼかし処理を開始する。 |
void |
startProcessingImagesByEdgeDetection()
エッジ検出処理を開始する。 |
void |
startProcessingImagesByFixedBinarization(int threshold)
固定値を閾値として二値化処理を開始する。 |
void |
startProcessingImagesByPixelization(int size)
モザイク処理を開始する。 |
void |
startProcessingImagesByPtileBinarization(int threshold)
固定割合の二値化処理を開始する。 |
void |
startProcessingImagesToGetBrightestPoint(int threshold)
最輝点取得の画像処理を開始する。 |
void |
stopCapture()
動画ファイルへの記録を終了する。 |
void |
stopPlaying()
再生を停止する。 |
void |
transcode(java.lang.String input,
java.lang.String output,
int start,
int end,
java.lang.String encoding,
java.lang.String size,
boolean useAudio)
映像ファイルの形式変換をする(未完成)。 |
void |
writeXML(PFXMLGenerator out)
XMLを出力する. |
クラス javax.swing.JPanel から継承されたメソッド |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
クラス javax.swing.JComponent から継承されたメソッド |
---|
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
クラス java.awt.Container から継承されたメソッド |
---|
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
クラス java.awt.Component から継承されたメソッド |
---|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
コンストラクタの詳細 |
---|
public PFVideoRecorder()
メソッドの詳細 |
---|
public java.lang.String getComponentName()
PFComponent
内の getComponentName
public java.lang.String getComponentKey()
PFComponent
内の getComponentKey
public void setComponentKey(java.lang.String key)
PFComponent
内の setComponentKey
key
- コンポーネントキーpublic PFMultiLocaleString getComponentKeys()
public void setComponentKeys(PFMultiLocaleString keys)
keys
- 全ロケール分のコンポーネントキーpublic int getComponentID()
PFComponent
内の getComponentID
public void setComponentID(int id)
PFComponentBus
から設定される。
各コンポーネント内では操作しないこと。
PFComponent
内の setComponentID
id
- 設定するコンポーネントIDpublic java.lang.String getComponentString()
PFComponent
内の getComponentString
public boolean getPropertyEditable()
PFPropertyEditableComponent
内の getPropertyEditable
public void setPropertyEditable(boolean flag)
PFPropertyEditableComponent
内の setPropertyEditable
flag
- 編集可否(true/false)public java.util.Iterator getPFProcessTerminateListenerList()
public void addPFProcessTerminateListener(PFProcessTerminateListener lis)
PFProcessTerminateEventSource
内の addPFProcessTerminateListener
lis
- 追加対象イベントリスナpublic void removePFProcessTerminateListener(PFProcessTerminateListener lis)
lis
- 削除対象イベントリスナpublic java.util.Iterator getPFDataCreateListenerList()
PFDataCreateEventSource
内の getPFDataCreateListenerList
public void addPFDataCreateListener(PFDataCreateListener lis)
PFDataCreateEventSource
内の addPFDataCreateListener
lis
- 追加対象イベントリスナpublic void removePFDataCreateListener(PFDataCreateListener lis)
PFDataCreateEventSource
内の removePFDataCreateListener
lis
- 削除対象イベントリスナpublic void localeUpdated()
PFComponent
内の localeUpdated
public void writeXML(PFXMLGenerator out) throws java.io.IOException
PFXMLSerializable
内の writeXML
out
- XML出力ユーティリティ
java.io.IOException
public void readXML(PFXMLLoader in)
PFXMLSerializable
内の readXML
in
- XML入力ユーティリティpublic java.lang.String getComponentPublicName()
PFComponent
内の getComponentPublicName
public void setComponentPublicName(java.lang.String publicName) throws PFComponentException
PFComponent
内の setComponentPublicName
publicName
- 設定するコンポーネント公開名
PFComponentException
- 規約に反する名前が設定されようとした場合public boolean isAllowRemoteInvocation()
PFComponent
内の isAllowRemoteInvocation
public void setAllowRemoteInvocation(boolean flag)
PFComponent
内の setAllowRemoteInvocation
flag
- コンポーネント連携要求に対する可否public boolean isAllowPullTransfer()
PFComponent
内の isAllowPullTransfer
public void setAllowPullTransfer(boolean flag)
PFComponent
内の setAllowPullTransfer
flag
- Pull型コンポーネント転送要求に対する可否public boolean isAllowPushTransfer()
PFComponent
内の isAllowPushTransfer
public void setAllowPushTransfer(boolean flag)
PFComponent
内の setAllowPushTransfer
flag
- Push型コンポーネント転送要求に対する可否protected void firePFProcessTerminate(PFProcessTerminateEvent event)
event
- 処理終了イベントpublic PFObjectList getDeviceListForVideo()
public void startMonitoringScreen(int x, int y, int width, int height, float fps) throws PFComponentException
x
- スクリーンX座標y
- スクリーンY座標width
- 幅height
- 高さfps
- フレームレート
PFComponentException
- 表示エラーpublic void startMonitoringScreen(java.awt.Component comp, float fps) throws PFComponentException
comp
- 画面部品コンポーネントfps
- フレームレート
PFComponentException
- 表示エラーpublic void startMonitoringScreen(int x, int y, int width, int height, float fps, boolean forImage) throws PFComponentException
x
- スクリーンX座標y
- スクリーンY座標width
- 幅height
- 高さfps
- フレームレートforImage
- 静止画取得モード指定
PFComponentException
- 表示エラーpublic void startMonitoringCamera() throws PFComponentException
PFComponentException
- 表示エラーpublic void startMonitoringCameraForImage() throws PFComponentException
PFComponentException
- 表示エラーpublic void setOutputFileType(java.lang.String type)
type
- ファイルタイプ文字列public java.lang.String getOutputFileTypeAVI()
public java.lang.String getOutputFileTypeMOV()
public void startMonitoringCamera(boolean forImage) throws PFComponentException
forImage
- 静止画取得モード指定
PFComponentException
- 表示エラーpublic void startMonitoringCameraForImageAt(int index) throws PFComponentException
index
- カメラインデックス(0-)
PFComponentException
- 表示エラーpublic void startMonitoringCameraForMovie(java.lang.String encoding, java.lang.String size, float fps, boolean useAudio) throws PFComponentException
encoding
- RGBまたはyuvsize
- 解像度(640x480等で指定)fps
- フレームレートuseAudio
- 音声の有無
PFComponentException
- 表示エラーpublic void startCapture(java.lang.String filename)
filename
- ファイル名public void pauseCapture()
public void resumeCapture()
public void stopCapture() throws PFComponentException
public void finalize()
java.lang.Object
内の finalize
public void grabImages(long interval, int number, java.lang.String target_dir)
interval
- 間隔(msec)number
- 枚数target_dir
- 保存先フォルダpublic void interruptGrabbingImages()
public java.awt.Image grabCurrentImage() throws PFComponentException
PFComponentException
- 画像取得失敗public java.util.Date getGrabDate()
public void makeProcessedImages(java.lang.String open_dirname) throws PFComponentException
open_dirname
- 指定位置
PFComponentException
public void makeVideoFromImages(java.lang.String open_dirname, java.lang.String save_filename, int fps) throws PFComponentException
open_dirname
- 画像フォルダ名save_filename
- 映像ファイル名fps
- フレームレート
PFComponentException
- 作成失敗public void makeVideoFromImages(java.util.Vector inputFiles, java.lang.String save_filename, int fps) throws PFComponentException
inputFiles
- JPEG画像ファイル名のリストsave_filename
- 映像ファイル名
PFComponentException
public void setCoarseLevelForProcessingImages(int level)
level
- レベルpublic int getCoarseLevelForProcessingImages()
public void setModeForProcessingImages(int mode)
mode
- モード番号public int getModeForProcessingImages()
public int getModeForNoProcessingImages()
public int getModeForBrightestPoint()
public int getModeForPixelization()
public int getModeForFixedBinarization()
public int getModeForAutoBinarization()
public int getModeForPtileBinarization()
public int getModeForEdgeDetection()
public int getModeForBlur()
public void setThresholdForProcessingImages(int threshold)
threshold
- 閾値public int getThresholdForProcessingImages()
public void setSizeForProcessingImages(int size)
size
- 画素サイズpublic int getSizeForProcessingImages()
public void startProcessingImagesToGetBrightestPoint(int threshold)
threshold
- 閾値public void startProcessingImagesByPixelization(int size)
size
- モザイクのサイズpublic void startProcessingImagesByFixedBinarization(int threshold)
threshold
- 閾値(0-255)public void startProcessingImagesByAutoBinarization()
public void startProcessingImagesByPtileBinarization(int threshold)
threshold
- 固定割合(%)public void startProcessingImagesByEdgeDetection()
public void startProcessingImagesByBlurring()
public void finishProcessingImages()
public java.awt.Point getPointOnScreen(java.awt.Point point)
point
- 画素の座標
public java.awt.Point getPointOnTarget(java.awt.Point point, int x, int y, int width, int height, boolean mirror_h, boolean mirror_v)
point
- 画素の座標x
- 指定範囲矩形の左端X座標y
- 指定範囲矩形の上端Y座標width
- 指定範囲矩形の幅height
- 指定範囲矩形の高さmirror_h
- 高さ方向の反転の有無mirror_v
- 水平方向の反転の有無
public java.awt.Point getPointOnTarget(java.awt.Point point, java.awt.Rectangle target, boolean mirror_h, boolean mirror_v)
point
- 画素の座標target
- 指定範囲矩形mirror_h
- 高さ方向の反転の有無mirror_v
- 水平方向の反転の有無
public void transcode(java.lang.String input, java.lang.String output, int start, int end, java.lang.String encoding, java.lang.String size, boolean useAudio)
input
- 入力ファイル名output
- 出力ファイル名start
- 開始位置end
- 終了位置encoding
- エンコード形式(RGB等)size
- 解像度(640x480等)useAudio
- 音声使用有無public java.awt.Dimension getPreferredSize()
javax.swing.JComponent
内の getPreferredSize
public void playFile(java.lang.String filename)
filename
- ファイル名public void openFile(java.lang.String filename)
filename
- ファイル名public boolean isControlPanelVisible()
public void setControlPanelVisible(boolean visible)
visible
- 表示の有無public void startPlaying()
public void stopPlaying()
public boolean isPlaying()
public double getMediaTime()
public void setMediaTime(double sec)
sec
- 位置(秒)public void setMediaTimeHead()
public void setMediaTimeTail()
public double getDuration()
public float getRate()
public void setRate(float factor)
factor
- 速度比率public float getGainLevel()
public void setGainLevel(float level)
level
- レベルpublic boolean getMute()
public void setMute(boolean mute)
mute
- ミュート状態public void setPlaybackLoop(boolean val)
val
- ループ再生の有無public boolean getPlaybackLoop()
public java.awt.Dimension getVideoDimension()
protected void init()
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |