public class PFVideoRecorder extends javax.swing.JPanel implements PFGUIComponent, PFProcessTerminateEventSource, PFDataCreateEventSource, PFXMLSerializable
トリガー | 結果データ | イベント番号 |
---|---|---|
静止画連続取得中 | 処理完了数 | 0 |
静止画連続取得完了 | なし | 1 |
静止画連続取得中止 | なし | 2 |
静止画連続取得エラー | なし | -1 |
makeProcessedImages起動 | 対象画像数 | 3 |
makeProcessedImages処理中 | 処理完了数 | 4 |
makeProcessedImages処理完了 | なし | 5 |
ファイル再生開始 | なし | 10 |
ファイル再生停止 | なし | 11 |
ファイル再生終端 | なし | 12 |
トリガー | 生成データ | イベント番号 |
---|---|---|
位置取得用画像処理メソッド起動 | 位置 | 0 |
画像処理メソッド起動 | 処理後の画像 | 1 |
バーコード読み取り成功時(直前と同じ場合は発生しない) | 読み取られた文字列 | 2 |
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
コンストラクタと説明 |
---|
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()
コンポーネントの文字列表現を取得する。
|
java.lang.String |
getDecodedString()
バーコードとQRコードから直前に読み取られた文字列を取得する。
|
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()
映像のサイズ(解像度)を取得する。
|
PFObjectList |
getWebcamDimensionList(int index)
カメラの解像度リストを取得する。
|
PFObjectList |
getWebcamNameList()
カメラの名称リストを取得する。
|
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 |
setDecodedStringEmpty()
直前に読み取られた文字列をクリアする。
|
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 |
startMonitoringCameraForImageByWebcamCapture()
カメラ映像の表示を開始する。
|
void |
startMonitoringCameraForImageByWebcamCaptureAt(int index)
カメラ映像の表示を開始する。
|
void |
startMonitoringCameraForImageByWebcamCaptureAt(int indexCamera,
int indexDimension)
カメラ映像の表示を開始する。
|
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 |
startProcessingImages()
画像処理を開始する。
|
void |
startProcessingImagesByAutoBinarization()
自動二値化処理を開始する。
|
void |
startProcessingImagesByBlurring()
ぼかし処理を開始する。
|
void |
startProcessingImagesByEdgeDetection()
エッジ検出処理を開始する。
|
void |
startProcessingImagesByFixedBinarization(int threshold)
固定値を閾値として二値化処理を開始する。
|
void |
startProcessingImagesByPixelization(int size)
モザイク処理を開始する。
|
void |
startProcessingImagesByPtileBinarization(int threshold)
固定割合の二値化処理を開始する。
|
void |
startProcessingImagesOfBarcode()
バーコードとQRコードの読み取りを開始する。
|
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を出力する.
|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
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, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, 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
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, transferFocusDownCycle, validate, validateTree
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, 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, transferFocusBackward, transferFocusUpCycle
public java.lang.String getComponentName()
getComponentName
インタフェース内 PFComponent
public java.lang.String getComponentKey()
getComponentKey
インタフェース内 PFComponent
public void setComponentKey(java.lang.String key)
setComponentKey
インタフェース内 PFComponent
key
- コンポーネントキーpublic PFMultiLocaleString getComponentKeys()
public void setComponentKeys(PFMultiLocaleString keys)
keys
- 全ロケール分のコンポーネントキーpublic int getComponentID()
getComponentID
インタフェース内 PFComponent
public void setComponentID(int id)
PFComponentBus
から設定される。
各コンポーネント内では操作しないこと。setComponentID
インタフェース内 PFComponent
id
- 設定するコンポーネントIDpublic java.lang.String getComponentString()
getComponentString
インタフェース内 PFComponent
public boolean getPropertyEditable()
getPropertyEditable
インタフェース内 PFPropertyEditableComponent
public void setPropertyEditable(boolean flag)
setPropertyEditable
インタフェース内 PFPropertyEditableComponent
flag
- 編集可否(true/false)public java.util.Iterator getPFProcessTerminateListenerList()
getPFProcessTerminateListenerList
インタフェース内 PFProcessTerminateEventSource
public void addPFProcessTerminateListener(PFProcessTerminateListener lis)
addPFProcessTerminateListener
インタフェース内 PFProcessTerminateEventSource
lis
- 追加対象イベントリスナpublic void removePFProcessTerminateListener(PFProcessTerminateListener lis)
removePFProcessTerminateListener
インタフェース内 PFProcessTerminateEventSource
lis
- 削除対象イベントリスナpublic java.util.Iterator getPFDataCreateListenerList()
getPFDataCreateListenerList
インタフェース内 PFDataCreateEventSource
public void addPFDataCreateListener(PFDataCreateListener lis)
addPFDataCreateListener
インタフェース内 PFDataCreateEventSource
lis
- 追加対象イベントリスナpublic void removePFDataCreateListener(PFDataCreateListener lis)
removePFDataCreateListener
インタフェース内 PFDataCreateEventSource
lis
- 削除対象イベントリスナpublic void localeUpdated()
localeUpdated
インタフェース内 PFComponent
public void writeXML(PFXMLGenerator out) throws java.io.IOException
writeXML
インタフェース内 PFXMLSerializable
out
- XML出力ユーティリティjava.io.IOException
public void readXML(PFXMLLoader in)
readXML
インタフェース内 PFXMLSerializable
in
- XML入力ユーティリティpublic java.lang.String getComponentPublicName()
getComponentPublicName
インタフェース内 PFComponent
public void setComponentPublicName(java.lang.String publicName) throws PFComponentException
setComponentPublicName
インタフェース内 PFComponent
publicName
- 設定するコンポーネント公開名PFComponentException
- 規約に反する名前が設定されようとした場合public boolean isAllowRemoteInvocation()
isAllowRemoteInvocation
インタフェース内 PFComponent
public void setAllowRemoteInvocation(boolean flag)
setAllowRemoteInvocation
インタフェース内 PFComponent
flag
- コンポーネント連携要求に対する可否public boolean isAllowPullTransfer()
isAllowPullTransfer
インタフェース内 PFComponent
public void setAllowPullTransfer(boolean flag)
setAllowPullTransfer
インタフェース内 PFComponent
flag
- Pull型コンポーネント転送要求に対する可否public boolean isAllowPushTransfer()
isAllowPushTransfer
インタフェース内 PFComponent
public void setAllowPushTransfer(boolean flag)
setAllowPushTransfer
インタフェース内 PFComponent
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 PFObjectList getWebcamNameList()
public PFObjectList getWebcamDimensionList(int index)
index
- カメラのインデックスpublic void startMonitoringCameraForImageByWebcamCapture()
public void startMonitoringCameraForImageByWebcamCaptureAt(int index)
index
- カメラのインデックスpublic void startMonitoringCameraForImageByWebcamCaptureAt(int indexCamera, int indexDimension)
indexCamera
- カメラのインデックスindexDimension
- 解像度のインデックス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()
finalize
クラス内 java.lang.Object
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 startProcessingImages()
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 startProcessingImagesOfBarcode()
public java.lang.String getDecodedString()
public void setDecodedStringEmpty()
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()
getPreferredSize
クラス内 javax.swing.JComponent
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()