Package org.opencv.videoio
Class VideoCapture
- java.lang.Object
-
- org.opencv.videoio.VideoCapture
-
public class VideoCapture extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected long
nativeObj
-
Constructor Summary
Constructors Modifier Constructor Description VideoCapture()
VideoCapture(int index)
VideoCapture(int index, int apiPreference)
protected
VideoCapture(long addr)
VideoCapture(java.lang.String filename)
VideoCapture(java.lang.String filename, int apiPreference)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VideoCapture
__fromPtr__(long addr)
protected void
finalize()
double
get(int propId)
java.lang.String
getBackendName()
long
getNativeObjAddr()
boolean
grab()
boolean
isOpened()
boolean
open(int index)
boolean
open(int index, int apiPreference)
boolean
open(java.lang.String filename)
boolean
open(java.lang.String filename, int apiPreference)
boolean
read(Mat image)
void
release()
boolean
retrieve(Mat image)
boolean
retrieve(Mat image, int flag)
boolean
set(int propId, double value)
-
-
-
Constructor Detail
-
VideoCapture
protected VideoCapture(long addr)
-
VideoCapture
public VideoCapture(java.lang.String filename, int apiPreference)
-
VideoCapture
public VideoCapture(java.lang.String filename)
-
VideoCapture
public VideoCapture(int index, int apiPreference)
-
VideoCapture
public VideoCapture(int index)
-
VideoCapture
public VideoCapture()
-
-
Method Detail
-
getNativeObjAddr
public long getNativeObjAddr()
-
__fromPtr__
public static VideoCapture __fromPtr__(long addr)
-
getBackendName
public java.lang.String getBackendName()
-
grab
public boolean grab()
-
isOpened
public boolean isOpened()
-
open
public boolean open(java.lang.String filename, int apiPreference)
-
open
public boolean open(java.lang.String filename)
-
open
public boolean open(int index, int apiPreference)
-
open
public boolean open(int index)
-
read
public boolean read(Mat image)
-
retrieve
public boolean retrieve(Mat image, int flag)
-
retrieve
public boolean retrieve(Mat image)
-
set
public boolean set(int propId, double value)
-
get
public double get(int propId)
-
release
public void release()
-
finalize
protected void finalize() throws java.lang.Throwable
- Overrides:
finalize
in classjava.lang.Object
- Throws:
java.lang.Throwable
-
-