fixed resolution list send to ui

This commit is contained in:
ori agranat
2019-11-29 13:34:38 +02:00
parent 25613d2625
commit 288000b295
4 changed files with 14 additions and 10 deletions

View File

@@ -171,11 +171,11 @@ public class VisionManager {
ConfigManager.saveCameraDriverMode(getCurrentCameraName(), driverModeSettings);
}
public static List<String> getCameraResolutionList(CameraCapture capture) {
return capture.getProperties().getVideoModes().stream().map(Helpers::VideoModeToString).collect(Collectors.toList());
public static List<HashMap> getCameraResolutionList(CameraCapture capture) {
return capture.getProperties().getVideoModes().stream().map(object -> Helpers.VideoModeToHashMap(object)).collect(Collectors.toList());
}
public static List<String> getCurrentCameraResolutionList() {
public static List<HashMap> getCurrentCameraResolutionList() {
return getCameraResolutionList(currentUIVisionProcess.getCamera());
}