288 lines
6.4 KiB
Java
288 lines
6.4 KiB
Java
package it.acxent.face;
|
|
|
|
import it.acxent.db.ApplParmFull;
|
|
import it.acxent.db.CRAdapter;
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
|
public class FotoFaceCR extends CRAdapter {
|
|
private static final long serialVersionUID = -5434086501778653272L;
|
|
|
|
private long id_fotoFaceS;
|
|
|
|
private long id_foto;
|
|
|
|
private Foto foto;
|
|
|
|
private long label;
|
|
|
|
private long labelSearch;
|
|
|
|
private double confidence = 0.0D;
|
|
|
|
private Evento evento;
|
|
|
|
private long id_evento;
|
|
|
|
private String md5;
|
|
|
|
private long id_puntoFoto;
|
|
|
|
private PuntoFoto puntoFoto;
|
|
|
|
private long flgTrainingOk = -1L;
|
|
|
|
private String fileName;
|
|
|
|
private long flgConPettorali = -1L;
|
|
|
|
private long flgIndicizzate = -1L;
|
|
|
|
private String pettorale;
|
|
|
|
private FaceRecognizer faceRecognizer;
|
|
|
|
private long id_faceRecognizer;
|
|
|
|
private long flgSoloLabels = -1L;
|
|
|
|
private long flgLabelPrincipale = -1L;
|
|
|
|
private long flgHasFace = -1L;
|
|
|
|
private long labelCount;
|
|
|
|
private long flgLock = -1L;
|
|
|
|
private long flgTrainingInviate = -1L;
|
|
|
|
private long flgTarget = -1L;
|
|
|
|
public long getFlgTrainingInviate() {
|
|
return this.flgTrainingInviate;
|
|
}
|
|
|
|
public void setFlgTrainingInviate(long flgTrainingInviate) {
|
|
this.flgTrainingInviate = flgTrainingInviate;
|
|
}
|
|
|
|
public FotoFaceCR(ApplParmFull newApplParmFull) {
|
|
super(newApplParmFull);
|
|
}
|
|
|
|
public FotoFaceCR() {}
|
|
|
|
public void setId_fotoFaceS(long newId_fotoFace) {
|
|
this.id_fotoFaceS = newId_fotoFace;
|
|
}
|
|
|
|
public void setId_foto(long newId_foto) {
|
|
this.id_foto = newId_foto;
|
|
setFoto(null);
|
|
}
|
|
|
|
public long getId_fotoFaceS() {
|
|
return this.id_fotoFaceS;
|
|
}
|
|
|
|
public long getId_foto() {
|
|
return this.id_foto;
|
|
}
|
|
|
|
public void setFoto(Foto newFoto) {
|
|
this.foto = newFoto;
|
|
}
|
|
|
|
public Foto getFoto() {
|
|
this.foto = (Foto)getSecondaryObject(this.foto, Foto.class, getId_foto());
|
|
return this.foto;
|
|
}
|
|
|
|
public Evento getEvento() {
|
|
this.evento = (Evento)getSecondaryObject(this.evento, Evento.class, getId_evento());
|
|
return this.evento;
|
|
}
|
|
|
|
public void setId_evento(long id_evento) {
|
|
this.id_evento = id_evento;
|
|
setEvento(null);
|
|
}
|
|
|
|
public double getConfidence() {
|
|
return this.confidence;
|
|
}
|
|
|
|
public void setConfidence(double confidence) {
|
|
this.confidence = confidence;
|
|
}
|
|
|
|
public long getId_puntoFoto() {
|
|
return this.id_puntoFoto;
|
|
}
|
|
|
|
public void setId_puntoFoto(long id_puntoFoto) {
|
|
this.id_puntoFoto = id_puntoFoto;
|
|
setPuntoFoto(null);
|
|
}
|
|
|
|
public String getMd5() {
|
|
return (this.md5 == null) ? AB_EMPTY_STRING : this.md5.trim();
|
|
}
|
|
|
|
public void setMd5(String md5) {
|
|
this.md5 = md5;
|
|
}
|
|
|
|
public long getId_evento() {
|
|
return this.id_evento;
|
|
}
|
|
|
|
public void setEvento(Evento evento) {
|
|
this.evento = evento;
|
|
}
|
|
|
|
public long getLabel() {
|
|
return this.label;
|
|
}
|
|
|
|
public void setLabel(long label) {
|
|
this.label = label;
|
|
}
|
|
|
|
public long getLabelSearch() {
|
|
return this.labelSearch;
|
|
}
|
|
|
|
public void setLabelSearch(long labelSearch) {
|
|
this.labelSearch = labelSearch;
|
|
}
|
|
|
|
public PuntoFoto getPuntoFoto() {
|
|
this.puntoFoto = (PuntoFoto)getSecondaryObject(this.puntoFoto, PuntoFoto.class, getId_puntoFoto());
|
|
return this.puntoFoto;
|
|
}
|
|
|
|
public void setPuntoFoto(PuntoFoto puntoFoto) {
|
|
this.puntoFoto = puntoFoto;
|
|
}
|
|
|
|
public long getFlgTrainingOk() {
|
|
return this.flgTrainingOk;
|
|
}
|
|
|
|
public void setFlgTrainingOk(long flgTrainingOk) {
|
|
this.flgTrainingOk = flgTrainingOk;
|
|
}
|
|
|
|
public String getFileName() {
|
|
return (this.fileName == null) ? AB_EMPTY_STRING : this.fileName.trim();
|
|
}
|
|
|
|
public void setFileName(String fileName) {
|
|
this.fileName = fileName;
|
|
}
|
|
|
|
public long getFlgConPettorali() {
|
|
return this.flgConPettorali;
|
|
}
|
|
|
|
public void setFlgConPettorali(long flgConPettorali) {
|
|
this.flgConPettorali = flgConPettorali;
|
|
}
|
|
|
|
public long getFlgIndicizzate() {
|
|
return this.flgIndicizzate;
|
|
}
|
|
|
|
public void setFlgIndicizzate(long flgIndicizzate) {
|
|
this.flgIndicizzate = flgIndicizzate;
|
|
}
|
|
|
|
public FotoI getSessionSelfie(HttpServletRequest req) {
|
|
FotoI selfie = (FotoI)req.getSession().getAttribute("_SELFIE_FOTO");
|
|
return (selfie == null) ? new Foto(getApFull()) : selfie;
|
|
}
|
|
|
|
public String getSessionSelfieImage(HttpServletRequest req) {
|
|
String selfieFileName = (String)req.getSession().getAttribute("_SELFIE_FACE_FILENAME");
|
|
return (selfieFileName == null) ? AB_EMPTY_STRING : selfieFileName;
|
|
}
|
|
|
|
public String getSessionSelfieName(HttpServletRequest req) {
|
|
String selfieFileName = (String)req.getSession().getAttribute("_SELFIE_FACE_ORIG_FILENAME");
|
|
return (selfieFileName == null) ? AB_EMPTY_STRING : selfieFileName;
|
|
}
|
|
|
|
public String getPettorale() {
|
|
return (this.pettorale == null) ? AB_EMPTY_STRING : this.pettorale.trim();
|
|
}
|
|
|
|
public void setPettorale(String pettorale) {
|
|
this.pettorale = pettorale;
|
|
}
|
|
|
|
public FaceRecognizer getFaceRecognizer() {
|
|
this.faceRecognizer = (FaceRecognizer)getSecondaryObject(this.faceRecognizer, FaceRecognizer.class, getId_faceRecognizer());
|
|
return this.faceRecognizer;
|
|
}
|
|
|
|
public long getId_faceRecognizer() {
|
|
return this.id_faceRecognizer;
|
|
}
|
|
|
|
public void setFaceRecognizer(FaceRecognizer faceRecognizer) {
|
|
this.faceRecognizer = faceRecognizer;
|
|
}
|
|
|
|
public void setId_faceRecognizer(long id_faceRecognizer) {
|
|
this.id_faceRecognizer = id_faceRecognizer;
|
|
setFaceRecognizer(null);
|
|
}
|
|
|
|
public long getFlgSoloLabels() {
|
|
return this.flgSoloLabels;
|
|
}
|
|
|
|
public void setFlgSoloLabels(long flgSoloLabels) {
|
|
this.flgSoloLabels = flgSoloLabels;
|
|
}
|
|
|
|
public long getFlgHasFace() {
|
|
return this.flgHasFace;
|
|
}
|
|
|
|
public void setFlgHasFace(long flgHasFace) {
|
|
this.flgHasFace = flgHasFace;
|
|
}
|
|
|
|
public long getFlgLabelPrincipale() {
|
|
return this.flgLabelPrincipale;
|
|
}
|
|
|
|
public void setFlgLabelPrincipale(long flgLabelPrincipale) {
|
|
this.flgLabelPrincipale = flgLabelPrincipale;
|
|
}
|
|
|
|
public long getLabelCount() {
|
|
return this.labelCount;
|
|
}
|
|
|
|
public void setLabelCount(long labelCount) {
|
|
this.labelCount = labelCount;
|
|
}
|
|
|
|
public long getFlgLock() {
|
|
return this.flgLock;
|
|
}
|
|
|
|
public void setFlgLock(long flgLock) {
|
|
this.flgLock = flgLock;
|
|
}
|
|
|
|
public long getFlgTarget() {
|
|
return this.flgTarget;
|
|
}
|
|
|
|
public void setFlgTarget(long flgTarget) {
|
|
this.flgTarget = flgTarget;
|
|
}
|
|
}
|