Package inputOutput
Class FilestreamSource
java.lang.Object
inputOutput.AbstractImageSource
inputOutput.FilestreamSource
provides the footage from a file with these formats: mp4, avi, mkv, mov, 3GP, mpg,
jpg and png
-
Field Summary
Fields inherited from class inputOutput.AbstractImageSource
exit, fps, frameMatrix, isConnected
-
Constructor Summary
ConstructorDescriptionFilestreamSource
(String path) constructs a new FilestreamSource object with the transmittedpath
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
setsisConnected = false
org.opencv.core.Mat
Transmits the matrix of the pictureint
returns the frame total number of the selected file.boolean
initializes a new VideoCapture object using thepath
.
-
Constructor Details
-
FilestreamSource
constructs a new FilestreamSource object with the transmittedpath
.- Parameters:
path
- describes the path of the file
-
-
Method Details
-
openConnection
public boolean openConnection()initializes a new VideoCapture object using thepath
. The video or image is opened.- Specified by:
openConnection
in classAbstractImageSource
- Returns:
- whether the connection was successful or not
-
getNextMat
public org.opencv.core.Mat getNextMat()Transmits the matrix of the picture- Specified by:
getNextMat
in classAbstractImageSource
- Returns:
frameMatrix
-
closeConnection
public boolean closeConnection()setsisConnected = false
- Specified by:
closeConnection
in classAbstractImageSource
- Returns:
isConnected = false
-
getTotalFrameNumber
public int getTotalFrameNumber()returns the frame total number of the selected file.- Returns:
frameTotalNumber
-