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
ConstructorsConstructorDescriptionFilestreamSource(String path) constructs a new FilestreamSource object with the transmittedpath. -
Method Summary
Modifier and TypeMethodDescriptionbooleansetsisConnected = falseorg.opencv.core.MatTransmits the matrix of the pictureintreturns the frame total number of the selected file.booleaninitializes 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:
openConnectionin classAbstractImageSource- Returns:
- whether the connection was successful or not
-
getNextMat
public org.opencv.core.Mat getNextMat()Transmits the matrix of the picture- Specified by:
getNextMatin classAbstractImageSource- Returns:
frameMatrix
-
closeConnection
public boolean closeConnection()setsisConnected = false- Specified by:
closeConnectionin classAbstractImageSource- Returns:
isConnected = false
-
getTotalFrameNumber
public int getTotalFrameNumber()returns the frame total number of the selected file.- Returns:
frameTotalNumber
-