commit 08/04/2025
This commit is contained in:
3
.idea/inspectionProfiles/Project_Default.xml
generated
3
.idea/inspectionProfiles/Project_Default.xml
generated
@@ -1,6 +1,9 @@
|
|||||||
<component name="InspectionProjectProfileManager">
|
<component name="InspectionProjectProfileManager">
|
||||||
<profile version="1.0">
|
<profile version="1.0">
|
||||||
<option name="myName" value="Project Default" />
|
<option name="myName" value="Project Default" />
|
||||||
|
<inspection_tool class="AutoCloseableResource" enabled="true" level="WARNING" enabled_by_default="true">
|
||||||
|
<option name="METHOD_MATCHER_CONFIG" value="java.util.Formatter,format,java.io.Writer,append,com.google.common.base.Preconditions,checkNotNull,org.hibernate.Session,close,java.io.PrintWriter,printf,java.io.PrintStream,printf,java.lang.foreign.Arena,ofAuto,java.lang.foreign.Arena,global,java.util.concurrent.Executors,newFixedThreadPool" />
|
||||||
|
</inspection_tool>
|
||||||
<inspection_tool class="CommentedOutCode" enabled="true" level="WEAK WARNING" enabled_by_default="true">
|
<inspection_tool class="CommentedOutCode" enabled="true" level="WEAK WARNING" enabled_by_default="true">
|
||||||
<option name="minLines" value="3" />
|
<option name="minLines" value="3" />
|
||||||
</inspection_tool>
|
</inspection_tool>
|
||||||
|
|||||||
BIN
database.db
BIN
database.db
Binary file not shown.
@@ -3,8 +3,10 @@ package Config;
|
|||||||
|
|
||||||
import com.google.gson.Gson;
|
import com.google.gson.Gson;
|
||||||
import com.google.zxing.MultiFormatReader;
|
import com.google.zxing.MultiFormatReader;
|
||||||
|
import javafx.application.Platform;
|
||||||
import javafx.embed.swing.SwingFXUtils;
|
import javafx.embed.swing.SwingFXUtils;
|
||||||
import javafx.scene.control.Alert;
|
import javafx.scene.control.Alert;
|
||||||
|
import javafx.scene.control.Label;
|
||||||
import javafx.scene.image.Image;
|
import javafx.scene.image.Image;
|
||||||
import org.bytedeco.javacv.Java2DFrameConverter;
|
import org.bytedeco.javacv.Java2DFrameConverter;
|
||||||
import org.bytedeco.javacv.OpenCVFrameConverter;
|
import org.bytedeco.javacv.OpenCVFrameConverter;
|
||||||
@@ -15,9 +17,9 @@ import org.bytedeco.opencv.opencv_core.Mat;
|
|||||||
import org.bytedeco.opencv.opencv_core.Rect;
|
import org.bytedeco.opencv.opencv_core.Rect;
|
||||||
import org.bytedeco.opencv.opencv_core.Size;
|
import org.bytedeco.opencv.opencv_core.Size;
|
||||||
import org.bytedeco.opencv.opencv_core.UMat;
|
import org.bytedeco.opencv.opencv_core.UMat;
|
||||||
import org.opencv.core.MatOfDouble;
|
|
||||||
import org.tinylog.Logger;
|
import org.tinylog.Logger;
|
||||||
|
|
||||||
|
import java.awt.*;
|
||||||
import java.awt.image.BufferedImage;
|
import java.awt.image.BufferedImage;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
@@ -32,7 +34,6 @@ import java.util.ArrayList;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import static org.bytedeco.opencv.global.opencv_core.CV_64F;
|
import static org.bytedeco.opencv.global.opencv_core.CV_64F;
|
||||||
import static org.bytedeco.opencv.global.opencv_core.CV_64FC3;
|
|
||||||
|
|
||||||
@SuppressWarnings("unused")
|
@SuppressWarnings("unused")
|
||||||
public class SomeCodes {
|
public class SomeCodes {
|
||||||
@@ -603,6 +604,52 @@ public class SomeCodes {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void SetText(Object obj, String text){
|
||||||
|
if (obj!=null && text!=null){
|
||||||
|
if (Platform.isFxApplicationThread()){
|
||||||
|
if (obj instanceof Label){
|
||||||
|
((Label) obj).setText(text);
|
||||||
|
} else if (obj instanceof TextArea){
|
||||||
|
((TextArea) obj).setText(text);
|
||||||
|
} else if (obj instanceof TextField){
|
||||||
|
((TextField) obj).setText(text);
|
||||||
|
}
|
||||||
|
} else{
|
||||||
|
Platform.runLater(()->{
|
||||||
|
if (obj instanceof Label){
|
||||||
|
((Label) obj).setText(text);
|
||||||
|
} else if (obj instanceof TextArea){
|
||||||
|
((TextArea) obj).setText(text);
|
||||||
|
} else if (obj instanceof TextField){
|
||||||
|
((TextField) obj).setText(text);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void LabelVisible(Label label, boolean visible){
|
||||||
|
if (label!=null){
|
||||||
|
if (visible){
|
||||||
|
if (Platform.isFxApplicationThread()){
|
||||||
|
label.setVisible(true);
|
||||||
|
} else{
|
||||||
|
Platform.runLater(()->{
|
||||||
|
label.setVisible(true);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if (Platform.isFxApplicationThread()){
|
||||||
|
label.setVisible(false);
|
||||||
|
} else{
|
||||||
|
Platform.runLater(()->{
|
||||||
|
label.setVisible(false);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public static void ShowAlert(Alert.AlertType type, String title, String header, String content){
|
public static void ShowAlert(Alert.AlertType type, String title, String header, String content){
|
||||||
Alert alert = new Alert(type);
|
Alert alert = new Alert(type);
|
||||||
alert.setTitle(title);
|
alert.setTitle(title);
|
||||||
@@ -647,15 +694,25 @@ public class SomeCodes {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Calculate sharpness of image
|
||||||
|
* @param mat image in UMat format, expected in gray scale
|
||||||
|
* @return sharpness value
|
||||||
|
*/
|
||||||
public static double CalculateSharpness(UMat mat){
|
public static double CalculateSharpness(UMat mat){
|
||||||
|
|
||||||
if (mat!=null && !mat.empty()){
|
if (mat!=null && !mat.empty()){
|
||||||
UMat gray = new UMat();
|
if (mat.channels()!=1){
|
||||||
opencv_imgproc.cvtColor(mat, gray, opencv_imgproc.COLOR_BGR2GRAY);
|
UMat grey = new UMat();
|
||||||
opencv_imgproc.equalizeHist(gray, gray);
|
opencv_imgproc.cvtColor(mat, grey, opencv_imgproc.COLOR_BGR2GRAY);
|
||||||
|
mat = grey;
|
||||||
|
}
|
||||||
|
|
||||||
|
opencv_imgproc.equalizeHist(mat, mat);
|
||||||
|
|
||||||
UMat laplacian = new UMat();
|
UMat laplacian = new UMat();
|
||||||
|
|
||||||
opencv_imgproc.Laplacian(gray, laplacian, CV_64F);
|
opencv_imgproc.Laplacian(mat, laplacian, CV_64F);
|
||||||
|
|
||||||
UMat mean = new UMat(1,1, CV_64F);
|
UMat mean = new UMat(1,1, CV_64F);
|
||||||
UMat stddev = new UMat(1,1, CV_64F);
|
UMat stddev = new UMat(1,1, CV_64F);
|
||||||
|
|||||||
@@ -111,11 +111,11 @@ public class Cameradetail {
|
|||||||
@FXML
|
@FXML
|
||||||
private Label sharpness_indicator;
|
private Label sharpness_indicator;
|
||||||
|
|
||||||
private Double sharpness_value = 0.0;
|
|
||||||
|
|
||||||
private @Getter final UMat BestMat = new UMat();
|
private @Getter final UMat BestMat = new UMat();
|
||||||
private @Getter final UMat LiveMat = new UMat();
|
private @Getter final UMat LiveMat = new UMat();
|
||||||
private @Getter final UMat ReducedMat = new UMat();
|
private @Getter final UMat ReducedMat = new UMat();
|
||||||
|
private @Getter final UMat GrayMat = new UMat();
|
||||||
|
|
||||||
private @Getter Rect BestMatROI;
|
private @Getter Rect BestMatROI;
|
||||||
private @Getter Rect ReducedMatROI;
|
private @Getter Rect ReducedMatROI;
|
||||||
@@ -237,6 +237,7 @@ public class Cameradetail {
|
|||||||
* @param title Title of the Camera
|
* @param title Title of the Camera
|
||||||
*/
|
*/
|
||||||
public void setCameraTitle(String title){
|
public void setCameraTitle(String title){
|
||||||
|
|
||||||
if (ValidString(title)){
|
if (ValidString(title)){
|
||||||
if (cameratitle!=null){
|
if (cameratitle!=null){
|
||||||
cameratitle.setText(title);
|
cameratitle.setText(title);
|
||||||
@@ -790,33 +791,33 @@ public class Cameradetail {
|
|||||||
IsGrabbingLiveView.set(false);
|
IsGrabbingLiveView.set(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
public Rect GetFace(UMat mat, boolean isfrontal){
|
// public Rect GetFace(UMat mat, boolean isfrontal){
|
||||||
if (!mat.empty()){
|
// if (!mat.empty()){
|
||||||
Mat originalmat = new Mat();
|
// Mat originalmat = new Mat();
|
||||||
mat.copyTo(originalmat);
|
// mat.copyTo(originalmat);
|
||||||
Mat graymat = new Mat();
|
// Mat graymat = new Mat();
|
||||||
opencv_imgproc.cvtColor(originalmat,graymat, COLOR_BGR2GRAY); // convert to grayscale
|
// opencv_imgproc.cvtColor(originalmat,graymat, COLOR_BGR2GRAY); // convert to grayscale
|
||||||
int size = Math.min(graymat.cols(), graymat.rows());
|
// int size = Math.min(graymat.cols(), graymat.rows());
|
||||||
int minsize = (int) (size * 0.4);
|
// int minsize = (int) (size * 0.4);
|
||||||
int maxsize = (int) (size * 0.9);
|
// int maxsize = (int) (size * 0.9);
|
||||||
System.out.println("GetFace size = "+size+" minsize = "+minsize+" maxsize = "+maxsize);
|
// System.out.println("GetFace size = "+size+" minsize = "+minsize+" maxsize = "+maxsize);
|
||||||
RectVector faces = isfrontal ? Detectors.DetectFrontalFace(graymat, minsize, maxsize) : Detectors.DetectProfileFace(graymat, minsize, maxsize);
|
// RectVector faces = isfrontal ? Detectors.DetectFrontalFace(graymat, minsize, maxsize) : Detectors.DetectProfileFace(graymat, minsize, maxsize);
|
||||||
if (faces.size()>0){
|
// if (faces.size()>0){
|
||||||
Rect result = null;
|
// Rect result = null;
|
||||||
for(Rect xx : faces.get()){
|
// for(Rect xx : faces.get()){
|
||||||
if (result==null){
|
// if (result==null){
|
||||||
result = xx;
|
// result = xx;
|
||||||
} else {
|
// } else {
|
||||||
if (xx.area()>result.area()){
|
// if (xx.area()>result.area()){
|
||||||
result = xx;
|
// result = xx;
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
return result;
|
// return result;
|
||||||
}
|
// }
|
||||||
} else raise_log("GetFace failed, Mat is empty");
|
// } else raise_log("GetFace failed, Mat is empty");
|
||||||
return null;
|
// return null;
|
||||||
}
|
// }
|
||||||
|
|
||||||
public boolean StartLiveView(LiveCamEvent event, String cameratitle, final boolean use_qr , final boolean use_face) {
|
public boolean StartLiveView(LiveCamEvent event, String cameratitle, final boolean use_qr , final boolean use_face) {
|
||||||
this.event = event;
|
this.event = event;
|
||||||
@@ -880,8 +881,8 @@ public class Cameradetail {
|
|||||||
boolean have_fist = false;
|
boolean have_fist = false;
|
||||||
int no_face_counter = 0;
|
int no_face_counter = 0;
|
||||||
int face_counter = 0;
|
int face_counter = 0;
|
||||||
int open_eye_counter = 0;
|
//int open_eye_counter = 0;
|
||||||
int close_eye_counter = 0;
|
//int close_eye_counter = 0;
|
||||||
|
|
||||||
while (Capturing.get()) {
|
while (Capturing.get()) {
|
||||||
try {
|
try {
|
||||||
@@ -898,7 +899,7 @@ public class Cameradetail {
|
|||||||
} catch (Exception e){
|
} catch (Exception e){
|
||||||
frame = null;
|
frame = null;
|
||||||
|
|
||||||
if (e.getMessage()!=null && e.getMessage().length()>0){
|
if (e.getMessage()!=null && !e.getMessage().isEmpty()){
|
||||||
String msg = e.getMessage();
|
String msg = e.getMessage();
|
||||||
if (msg.contains("start() been called")){
|
if (msg.contains("start() been called")){
|
||||||
if (Capturing.get()){
|
if (Capturing.get()){
|
||||||
@@ -941,11 +942,10 @@ public class Cameradetail {
|
|||||||
|
|
||||||
if (!BestMat.empty()) {
|
if (!BestMat.empty()) {
|
||||||
opencv_imgproc.resize(BestMat, LiveMat, LiveSize); // resize to LiveSize
|
opencv_imgproc.resize(BestMat, LiveMat, LiveSize); // resize to LiveSize
|
||||||
UMat graymat = new UMat(); // use OpenCL for grayscale
|
opencv_imgproc.cvtColor(LiveMat,GrayMat, COLOR_BGR2GRAY); // convert to grayscale
|
||||||
opencv_imgproc.cvtColor(LiveMat,graymat, COLOR_BGR2GRAY); // convert to grayscale
|
|
||||||
|
|
||||||
if (use_qr){
|
if (use_qr){
|
||||||
String qr = DetectQRFromMat(graymat);
|
String qr = DetectQRFromMat(GrayMat);
|
||||||
if (ValidBarCode(qr)){
|
if (ValidBarCode(qr)){
|
||||||
qrtext = qr;
|
qrtext = qr;
|
||||||
if (event!=null) event.onDetectedQRCode(qrtext);
|
if (event!=null) event.onDetectedQRCode(qrtext);
|
||||||
@@ -958,7 +958,7 @@ public class Cameradetail {
|
|||||||
_face_width = 0;
|
_face_width = 0;
|
||||||
_face_height = 0;
|
_face_height = 0;
|
||||||
|
|
||||||
List<DetectorResult> frontalfaces = HaveFrontalFace(graymat);
|
List<DetectorResult> frontalfaces = HaveFrontalFace(GrayMat);
|
||||||
if (!frontalfaces.isEmpty()){
|
if (!frontalfaces.isEmpty()){
|
||||||
|
|
||||||
for(DetectorResult rect : frontalfaces){
|
for(DetectorResult rect : frontalfaces){
|
||||||
@@ -974,7 +974,7 @@ public class Cameradetail {
|
|||||||
} else {
|
} else {
|
||||||
// gak punya frontal face
|
// gak punya frontal face
|
||||||
// coba cek punya profile left face 45 gak
|
// coba cek punya profile left face 45 gak
|
||||||
List<DetectorResult> Left45Faces = HaveLeft45Face(graymat);
|
List<DetectorResult> Left45Faces = HaveLeft45Face(GrayMat);
|
||||||
if (!Left45Faces.isEmpty()){
|
if (!Left45Faces.isEmpty()){
|
||||||
for(DetectorResult rect : Left45Faces){
|
for(DetectorResult rect : Left45Faces){
|
||||||
if (rect.haveFace()){
|
if (rect.haveFace()){
|
||||||
@@ -999,7 +999,7 @@ public class Cameradetail {
|
|||||||
|
|
||||||
no_face_counter = 0;
|
no_face_counter = 0;
|
||||||
if (event!=null) event.onFrontalFaceDetector(true, _face_width, _face_height);
|
if (event!=null) event.onFrontalFaceDetector(true, _face_width, _face_height);
|
||||||
face_indicator.setVisible(true);
|
LabelVisible(face_indicator,true);
|
||||||
|
|
||||||
if (theface.getFace()!=null){
|
if (theface.getFace()!=null){
|
||||||
LiveMatROI = new Rect(theface.getFace().x(), theface.getFace().y(), theface.getFace().width(), theface.getFace().height());
|
LiveMatROI = new Rect(theface.getFace().x(), theface.getFace().y(), theface.getFace().width(), theface.getFace().height());
|
||||||
@@ -1008,32 +1008,36 @@ public class Cameradetail {
|
|||||||
|
|
||||||
if (theface.haveEyes()){
|
if (theface.haveEyes()){
|
||||||
// ada mata (buka mata)
|
// ada mata (buka mata)
|
||||||
close_eye_counter=0;
|
// close_eye_counter=0;
|
||||||
if (open_eye_counter<1){
|
// if (open_eye_counter<1){
|
||||||
open_eye_counter++;
|
// open_eye_counter++;
|
||||||
continue;
|
// continue;
|
||||||
}
|
// }
|
||||||
//System.out.println("Valid Open Eyes");
|
//System.out.println("Valid Open Eyes");
|
||||||
|
|
||||||
|
|
||||||
if (eye_state!=1){
|
if (eye_state!=1){
|
||||||
// transisi dari tutup mata ke buka mata
|
// transisi dari tutup mata ke buka mata
|
||||||
|
if (eye_state==-1) {
|
||||||
|
System.out.println("First Eye Detected from camera "+cameratitle);
|
||||||
|
eye_state=1;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
System.out.println("Transition from close to open eyes");
|
System.out.println("Transition from close to open eyes");
|
||||||
eye_state = 1;
|
eye_state = 1;
|
||||||
if (event!=null) event.onEyeDetector(true);
|
if (event!=null) event.onEyeDetector(true);
|
||||||
eye_indicator.setVisible(true);
|
|
||||||
|
|
||||||
|
|
||||||
|
LabelVisible(eye_indicator,true);
|
||||||
|
|
||||||
long now = System.currentTimeMillis();
|
long now = System.currentTimeMillis();
|
||||||
if (waiting_for_second_blink){
|
if (waiting_for_second_blink){
|
||||||
long diff = now - last_blink;
|
long diff = now - last_blink;
|
||||||
// kalau beda waktu antara blink 1 dan blink 2 kurang dari 10 detik
|
// kalau beda waktu antara blink 1 dan blink 2 kurang dari 2 detik
|
||||||
if (diff<=10000){
|
if (diff<=2000){
|
||||||
waiting_for_second_blink = false;
|
|
||||||
System.out.println("Double Blink Detected from camera "+cameratitle);
|
System.out.println("Double Blink Detected from camera "+cameratitle);
|
||||||
if (event!=null) event.onBlink((int)diff);
|
if (event!=null) event.onBlink((int)diff);
|
||||||
}
|
}
|
||||||
|
waiting_for_second_blink = false;
|
||||||
} else {
|
} else {
|
||||||
waiting_for_second_blink = true;
|
waiting_for_second_blink = true;
|
||||||
System.out.println("First Blink Detected from camera "+cameratitle);
|
System.out.println("First Blink Detected from camera "+cameratitle);
|
||||||
@@ -1043,23 +1047,23 @@ public class Cameradetail {
|
|||||||
} else {
|
} else {
|
||||||
// ada muka, tidak ada mata
|
// ada muka, tidak ada mata
|
||||||
// transisi dari buka mata ke tutup mata
|
// transisi dari buka mata ke tutup mata
|
||||||
open_eye_counter=0;
|
// open_eye_counter=0;
|
||||||
if (close_eye_counter<1){
|
// if (close_eye_counter<1){
|
||||||
close_eye_counter++;
|
// close_eye_counter++;
|
||||||
continue;
|
// continue;
|
||||||
}
|
// }
|
||||||
//System.out.println("Valid Closed Eyes");
|
//System.out.println("Valid Closed Eyes");
|
||||||
if (eye_state!=0){
|
if (eye_state!=0){
|
||||||
System.out.println("Transition from open to close eyes");
|
System.out.println("Transition from open to close eyes");
|
||||||
eye_state = 0;
|
eye_state = 0;
|
||||||
if (event!=null) event.onEyeDetector(false);
|
if (event!=null) event.onEyeDetector(false);
|
||||||
eye_indicator.setVisible(false);
|
LabelVisible(eye_indicator,false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (have_left_45_face ){
|
} else if (have_left_45_face ){
|
||||||
no_face_counter = 0;
|
no_face_counter = 0;
|
||||||
if (event!=null) event.onProfileFaceDetector(true, _face_width, _face_height);
|
if (event!=null) event.onProfileFaceDetector(true, _face_width, _face_height);
|
||||||
face_indicator.setVisible(true);
|
LabelVisible(face_indicator,true);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
// no face detected, but let's not cancel the previous state immediately
|
// no face detected, but let's not cancel the previous state immediately
|
||||||
@@ -1071,17 +1075,17 @@ public class Cameradetail {
|
|||||||
last_blink = 0;
|
last_blink = 0;
|
||||||
waiting_for_second_blink = false;
|
waiting_for_second_blink = false;
|
||||||
face_counter = 0;
|
face_counter = 0;
|
||||||
if (close_eye_counter!=0 || open_eye_counter!=0){
|
// if (close_eye_counter!=0 || open_eye_counter!=0){
|
||||||
close_eye_counter=0;
|
// close_eye_counter=0;
|
||||||
open_eye_counter=0;
|
// open_eye_counter=0;
|
||||||
System.out.println("Reset Open and Close Eyes");
|
// System.out.println("Reset Open and Close Eyes");
|
||||||
}
|
// }
|
||||||
|
|
||||||
if (event!=null) {
|
if (event!=null) {
|
||||||
event.onFrontalFaceDetector(false, _face_width, _face_height);
|
event.onFrontalFaceDetector(false, _face_width, _face_height);
|
||||||
event.onProfileFaceDetector(false, _face_width, _face_height);
|
event.onProfileFaceDetector(false, _face_width, _face_height);
|
||||||
face_indicator.setVisible(false);
|
LabelVisible(face_indicator,false);
|
||||||
eye_indicator.setVisible(false);
|
LabelVisible(eye_indicator,false);
|
||||||
}
|
}
|
||||||
} else no_face_counter++;
|
} else no_face_counter++;
|
||||||
|
|
||||||
@@ -1089,21 +1093,6 @@ public class Cameradetail {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// if (HavePalm(graymat)) {
|
|
||||||
// if (!have_palm){
|
|
||||||
// have_fist = false;
|
|
||||||
// have_palm = true;
|
|
||||||
// System.out.println("Palm Detected from camera " + cameratitle);
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// if (HaveFist(graymat)) {
|
|
||||||
// if (!have_fist) {
|
|
||||||
// have_palm = false;
|
|
||||||
// have_fist = true;
|
|
||||||
// System.out.println("Fist Detected from camera "+cameratitle);
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
UMat rgbmat = new UMat(LiveMat.size(), CV_8UC3);
|
UMat rgbmat = new UMat(LiveMat.size(), CV_8UC3);
|
||||||
cvtColor(LiveMat, rgbmat, COLOR_BGR2RGB);
|
cvtColor(LiveMat, rgbmat, COLOR_BGR2RGB);
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -34,7 +34,7 @@ public class MainApplication extends Application {
|
|||||||
Screen screen = Screen.getPrimary();
|
Screen screen = Screen.getPrimary();
|
||||||
Rectangle2D screenbound = screen.getVisualBounds();
|
Rectangle2D screenbound = screen.getVisualBounds();
|
||||||
Scene scene = new Scene(fxmlLoader.load(), screenbound.getWidth(), screenbound.getHeight());
|
Scene scene = new Scene(fxmlLoader.load(), screenbound.getWidth(), screenbound.getHeight());
|
||||||
stage.setTitle("MultiCam Capture App for ERHA 27032025-001");
|
stage.setTitle("MultiCam Capture App for ERHA 08042025-003");
|
||||||
stage.setScene(scene);
|
stage.setScene(scene);
|
||||||
stage.setResizable(true);
|
stage.setResizable(true);
|
||||||
stage.setMaximized(true);
|
stage.setMaximized(true);
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
<?import javafx.scene.layout.*?>
|
<?import javafx.scene.layout.*?>
|
||||||
<?import javafx.scene.text.*?>
|
<?import javafx.scene.text.*?>
|
||||||
|
|
||||||
<AnchorPane fx:id="CaptureViewAnchor" maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308" minHeight="-Infinity" minWidth="-Infinity" prefHeight="768.0" prefWidth="1024.0" xmlns="http://javafx.com/javafx/11.0.14-internal" xmlns:fx="http://javafx.com/fxml/1" fx:controller="id.co.gtc.erhacam.CaptureView">
|
<AnchorPane fx:id="CaptureViewAnchor" maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308" minHeight="-Infinity" minWidth="-Infinity" prefHeight="768.0" prefWidth="1024.0" xmlns="http://javafx.com/javafx/17.0.12" xmlns:fx="http://javafx.com/fxml/1" fx:controller="id.co.gtc.erhacam.CaptureView">
|
||||||
<children>
|
<children>
|
||||||
<GridPane layoutX="147.0" layoutY="239.0" AnchorPane.bottomAnchor="200.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
|
<GridPane layoutX="147.0" layoutY="239.0" AnchorPane.bottomAnchor="200.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
|
||||||
<columnConstraints>
|
<columnConstraints>
|
||||||
@@ -38,7 +38,14 @@
|
|||||||
<AnchorPane fx:id="controlpane" prefHeight="200.0" prefWidth="200.0" GridPane.columnIndex="1">
|
<AnchorPane fx:id="controlpane" prefHeight="200.0" prefWidth="200.0" GridPane.columnIndex="1">
|
||||||
<padding>
|
<padding>
|
||||||
<Insets top="5.0" />
|
<Insets top="5.0" />
|
||||||
</padding></AnchorPane>
|
</padding>
|
||||||
|
<children>
|
||||||
|
<Button fx:id="TakePhotoButton" disable="true" mnemonicParsing="false" onAction="#TakePhotos" prefHeight="175.0" prefWidth="512.0" text="Take Photo" AnchorPane.bottomAnchor="10.0" AnchorPane.leftAnchor="10.0" AnchorPane.rightAnchor="10.0" AnchorPane.topAnchor="10.0">
|
||||||
|
<font>
|
||||||
|
<Font size="48.0" />
|
||||||
|
</font>
|
||||||
|
</Button>
|
||||||
|
</children></AnchorPane>
|
||||||
<AnchorPane prefHeight="200.0" prefWidth="200.0">
|
<AnchorPane prefHeight="200.0" prefWidth="200.0">
|
||||||
<children>
|
<children>
|
||||||
<GridPane layoutX="68.0" layoutY="14.0" prefHeight="175.2" prefWidth="512.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
|
<GridPane layoutX="68.0" layoutY="14.0" prefHeight="175.2" prefWidth="512.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
|
||||||
|
|||||||
BIN
voices/hubungistafkami.wav
Normal file
BIN
voices/hubungistafkami.wav
Normal file
Binary file not shown.
Reference in New Issue
Block a user