Commit 19022025
This commit is contained in:
@@ -2,6 +2,7 @@ package ErhaAPI;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import org.bytedeco.opencv.opencv_core.Rect;
|
||||
|
||||
@Getter @Setter
|
||||
public class PhotoResult {
|
||||
@@ -11,6 +12,8 @@ public class PhotoResult {
|
||||
private String fullcrop;
|
||||
private String compressedcrop;
|
||||
private String thumbnail;
|
||||
private Rect BestROI;
|
||||
private Rect ReducedROI;
|
||||
public PhotoResult(String cameraname){
|
||||
this.cameraname = cameraname;
|
||||
this.fullres = "";
|
||||
@@ -18,6 +21,8 @@ public class PhotoResult {
|
||||
this.fullcrop = "";
|
||||
this.compressedcrop = "";
|
||||
this.thumbnail = "";
|
||||
this.BestROI = null;
|
||||
this.ReducedROI = null;
|
||||
}
|
||||
public PhotoResult(String cameraname,String fullres, String compressedfile, String fullcrop, String compressedcrop, String thumbnail){
|
||||
this.cameraname = cameraname;
|
||||
@@ -26,5 +31,17 @@ public class PhotoResult {
|
||||
this.fullcrop = fullcrop;
|
||||
this.compressedcrop = compressedcrop;
|
||||
this.thumbnail = thumbnail;
|
||||
this.BestROI = null;
|
||||
this.ReducedROI = null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString(){
|
||||
return "Camera Name: " + cameraname + "\n" +
|
||||
"Full Resolution: " + fullres + "\n" +
|
||||
"Compressed File: " + compressedfile + "\n" +
|
||||
"Full Crop: " + fullcrop + "\n" +
|
||||
"Compressed Crop: " + compressedcrop + "\n" +
|
||||
"Thumbnail: " + thumbnail + "\n";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user