mirror of https://github.com/opencv/opencv.git
Open Source Computer Vision Library
https://opencv.org/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
976 B
45 lines
976 B
14 years ago
|
package org.opencv.test.highgui;
|
||
|
|
||
14 years ago
|
import java.util.List;
|
||
|
|
||
|
import org.opencv.core.Size;
|
||
11 years ago
|
import org.opencv.videoio.Videoio;
|
||
|
import org.opencv.videoio.VideoCapture;
|
||
14 years ago
|
|
||
|
import org.opencv.test.OpenCVTestCase;
|
||
|
|
||
|
public class VideoCaptureTest extends OpenCVTestCase {
|
||
14 years ago
|
|
||
|
private VideoCapture capture;
|
||
|
private boolean isOpened;
|
||
14 years ago
|
private boolean isSucceed;
|
||
14 years ago
|
|
||
14 years ago
|
@Override
|
||
|
protected void setUp() throws Exception {
|
||
|
super.setUp();
|
||
14 years ago
|
|
||
14 years ago
|
capture = null;
|
||
12 years ago
|
isTestCaseEnabled = false;
|
||
14 years ago
|
isSucceed = false;
|
||
|
isOpened = false;
|
||
|
}
|
||
14 years ago
|
|
||
|
public void testGrab() {
|
||
|
capture = new VideoCapture();
|
||
|
isSucceed = capture.grab();
|
||
|
assertFalse(isSucceed);
|
||
|
}
|
||
|
|
||
|
public void testIsOpened() {
|
||
|
capture = new VideoCapture();
|
||
|
assertFalse(capture.isOpened());
|
||
|
}
|
||
|
|
||
|
public void testVideoCapture() {
|
||
|
capture = new VideoCapture();
|
||
14 years ago
|
assertNotNull(capture);
|
||
|
assertFalse(capture.isOpened());
|
||
14 years ago
|
}
|
||
|
|
||
14 years ago
|
}
|