48 lines
1.5 KiB
Java
48 lines
1.5 KiB
Java
package ErhaAPI;
|
|
|
|
import lombok.Getter;
|
|
import lombok.Setter;
|
|
import org.bytedeco.opencv.opencv_core.Rect;
|
|
|
|
@Getter @Setter
|
|
public class PhotoResult {
|
|
private final String cameraname;
|
|
private String fullres;
|
|
private String compressedfile;
|
|
private String fullcrop;
|
|
private String compressedcrop;
|
|
private String thumbnail;
|
|
private Rect BestROI;
|
|
private Rect ReducedROI;
|
|
public PhotoResult(String cameraname){
|
|
this.cameraname = cameraname;
|
|
this.fullres = "";
|
|
this.compressedfile = "";
|
|
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;
|
|
this.fullres = fullres;
|
|
this.compressedfile = compressedfile;
|
|
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";
|
|
}
|
|
}
|