Java VideoCapture change width and height AVERMEDIA Live Gamer EXTREME

asked 2016-01-22 12:02:17 -0500

akkarin gravatar image

Hi,

I'm trying to capture the AVERMEDIA Live Gamer EXTREME. It is working only not the right size. I can't change the width and height. I want it to change to 1280x720.

private VideoCapture capture = new VideoCapture(0);
double width = 1280;
double height = 720;


@FXML
protected void startCamera(ActionEvent event) {
    boolean height2 = this.capture.set(3, width);
    boolean widht2 = this.capture.set(4, height);

    System.out.println(capture.get(3));
    System.out.println(capture.get(4));
    System.out.println(widht2 + " want " + width + " :-: " + height2 + " want " + height);
}

This is the output:

640.0
480.0
true want 1280.0 :-: true want 720.0

I'm running Window 10 and OpenCV 3.1. Can somebody help me with this?

edit retag flag offensive close merge delete