2013-02-17 57 views

回答

2

通過調用

grabber.getImageWidth(); 
grabber.getImageHeight(); 

也是一套可以使用setImageWidth()獲取您可以簡單地使用

int n = com.googlecode.javacv.cpp.videoInputLib.videoInput.listDevices(); 

for (int i = 0; i < n; i++) { 
    String info = com.googlecode.javacv.cpp.videoInputLib.videoInput.getDeviceName(i); 

    System.out.println(info); 
} 

你可以得到圖像分辨率的攝像機列表,setImageHeight()

+0

感謝您的。有沒有辦法知道支持的解決方案? – 2013-02-17 14:15:19