Compare commits
17 Commits
revision15
...
ca3fa0ed08
| Author | SHA1 | Date | |
|---|---|---|---|
| ca3fa0ed08 | |||
| fb5d143cd1 | |||
|
|
67af6fe4c0 | ||
|
|
93b1079747 | ||
|
|
b6a3076993 | ||
| 7f83808d2b | |||
| 189e9e530d | |||
|
|
7cdefa6f1d | ||
|
|
e72d25a213 | ||
|
|
6f3080293f | ||
|
|
fc5bc8ada8 | ||
| 532979807b | |||
| 4535fe0aec | |||
| 71ecbe0c3e | |||
|
|
2da4c3621e | ||
|
|
fbb68b4da7 | ||
|
|
58194d8979 |
81
.idea/artifacts/ErhaCam_jar.xml
generated
81
.idea/artifacts/ErhaCam_jar.xml
generated
@@ -3,50 +3,51 @@
|
|||||||
<output-path>$PROJECT_DIR$/out/artifacts/ErhaCam_jar</output-path>
|
<output-path>$PROJECT_DIR$/out/artifacts/ErhaCam_jar</output-path>
|
||||||
<root id="archive" name="ErhaCam.jar">
|
<root id="archive" name="ErhaCam.jar">
|
||||||
<element id="module-output" name="ErhaCam" />
|
<element id="module-output" name="ErhaCam" />
|
||||||
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/org/bytedeco/libdc1394/2.2.6-1.5.9/libdc1394-2.2.6-1.5.9.jar" path-in-jar="/" />
|
|
||||||
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/commons-net/commons-net/3.11.1/commons-net-3.11.1.jar" path-in-jar="/" />
|
|
||||||
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/org/bytedeco/javacpp/1.5.10/javacpp-1.5.10.jar" path-in-jar="/" />
|
|
||||||
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar" path-in-jar="/" />
|
|
||||||
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/org/tinylog/tinylog-impl/2.7.0/tinylog-impl-2.7.0.jar" path-in-jar="/" />
|
|
||||||
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/org/bytedeco/opencv/4.9.0-1.5.10/opencv-4.9.0-1.5.10-windows-x86_64.jar" path-in-jar="/" />
|
|
||||||
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/org/bytedeco/openblas/0.3.26-1.5.10/openblas-0.3.26-1.5.10-windows-x86_64.jar" path-in-jar="/" />
|
|
||||||
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/org/controlsfx/controlsfx/11.2.1/controlsfx-11.2.1.jar" path-in-jar="/" />
|
|
||||||
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/org/openjfx/javafx-base/21/javafx-base-21-win.jar" path-in-jar="/" />
|
|
||||||
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/org/openjfx/javafx-fxml/21/javafx-fxml-21.jar" path-in-jar="/" />
|
|
||||||
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/org/bytedeco/openblas/0.3.26-1.5.10/openblas-0.3.26-1.5.10.jar" path-in-jar="/" />
|
|
||||||
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/org/bytedeco/videoinput/0.200-1.5.9/videoinput-0.200-1.5.9.jar" path-in-jar="/" />
|
|
||||||
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/com/google/zxing/javase/3.5.3/javase-3.5.3.jar" path-in-jar="/" />
|
|
||||||
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/org/openjfx/javafx-controls/21/javafx-controls-21.jar" path-in-jar="/" />
|
|
||||||
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/net/java/dev/jna/jna/5.15.0/jna-5.15.0.jar" path-in-jar="/" />
|
|
||||||
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/org/bytedeco/leptonica/1.84.1-1.5.10/leptonica-1.84.1-1.5.10.jar" path-in-jar="/" />
|
|
||||||
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/org/projectlombok/lombok/1.18.30/lombok-1.18.30.jar" path-in-jar="/" />
|
|
||||||
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/org/openjfx/javafx-graphics/21/javafx-graphics-21-win.jar" path-in-jar="/" />
|
|
||||||
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/org/openjfx/javafx-graphics/21/javafx-graphics-21.jar" path-in-jar="/" />
|
|
||||||
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/org/bytedeco/libfreenect/0.5.7-1.5.9/libfreenect-0.5.7-1.5.9.jar" path-in-jar="/" />
|
|
||||||
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/com/github/jai-imageio/jai-imageio-core/1.4.0/jai-imageio-core-1.4.0.jar" path-in-jar="/" />
|
|
||||||
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/org/slf4j/slf4j-api/1.7.36/slf4j-api-1.7.36.jar" path-in-jar="/" />
|
|
||||||
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/org/bytedeco/librealsense2/2.53.1-1.5.9/librealsense2-2.53.1-1.5.9.jar" path-in-jar="/" />
|
|
||||||
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/org/openjfx/javafx-fxml/21/javafx-fxml-21-win.jar" path-in-jar="/" />
|
|
||||||
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/org/bytedeco/libfreenect2/0.2.0-1.5.9/libfreenect2-0.2.0-1.5.9.jar" path-in-jar="/" />
|
|
||||||
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/com/google/errorprone/error_prone_annotations/2.27.0/error_prone_annotations-2.27.0.jar" path-in-jar="/" />
|
|
||||||
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/org/xerial/sqlite-jdbc/3.46.0.0/sqlite-jdbc-3.46.0.0.jar" path-in-jar="/" />
|
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/org/xerial/sqlite-jdbc/3.46.0.0/sqlite-jdbc-3.46.0.0.jar" path-in-jar="/" />
|
||||||
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/com/google/code/gson/gson/2.11.0/gson-2.11.0.jar" path-in-jar="/" />
|
|
||||||
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/org/bytedeco/videoinput/0.200-1.5.9/videoinput-0.200-1.5.9-windows-x86_64.jar" path-in-jar="/" />
|
|
||||||
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/org/openjfx/javafx-controls/21/javafx-controls-21-win.jar" path-in-jar="/" />
|
|
||||||
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/org/slf4j/slf4j-jcl/1.7.36/slf4j-jcl-1.7.36.jar" path-in-jar="/" />
|
|
||||||
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/org/bytedeco/opencv/4.9.0-1.5.10/opencv-4.9.0-1.5.10.jar" path-in-jar="/" />
|
|
||||||
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/org/bytedeco/javacv/1.5.10/javacv-1.5.10.jar" path-in-jar="/" />
|
|
||||||
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/com/google/zxing/core/3.5.3/core-3.5.3.jar" path-in-jar="/" />
|
|
||||||
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/org/bytedeco/librealsense/1.12.4-1.5.9/librealsense-1.12.4-1.5.9.jar" path-in-jar="/" />
|
|
||||||
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/org/bytedeco/flycapture/2.13.3.31-1.5.9/flycapture-2.13.3.31-1.5.9.jar" path-in-jar="/" />
|
|
||||||
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/org/bytedeco/tesseract/5.3.4-1.5.10/tesseract-5.3.4-1.5.10.jar" path-in-jar="/" />
|
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/org/bytedeco/tesseract/5.3.4-1.5.10/tesseract-5.3.4-1.5.10.jar" path-in-jar="/" />
|
||||||
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/com/beust/jcommander/1.82/jcommander-1.82.jar" path-in-jar="/" />
|
|
||||||
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/org/tinylog/tinylog-api/2.7.0/tinylog-api-2.7.0.jar" path-in-jar="/" />
|
|
||||||
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/org/openjfx/javafx-base/21/javafx-base-21.jar" path-in-jar="/" />
|
|
||||||
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/org/bytedeco/ffmpeg/6.1.1-1.5.10/ffmpeg-6.1.1-1.5.10-windows-x86_64.jar" path-in-jar="/" />
|
|
||||||
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/org/bytedeco/ffmpeg/6.1.1-1.5.10/ffmpeg-6.1.1-1.5.10.jar" path-in-jar="/" />
|
|
||||||
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/org/bytedeco/javacpp/1.5.10/javacpp-1.5.10-windows-x86_64.jar" path-in-jar="/" />
|
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/org/bytedeco/javacpp/1.5.10/javacpp-1.5.10-windows-x86_64.jar" path-in-jar="/" />
|
||||||
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/org/bytedeco/artoolkitplus/2.3.1-1.5.9/artoolkitplus-2.3.1-1.5.9.jar" path-in-jar="/" />
|
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/org/bytedeco/artoolkitplus/2.3.1-1.5.9/artoolkitplus-2.3.1-1.5.9.jar" path-in-jar="/" />
|
||||||
|
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar" path-in-jar="/" />
|
||||||
|
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/org/bytedeco/librealsense/1.12.4-1.5.9/librealsense-1.12.4-1.5.9.jar" path-in-jar="/" />
|
||||||
|
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/org/slf4j/slf4j-jcl/1.7.36/slf4j-jcl-1.7.36.jar" path-in-jar="/" />
|
||||||
|
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/org/openjfx/javafx-graphics/21/javafx-graphics-21-win.jar" path-in-jar="/" />
|
||||||
|
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/org/bytedeco/openblas/0.3.26-1.5.10/openblas-0.3.26-1.5.10.jar" path-in-jar="/" />
|
||||||
|
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/com/google/errorprone/error_prone_annotations/2.27.0/error_prone_annotations-2.27.0.jar" path-in-jar="/" />
|
||||||
|
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/com/beust/jcommander/1.82/jcommander-1.82.jar" path-in-jar="/" />
|
||||||
|
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/org/bytedeco/ffmpeg/6.1.1-1.5.10/ffmpeg-6.1.1-1.5.10.jar" path-in-jar="/" />
|
||||||
|
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/org/bytedeco/videoinput/0.200-1.5.9/videoinput-0.200-1.5.9-windows-x86_64.jar" path-in-jar="/" />
|
||||||
|
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/org/openjfx/javafx-fxml/21/javafx-fxml-21.jar" path-in-jar="/" />
|
||||||
|
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/com/google/code/gson/gson/2.11.0/gson-2.11.0.jar" path-in-jar="/" />
|
||||||
|
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/org/bytedeco/libdc1394/2.2.6-1.5.9/libdc1394-2.2.6-1.5.9.jar" path-in-jar="/" />
|
||||||
|
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/org/tinylog/tinylog-api/2.7.0/tinylog-api-2.7.0.jar" path-in-jar="/" />
|
||||||
|
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/org/projectlombok/lombok/1.18.30/lombok-1.18.30.jar" path-in-jar="/" />
|
||||||
|
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/org/bytedeco/libfreenect/0.5.7-1.5.9/libfreenect-0.5.7-1.5.9.jar" path-in-jar="/" />
|
||||||
|
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/org/openjfx/javafx-controls/21/javafx-controls-21-win.jar" path-in-jar="/" />
|
||||||
|
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/org/bytedeco/opencv/4.9.0-1.5.10/opencv-4.9.0-1.5.10-windows-x86_64.jar" path-in-jar="/" />
|
||||||
|
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/com/google/zxing/core/3.5.3/core-3.5.3.jar" path-in-jar="/" />
|
||||||
|
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/org/openjfx/javafx-controls/21/javafx-controls-21.jar" path-in-jar="/" />
|
||||||
|
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/org/bytedeco/leptonica/1.84.1-1.5.10/leptonica-1.84.1-1.5.10.jar" path-in-jar="/" />
|
||||||
|
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/commons-net/commons-net/3.11.1/commons-net-3.11.1.jar" path-in-jar="/" />
|
||||||
|
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/org/bytedeco/librealsense2/2.53.1-1.5.9/librealsense2-2.53.1-1.5.9.jar" path-in-jar="/" />
|
||||||
|
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/net/java/dev/jna/jna/5.15.0/jna-5.15.0.jar" path-in-jar="/" />
|
||||||
|
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/org/tinylog/tinylog-impl/2.7.0/tinylog-impl-2.7.0.jar" path-in-jar="/" />
|
||||||
|
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/de/jensd/fontawesomefx/8.9/fontawesomefx-8.9.jar" path-in-jar="/" />
|
||||||
|
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/org/bytedeco/flycapture/2.13.3.31-1.5.9/flycapture-2.13.3.31-1.5.9.jar" path-in-jar="/" />
|
||||||
|
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/org/bytedeco/javacv/1.5.10/javacv-1.5.10.jar" path-in-jar="/" />
|
||||||
|
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/org/bytedeco/opencv/4.9.0-1.5.10/opencv-4.9.0-1.5.10.jar" path-in-jar="/" />
|
||||||
|
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/org/openjfx/javafx-base/21/javafx-base-21-win.jar" path-in-jar="/" />
|
||||||
|
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/org/controlsfx/controlsfx/11.2.1/controlsfx-11.2.1.jar" path-in-jar="/" />
|
||||||
|
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/org/slf4j/slf4j-api/1.7.36/slf4j-api-1.7.36.jar" path-in-jar="/" />
|
||||||
|
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/org/bytedeco/videoinput/0.200-1.5.9/videoinput-0.200-1.5.9.jar" path-in-jar="/" />
|
||||||
|
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/com/github/jai-imageio/jai-imageio-core/1.4.0/jai-imageio-core-1.4.0.jar" path-in-jar="/" />
|
||||||
|
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/com/google/zxing/javase/3.5.3/javase-3.5.3.jar" path-in-jar="/" />
|
||||||
|
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/org/openjfx/javafx-graphics/21/javafx-graphics-21.jar" path-in-jar="/" />
|
||||||
|
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/org/openjfx/javafx-base/21/javafx-base-21.jar" path-in-jar="/" />
|
||||||
|
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/org/bytedeco/javacpp/1.5.10/javacpp-1.5.10.jar" path-in-jar="/" />
|
||||||
|
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/org/bytedeco/ffmpeg/6.1.1-1.5.10/ffmpeg-6.1.1-1.5.10-windows-x86_64.jar" path-in-jar="/" />
|
||||||
|
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/org/bytedeco/openblas/0.3.26-1.5.10/openblas-0.3.26-1.5.10-windows-x86_64.jar" path-in-jar="/" />
|
||||||
|
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/org/bytedeco/libfreenect2/0.2.0-1.5.9/libfreenect2-0.2.0-1.5.9.jar" path-in-jar="/" />
|
||||||
|
<element id="extracted-dir" path="$MAVEN_REPOSITORY$/org/openjfx/javafx-fxml/21/javafx-fxml-21-win.jar" path-in-jar="/" />
|
||||||
</root>
|
</root>
|
||||||
</artifact>
|
</artifact>
|
||||||
</component>
|
</component>
|
||||||
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
banners/IU photoboth-01.jpg
Normal file
BIN
banners/IU photoboth-01.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 452 KiB |
BIN
banners/IU photoboth-02.jpg
Normal file
BIN
banners/IU photoboth-02.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 253 KiB |
BIN
camera-shutter-click-01.wav
Normal file
BIN
camera-shutter-click-01.wav
Normal file
Binary file not shown.
@@ -1,9 +1,9 @@
|
|||||||
#Mon Mar 17 15:01:40 WIB 2025
|
#Thu Apr 10 16:17:13 ICT 2025
|
||||||
AudioPhase1=C\:\\Users\\rdkar\\OneDrive\\Documents\\IntelliJ Project\\ErhaCam\\audio\\phase1.mp3
|
AudioPhase1=C\:\\Users\\Erha\\IdeaProjects\\ErhaCam\\audio\\phase1.mp3
|
||||||
AudioPhase2=C\:\\Users\\rdkar\\OneDrive\\Documents\\IntelliJ Project\\ErhaCam\\audio\\phase2.mp3
|
AudioPhase2=C\:\\Users\\Erha\\IdeaProjects\\ErhaCam\\audio\\phase2.mp3
|
||||||
AudioPhase3=C\:\\Users\\rdkar\\OneDrive\\Documents\\IntelliJ Project\\ErhaCam\\audio\\phase3.mp3
|
AudioPhase3=C\:\\Users\\Erha\\IdeaProjects\\ErhaCam\\audio\\phase3.mp3
|
||||||
AudioPhase4=C\:\\Users\\rdkar\\OneDrive\\Documents\\IntelliJ Project\\ErhaCam\\audio\\phase4.mp3
|
AudioPhase4=C\:\\Users\\Erha\\IdeaProjects\\ErhaCam\\audio\\phase4.mp3
|
||||||
AudioPhase5=C\:\\Users\\rdkar\\OneDrive\\Documents\\IntelliJ Project\\ErhaCam\\audio\\phase5.mp3
|
AudioPhase5=C\:\\Users\\Erha\\IdeaProjects\\ErhaCam\\audio\\phase5.mp3
|
||||||
CameraCenter=
|
CameraCenter=
|
||||||
CameraConfigCenter={"Brightness"\:0.0,"Contrast"\:0.0,"Saturation"\:0.0,"Hue"\:0.0,"Gain"\:1.0,"Exposure"\:1.0,"Sharpness"\:0.0,"Gamma"\:0.0,"AutoExposure"\:true,"AutoFocus"\:true,"AutoWhiteBalance"\:true}
|
CameraConfigCenter={"Brightness"\:0.0,"Contrast"\:0.0,"Saturation"\:0.0,"Hue"\:0.0,"Gain"\:1.0,"Exposure"\:1.0,"Sharpness"\:0.0,"Gamma"\:0.0,"AutoExposure"\:true,"AutoFocus"\:true,"AutoWhiteBalance"\:true}
|
||||||
CameraConfigLeft45={"Brightness"\:0.0,"Contrast"\:0.0,"Saturation"\:0.0,"Hue"\:0.0,"Gain"\:1.0,"Exposure"\:1.0,"Sharpness"\:0.0,"Gamma"\:0.0,"AutoExposure"\:true,"AutoFocus"\:true,"AutoWhiteBalance"\:true}
|
CameraConfigLeft45={"Brightness"\:0.0,"Contrast"\:0.0,"Saturation"\:0.0,"Hue"\:0.0,"Gain"\:1.0,"Exposure"\:1.0,"Sharpness"\:0.0,"Gamma"\:0.0,"AutoExposure"\:true,"AutoFocus"\:true,"AutoWhiteBalance"\:true}
|
||||||
@@ -11,7 +11,7 @@ CameraConfigLeft90={"Brightness"\:0.0,"Contrast"\:0.0,"Saturation"\:0.0,"Hue"\:0
|
|||||||
CameraConfigRight45={"Brightness"\:0.0,"Contrast"\:0.0,"Saturation"\:0.0,"Hue"\:0.0,"Gain"\:1.0,"Exposure"\:1.0,"Sharpness"\:0.0,"Gamma"\:0.0,"AutoExposure"\:true,"AutoFocus"\:true,"AutoWhiteBalance"\:true}
|
CameraConfigRight45={"Brightness"\:0.0,"Contrast"\:0.0,"Saturation"\:0.0,"Hue"\:0.0,"Gain"\:1.0,"Exposure"\:1.0,"Sharpness"\:0.0,"Gamma"\:0.0,"AutoExposure"\:true,"AutoFocus"\:true,"AutoWhiteBalance"\:true}
|
||||||
CameraConfigRight90={"Brightness"\:0.0,"Contrast"\:0.0,"Saturation"\:0.0,"Hue"\:0.0,"Gain"\:1.0,"Exposure"\:1.0,"Sharpness"\:0.0,"Gamma"\:0.0,"AutoExposure"\:true,"AutoFocus"\:true,"AutoWhiteBalance"\:true}
|
CameraConfigRight90={"Brightness"\:0.0,"Contrast"\:0.0,"Saturation"\:0.0,"Hue"\:0.0,"Gain"\:1.0,"Exposure"\:1.0,"Sharpness"\:0.0,"Gamma"\:0.0,"AutoExposure"\:true,"AutoFocus"\:true,"AutoWhiteBalance"\:true}
|
||||||
CameraLeft45=
|
CameraLeft45=
|
||||||
CameraLeft90=ACER QHD User Facing
|
CameraLeft90=OBSBOT Meet 2 StreamCamera
|
||||||
CameraRight45=
|
CameraRight45=
|
||||||
CameraRight90=
|
CameraRight90=
|
||||||
FTPHost=192.168.10.2
|
FTPHost=192.168.10.2
|
||||||
@@ -19,7 +19,10 @@ FTPPass=password
|
|||||||
FTPPath=/
|
FTPPath=/
|
||||||
FTPPort=21
|
FTPPort=21
|
||||||
FTPUser=user
|
FTPUser=user
|
||||||
PhotoDirectory=C\:\\Users\\rdkar\\OneDrive\\Desktop\\Erha Capture
|
FlipCamera=true
|
||||||
|
MirrorCamera=true
|
||||||
|
PhotoDirectory=C\:\\Users\\Erha\\Desktop\\ErhaCapture
|
||||||
|
SharpnessThreshold=1000.0
|
||||||
cascadeMaxSize=500
|
cascadeMaxSize=500
|
||||||
cascadeMinNeighbors=3
|
cascadeMinNeighbors=3
|
||||||
cascadeMinSize=250
|
cascadeMinSize=250
|
||||||
|
|||||||
BIN
countdown321.wav
Normal file
BIN
countdown321.wav
Normal file
Binary file not shown.
BIN
data_barcode_tidak_ditemukan.wav
Normal file
BIN
data_barcode_tidak_ditemukan.wav
Normal file
Binary file not shown.
BIN
database.db
BIN
database.db
Binary file not shown.
12213
haarcascade_eye.xml
12213
haarcascade_eye.xml
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
BIN
kesalahan_server.wav
Normal file
BIN
kesalahan_server.wav
Normal file
Binary file not shown.
@@ -47,3 +47,382 @@
|
|||||||
2024-10-21 15:28:21 INFO: GetAll success, result count: 36
|
2024-10-21 15:28:21 INFO: GetAll success, result count: 36
|
||||||
2024-10-21 15:28:25 INFO: Not loading empty fxml file
|
2024-10-21 15:28:25 INFO: Not loading empty fxml file
|
||||||
2024-10-21 15:28:25 INFO: Application closed
|
2024-10-21 15:28:25 INFO: Application closed
|
||||||
|
2025-03-21 14:43:56 INFO: Config.ConfigFile.<init>() Current working directory in Java : C:\Users\Erha\IdeaProjects\ErhaCam
|
||||||
|
2025-03-21 14:43:56 INFO: Config.ConfigFile.Load() Load config file at C:\Users\Erha\IdeaProjects\ErhaCam\config.properties
|
||||||
|
2025-03-21 14:43:56 INFO: id.co.gtc.erhacam.Detectors.setFaceMaxSize() FaceMaxSize created with value : 500
|
||||||
|
2025-03-21 14:43:56 INFO: id.co.gtc.erhacam.Detectors.setFaceMaxSize() EyeMaxSize created with value : 83
|
||||||
|
2025-03-21 14:43:56 INFO: id.co.gtc.erhacam.Detectors.setFaceMinSize() FaceMinSize created with value : 250
|
||||||
|
2025-03-21 14:43:56 INFO: id.co.gtc.erhacam.Detectors.setFaceMinSize() EyeMinSize created with value : 41
|
||||||
|
2025-03-21 14:43:56 INFO: Config.ConfigFile.Load() Config Loaded
|
||||||
|
2025-03-21 14:43:56 INFO: Config.SomeCodes.MakeDirectory() Error creating directory: C:\Users\rdkar\OneDrive\Desktop\Erha Capture\FullQuality, Msg : C:\Users\rdkar
|
||||||
|
2025-03-21 14:43:56 INFO: Config.SomeCodes.MakeDirectory() Error creating directory: C:\Users\rdkar\OneDrive\Desktop\Erha Capture\FullQualityCrop, Msg : C:\Users\rdkar
|
||||||
|
2025-03-21 14:43:56 INFO: Config.SomeCodes.MakeDirectory() Error creating directory: C:\Users\rdkar\OneDrive\Desktop\Erha Capture\Compressed, Msg : C:\Users\rdkar
|
||||||
|
2025-03-21 14:43:56 INFO: Config.SomeCodes.MakeDirectory() Error creating directory: C:\Users\rdkar\OneDrive\Desktop\Erha Capture\CompressedCrop, Msg : C:\Users\rdkar
|
||||||
|
2025-03-21 14:43:56 INFO: Config.SomeCodes.MakeDirectory() Error creating directory: C:\Users\rdkar\OneDrive\Desktop\Erha Capture\thumbs, Msg : C:\Users\rdkar
|
||||||
|
2025-03-21 14:44:00 ERROR: id.co.gtc.erhacam.MainApplication.start() Secure Dongle not found
|
||||||
|
2025-03-21 14:44:52 INFO: Config.ConfigFile.<init>() Current working directory in Java : C:\Users\Erha\IdeaProjects\ErhaCam
|
||||||
|
2025-03-21 14:44:52 INFO: Config.ConfigFile.Load() Load config file at C:\Users\Erha\IdeaProjects\ErhaCam\config.properties
|
||||||
|
2025-03-21 14:44:52 INFO: id.co.gtc.erhacam.Detectors.setFaceMaxSize() FaceMaxSize created with value : 500
|
||||||
|
2025-03-21 14:44:52 INFO: id.co.gtc.erhacam.Detectors.setFaceMaxSize() EyeMaxSize created with value : 83
|
||||||
|
2025-03-21 14:44:52 INFO: id.co.gtc.erhacam.Detectors.setFaceMinSize() FaceMinSize created with value : 250
|
||||||
|
2025-03-21 14:44:52 INFO: id.co.gtc.erhacam.Detectors.setFaceMinSize() EyeMinSize created with value : 41
|
||||||
|
2025-03-21 14:44:52 INFO: Config.ConfigFile.Load() Config Loaded
|
||||||
|
2025-03-21 14:44:52 INFO: Config.SomeCodes.MakeDirectory() Error creating directory: C:\Users\rdkar\OneDrive\Desktop\Erha Capture\FullQuality, Msg : C:\Users\rdkar
|
||||||
|
2025-03-21 14:44:52 INFO: Config.SomeCodes.MakeDirectory() Error creating directory: C:\Users\rdkar\OneDrive\Desktop\Erha Capture\FullQualityCrop, Msg : C:\Users\rdkar
|
||||||
|
2025-03-21 14:44:52 INFO: Config.SomeCodes.MakeDirectory() Error creating directory: C:\Users\rdkar\OneDrive\Desktop\Erha Capture\Compressed, Msg : C:\Users\rdkar
|
||||||
|
2025-03-21 14:44:52 INFO: Config.SomeCodes.MakeDirectory() Error creating directory: C:\Users\rdkar\OneDrive\Desktop\Erha Capture\CompressedCrop, Msg : C:\Users\rdkar
|
||||||
|
2025-03-21 14:44:52 INFO: Config.SomeCodes.MakeDirectory() Error creating directory: C:\Users\rdkar\OneDrive\Desktop\Erha Capture\thumbs, Msg : C:\Users\rdkar
|
||||||
|
2025-03-21 14:44:52 INFO: id.co.gtc.erhacam.MainApplication.start() Secure Dongle UserID valid
|
||||||
|
2025-03-21 14:44:52 INFO: Config.SomeCodes.ExtractResource() Resource File extracted: /countdown321.wav
|
||||||
|
2025-03-21 14:44:53 INFO: id.co.gtc.erhacam.CaptureView.initialize() Audio Player : Inited
|
||||||
|
2025-03-21 14:44:53 INFO: Config.SomeCodes.LoadQRReader() QRReader loaded
|
||||||
|
2025-03-21 14:44:53 INFO: Config.SomeCodes.ExtractResource() Resource File extracted: /haarcascade_frontalface_alt.xml
|
||||||
|
2025-03-21 14:44:53 INFO: id.co.gtc.erhacam.Detectors.LoadFrontalFaceDetector() Face Detector file : C:\Users\Erha\IdeaProjects\ErhaCam\haarcascade_frontalface_alt.xml
|
||||||
|
2025-03-21 14:44:58 INFO: id.co.gtc.erhacam.Detectors.LoadFrontalFaceDetector() FaceDetector loaded
|
||||||
|
2025-03-21 14:44:58 INFO: id.co.gtc.erhacam.Detectors.LoadEyeDetector() Eye Detector file : C:\Users\Erha\IdeaProjects\ErhaCam\haarcascade_eye.xml
|
||||||
|
2025-03-21 14:44:58 INFO: id.co.gtc.erhacam.Detectors.LoadEyeDetector() EyeDetector loaded
|
||||||
|
2025-03-21 14:44:58 INFO: id.co.gtc.erhacam.Detectors.LoadProfileFaceDetector() Profile Face Detector file : C:\Users\Erha\IdeaProjects\ErhaCam\haarcascade_profileface.xml
|
||||||
|
2025-03-21 14:44:58 INFO: id.co.gtc.erhacam.Detectors.LoadProfileFaceDetector() ProfileFaceDetector loaded
|
||||||
|
2025-03-21 14:44:58 INFO: id.co.gtc.erhacam.MainApplication.start() Application started
|
||||||
|
2025-03-21 14:44:58 INFO: SecureDongle.SecureDongle.lambda$StartMonitor$0() Start Monitoring UserID=14022025
|
||||||
|
2025-03-21 14:45:06 INFO: id.co.gtc.erhacam.SettingView.initialize() Found 1 Cameras
|
||||||
|
2025-03-21 14:45:06 INFO: id.co.gtc.erhacam.SettingView.lambda$initialize$0() adding camera : OBSBOT Meet 2 StreamCamera to camera list
|
||||||
|
2025-03-21 14:45:13 INFO: Config.ConfigFile.SetCameraLeft90() Camera Left 90 Degree changed from ACER QHD User Facing to OBSBOT Meet 2 StreamCamera
|
||||||
|
2025-03-21 14:45:24 INFO: Config.ConfigFile.SetPhotoDirectory() Photo Directory changed from C:\Users\rdkar\OneDrive\Desktop\Erha Capture to C:\Users\Erha\Desktop\ErhaCapture
|
||||||
|
2025-03-21 14:45:24 INFO: Config.ConfigFile.Save() Config Saved
|
||||||
|
2025-03-21 14:45:29 INFO: id.co.gtc.erhacam.CaptureView.initialize() Audio Player : Inited
|
||||||
|
2025-03-21 14:45:29 INFO: id.co.gtc.erhacam.CaptureView.lambda$initialize$15() Left90 Index: 0
|
||||||
|
2025-03-21 14:45:29 INFO: id.co.gtc.erhacam.CaptureView.onLog() [01] : QR Reader loaded
|
||||||
|
2025-03-21 14:45:29 INFO: id.co.gtc.erhacam.CaptureView.onLog() [01] : Face detector loaded
|
||||||
|
2025-03-21 14:45:32 INFO: id.co.gtc.erhacam.CaptureView.onLog() [01] : Camera Started with resolution 2160x3840@0
|
||||||
|
2025-03-21 14:45:53 ERROR: id.co.gtc.erhacam.MainView.loadContent() loadContent Not loading empty fxml file
|
||||||
|
2025-03-21 14:45:53 INFO: id.co.gtc.erhacam.MainApplication.lambda$start$0() Application closed
|
||||||
|
2025-03-21 14:50:19 INFO: Config.ConfigFile.<init>() Current working directory in Java : C:\Users\Erha\IdeaProjects\ErhaCam
|
||||||
|
2025-03-21 14:50:19 INFO: Config.ConfigFile.Load() Load config file at C:\Users\Erha\IdeaProjects\ErhaCam\config.properties
|
||||||
|
2025-03-21 14:50:19 INFO: id.co.gtc.erhacam.Detectors.setFaceMaxSize() FaceMaxSize created with value : 500
|
||||||
|
2025-03-21 14:50:19 INFO: id.co.gtc.erhacam.Detectors.setFaceMaxSize() EyeMaxSize created with value : 83
|
||||||
|
2025-03-21 14:50:19 INFO: id.co.gtc.erhacam.Detectors.setFaceMinSize() FaceMinSize created with value : 250
|
||||||
|
2025-03-21 14:50:19 INFO: id.co.gtc.erhacam.Detectors.setFaceMinSize() EyeMinSize created with value : 41
|
||||||
|
2025-03-21 14:50:19 INFO: Config.ConfigFile.Load() Config Loaded
|
||||||
|
2025-03-21 14:50:19 INFO: Config.SomeCodes.MakeDirectory() Directory created: C:\Users\Erha\Desktop\ErhaCapture\FullQuality
|
||||||
|
2025-03-21 14:50:19 INFO: Config.SomeCodes.MakeDirectory() Directory created: C:\Users\Erha\Desktop\ErhaCapture\FullQualityCrop
|
||||||
|
2025-03-21 14:50:19 INFO: Config.SomeCodes.MakeDirectory() Directory created: C:\Users\Erha\Desktop\ErhaCapture\Compressed
|
||||||
|
2025-03-21 14:50:19 INFO: Config.SomeCodes.MakeDirectory() Directory created: C:\Users\Erha\Desktop\ErhaCapture\CompressedCrop
|
||||||
|
2025-03-21 14:50:19 INFO: Config.SomeCodes.MakeDirectory() Directory created: C:\Users\Erha\Desktop\ErhaCapture\thumbs
|
||||||
|
2025-03-21 14:50:19 INFO: id.co.gtc.erhacam.MainApplication.start() Secure Dongle UserID valid
|
||||||
|
2025-03-21 14:50:19 INFO: id.co.gtc.erhacam.CaptureView.initialize() Audio Player : Inited
|
||||||
|
2025-03-21 14:50:19 INFO: Config.SomeCodes.LoadQRReader() QRReader loaded
|
||||||
|
2025-03-21 14:50:19 INFO: id.co.gtc.erhacam.Detectors.LoadFrontalFaceDetector() Face Detector file : C:\Users\Erha\IdeaProjects\ErhaCam\haarcascade_frontalface_alt.xml
|
||||||
|
2025-03-21 14:50:19 INFO: id.co.gtc.erhacam.Detectors.LoadFrontalFaceDetector() FaceDetector loaded
|
||||||
|
2025-03-21 14:50:19 INFO: id.co.gtc.erhacam.Detectors.LoadEyeDetector() Eye Detector file : C:\Users\Erha\IdeaProjects\ErhaCam\haarcascade_eye.xml
|
||||||
|
2025-03-21 14:50:19 INFO: id.co.gtc.erhacam.Detectors.LoadEyeDetector() EyeDetector loaded
|
||||||
|
2025-03-21 14:50:19 INFO: id.co.gtc.erhacam.Detectors.LoadProfileFaceDetector() Profile Face Detector file : C:\Users\Erha\IdeaProjects\ErhaCam\haarcascade_profileface.xml
|
||||||
|
2025-03-21 14:50:19 INFO: id.co.gtc.erhacam.Detectors.LoadProfileFaceDetector() ProfileFaceDetector loaded
|
||||||
|
2025-03-21 14:50:20 INFO: id.co.gtc.erhacam.MainApplication.start() Application started
|
||||||
|
2025-03-21 14:50:20 INFO: SecureDongle.SecureDongle.lambda$StartMonitor$0() Start Monitoring UserID=14022025
|
||||||
|
2025-03-21 14:50:20 INFO: id.co.gtc.erhacam.CaptureView.lambda$initialize$15() Left90 Index: 0
|
||||||
|
2025-03-21 14:50:20 INFO: id.co.gtc.erhacam.CaptureView.onLog() [01] : QR Reader loaded
|
||||||
|
2025-03-21 14:50:20 INFO: id.co.gtc.erhacam.CaptureView.onLog() [01] : Face detector loaded
|
||||||
|
2025-03-21 14:50:25 INFO: id.co.gtc.erhacam.CaptureView.onLog() [01] : Camera Started with resolution 2160x3840@0
|
||||||
|
2025-03-21 15:18:02 INFO: Config.ConfigFile.<init>() Current working directory in Java : C:\Users\Erha\IdeaProjects\ErhaCam
|
||||||
|
2025-03-21 15:18:02 INFO: Config.ConfigFile.Load() Load config file at C:\Users\Erha\IdeaProjects\ErhaCam\config.properties
|
||||||
|
2025-03-21 15:18:02 INFO: id.co.gtc.erhacam.Detectors.setFaceMaxSize() FaceMaxSize created with value : 500
|
||||||
|
2025-03-21 15:18:02 INFO: id.co.gtc.erhacam.Detectors.setFaceMaxSize() EyeMaxSize created with value : 83
|
||||||
|
2025-03-21 15:18:02 INFO: id.co.gtc.erhacam.Detectors.setFaceMinSize() FaceMinSize created with value : 250
|
||||||
|
2025-03-21 15:18:02 INFO: id.co.gtc.erhacam.Detectors.setFaceMinSize() EyeMinSize created with value : 41
|
||||||
|
2025-03-21 15:18:02 INFO: Config.ConfigFile.Load() Config Loaded
|
||||||
|
2025-03-21 15:18:02 INFO: Config.SomeCodes.MakeDirectory() Directory exists: C:\Users\Erha\Desktop\ErhaCapture\FullQuality
|
||||||
|
2025-03-21 15:18:02 INFO: Config.SomeCodes.MakeDirectory() Directory exists: C:\Users\Erha\Desktop\ErhaCapture\FullQualityCrop
|
||||||
|
2025-03-21 15:18:02 INFO: Config.SomeCodes.MakeDirectory() Directory exists: C:\Users\Erha\Desktop\ErhaCapture\Compressed
|
||||||
|
2025-03-21 15:18:02 INFO: Config.SomeCodes.MakeDirectory() Directory exists: C:\Users\Erha\Desktop\ErhaCapture\CompressedCrop
|
||||||
|
2025-03-21 15:18:02 INFO: Config.SomeCodes.MakeDirectory() Directory exists: C:\Users\Erha\Desktop\ErhaCapture\thumbs
|
||||||
|
2025-03-21 15:18:02 INFO: id.co.gtc.erhacam.MainApplication.start() Secure Dongle UserID valid
|
||||||
|
2025-03-21 15:18:03 INFO: Config.SomeCodes.ExtractResource() Resource File extracted: /kesalahan_server.wav
|
||||||
|
2025-03-21 15:18:03 INFO: Config.SomeCodes.ExtractResource() Resource File extracted: /data_barcode_tidak_ditemukan.wav
|
||||||
|
2025-03-21 15:18:03 INFO: id.co.gtc.erhacam.CaptureView.initialize() Audio Player : Inited
|
||||||
|
2025-03-21 15:18:03 INFO: Config.SomeCodes.LoadQRReader() QRReader loaded
|
||||||
|
2025-03-21 15:18:03 INFO: id.co.gtc.erhacam.Detectors.LoadFrontalFaceDetector() Face Detector file : C:\Users\Erha\IdeaProjects\ErhaCam\haarcascade_frontalface_alt.xml
|
||||||
|
2025-03-21 15:18:03 INFO: id.co.gtc.erhacam.Detectors.LoadFrontalFaceDetector() FaceDetector loaded
|
||||||
|
2025-03-21 15:18:03 INFO: id.co.gtc.erhacam.Detectors.LoadEyeDetector() Eye Detector file : C:\Users\Erha\IdeaProjects\ErhaCam\haarcascade_eye.xml
|
||||||
|
2025-03-21 15:18:03 INFO: id.co.gtc.erhacam.Detectors.LoadEyeDetector() EyeDetector loaded
|
||||||
|
2025-03-21 15:18:03 INFO: id.co.gtc.erhacam.Detectors.LoadProfileFaceDetector() Profile Face Detector file : C:\Users\Erha\IdeaProjects\ErhaCam\haarcascade_profileface.xml
|
||||||
|
2025-03-21 15:18:03 INFO: id.co.gtc.erhacam.Detectors.LoadProfileFaceDetector() ProfileFaceDetector loaded
|
||||||
|
2025-03-21 15:18:03 INFO: id.co.gtc.erhacam.MainApplication.start() Application started
|
||||||
|
2025-03-21 15:18:03 INFO: SecureDongle.SecureDongle.lambda$StartMonitor$0() Start Monitoring UserID=14022025
|
||||||
|
2025-03-21 15:18:03 INFO: id.co.gtc.erhacam.CaptureView.lambda$initialize$15() Left90 Index: 0
|
||||||
|
2025-03-21 15:18:03 INFO: id.co.gtc.erhacam.CaptureView.onLog() [01] : QR Reader loaded
|
||||||
|
2025-03-21 15:18:03 INFO: id.co.gtc.erhacam.CaptureView.onLog() [01] : Face detector loaded
|
||||||
|
2025-03-21 15:18:09 INFO: id.co.gtc.erhacam.CaptureView.onLog() [01] : Camera Started with resolution 2160x3840@0
|
||||||
|
2025-03-21 15:18:11 ERROR: id.co.gtc.erhacam.CaptureView.call() Record associated with barcode
|
||||||
|
2025-03-21 15:18:23 ERROR: id.co.gtc.erhacam.MainView.loadContent() loadContent Not loading empty fxml file
|
||||||
|
2025-03-21 15:18:23 INFO: id.co.gtc.erhacam.MainApplication.lambda$start$0() Application closed
|
||||||
|
2025-03-21 15:19:32 INFO: Config.ConfigFile.<init>() Current working directory in Java : C:\Users\Erha\IdeaProjects\ErhaCam
|
||||||
|
2025-03-21 15:19:32 INFO: Config.ConfigFile.Load() Load config file at C:\Users\Erha\IdeaProjects\ErhaCam\config.properties
|
||||||
|
2025-03-21 15:19:32 INFO: id.co.gtc.erhacam.Detectors.setFaceMaxSize() FaceMaxSize created with value : 500
|
||||||
|
2025-03-21 15:19:32 INFO: id.co.gtc.erhacam.Detectors.setFaceMaxSize() EyeMaxSize created with value : 83
|
||||||
|
2025-03-21 15:19:32 INFO: id.co.gtc.erhacam.Detectors.setFaceMinSize() FaceMinSize created with value : 250
|
||||||
|
2025-03-21 15:19:32 INFO: id.co.gtc.erhacam.Detectors.setFaceMinSize() EyeMinSize created with value : 41
|
||||||
|
2025-03-21 15:19:32 INFO: Config.ConfigFile.Load() Config Loaded
|
||||||
|
2025-03-21 15:19:32 INFO: Config.SomeCodes.MakeDirectory() Directory exists: C:\Users\Erha\Desktop\ErhaCapture\FullQuality
|
||||||
|
2025-03-21 15:19:32 INFO: Config.SomeCodes.MakeDirectory() Directory exists: C:\Users\Erha\Desktop\ErhaCapture\FullQualityCrop
|
||||||
|
2025-03-21 15:19:32 INFO: Config.SomeCodes.MakeDirectory() Directory exists: C:\Users\Erha\Desktop\ErhaCapture\Compressed
|
||||||
|
2025-03-21 15:19:32 INFO: Config.SomeCodes.MakeDirectory() Directory exists: C:\Users\Erha\Desktop\ErhaCapture\CompressedCrop
|
||||||
|
2025-03-21 15:19:32 INFO: Config.SomeCodes.MakeDirectory() Directory exists: C:\Users\Erha\Desktop\ErhaCapture\thumbs
|
||||||
|
2025-03-21 15:19:32 INFO: id.co.gtc.erhacam.MainApplication.start() Secure Dongle UserID valid
|
||||||
|
2025-03-21 15:19:32 INFO: id.co.gtc.erhacam.CaptureView.initialize() Audio Player : Inited
|
||||||
|
2025-03-21 15:19:33 INFO: Config.SomeCodes.LoadQRReader() QRReader loaded
|
||||||
|
2025-03-21 15:19:33 INFO: id.co.gtc.erhacam.Detectors.LoadFrontalFaceDetector() Face Detector file : C:\Users\Erha\IdeaProjects\ErhaCam\haarcascade_frontalface_alt.xml
|
||||||
|
2025-03-21 15:19:33 INFO: id.co.gtc.erhacam.Detectors.LoadFrontalFaceDetector() FaceDetector loaded
|
||||||
|
2025-03-21 15:19:33 INFO: id.co.gtc.erhacam.Detectors.LoadEyeDetector() Eye Detector file : C:\Users\Erha\IdeaProjects\ErhaCam\haarcascade_eye.xml
|
||||||
|
2025-03-21 15:19:33 INFO: id.co.gtc.erhacam.Detectors.LoadEyeDetector() EyeDetector loaded
|
||||||
|
2025-03-21 15:19:33 INFO: id.co.gtc.erhacam.Detectors.LoadProfileFaceDetector() Profile Face Detector file : C:\Users\Erha\IdeaProjects\ErhaCam\haarcascade_profileface.xml
|
||||||
|
2025-03-21 15:19:33 INFO: id.co.gtc.erhacam.Detectors.LoadProfileFaceDetector() ProfileFaceDetector loaded
|
||||||
|
2025-03-21 15:19:33 INFO: id.co.gtc.erhacam.MainApplication.start() Application started
|
||||||
|
2025-03-21 15:19:33 INFO: SecureDongle.SecureDongle.lambda$StartMonitor$0() Start Monitoring UserID=14022025
|
||||||
|
2025-03-21 15:19:33 INFO: id.co.gtc.erhacam.CaptureView.lambda$initialize$15() Left90 Index: 0
|
||||||
|
2025-03-21 15:19:33 INFO: id.co.gtc.erhacam.CaptureView.onLog() [01] : QR Reader loaded
|
||||||
|
2025-03-21 15:19:33 INFO: id.co.gtc.erhacam.CaptureView.onLog() [01] : Face detector loaded
|
||||||
|
2025-03-21 15:19:38 INFO: id.co.gtc.erhacam.CaptureView.onLog() [01] : Camera Started with resolution 2160x3840@0
|
||||||
|
2025-03-21 15:19:43 ERROR: id.co.gtc.erhacam.CaptureView.call() Record associated with barcode
|
||||||
|
2025-03-21 15:19:50 ERROR: id.co.gtc.erhacam.MainView.loadContent() loadContent Not loading empty fxml file
|
||||||
|
2025-03-21 15:19:50 INFO: id.co.gtc.erhacam.MainApplication.lambda$start$0() Application closed
|
||||||
|
2025-03-21 15:23:01 INFO: Config.ConfigFile.<init>() Current working directory in Java : C:\Users\Erha\IdeaProjects\ErhaCam
|
||||||
|
2025-03-21 15:23:01 INFO: Config.ConfigFile.Load() Load config file at C:\Users\Erha\IdeaProjects\ErhaCam\config.properties
|
||||||
|
2025-03-21 15:23:01 INFO: id.co.gtc.erhacam.Detectors.setFaceMaxSize() FaceMaxSize created with value : 500
|
||||||
|
2025-03-21 15:23:01 INFO: id.co.gtc.erhacam.Detectors.setFaceMaxSize() EyeMaxSize created with value : 83
|
||||||
|
2025-03-21 15:23:01 INFO: id.co.gtc.erhacam.Detectors.setFaceMinSize() FaceMinSize created with value : 250
|
||||||
|
2025-03-21 15:23:01 INFO: id.co.gtc.erhacam.Detectors.setFaceMinSize() EyeMinSize created with value : 41
|
||||||
|
2025-03-21 15:23:01 INFO: Config.ConfigFile.Load() Config Loaded
|
||||||
|
2025-03-21 15:23:01 INFO: Config.SomeCodes.MakeDirectory() Directory exists: C:\Users\Erha\Desktop\ErhaCapture\FullQuality
|
||||||
|
2025-03-21 15:23:01 INFO: Config.SomeCodes.MakeDirectory() Directory exists: C:\Users\Erha\Desktop\ErhaCapture\FullQualityCrop
|
||||||
|
2025-03-21 15:23:01 INFO: Config.SomeCodes.MakeDirectory() Directory exists: C:\Users\Erha\Desktop\ErhaCapture\Compressed
|
||||||
|
2025-03-21 15:23:01 INFO: Config.SomeCodes.MakeDirectory() Directory exists: C:\Users\Erha\Desktop\ErhaCapture\CompressedCrop
|
||||||
|
2025-03-21 15:23:01 INFO: Config.SomeCodes.MakeDirectory() Directory exists: C:\Users\Erha\Desktop\ErhaCapture\thumbs
|
||||||
|
2025-03-21 15:23:01 INFO: id.co.gtc.erhacam.MainApplication.start() Secure Dongle UserID valid
|
||||||
|
2025-03-21 15:23:01 INFO: id.co.gtc.erhacam.CaptureView.initialize() Audio Player : Inited
|
||||||
|
2025-03-21 15:23:01 INFO: Config.SomeCodes.LoadQRReader() QRReader loaded
|
||||||
|
2025-03-21 15:23:01 INFO: id.co.gtc.erhacam.Detectors.LoadFrontalFaceDetector() Face Detector file : C:\Users\Erha\IdeaProjects\ErhaCam\haarcascade_frontalface_alt.xml
|
||||||
|
2025-03-21 15:23:01 INFO: id.co.gtc.erhacam.Detectors.LoadFrontalFaceDetector() FaceDetector loaded
|
||||||
|
2025-03-21 15:23:01 INFO: id.co.gtc.erhacam.Detectors.LoadEyeDetector() Eye Detector file : C:\Users\Erha\IdeaProjects\ErhaCam\haarcascade_eye.xml
|
||||||
|
2025-03-21 15:23:01 INFO: id.co.gtc.erhacam.Detectors.LoadEyeDetector() EyeDetector loaded
|
||||||
|
2025-03-21 15:23:01 INFO: id.co.gtc.erhacam.Detectors.LoadProfileFaceDetector() Profile Face Detector file : C:\Users\Erha\IdeaProjects\ErhaCam\haarcascade_profileface.xml
|
||||||
|
2025-03-21 15:23:01 INFO: id.co.gtc.erhacam.Detectors.LoadProfileFaceDetector() ProfileFaceDetector loaded
|
||||||
|
2025-03-21 15:23:02 INFO: id.co.gtc.erhacam.MainApplication.start() Application started
|
||||||
|
2025-03-21 15:23:02 INFO: SecureDongle.SecureDongle.lambda$StartMonitor$0() Start Monitoring UserID=14022025
|
||||||
|
2025-03-21 15:23:02 INFO: id.co.gtc.erhacam.CaptureView.lambda$initialize$15() Left90 Index: 0
|
||||||
|
2025-03-21 15:23:02 INFO: id.co.gtc.erhacam.CaptureView.onLog() [01] : QR Reader loaded
|
||||||
|
2025-03-21 15:23:02 INFO: id.co.gtc.erhacam.CaptureView.onLog() [01] : Face detector loaded
|
||||||
|
2025-03-21 15:23:07 INFO: id.co.gtc.erhacam.CaptureView.onLog() [01] : Camera Started with resolution 2160x3840@0
|
||||||
|
2025-03-21 15:23:08 ERROR: id.co.gtc.erhacam.CaptureView.call() Record associated with barcode
|
||||||
|
2025-03-21 15:23:08 ERROR: id.co.gtc.erhacam.CaptureView.call() Record associated with barcode
|
||||||
|
2025-03-21 15:23:08 ERROR: id.co.gtc.erhacam.CaptureView.call() Record associated with barcode
|
||||||
|
2025-03-21 15:23:08 ERROR: id.co.gtc.erhacam.CaptureView.call() Record associated with barcode
|
||||||
|
2025-03-21 15:24:41 INFO: Config.ConfigFile.<init>() Current working directory in Java : C:\Users\Erha\IdeaProjects\ErhaCam
|
||||||
|
2025-03-21 15:24:41 INFO: Config.ConfigFile.Load() Load config file at C:\Users\Erha\IdeaProjects\ErhaCam\config.properties
|
||||||
|
2025-03-21 15:24:41 INFO: id.co.gtc.erhacam.Detectors.setFaceMaxSize() FaceMaxSize created with value : 500
|
||||||
|
2025-03-21 15:24:41 INFO: id.co.gtc.erhacam.Detectors.setFaceMaxSize() EyeMaxSize created with value : 83
|
||||||
|
2025-03-21 15:24:41 INFO: id.co.gtc.erhacam.Detectors.setFaceMinSize() FaceMinSize created with value : 250
|
||||||
|
2025-03-21 15:24:41 INFO: id.co.gtc.erhacam.Detectors.setFaceMinSize() EyeMinSize created with value : 41
|
||||||
|
2025-03-21 15:24:41 INFO: Config.ConfigFile.Load() Config Loaded
|
||||||
|
2025-03-21 15:24:41 INFO: Config.SomeCodes.MakeDirectory() Directory exists: C:\Users\Erha\Desktop\ErhaCapture\FullQuality
|
||||||
|
2025-03-21 15:24:41 INFO: Config.SomeCodes.MakeDirectory() Directory exists: C:\Users\Erha\Desktop\ErhaCapture\FullQualityCrop
|
||||||
|
2025-03-21 15:24:41 INFO: Config.SomeCodes.MakeDirectory() Directory exists: C:\Users\Erha\Desktop\ErhaCapture\Compressed
|
||||||
|
2025-03-21 15:24:41 INFO: Config.SomeCodes.MakeDirectory() Directory exists: C:\Users\Erha\Desktop\ErhaCapture\CompressedCrop
|
||||||
|
2025-03-21 15:24:41 INFO: Config.SomeCodes.MakeDirectory() Directory exists: C:\Users\Erha\Desktop\ErhaCapture\thumbs
|
||||||
|
2025-03-21 15:24:41 INFO: id.co.gtc.erhacam.MainApplication.start() Secure Dongle UserID valid
|
||||||
|
2025-03-21 15:24:42 INFO: id.co.gtc.erhacam.CaptureView.initialize() Audio Player : Inited
|
||||||
|
2025-03-21 15:24:42 INFO: Config.SomeCodes.LoadQRReader() QRReader loaded
|
||||||
|
2025-03-21 15:24:42 INFO: id.co.gtc.erhacam.Detectors.LoadFrontalFaceDetector() Face Detector file : C:\Users\Erha\IdeaProjects\ErhaCam\haarcascade_frontalface_alt.xml
|
||||||
|
2025-03-21 15:24:42 INFO: id.co.gtc.erhacam.Detectors.LoadFrontalFaceDetector() FaceDetector loaded
|
||||||
|
2025-03-21 15:24:42 INFO: id.co.gtc.erhacam.Detectors.LoadEyeDetector() Eye Detector file : C:\Users\Erha\IdeaProjects\ErhaCam\haarcascade_eye.xml
|
||||||
|
2025-03-21 15:24:42 INFO: id.co.gtc.erhacam.Detectors.LoadEyeDetector() EyeDetector loaded
|
||||||
|
2025-03-21 15:24:42 INFO: id.co.gtc.erhacam.Detectors.LoadProfileFaceDetector() Profile Face Detector file : C:\Users\Erha\IdeaProjects\ErhaCam\haarcascade_profileface.xml
|
||||||
|
2025-03-21 15:24:42 INFO: id.co.gtc.erhacam.Detectors.LoadProfileFaceDetector() ProfileFaceDetector loaded
|
||||||
|
2025-03-21 15:24:42 INFO: id.co.gtc.erhacam.MainApplication.start() Application started
|
||||||
|
2025-03-21 15:24:42 INFO: SecureDongle.SecureDongle.lambda$StartMonitor$0() Start Monitoring UserID=14022025
|
||||||
|
2025-03-21 15:24:42 INFO: id.co.gtc.erhacam.CaptureView.lambda$initialize$15() Left90 Index: 0
|
||||||
|
2025-03-21 15:24:42 INFO: id.co.gtc.erhacam.CaptureView.onLog() [01] : QR Reader loaded
|
||||||
|
2025-03-21 15:24:42 INFO: id.co.gtc.erhacam.CaptureView.onLog() [01] : Face detector loaded
|
||||||
|
2025-03-21 15:24:48 INFO: id.co.gtc.erhacam.CaptureView.onLog() [01] : Camera Started with resolution 2160x3840@0
|
||||||
|
2025-03-21 15:24:49 ERROR: id.co.gtc.erhacam.CaptureView.call() Record associated with barcode
|
||||||
|
2025-03-21 15:28:22 INFO: Config.ConfigFile.<init>() Current working directory in Java : C:\Users\Erha\IdeaProjects\ErhaCam
|
||||||
|
2025-03-21 15:28:22 INFO: Config.ConfigFile.Load() Load config file at C:\Users\Erha\IdeaProjects\ErhaCam\config.properties
|
||||||
|
2025-03-21 15:28:22 INFO: id.co.gtc.erhacam.Detectors.setFaceMaxSize() FaceMaxSize created with value : 500
|
||||||
|
2025-03-21 15:28:22 INFO: id.co.gtc.erhacam.Detectors.setFaceMaxSize() EyeMaxSize created with value : 83
|
||||||
|
2025-03-21 15:28:22 INFO: id.co.gtc.erhacam.Detectors.setFaceMinSize() FaceMinSize created with value : 250
|
||||||
|
2025-03-21 15:28:22 INFO: id.co.gtc.erhacam.Detectors.setFaceMinSize() EyeMinSize created with value : 41
|
||||||
|
2025-03-21 15:28:22 INFO: Config.ConfigFile.Load() Config Loaded
|
||||||
|
2025-03-21 15:28:22 INFO: Config.SomeCodes.MakeDirectory() Directory exists: C:\Users\Erha\Desktop\ErhaCapture\FullQuality
|
||||||
|
2025-03-21 15:28:22 INFO: Config.SomeCodes.MakeDirectory() Directory exists: C:\Users\Erha\Desktop\ErhaCapture\FullQualityCrop
|
||||||
|
2025-03-21 15:28:22 INFO: Config.SomeCodes.MakeDirectory() Directory exists: C:\Users\Erha\Desktop\ErhaCapture\Compressed
|
||||||
|
2025-03-21 15:28:22 INFO: Config.SomeCodes.MakeDirectory() Directory exists: C:\Users\Erha\Desktop\ErhaCapture\CompressedCrop
|
||||||
|
2025-03-21 15:28:22 INFO: Config.SomeCodes.MakeDirectory() Directory exists: C:\Users\Erha\Desktop\ErhaCapture\thumbs
|
||||||
|
2025-03-21 15:28:22 INFO: id.co.gtc.erhacam.MainApplication.start() Secure Dongle UserID valid
|
||||||
|
2025-03-21 15:28:22 INFO: id.co.gtc.erhacam.CaptureView.initialize() Audio Player : Inited
|
||||||
|
2025-03-21 15:28:22 INFO: Config.SomeCodes.LoadQRReader() QRReader loaded
|
||||||
|
2025-03-21 15:28:22 INFO: id.co.gtc.erhacam.Detectors.LoadFrontalFaceDetector() Face Detector file : C:\Users\Erha\IdeaProjects\ErhaCam\haarcascade_frontalface_alt.xml
|
||||||
|
2025-03-21 15:28:22 INFO: id.co.gtc.erhacam.Detectors.LoadFrontalFaceDetector() FaceDetector loaded
|
||||||
|
2025-03-21 15:28:22 INFO: id.co.gtc.erhacam.Detectors.LoadEyeDetector() Eye Detector file : C:\Users\Erha\IdeaProjects\ErhaCam\haarcascade_eye.xml
|
||||||
|
2025-03-21 15:28:22 INFO: id.co.gtc.erhacam.Detectors.LoadEyeDetector() EyeDetector loaded
|
||||||
|
2025-03-21 15:28:22 INFO: id.co.gtc.erhacam.Detectors.LoadProfileFaceDetector() Profile Face Detector file : C:\Users\Erha\IdeaProjects\ErhaCam\haarcascade_profileface.xml
|
||||||
|
2025-03-21 15:28:22 INFO: id.co.gtc.erhacam.Detectors.LoadProfileFaceDetector() ProfileFaceDetector loaded
|
||||||
|
2025-03-21 15:28:23 INFO: id.co.gtc.erhacam.MainApplication.start() Application started
|
||||||
|
2025-03-21 15:28:23 INFO: SecureDongle.SecureDongle.lambda$StartMonitor$0() Start Monitoring UserID=14022025
|
||||||
|
2025-03-21 15:28:23 INFO: id.co.gtc.erhacam.CaptureView.lambda$initialize$15() Left90 Index: 0
|
||||||
|
2025-03-21 15:28:23 INFO: id.co.gtc.erhacam.CaptureView.onLog() [01] : QR Reader loaded
|
||||||
|
2025-03-21 15:28:23 INFO: id.co.gtc.erhacam.CaptureView.onLog() [01] : Face detector loaded
|
||||||
|
2025-03-21 15:28:28 INFO: id.co.gtc.erhacam.CaptureView.onLog() [01] : Camera Started with resolution 2160x3840@0
|
||||||
|
2025-03-21 15:28:33 ERROR: id.co.gtc.erhacam.CaptureView.call() Record associated with barcode
|
||||||
|
2025-03-21 15:28:41 ERROR: id.co.gtc.erhacam.MainView.loadContent() loadContent Not loading empty fxml file
|
||||||
|
2025-03-21 15:28:41 INFO: id.co.gtc.erhacam.MainApplication.lambda$start$0() Application closed
|
||||||
|
2025-03-21 15:39:18 INFO: Config.ConfigFile.<init>() Current working directory in Java : C:\Users\Erha\IdeaProjects\ErhaCam
|
||||||
|
2025-03-21 15:39:18 INFO: Config.ConfigFile.Load() Load config file at C:\Users\Erha\IdeaProjects\ErhaCam\config.properties
|
||||||
|
2025-03-21 15:39:18 INFO: id.co.gtc.erhacam.Detectors.setFaceMaxSize() FaceMaxSize created with value : 500
|
||||||
|
2025-03-21 15:39:18 INFO: id.co.gtc.erhacam.Detectors.setFaceMaxSize() EyeMaxSize created with value : 83
|
||||||
|
2025-03-21 15:39:18 INFO: id.co.gtc.erhacam.Detectors.setFaceMinSize() FaceMinSize created with value : 250
|
||||||
|
2025-03-21 15:39:18 INFO: id.co.gtc.erhacam.Detectors.setFaceMinSize() EyeMinSize created with value : 41
|
||||||
|
2025-03-21 15:39:18 INFO: Config.ConfigFile.Load() Config Loaded
|
||||||
|
2025-03-21 15:39:18 INFO: Config.SomeCodes.MakeDirectory() Directory exists: C:\Users\Erha\Desktop\ErhaCapture\FullQuality
|
||||||
|
2025-03-21 15:39:18 INFO: Config.SomeCodes.MakeDirectory() Directory exists: C:\Users\Erha\Desktop\ErhaCapture\FullQualityCrop
|
||||||
|
2025-03-21 15:39:18 INFO: Config.SomeCodes.MakeDirectory() Directory exists: C:\Users\Erha\Desktop\ErhaCapture\Compressed
|
||||||
|
2025-03-21 15:39:18 INFO: Config.SomeCodes.MakeDirectory() Directory exists: C:\Users\Erha\Desktop\ErhaCapture\CompressedCrop
|
||||||
|
2025-03-21 15:39:18 INFO: Config.SomeCodes.MakeDirectory() Directory exists: C:\Users\Erha\Desktop\ErhaCapture\thumbs
|
||||||
|
2025-03-21 15:39:18 INFO: id.co.gtc.erhacam.MainApplication.start() Secure Dongle UserID valid
|
||||||
|
2025-03-21 15:39:18 INFO: id.co.gtc.erhacam.CaptureView.initialize() Audio Player : Inited
|
||||||
|
2025-03-21 15:39:18 INFO: Config.SomeCodes.LoadQRReader() QRReader loaded
|
||||||
|
2025-03-21 15:39:18 INFO: id.co.gtc.erhacam.Detectors.LoadFrontalFaceDetector() Face Detector file : C:\Users\Erha\IdeaProjects\ErhaCam\haarcascade_frontalface_alt.xml
|
||||||
|
2025-03-21 15:39:18 INFO: id.co.gtc.erhacam.Detectors.LoadFrontalFaceDetector() FaceDetector loaded
|
||||||
|
2025-03-21 15:39:18 INFO: id.co.gtc.erhacam.Detectors.LoadEyeDetector() Eye Detector file : C:\Users\Erha\IdeaProjects\ErhaCam\haarcascade_eye.xml
|
||||||
|
2025-03-21 15:39:18 INFO: id.co.gtc.erhacam.Detectors.LoadEyeDetector() EyeDetector loaded
|
||||||
|
2025-03-21 15:39:18 INFO: id.co.gtc.erhacam.Detectors.LoadProfileFaceDetector() Profile Face Detector file : C:\Users\Erha\IdeaProjects\ErhaCam\haarcascade_profileface.xml
|
||||||
|
2025-03-21 15:39:18 INFO: id.co.gtc.erhacam.Detectors.LoadProfileFaceDetector() ProfileFaceDetector loaded
|
||||||
|
2025-03-21 15:39:19 INFO: id.co.gtc.erhacam.MainApplication.start() Application started
|
||||||
|
2025-03-21 15:39:19 INFO: SecureDongle.SecureDongle.lambda$StartMonitor$0() Start Monitoring UserID=14022025
|
||||||
|
2025-03-21 15:39:19 INFO: id.co.gtc.erhacam.CaptureView.lambda$initialize$15() Left90 Index: 0
|
||||||
|
2025-03-21 15:39:19 INFO: id.co.gtc.erhacam.CaptureView.onLog() [01] : QR Reader loaded
|
||||||
|
2025-03-21 15:39:19 INFO: id.co.gtc.erhacam.CaptureView.onLog() [01] : Face detector loaded
|
||||||
|
2025-03-21 15:39:24 INFO: id.co.gtc.erhacam.CaptureView.onLog() [01] : Camera Started with resolution 2160x3840@0
|
||||||
|
2025-03-21 15:39:26 ERROR: id.co.gtc.erhacam.CaptureView.call() Record associated with barcode
|
||||||
|
2025-03-21 15:39:36 ERROR: id.co.gtc.erhacam.CaptureView.call() Record associated with barcode
|
||||||
|
2025-03-21 15:39:36 ERROR: id.co.gtc.erhacam.CaptureView.call() Record associated with barcode
|
||||||
|
2025-03-21 15:39:42 ERROR: id.co.gtc.erhacam.MainView.loadContent() loadContent Not loading empty fxml file
|
||||||
|
2025-03-21 15:39:42 INFO: id.co.gtc.erhacam.MainApplication.lambda$start$0() Application closed
|
||||||
|
2025-03-21 15:43:57 INFO: Config.ConfigFile.<init>() Current working directory in Java : C:\Users\Erha\IdeaProjects\ErhaCam
|
||||||
|
2025-03-21 15:43:57 INFO: Config.ConfigFile.Load() Load config file at C:\Users\Erha\IdeaProjects\ErhaCam\config.properties
|
||||||
|
2025-03-21 15:43:57 INFO: id.co.gtc.erhacam.Detectors.setFaceMaxSize() FaceMaxSize created with value : 500
|
||||||
|
2025-03-21 15:43:57 INFO: id.co.gtc.erhacam.Detectors.setFaceMaxSize() EyeMaxSize created with value : 83
|
||||||
|
2025-03-21 15:43:57 INFO: id.co.gtc.erhacam.Detectors.setFaceMinSize() FaceMinSize created with value : 250
|
||||||
|
2025-03-21 15:43:57 INFO: id.co.gtc.erhacam.Detectors.setFaceMinSize() EyeMinSize created with value : 41
|
||||||
|
2025-03-21 15:43:57 INFO: Config.ConfigFile.Load() Config Loaded
|
||||||
|
2025-03-21 15:43:57 INFO: Config.SomeCodes.MakeDirectory() Directory exists: C:\Users\Erha\Desktop\ErhaCapture\FullQuality
|
||||||
|
2025-03-21 15:43:57 INFO: Config.SomeCodes.MakeDirectory() Directory exists: C:\Users\Erha\Desktop\ErhaCapture\FullQualityCrop
|
||||||
|
2025-03-21 15:43:57 INFO: Config.SomeCodes.MakeDirectory() Directory exists: C:\Users\Erha\Desktop\ErhaCapture\Compressed
|
||||||
|
2025-03-21 15:43:57 INFO: Config.SomeCodes.MakeDirectory() Directory exists: C:\Users\Erha\Desktop\ErhaCapture\CompressedCrop
|
||||||
|
2025-03-21 15:43:57 INFO: Config.SomeCodes.MakeDirectory() Directory exists: C:\Users\Erha\Desktop\ErhaCapture\thumbs
|
||||||
|
2025-03-21 15:43:57 INFO: id.co.gtc.erhacam.MainApplication.start() Secure Dongle UserID valid
|
||||||
|
2025-03-21 15:43:57 INFO: id.co.gtc.erhacam.CaptureView.initialize() Audio Player : Inited
|
||||||
|
2025-03-21 15:43:57 INFO: Config.SomeCodes.LoadQRReader() QRReader loaded
|
||||||
|
2025-03-21 15:43:57 INFO: id.co.gtc.erhacam.Detectors.LoadFrontalFaceDetector() Face Detector file : C:\Users\Erha\IdeaProjects\ErhaCam\haarcascade_frontalface_alt.xml
|
||||||
|
2025-03-21 15:43:57 INFO: id.co.gtc.erhacam.Detectors.LoadFrontalFaceDetector() FaceDetector loaded
|
||||||
|
2025-03-21 15:43:57 INFO: id.co.gtc.erhacam.Detectors.LoadEyeDetector() Eye Detector file : C:\Users\Erha\IdeaProjects\ErhaCam\haarcascade_eye.xml
|
||||||
|
2025-03-21 15:43:57 INFO: id.co.gtc.erhacam.Detectors.LoadEyeDetector() EyeDetector loaded
|
||||||
|
2025-03-21 15:43:57 INFO: id.co.gtc.erhacam.Detectors.LoadProfileFaceDetector() Profile Face Detector file : C:\Users\Erha\IdeaProjects\ErhaCam\haarcascade_profileface.xml
|
||||||
|
2025-03-21 15:43:57 INFO: id.co.gtc.erhacam.Detectors.LoadProfileFaceDetector() ProfileFaceDetector loaded
|
||||||
|
2025-03-21 15:43:58 INFO: id.co.gtc.erhacam.MainApplication.start() Application started
|
||||||
|
2025-03-21 15:43:58 INFO: SecureDongle.SecureDongle.lambda$StartMonitor$0() Start Monitoring UserID=14022025
|
||||||
|
2025-03-21 15:43:58 INFO: id.co.gtc.erhacam.CaptureView.lambda$initialize$15() Left90 Index: 0
|
||||||
|
2025-03-21 15:43:58 INFO: id.co.gtc.erhacam.CaptureView.onLog() [01] : QR Reader loaded
|
||||||
|
2025-03-21 15:43:58 INFO: id.co.gtc.erhacam.CaptureView.onLog() [01] : Face detector loaded
|
||||||
|
2025-03-21 15:44:03 INFO: id.co.gtc.erhacam.CaptureView.onLog() [01] : Camera Started with resolution 2160x3840@0
|
||||||
|
2025-03-21 15:44:07 ERROR: id.co.gtc.erhacam.CaptureView.call() Record associated with barcode
|
||||||
|
2025-03-21 15:44:21 ERROR: id.co.gtc.erhacam.MainView.loadContent() loadContent Not loading empty fxml file
|
||||||
|
2025-03-21 15:44:21 INFO: id.co.gtc.erhacam.MainApplication.lambda$start$0() Application closed
|
||||||
|
2025-03-21 15:57:31 INFO: Config.ConfigFile.<init>() Current working directory in Java : C:\Users\Erha\IdeaProjects\ErhaCam
|
||||||
|
2025-03-21 15:57:31 INFO: Config.ConfigFile.Load() Load config file at C:\Users\Erha\IdeaProjects\ErhaCam\config.properties
|
||||||
|
2025-03-21 15:57:31 INFO: id.co.gtc.erhacam.Detectors.setFaceMaxSize() FaceMaxSize created with value : 500
|
||||||
|
2025-03-21 15:57:31 INFO: id.co.gtc.erhacam.Detectors.setFaceMaxSize() EyeMaxSize created with value : 83
|
||||||
|
2025-03-21 15:57:31 INFO: id.co.gtc.erhacam.Detectors.setFaceMinSize() FaceMinSize created with value : 250
|
||||||
|
2025-03-21 15:57:31 INFO: id.co.gtc.erhacam.Detectors.setFaceMinSize() EyeMinSize created with value : 41
|
||||||
|
2025-03-21 15:57:31 INFO: Config.ConfigFile.Load() Config Loaded
|
||||||
|
2025-03-21 15:57:31 INFO: Config.SomeCodes.MakeDirectory() Directory exists: C:\Users\Erha\Desktop\ErhaCapture\FullQuality
|
||||||
|
2025-03-21 15:57:31 INFO: Config.SomeCodes.MakeDirectory() Directory exists: C:\Users\Erha\Desktop\ErhaCapture\FullQualityCrop
|
||||||
|
2025-03-21 15:57:31 INFO: Config.SomeCodes.MakeDirectory() Directory exists: C:\Users\Erha\Desktop\ErhaCapture\Compressed
|
||||||
|
2025-03-21 15:57:31 INFO: Config.SomeCodes.MakeDirectory() Directory exists: C:\Users\Erha\Desktop\ErhaCapture\CompressedCrop
|
||||||
|
2025-03-21 15:57:31 INFO: Config.SomeCodes.MakeDirectory() Directory exists: C:\Users\Erha\Desktop\ErhaCapture\thumbs
|
||||||
|
2025-03-21 15:57:31 INFO: id.co.gtc.erhacam.MainApplication.start() Secure Dongle UserID valid
|
||||||
|
2025-03-21 15:57:31 INFO: id.co.gtc.erhacam.CaptureView.initialize() Audio Player : Inited
|
||||||
|
2025-03-21 15:57:31 INFO: Config.SomeCodes.LoadQRReader() QRReader loaded
|
||||||
|
2025-03-21 15:57:31 INFO: id.co.gtc.erhacam.Detectors.LoadFrontalFaceDetector() Face Detector file : C:\Users\Erha\IdeaProjects\ErhaCam\haarcascade_frontalface_alt.xml
|
||||||
|
2025-03-21 15:57:31 INFO: id.co.gtc.erhacam.Detectors.LoadFrontalFaceDetector() FaceDetector loaded
|
||||||
|
2025-03-21 15:57:31 INFO: id.co.gtc.erhacam.Detectors.LoadEyeDetector() Eye Detector file : C:\Users\Erha\IdeaProjects\ErhaCam\haarcascade_eye.xml
|
||||||
|
2025-03-21 15:57:31 INFO: id.co.gtc.erhacam.Detectors.LoadEyeDetector() EyeDetector loaded
|
||||||
|
2025-03-21 15:57:31 INFO: id.co.gtc.erhacam.Detectors.LoadProfileFaceDetector() Profile Face Detector file : C:\Users\Erha\IdeaProjects\ErhaCam\haarcascade_profileface.xml
|
||||||
|
2025-03-21 15:57:31 INFO: id.co.gtc.erhacam.Detectors.LoadProfileFaceDetector() ProfileFaceDetector loaded
|
||||||
|
2025-03-21 15:57:31 INFO: id.co.gtc.erhacam.MainApplication.start() Application started
|
||||||
|
2025-03-21 15:57:31 INFO: SecureDongle.SecureDongle.lambda$StartMonitor$0() Start Monitoring UserID=14022025
|
||||||
|
2025-03-21 15:57:31 INFO: id.co.gtc.erhacam.CaptureView.lambda$initialize$15() Left90 Index: 0
|
||||||
|
2025-03-21 15:57:31 INFO: id.co.gtc.erhacam.CaptureView.onLog() [01] : QR Reader loaded
|
||||||
|
2025-03-21 15:57:31 INFO: id.co.gtc.erhacam.CaptureView.onLog() [01] : Face detector loaded
|
||||||
|
2025-03-21 15:57:37 INFO: id.co.gtc.erhacam.CaptureView.onLog() [01] : Camera Started with resolution 2160x3840@0
|
||||||
|
2025-03-21 15:57:45 ERROR: id.co.gtc.erhacam.CaptureView.call() Record associated with barcode
|
||||||
|
2025-03-21 15:57:59 ERROR: id.co.gtc.erhacam.MainView.loadContent() loadContent Not loading empty fxml file
|
||||||
|
2025-03-21 15:57:59 INFO: id.co.gtc.erhacam.MainApplication.lambda$start$0() Application closed
|
||||||
|
2025-03-21 15:58:54 INFO: Config.ConfigFile.<init>() Current working directory in Java : C:\Users\Erha\IdeaProjects\ErhaCam
|
||||||
|
2025-03-21 15:58:54 INFO: Config.ConfigFile.Load() Load config file at C:\Users\Erha\IdeaProjects\ErhaCam\config.properties
|
||||||
|
2025-03-21 15:58:54 INFO: id.co.gtc.erhacam.Detectors.setFaceMaxSize() FaceMaxSize created with value : 500
|
||||||
|
2025-03-21 15:58:54 INFO: id.co.gtc.erhacam.Detectors.setFaceMaxSize() EyeMaxSize created with value : 83
|
||||||
|
2025-03-21 15:58:54 INFO: id.co.gtc.erhacam.Detectors.setFaceMinSize() FaceMinSize created with value : 250
|
||||||
|
2025-03-21 15:58:54 INFO: id.co.gtc.erhacam.Detectors.setFaceMinSize() EyeMinSize created with value : 41
|
||||||
|
2025-03-21 15:58:54 INFO: Config.ConfigFile.Load() Config Loaded
|
||||||
|
2025-03-21 15:58:54 INFO: Config.SomeCodes.MakeDirectory() Directory exists: C:\Users\Erha\Desktop\ErhaCapture\FullQuality
|
||||||
|
2025-03-21 15:58:54 INFO: Config.SomeCodes.MakeDirectory() Directory exists: C:\Users\Erha\Desktop\ErhaCapture\FullQualityCrop
|
||||||
|
2025-03-21 15:58:54 INFO: Config.SomeCodes.MakeDirectory() Directory exists: C:\Users\Erha\Desktop\ErhaCapture\Compressed
|
||||||
|
2025-03-21 15:58:54 INFO: Config.SomeCodes.MakeDirectory() Directory exists: C:\Users\Erha\Desktop\ErhaCapture\CompressedCrop
|
||||||
|
2025-03-21 15:58:54 INFO: Config.SomeCodes.MakeDirectory() Directory exists: C:\Users\Erha\Desktop\ErhaCapture\thumbs
|
||||||
|
2025-03-21 15:58:55 INFO: id.co.gtc.erhacam.MainApplication.start() Secure Dongle UserID valid
|
||||||
|
2025-03-21 15:58:55 INFO: id.co.gtc.erhacam.CaptureView.initialize() Audio Player : Inited
|
||||||
|
2025-03-21 15:58:55 INFO: Config.SomeCodes.LoadQRReader() QRReader loaded
|
||||||
|
2025-03-21 15:58:55 INFO: id.co.gtc.erhacam.Detectors.LoadFrontalFaceDetector() Face Detector file : C:\Users\Erha\IdeaProjects\ErhaCam\haarcascade_frontalface_alt.xml
|
||||||
|
2025-03-21 15:58:55 INFO: id.co.gtc.erhacam.Detectors.LoadFrontalFaceDetector() FaceDetector loaded
|
||||||
|
2025-03-21 15:58:55 INFO: id.co.gtc.erhacam.Detectors.LoadEyeDetector() Eye Detector file : C:\Users\Erha\IdeaProjects\ErhaCam\haarcascade_eye.xml
|
||||||
|
2025-03-21 15:58:55 INFO: id.co.gtc.erhacam.Detectors.LoadEyeDetector() EyeDetector loaded
|
||||||
|
2025-03-21 15:58:55 INFO: id.co.gtc.erhacam.Detectors.LoadProfileFaceDetector() Profile Face Detector file : C:\Users\Erha\IdeaProjects\ErhaCam\haarcascade_profileface.xml
|
||||||
|
2025-03-21 15:58:55 INFO: id.co.gtc.erhacam.Detectors.LoadProfileFaceDetector() ProfileFaceDetector loaded
|
||||||
|
2025-03-21 15:58:55 INFO: id.co.gtc.erhacam.MainApplication.start() Application started
|
||||||
|
2025-03-21 15:58:55 INFO: SecureDongle.SecureDongle.lambda$StartMonitor$0() Start Monitoring UserID=14022025
|
||||||
|
2025-03-21 15:58:55 INFO: id.co.gtc.erhacam.CaptureView.lambda$initialize$15() Left90 Index: 0
|
||||||
|
2025-03-21 15:58:55 INFO: id.co.gtc.erhacam.CaptureView.onLog() [01] : QR Reader loaded
|
||||||
|
2025-03-21 15:58:55 INFO: id.co.gtc.erhacam.CaptureView.onLog() [01] : Face detector loaded
|
||||||
|
2025-03-21 15:59:01 INFO: id.co.gtc.erhacam.CaptureView.onLog() [01] : Camera Started with resolution 2160x3840@0
|
||||||
|
2025-03-21 15:59:03 ERROR: id.co.gtc.erhacam.CaptureView.call() Record associated with barcode
|
||||||
|
2025-03-21 16:07:12 INFO: Config.ConfigFile.<init>() Current working directory in Java : C:\Users\Erha\IdeaProjects\ErhaCam
|
||||||
|
2025-03-21 16:07:12 INFO: Config.ConfigFile.Load() Load config file at C:\Users\Erha\IdeaProjects\ErhaCam\config.properties
|
||||||
|
2025-03-21 16:07:12 INFO: id.co.gtc.erhacam.Detectors.setFaceMaxSize() FaceMaxSize created with value : 500
|
||||||
|
2025-03-21 16:07:12 INFO: id.co.gtc.erhacam.Detectors.setFaceMaxSize() EyeMaxSize created with value : 83
|
||||||
|
2025-03-21 16:07:12 INFO: id.co.gtc.erhacam.Detectors.setFaceMinSize() FaceMinSize created with value : 250
|
||||||
|
2025-03-21 16:07:12 INFO: id.co.gtc.erhacam.Detectors.setFaceMinSize() EyeMinSize created with value : 41
|
||||||
|
2025-03-21 16:07:12 INFO: Config.ConfigFile.Load() Config Loaded
|
||||||
|
2025-03-21 16:07:12 INFO: Config.SomeCodes.MakeDirectory() Directory exists: C:\Users\Erha\Desktop\ErhaCapture\FullQuality
|
||||||
|
2025-03-21 16:07:12 INFO: Config.SomeCodes.MakeDirectory() Directory exists: C:\Users\Erha\Desktop\ErhaCapture\FullQualityCrop
|
||||||
|
2025-03-21 16:07:12 INFO: Config.SomeCodes.MakeDirectory() Directory exists: C:\Users\Erha\Desktop\ErhaCapture\Compressed
|
||||||
|
2025-03-21 16:07:12 INFO: Config.SomeCodes.MakeDirectory() Directory exists: C:\Users\Erha\Desktop\ErhaCapture\CompressedCrop
|
||||||
|
2025-03-21 16:07:12 INFO: Config.SomeCodes.MakeDirectory() Directory exists: C:\Users\Erha\Desktop\ErhaCapture\thumbs
|
||||||
|
2025-03-21 16:07:12 INFO: id.co.gtc.erhacam.MainApplication.start() Secure Dongle UserID valid
|
||||||
|
2025-03-21 16:07:12 INFO: id.co.gtc.erhacam.CaptureView.initialize() Audio Player : Inited
|
||||||
|
2025-03-21 16:07:12 INFO: Config.SomeCodes.LoadQRReader() QRReader loaded
|
||||||
|
2025-03-21 16:07:12 INFO: id.co.gtc.erhacam.Detectors.LoadFrontalFaceDetector() Face Detector file : C:\Users\Erha\IdeaProjects\ErhaCam\haarcascade_frontalface_alt.xml
|
||||||
|
2025-03-21 16:07:13 INFO: id.co.gtc.erhacam.Detectors.LoadFrontalFaceDetector() FaceDetector loaded
|
||||||
|
2025-03-21 16:07:13 INFO: id.co.gtc.erhacam.Detectors.LoadEyeDetector() Eye Detector file : C:\Users\Erha\IdeaProjects\ErhaCam\haarcascade_eye.xml
|
||||||
|
2025-03-21 16:07:13 INFO: id.co.gtc.erhacam.Detectors.LoadEyeDetector() EyeDetector loaded
|
||||||
|
2025-03-21 16:07:13 INFO: id.co.gtc.erhacam.Detectors.LoadProfileFaceDetector() Profile Face Detector file : C:\Users\Erha\IdeaProjects\ErhaCam\haarcascade_profileface.xml
|
||||||
|
2025-03-21 16:07:13 INFO: id.co.gtc.erhacam.Detectors.LoadProfileFaceDetector() ProfileFaceDetector loaded
|
||||||
|
2025-03-21 16:07:13 INFO: id.co.gtc.erhacam.MainApplication.start() Application started
|
||||||
|
2025-03-21 16:07:13 INFO: SecureDongle.SecureDongle.lambda$StartMonitor$0() Start Monitoring UserID=14022025
|
||||||
|
2025-03-21 16:07:13 INFO: id.co.gtc.erhacam.CaptureView.lambda$initialize$15() Left90 Index: 0
|
||||||
|
2025-03-21 16:07:13 INFO: id.co.gtc.erhacam.CaptureView.onLog() [01] : QR Reader loaded
|
||||||
|
2025-03-21 16:07:13 INFO: id.co.gtc.erhacam.CaptureView.onLog() [01] : Face detector loaded
|
||||||
|
2025-03-21 16:07:18 INFO: id.co.gtc.erhacam.CaptureView.onLog() [01] : Camera Started with resolution 2160x3840@0
|
||||||
|
2025-03-21 16:07:51 ERROR: id.co.gtc.erhacam.CaptureView.call() Record associated with barcode
|
||||||
|
2025-03-21 16:08:12 ERROR: id.co.gtc.erhacam.CaptureView.call() Record associated with barcode
|
||||||
|
2025-03-21 16:08:33 INFO: id.co.gtc.erhacam.CaptureView.onPlaybackStarted() Audio Positikan Muka Started
|
||||||
|
2025-03-21 16:08:40 INFO: id.co.gtc.erhacam.CaptureView.onPlaybackFinished() Audio Positikan Muka Finished
|
||||||
|
|||||||
Binary file not shown.
@@ -3,6 +3,8 @@ package BASS;
|
|||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import org.tinylog.Logger;
|
import org.tinylog.Logger;
|
||||||
|
|
||||||
|
import static Config.SomeCodes.Wait;
|
||||||
|
|
||||||
|
|
||||||
@SuppressWarnings("unused")
|
@SuppressWarnings("unused")
|
||||||
public class AudioPlayer {
|
public class AudioPlayer {
|
||||||
@@ -13,11 +15,7 @@ public class AudioPlayer {
|
|||||||
|
|
||||||
public void WaitUntilFinished(){
|
public void WaitUntilFinished(){
|
||||||
while(currentFileHandle!=0){
|
while(currentFileHandle!=0){
|
||||||
try {
|
Wait(10);
|
||||||
Thread.sleep(100);
|
|
||||||
} catch (InterruptedException ignored) {
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -102,16 +100,15 @@ public class AudioPlayer {
|
|||||||
* Play Audio File
|
* Play Audio File
|
||||||
* @param filename File to be played
|
* @param filename File to be played
|
||||||
* @param playbackstatus PlaybackStatus callback
|
* @param playbackstatus PlaybackStatus callback
|
||||||
* @return true if success, false if failed
|
|
||||||
*/
|
*/
|
||||||
public boolean PlayFile(final String filename, final PlaybackStatus playbackstatus){
|
public void PlayFile(final String filename, final PlaybackStatus playbackstatus){
|
||||||
if (inited && filename!=null && !filename.isEmpty()){
|
if (inited && filename!=null && !filename.isBlank()){
|
||||||
int filehandle = bass.BASS_StreamCreateFile(false, filename, 0, 0, 0);
|
int filehandle = bass.BASS_StreamCreateFile(false, filename, 0, 0, 0);
|
||||||
if (filehandle!=0){
|
if (filehandle!=0){
|
||||||
if (bass.BASS_ChannelStart(filehandle)){
|
if (bass.BASS_ChannelStart(filehandle)){
|
||||||
currentFile = filename;
|
currentFile = filename;
|
||||||
currentFileHandle = filehandle;
|
currentFileHandle = filehandle;
|
||||||
new Thread(()->{
|
Thread pl = new Thread(() -> {
|
||||||
if (playbackstatus!=null) playbackstatus.onPlaybackStarted(filename);
|
if (playbackstatus!=null) playbackstatus.onPlaybackStarted(filename);
|
||||||
boolean iscontinue = true;
|
boolean iscontinue = true;
|
||||||
while(iscontinue){
|
while(iscontinue){
|
||||||
@@ -124,23 +121,29 @@ public class AudioPlayer {
|
|||||||
iscontinue = false;
|
iscontinue = false;
|
||||||
break;
|
break;
|
||||||
default : {
|
default : {
|
||||||
try {
|
Wait(100);
|
||||||
Thread.sleep(100);
|
|
||||||
} catch (InterruptedException e) {
|
|
||||||
iscontinue = false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (playbackstatus!=null) playbackstatus.onPlaybackFinished(filename);
|
if (playbackstatus!=null) playbackstatus.onPlaybackFinished(filename);
|
||||||
currentFile = "";
|
currentFile = "";
|
||||||
currentFileHandle = 0;
|
currentFileHandle = 0;
|
||||||
}).start();
|
});
|
||||||
return true;
|
pl.setDaemon(true);
|
||||||
} else Logger.error("AudioPlayer PlayFile failed, BASS_ChannelStart failed, error code: "+bass.BASS_ErrorGetCode());
|
pl.start();
|
||||||
} else Logger.error("AudioPlayer PlayFile failed, BASS_StreamCreateFile failed, error code: "+bass.BASS_ErrorGetCode());
|
|
||||||
} else Logger.info("AudioPlayer PlayFile failed, AudioPlayer is not initialized");
|
} else {
|
||||||
return false;
|
Logger.error("AudioPlayer PlayFile failed, BASS_ChannelStart failed, error code: "+bass.BASS_ErrorGetCode());
|
||||||
|
if (playbackstatus!=null) playbackstatus.onPlaybackFailure(filename);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
Logger.error("AudioPlayer PlayFile failed, BASS_StreamCreateFile failed, error code: "+bass.BASS_ErrorGetCode());
|
||||||
|
if (playbackstatus!=null) playbackstatus.onPlaybackFailure(filename);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
Logger.info("AudioPlayer PlayFile failed, AudioPlayer is not initialized");
|
||||||
|
if (playbackstatus!=null) playbackstatus.onPlaybackFailure(filename);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,11 +4,10 @@ public interface LiveCamEvent {
|
|||||||
void onDetectedQRCode(String qrCode);
|
void onDetectedQRCode(String qrCode);
|
||||||
void onFrontalFaceDetector(boolean hasface, int width, int height);
|
void onFrontalFaceDetector(boolean hasface, int width, int height);
|
||||||
void onProfileFaceDetector(boolean hasface, int width, int height);
|
void onProfileFaceDetector(boolean hasface, int width, int height);
|
||||||
void onEyeDetector(boolean hasEye, int width, int height);
|
void onEyeDetector(boolean hasEye);
|
||||||
void onLeftEarDetector(boolean hasLeftEar, int width, int height);
|
|
||||||
void onRightEarDetector(boolean hasRightEar, int width, int height);
|
|
||||||
void onLeftEyeDetector(boolean hasLeftEye, int width, int height);
|
|
||||||
void onRightEyeDetector(boolean hasRightEye, int width, int height);
|
|
||||||
void onLog(String log);
|
void onLog(String log);
|
||||||
void onBlink(int counter);
|
void onBlink(int counter);
|
||||||
|
void onDoubleBlink(int counter);
|
||||||
|
void onStartCapturing();
|
||||||
|
void onIntervalUpdate();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -45,6 +45,11 @@ public class ConfigFile {
|
|||||||
private @Getter int cascadeMinSize;
|
private @Getter int cascadeMinSize;
|
||||||
private @Getter int cascadeMaxSize;
|
private @Getter int cascadeMaxSize;
|
||||||
|
|
||||||
|
private @Getter boolean MirrorCamera = false;
|
||||||
|
private @Getter boolean FlipCamera = false;
|
||||||
|
|
||||||
|
private @Getter double SharpnessThreshold;
|
||||||
|
|
||||||
private boolean needsave = false;
|
private boolean needsave = false;
|
||||||
|
|
||||||
public ConfigFile(){
|
public ConfigFile(){
|
||||||
@@ -53,6 +58,27 @@ public class ConfigFile {
|
|||||||
Load();
|
Load();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setMirrorCamera(boolean value){
|
||||||
|
if (MirrorCamera != value){
|
||||||
|
MirrorCamera = value;
|
||||||
|
needsave = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFlipCamera(boolean value){
|
||||||
|
if (FlipCamera != value){
|
||||||
|
FlipCamera = value;
|
||||||
|
needsave = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSharpnessThreshold(double value){
|
||||||
|
if (SharpnessThreshold != value){
|
||||||
|
SharpnessThreshold = value;
|
||||||
|
needsave = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public void setCascadeScaleFactor(double value){
|
public void setCascadeScaleFactor(double value){
|
||||||
if (cascadeScaleFactor != value){
|
if (cascadeScaleFactor != value){
|
||||||
cascadeScaleFactor = value;
|
cascadeScaleFactor = value;
|
||||||
@@ -554,6 +580,10 @@ public class ConfigFile {
|
|||||||
if (prop.getProperty("FTPPass") == null) allcorrect = false;
|
if (prop.getProperty("FTPPass") == null) allcorrect = false;
|
||||||
if (prop.getProperty("FTPPath") == null) allcorrect = false;
|
if (prop.getProperty("FTPPath") == null) allcorrect = false;
|
||||||
if (prop.getProperty("PhotoDirectory") == null) allcorrect = false;
|
if (prop.getProperty("PhotoDirectory") == null) allcorrect = false;
|
||||||
|
if (prop.getProperty("MirrorCamera") == null) allcorrect = false;
|
||||||
|
if (prop.getProperty("FlipCamera") == null) allcorrect = false;
|
||||||
|
if (prop.getProperty("SharpnessThreshold") == null) allcorrect = false;
|
||||||
|
|
||||||
|
|
||||||
if (prop.getProperty(CameraConfigEnum.CameraConfigLeft90.toString()) == null) allcorrect = false;
|
if (prop.getProperty(CameraConfigEnum.CameraConfigLeft90.toString()) == null) allcorrect = false;
|
||||||
if (prop.getProperty(CameraConfigEnum.CameraConfigLeft45.toString()) == null) allcorrect = false;
|
if (prop.getProperty(CameraConfigEnum.CameraConfigLeft45.toString()) == null) allcorrect = false;
|
||||||
@@ -601,6 +631,11 @@ public class ConfigFile {
|
|||||||
Detectors.setFaceMinSize(cascadeMinSize);
|
Detectors.setFaceMinSize(cascadeMinSize);
|
||||||
Detectors.setScaleFactor(cascadeScaleFactor);
|
Detectors.setScaleFactor(cascadeScaleFactor);
|
||||||
|
|
||||||
|
MirrorCamera = toBoolean(prop.getProperty("MirrorCamera"));
|
||||||
|
FlipCamera = toBoolean(prop.getProperty("FlipCamera"));
|
||||||
|
|
||||||
|
SharpnessThreshold = toDouble(prop.getProperty("SharpnessThreshold"));
|
||||||
|
|
||||||
Logger.info("Config Loaded");
|
Logger.info("Config Loaded");
|
||||||
MakeDirectories();
|
MakeDirectories();
|
||||||
return;
|
return;
|
||||||
@@ -653,6 +688,9 @@ public class ConfigFile {
|
|||||||
Detectors.setFaceMaxSize(cascadeMaxSize);
|
Detectors.setFaceMaxSize(cascadeMaxSize);
|
||||||
Detectors.setFaceMinSize(cascadeMinSize);
|
Detectors.setFaceMinSize(cascadeMinSize);
|
||||||
Detectors.setScaleFactor(cascadeScaleFactor);
|
Detectors.setScaleFactor(cascadeScaleFactor);
|
||||||
|
MirrorCamera = false;
|
||||||
|
FlipCamera = false;
|
||||||
|
SharpnessThreshold = 300.0;
|
||||||
Logger.info("Default Config Created");
|
Logger.info("Default Config Created");
|
||||||
needsave = true;
|
needsave = true;
|
||||||
Save();
|
Save();
|
||||||
@@ -709,6 +747,10 @@ public class ConfigFile {
|
|||||||
prop.setProperty("cascadeMinSize", String.valueOf(cascadeMinSize));
|
prop.setProperty("cascadeMinSize", String.valueOf(cascadeMinSize));
|
||||||
prop.setProperty("cascadeMaxSize", String.valueOf(cascadeMaxSize));
|
prop.setProperty("cascadeMaxSize", String.valueOf(cascadeMaxSize));
|
||||||
|
|
||||||
|
prop.setProperty("MirrorCamera", String.valueOf(MirrorCamera));
|
||||||
|
prop.setProperty("FlipCamera", String.valueOf(FlipCamera));
|
||||||
|
prop.setProperty("SharpnessThreshold", String.valueOf(SharpnessThreshold));
|
||||||
|
|
||||||
try{
|
try{
|
||||||
prop.store(new FileOutputStream(Path.of(currentDirectory, "config.properties").toString()), null);
|
prop.store(new FileOutputStream(Path.of(currentDirectory, "config.properties").toString()), null);
|
||||||
Logger.info("Config Saved");
|
Logger.info("Config Saved");
|
||||||
|
|||||||
@@ -3,9 +3,16 @@ 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.control.TextArea;
|
||||||
|
import javafx.scene.control.TextField;
|
||||||
import javafx.scene.image.Image;
|
import javafx.scene.image.Image;
|
||||||
|
import javafx.scene.image.PixelFormat;
|
||||||
|
import javafx.scene.image.WritableImage;
|
||||||
|
import org.bytedeco.javacv.Frame;
|
||||||
import org.bytedeco.javacv.Java2DFrameConverter;
|
import org.bytedeco.javacv.Java2DFrameConverter;
|
||||||
import org.bytedeco.javacv.OpenCVFrameConverter;
|
import org.bytedeco.javacv.OpenCVFrameConverter;
|
||||||
import org.bytedeco.opencv.global.opencv_core;
|
import org.bytedeco.opencv.global.opencv_core;
|
||||||
@@ -18,11 +25,13 @@ import org.bytedeco.opencv.opencv_core.UMat;
|
|||||||
import org.tinylog.Logger;
|
import org.tinylog.Logger;
|
||||||
|
|
||||||
import java.awt.image.BufferedImage;
|
import java.awt.image.BufferedImage;
|
||||||
|
import java.awt.image.DataBufferByte;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
import java.net.Inet4Address;
|
import java.net.Inet4Address;
|
||||||
import java.net.Inet6Address;
|
import java.net.Inet6Address;
|
||||||
import java.net.InetAddress;
|
import java.net.InetAddress;
|
||||||
|
import java.nio.ByteBuffer;
|
||||||
import java.nio.file.Files;
|
import java.nio.file.Files;
|
||||||
import java.nio.file.Path;
|
import java.nio.file.Path;
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
@@ -229,6 +238,10 @@ public class SomeCodes {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static boolean toBoolean(String x){
|
||||||
|
return x!=null && x.equalsIgnoreCase("true");
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if string is valid IPV4 address
|
* Check if string is valid IPV4 address
|
||||||
* @param ipaddress IPV4 address
|
* @param ipaddress IPV4 address
|
||||||
@@ -406,7 +419,7 @@ public class SomeCodes {
|
|||||||
*/
|
*/
|
||||||
public static boolean ValidString(String x){
|
public static boolean ValidString(String x){
|
||||||
if (x!=null){
|
if (x!=null){
|
||||||
return !x.isEmpty();
|
return !x.isBlank();
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -483,7 +496,7 @@ public class SomeCodes {
|
|||||||
* @return true if valid, false if not valid
|
* @return true if valid, false if not valid
|
||||||
*/
|
*/
|
||||||
public static boolean ValidMedicalRecordId(String patientid){
|
public static boolean ValidMedicalRecordId(String patientid){
|
||||||
if (patientid!=null && !patientid.isEmpty()){
|
if (patientid!=null && !patientid.isBlank()){
|
||||||
boolean valid = true;
|
boolean valid = true;
|
||||||
for(int i=0; i<patientid.length(); i++){
|
for(int i=0; i<patientid.length(); i++){
|
||||||
if (!Character.isDigit(patientid.charAt(i))){
|
if (!Character.isDigit(patientid.charAt(i))){
|
||||||
@@ -505,9 +518,7 @@ public class SomeCodes {
|
|||||||
if (ROI.x()>=0){
|
if (ROI.x()>=0){
|
||||||
if (ROI.y()>=0){
|
if (ROI.y()>=0){
|
||||||
if (ROI.width()>0){
|
if (ROI.width()>0){
|
||||||
if (ROI.height()>0){
|
return ROI.height() > 0;
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -516,7 +527,7 @@ public class SomeCodes {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void Print(String... x){
|
public static void Print(String... x){
|
||||||
if (x!=null && x.length>0){
|
if (x != null){
|
||||||
for(String xx : x){
|
for(String xx : x){
|
||||||
System.out.println(xx);
|
System.out.println(xx);
|
||||||
}
|
}
|
||||||
@@ -597,6 +608,77 @@ public class SomeCodes {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void LabelSetText(Label lbl, String text, String style){
|
||||||
|
if (lbl!=null){
|
||||||
|
if (text!=null){
|
||||||
|
if (text.equals(lbl.getText())) return;
|
||||||
|
if (Platform.isFxApplicationThread()){
|
||||||
|
lbl.setText(text);
|
||||||
|
if (style!=null && !style.isBlank()){
|
||||||
|
lbl.setStyle(style);
|
||||||
|
}
|
||||||
|
} else{
|
||||||
|
Platform.runLater(()-> {
|
||||||
|
lbl.setText(text);
|
||||||
|
if (style!=null && !style.isBlank()){
|
||||||
|
lbl.setStyle(style);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void TextAreaSetText(TextArea ta, String text){
|
||||||
|
if (ta!=null){
|
||||||
|
if (text!=null){
|
||||||
|
if (text.equals(ta.getText())) return;
|
||||||
|
if (Platform.isFxApplicationThread()){
|
||||||
|
ta.setText(text);
|
||||||
|
} else{
|
||||||
|
Platform.runLater(()-> ta.setText(text));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void TextFieldSetText(TextField tf, String text){
|
||||||
|
if (tf!=null){
|
||||||
|
if (text!=null){
|
||||||
|
if (text.equals(tf.getText())) return;
|
||||||
|
if (Platform.isFxApplicationThread()){
|
||||||
|
tf.setText(text);
|
||||||
|
} else{
|
||||||
|
Platform.runLater(()-> tf.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);
|
||||||
@@ -620,30 +702,58 @@ public class SomeCodes {
|
|||||||
if (values!=null && values.length>0){
|
if (values!=null && values.length>0){
|
||||||
double lowest = values[0];
|
double lowest = values[0];
|
||||||
for(double x : values){
|
for(double x : values){
|
||||||
if (x<lowest){
|
if (x>=0){
|
||||||
lowest = x;
|
if (x<lowest){
|
||||||
|
lowest = x;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
return lowest;
|
return lowest;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static boolean ValidDouble(String x){
|
||||||
|
try{
|
||||||
|
double xx = Double.parseDouble(x);
|
||||||
|
return true;
|
||||||
|
} catch (Exception ignored){
|
||||||
|
}
|
||||||
|
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.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);
|
||||||
|
|
||||||
opencv_core.meanStdDev(laplacian, mean, stddev);
|
opencv_core.meanStdDev(laplacian, mean, stddev);
|
||||||
|
|
||||||
Mat _std = new Mat();
|
Mat _std = new Mat();
|
||||||
stddev.copyTo(_std);
|
stddev.copyTo(_std);
|
||||||
|
|
||||||
return _std.ptr(0).getDouble() * _std.ptr(0).getDouble();
|
double value = _std.createIndexer().getDouble(0,0);
|
||||||
|
|
||||||
|
return Math.pow(value,2);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@@ -651,4 +761,33 @@ public class SomeCodes {
|
|||||||
public static boolean IsBlurred(UMat mat, double threshold){
|
public static boolean IsBlurred(UMat mat, double threshold){
|
||||||
return CalculateSharpness(mat)<threshold;
|
return CalculateSharpness(mat)<threshold;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static Image MatToImage(Mat mat){
|
||||||
|
Frame frame = matconverter.convert(mat);
|
||||||
|
BufferedImage bufferedImage = matToBufferedImage(mat);
|
||||||
|
return SwingFXUtils.toFXImage(bufferedImage, null);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public static WritableImage matToWritableImage(Mat mat){
|
||||||
|
int cols = mat.cols();
|
||||||
|
int rows = mat.rows();
|
||||||
|
WritableImage writableImage = new WritableImage(cols, rows);
|
||||||
|
ByteBuffer buffer = mat.createBuffer();
|
||||||
|
PixelFormat<ByteBuffer> pixelFormat = PixelFormat.getByteRgbInstance();
|
||||||
|
writableImage.getPixelWriter().setPixels(0, 0, cols, rows, pixelFormat, buffer, cols * 3);
|
||||||
|
return writableImage;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static BufferedImage matToBufferedImage(Mat mat){
|
||||||
|
int type = BufferedImage.TYPE_BYTE_GRAY;
|
||||||
|
if (mat.channels() > 1) {
|
||||||
|
type = BufferedImage.TYPE_3BYTE_BGR;
|
||||||
|
}
|
||||||
|
BufferedImage image = new BufferedImage(mat.cols(), mat.rows(), type);
|
||||||
|
byte[] data = ((DataBufferByte) image.getRaster().getDataBuffer()).getData();
|
||||||
|
|
||||||
|
mat.data().get(data);
|
||||||
|
return image;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,10 +3,8 @@ package SecureDongle;
|
|||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import lombok.Setter;
|
import lombok.Setter;
|
||||||
import org.tinylog.Logger;
|
import org.tinylog.Logger;
|
||||||
|
|
||||||
import java.util.function.Consumer;
|
|
||||||
|
|
||||||
import static Config.SomeCodes.ToShort;
|
import static Config.SomeCodes.ToShort;
|
||||||
|
import static Config.SomeCodes.Wait;
|
||||||
|
|
||||||
public class SecureDongle {
|
public class SecureDongle {
|
||||||
|
|
||||||
@@ -108,6 +106,7 @@ public class SecureDongle {
|
|||||||
* Close SecureDongle
|
* Close SecureDongle
|
||||||
* @return true if success
|
* @return true if success
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("UnusedReturnValue")
|
||||||
public boolean Close(){
|
public boolean Close(){
|
||||||
handle[0] = Handle;
|
handle[0] = Handle;
|
||||||
short result = SD.SecureDongle(LibSecureDongle.SD_CLOSE, handle, lp1, lp2, p1, p2, p3, p4, buffer);
|
short result = SD.SecureDongle(LibSecureDongle.SD_CLOSE, handle, lp1, lp2, p1, p2, p3, p4, buffer);
|
||||||
@@ -118,12 +117,40 @@ public class SecureDongle {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Write to User Data Zone (UDZ)
|
||||||
|
* @param StartAddress start address of UDZ, zero based
|
||||||
|
* @param length length of data to write, max 1000 bytes
|
||||||
|
* @param data data to write
|
||||||
|
* @return true if success
|
||||||
|
*/
|
||||||
|
@SuppressWarnings("unused")
|
||||||
|
public boolean Write(short StartAddress, short length, byte[] data){
|
||||||
|
if (Opened){
|
||||||
|
handle[0] = Handle;
|
||||||
|
p1[0] = StartAddress>=0 ? StartAddress : 0;
|
||||||
|
if (length<1) length=1;
|
||||||
|
if (length>1000) length=1000;
|
||||||
|
p2[0] = length;
|
||||||
|
System.arraycopy(data, 0, buffer, 0, length);
|
||||||
|
short result = SD.SecureDongle(LibSecureDongle.SD_WRITE, handle, lp1, lp2, p1, p2, p3, p4, buffer);
|
||||||
|
if (result== LibSecureDongle.ERR_SUCCESS){
|
||||||
|
//System.out.println("SecureDongle HardwareID="+HardwareID+" write success ");
|
||||||
|
return true;
|
||||||
|
} else if (event!=null) event.onDongleError("Write", result);
|
||||||
|
} //else System.out.println("SecureDongle not opened");
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Read from User Data Zone (UDZ)
|
* Read from User Data Zone (UDZ)
|
||||||
* @param StartAddress Start Address, zero based
|
* @param StartAddress Start Address, zero based
|
||||||
* @param Length Length of data to read, max 1000 bytes
|
* @param Length Length of data to read, max 1000 bytes
|
||||||
* @return byte array of data, length=0 if failed
|
* @return byte array of data, length=0 if failed
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("unused")
|
||||||
public byte[] Read(short StartAddress, short Length){
|
public byte[] Read(short StartAddress, short Length){
|
||||||
if (Opened){
|
if (Opened){
|
||||||
handle[0] = Handle;
|
handle[0] = Handle;
|
||||||
@@ -143,35 +170,11 @@ public class SecureDongle {
|
|||||||
return new byte[0];
|
return new byte[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Write to User Data Zone (UDZ)
|
|
||||||
* @param StartAddress start address of UDZ, zero based
|
|
||||||
* @param length length of data to write, max 1000 bytes
|
|
||||||
* @param data data to write
|
|
||||||
* @return true if success
|
|
||||||
*/
|
|
||||||
public boolean Write(short StartAddress, short length, byte[] data){
|
|
||||||
if (Opened){
|
|
||||||
handle[0] = Handle;
|
|
||||||
p1[0] = StartAddress>=0 ? StartAddress : 0;
|
|
||||||
if (length<1) length=1;
|
|
||||||
if (length>1000) length=1000;
|
|
||||||
p2[0] = length;
|
|
||||||
System.arraycopy(data, 0, buffer, 0, length);
|
|
||||||
short result = SD.SecureDongle(LibSecureDongle.SD_WRITE, handle, lp1, lp2, p1, p2, p3, p4, buffer);
|
|
||||||
if (result== LibSecureDongle.ERR_SUCCESS){
|
|
||||||
//System.out.println("SecureDongle HardwareID="+HardwareID+" write success ");
|
|
||||||
return true;
|
|
||||||
} else if (event!=null) event.onDongleError("Write", result);
|
|
||||||
} //else System.out.println("SecureDongle not opened");
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generate Random Number
|
* Generate Random Number
|
||||||
* @return short array of random number
|
* @return short array of random number
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("unused")
|
||||||
public short[] GenerateRandomNumber(){
|
public short[] GenerateRandomNumber(){
|
||||||
short[] random = new short[4];
|
short[] random = new short[4];
|
||||||
if (Opened){
|
if (Opened){
|
||||||
@@ -195,6 +198,7 @@ public class SecureDongle {
|
|||||||
* @param UserID UserID to write
|
* @param UserID UserID to write
|
||||||
* @return true if success
|
* @return true if success
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("unused")
|
||||||
public boolean WriteUserID(int UserID){
|
public boolean WriteUserID(int UserID){
|
||||||
if (Opened){
|
if (Opened){
|
||||||
handle[0] = Handle;
|
handle[0] = Handle;
|
||||||
@@ -242,7 +246,7 @@ public class SecureDongle {
|
|||||||
* if dongle missing, will raise event onDongleMissing
|
* if dongle missing, will raise event onDongleMissing
|
||||||
*/
|
*/
|
||||||
public void StartMonitor(){
|
public void StartMonitor(){
|
||||||
new Thread(()->{
|
Thread tx = new Thread(()->{
|
||||||
if (HardwareID==0) Find();
|
if (HardwareID==0) Find();
|
||||||
Open();
|
Open();
|
||||||
int firstUserID = ReadUserID();
|
int firstUserID = ReadUserID();
|
||||||
@@ -251,11 +255,7 @@ public class SecureDongle {
|
|||||||
ismonitoring = true;
|
ismonitoring = true;
|
||||||
Logger.info("Start Monitoring UserID="+Integer.toHexString(firstUserID));
|
Logger.info("Start Monitoring UserID="+Integer.toHexString(firstUserID));
|
||||||
while (ismonitoring){
|
while (ismonitoring){
|
||||||
try {
|
Wait(5000);
|
||||||
Thread.sleep(5000);
|
|
||||||
} catch (InterruptedException e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
Open();
|
Open();
|
||||||
int newUserID = ReadUserID();
|
int newUserID = ReadUserID();
|
||||||
Close();
|
Close();
|
||||||
@@ -267,7 +267,9 @@ public class SecureDongle {
|
|||||||
System.out.println("Stop Monitoring");
|
System.out.println("Stop Monitoring");
|
||||||
} else System.out.println("Canceled Monitoring, UserID not found");
|
} else System.out.println("Canceled Monitoring, UserID not found");
|
||||||
|
|
||||||
}).start();
|
});
|
||||||
|
tx.setDaemon(true);
|
||||||
|
tx.start();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,18 +1,31 @@
|
|||||||
package id.co.gtc.erhacam;
|
package id.co.gtc.erhacam;
|
||||||
|
|
||||||
|
import javafx.animation.KeyFrame;
|
||||||
import javafx.animation.PauseTransition;
|
import javafx.animation.PauseTransition;
|
||||||
|
import javafx.animation.Timeline;
|
||||||
import javafx.application.Platform;
|
import javafx.application.Platform;
|
||||||
|
|
||||||
import javafx.geometry.Pos;
|
import javafx.geometry.Pos;
|
||||||
|
import javafx.scene.Node;
|
||||||
import javafx.scene.Scene;
|
import javafx.scene.Scene;
|
||||||
import javafx.scene.control.Label;
|
import javafx.scene.control.Label;
|
||||||
|
import javafx.scene.image.Image;
|
||||||
|
import javafx.scene.image.ImageView;
|
||||||
|
import javafx.scene.layout.BorderPane;
|
||||||
|
import javafx.scene.layout.HBox;
|
||||||
|
import javafx.scene.layout.StackPane;
|
||||||
import javafx.scene.layout.VBox;
|
import javafx.scene.layout.VBox;
|
||||||
import javafx.stage.Modality;
|
import javafx.scene.paint.Color;
|
||||||
import javafx.stage.Screen;
|
import javafx.scene.shape.Circle;
|
||||||
import javafx.stage.Stage;
|
import javafx.stage.*;
|
||||||
import javafx.stage.StageStyle;
|
|
||||||
import javafx.util.Duration;
|
import javafx.util.Duration;
|
||||||
|
import java.nio.file.Paths;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
import java.util.Optional;
|
import java.util.Optional;
|
||||||
|
import java.util.function.Consumer;
|
||||||
|
|
||||||
|
import static Config.SomeCodes.*;
|
||||||
|
|
||||||
public class AutoCloseAlert {
|
public class AutoCloseAlert {
|
||||||
|
|
||||||
@@ -20,13 +33,51 @@ public class AutoCloseAlert {
|
|||||||
public static String shownTitle = "";
|
public static String shownTitle = "";
|
||||||
public static String shownContent = "";
|
public static String shownContent = "";
|
||||||
public static String shownHeader = "";
|
public static String shownHeader = "";
|
||||||
|
public static Image shownBanner = null;
|
||||||
|
public static Image banner_01;
|
||||||
|
public static Image banner_02;
|
||||||
|
private static Circle Cam1;
|
||||||
|
private static Circle Cam2;
|
||||||
|
private static Circle Cam3;
|
||||||
|
private static Circle Cam4;
|
||||||
|
private static Circle Cam5;
|
||||||
|
|
||||||
private static void clear(){
|
public static void init(){
|
||||||
shownTitle = "";
|
String f_01 = ExtractResource("/IU photoboth-01.jpg");
|
||||||
shownContent = "";
|
System.out.println("Banner 01 extracted as file: "+f_01);
|
||||||
shownHeader = "";
|
String f_02 = ExtractResource("/IU photoboth-02.jpg");
|
||||||
|
System.out.println("Banner 02 extracted as file: "+f_02);
|
||||||
|
banner_01 = LoadImage(f_01);
|
||||||
|
if (banner_01!=null) System.out.println("Banner 01 loaded"); else System.out.println("Banner 01 not loaded");
|
||||||
|
banner_02 = LoadImage(f_02);
|
||||||
|
if (banner_02!=null) System.out.println("Banner 02 loaded"); else System.out.println("Banner 02 not loaded");
|
||||||
|
Cam1 = new Circle(10, Color.RED);
|
||||||
|
Cam2 = new Circle(10, Color.RED);
|
||||||
|
Cam3 = new Circle(10, Color.RED);
|
||||||
|
Cam4 = new Circle(10, Color.RED);
|
||||||
|
Cam5 = new Circle(10, Color.RED);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void ChangeCamStatus(int id, boolean active){
|
||||||
|
Circle x = switch (id){
|
||||||
|
case 1 -> Cam1;
|
||||||
|
case 2 -> Cam2;
|
||||||
|
case 3 -> Cam3;
|
||||||
|
case 4 -> Cam4;
|
||||||
|
case 5 -> Cam5;
|
||||||
|
default -> null;
|
||||||
|
};
|
||||||
|
if (x!=null){
|
||||||
|
if (active){
|
||||||
|
x.setFill(Color.GREEN);
|
||||||
|
} else {
|
||||||
|
x.setFill(Color.RED);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Close the current alert if it is shown
|
* Close the current alert if it is shown
|
||||||
*/
|
*/
|
||||||
@@ -36,6 +87,10 @@ public class AutoCloseAlert {
|
|||||||
clear();
|
clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Show an alert with a title, header, content, and automatically close after a few seconds
|
* Show an alert with a title, header, content, and automatically close after a few seconds
|
||||||
* If called several times, the previous alert will be closed before showing a new one
|
* If called several times, the previous alert will be closed before showing a new one
|
||||||
@@ -43,57 +98,262 @@ public class AutoCloseAlert {
|
|||||||
* @param header the header of the alert
|
* @param header the header of the alert
|
||||||
* @param content the content of the alert
|
* @param content the content of the alert
|
||||||
* @param seconds the number of seconds before the alert is closed, or put 0 to keep it open
|
* @param seconds the number of seconds before the alert is closed, or put 0 to keep it open
|
||||||
|
* @param onClose What to do after auto close
|
||||||
*/
|
*/
|
||||||
public static void show(String title, String header, String content, int seconds) {
|
public static void show(String title, String header, String content, int seconds, Consumer<String> onClose) {
|
||||||
Platform.runLater(()->{
|
if (Platform.isFxApplicationThread()){
|
||||||
// close previous alert before showing a new one
|
Stage alertStage = _showtext(title, header, content);
|
||||||
Optional.ofNullable(currentAlertStage).ifPresent(Stage::close);
|
closeAlertStage(seconds, onClose, alertStage);
|
||||||
|
} else {
|
||||||
Stage alertStage = new Stage();
|
Platform.runLater(()->{
|
||||||
alertStage.initModality(Modality.APPLICATION_MODAL);
|
Stage alertStage = _showtext(title, header, content);
|
||||||
alertStage.initStyle(StageStyle.UTILITY);
|
closeAlertStage(seconds, onClose, alertStage);
|
||||||
alertStage.setAlwaysOnTop(true);
|
});
|
||||||
alertStage.setResizable(false);
|
}
|
||||||
|
|
||||||
double screenwidth = Screen.getPrimary().getVisualBounds().getWidth();
|
|
||||||
double width = screenwidth/4;
|
|
||||||
double height = width * 9 / 16;
|
|
||||||
Label headerLabel = new Label(header);
|
|
||||||
headerLabel.setStyle("-fx-font-weight: bold; -fx-font-size: 16px;");
|
|
||||||
headerLabel.setMinHeight(height*0.25);
|
|
||||||
Label contentLabel = new Label(content);
|
|
||||||
contentLabel.setStyle("-fx-font-size: 12px;");
|
|
||||||
contentLabel.setMinHeight(height*0.75);
|
|
||||||
|
|
||||||
VBox root = new VBox(10, headerLabel, contentLabel);
|
|
||||||
root.setPrefSize(width, height);
|
|
||||||
root.setAlignment(Pos.CENTER);
|
|
||||||
|
|
||||||
Scene scene = new Scene(root);
|
|
||||||
alertStage.setScene(scene);
|
|
||||||
|
|
||||||
alertStage.setTitle(title);
|
|
||||||
currentAlertStage = alertStage;
|
|
||||||
|
|
||||||
alertStage.show();
|
|
||||||
|
|
||||||
shownHeader = header;
|
|
||||||
shownContent = content;
|
|
||||||
shownTitle = title;
|
|
||||||
|
|
||||||
if (seconds>0){
|
|
||||||
PauseTransition delay = new PauseTransition(Duration.seconds(seconds));
|
|
||||||
delay.setOnFinished(e -> {
|
|
||||||
alertStage.close();
|
|
||||||
if (currentAlertStage == alertStage) {
|
|
||||||
currentAlertStage = null;
|
|
||||||
}
|
|
||||||
clear();
|
|
||||||
} );
|
|
||||||
delay.play();
|
|
||||||
}
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Show a banner image
|
||||||
|
* @param b1 Image to show
|
||||||
|
* @param seconds the number of seconds before the alert is closed, or put 0 to keep it open
|
||||||
|
* @param onClose What to do after auto close
|
||||||
|
*/
|
||||||
|
public static void showbanner(Image b1, int seconds, Consumer<String> onClose){
|
||||||
|
if (Platform.isFxApplicationThread()){
|
||||||
|
Stage alertStage = _showbanner(b1);
|
||||||
|
closeAlertStage(seconds, onClose, alertStage);
|
||||||
|
} else {
|
||||||
|
Platform.runLater(()->{
|
||||||
|
Stage alertStage = _showbanner(b1);
|
||||||
|
closeAlertStage(seconds, onClose, alertStage);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public static void showpictures(String[] pictures, int seconds, Consumer<String> onClose){
|
||||||
|
List<Image> images = new ArrayList<>();
|
||||||
|
|
||||||
|
if (pictures != null){
|
||||||
|
for(String pp : pictures){
|
||||||
|
Image ii = LoadImage(pp);
|
||||||
|
if (ii!=null) images.add(ii);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!images.isEmpty()){
|
||||||
|
Image[] source = images.toArray(new Image[0]);
|
||||||
|
if (Platform.isFxApplicationThread()){
|
||||||
|
_showpictures(source, seconds, onClose);
|
||||||
|
} else {
|
||||||
|
Platform.runLater(()-> _showpictures(source,seconds, onClose));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private static void _showpictures(Image[] pictures, int seconds, Consumer<String> onClose){
|
||||||
|
close();
|
||||||
|
|
||||||
|
Stage alertStage = new Stage();
|
||||||
|
alertStage.initModality(Modality.APPLICATION_MODAL);
|
||||||
|
alertStage.initStyle(StageStyle.UTILITY);
|
||||||
|
alertStage.setAlwaysOnTop(true);
|
||||||
|
alertStage.setResizable(false);
|
||||||
|
int width = (int) Screen.getPrimary().getBounds().getWidth();
|
||||||
|
int height = (int) Screen.getPrimary().getBounds().getHeight();
|
||||||
|
|
||||||
|
HBox hbox = new HBox();
|
||||||
|
hbox.setAlignment(Pos.CENTER);
|
||||||
|
int fitwidth = width / pictures.length;
|
||||||
|
for(Image i : pictures){
|
||||||
|
ImageView iv = new ImageView(i);
|
||||||
|
iv.setPreserveRatio(true);
|
||||||
|
iv.setFitHeight(height);
|
||||||
|
iv.setFitWidth(fitwidth);
|
||||||
|
hbox.getChildren().add(iv);
|
||||||
|
}
|
||||||
|
|
||||||
|
BorderPane borderPane = new BorderPane();
|
||||||
|
borderPane.setCenter(hbox);
|
||||||
|
|
||||||
|
alertStage.setScene(new Scene(borderPane, width, height));
|
||||||
|
alertStage.centerOnScreen();
|
||||||
|
|
||||||
|
Timeline timeline = new Timeline();
|
||||||
|
timeline.getKeyFrames().add(new KeyFrame(Duration.seconds(0), event -> alertStage.show()));
|
||||||
|
|
||||||
|
timeline.getKeyFrames().add(new KeyFrame(Duration.seconds(seconds* (pictures.length)), event -> {
|
||||||
|
alertStage.close();
|
||||||
|
if (currentAlertStage == alertStage) {
|
||||||
|
currentAlertStage = null;
|
||||||
|
}
|
||||||
|
if (onClose!=null) onClose.accept(shownTitle);
|
||||||
|
clear();
|
||||||
|
}));
|
||||||
|
timeline.play();
|
||||||
|
|
||||||
|
currentAlertStage = alertStage;
|
||||||
|
shownTitle = "";
|
||||||
|
shownContent = "";
|
||||||
|
shownHeader = "";
|
||||||
|
shownBanner = null;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private static Stage _showbanner(Image image){
|
||||||
|
close();
|
||||||
|
|
||||||
|
Stage alertStage = new Stage();
|
||||||
|
alertStage.initModality(Modality.APPLICATION_MODAL);
|
||||||
|
alertStage.initStyle(StageStyle.UTILITY);
|
||||||
|
alertStage.setAlwaysOnTop(true);
|
||||||
|
alertStage.setResizable(false);
|
||||||
|
int width = (int) Screen.getPrimary().getBounds().getWidth();
|
||||||
|
int height = (int) Screen.getPrimary().getBounds().getHeight();
|
||||||
|
|
||||||
|
BorderPane borderPane = new BorderPane();
|
||||||
|
|
||||||
|
StackPane stackPane = new StackPane();
|
||||||
|
|
||||||
|
if (image!=null){
|
||||||
|
ImageView imageView = new ImageView(image);
|
||||||
|
imageView.setPreserveRatio(true);
|
||||||
|
imageView.setFitWidth(width);
|
||||||
|
imageView.setSmooth(true);
|
||||||
|
stackPane.getChildren().add(imageView);
|
||||||
|
}
|
||||||
|
HBox CamStatus = new HBox(30, Cam1, Cam2, Cam3, Cam4, Cam5);
|
||||||
|
CamStatus.setMinHeight(60);
|
||||||
|
CamStatus.setAlignment(Pos.CENTER);
|
||||||
|
|
||||||
|
VBox vBox = new VBox(CamStatus);
|
||||||
|
vBox.setAlignment(Pos.BOTTOM_CENTER);
|
||||||
|
|
||||||
|
stackPane.getChildren().add(vBox);
|
||||||
|
|
||||||
|
borderPane.setCenter(stackPane);
|
||||||
|
|
||||||
|
alertStage.setScene(new Scene(borderPane, width, height));
|
||||||
|
alertStage.centerOnScreen();
|
||||||
|
alertStage.show();
|
||||||
|
|
||||||
|
currentAlertStage = alertStage;
|
||||||
|
shownBanner = image;
|
||||||
|
CamStatus.prefWidthProperty().bind(currentAlertStage.widthProperty());
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
shownTitle = "";
|
||||||
|
shownContent = "";
|
||||||
|
shownHeader = "";
|
||||||
|
|
||||||
|
return alertStage;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an alert with a title, header, and content
|
||||||
|
* @param title the title
|
||||||
|
* @param header the header
|
||||||
|
* @param content the content
|
||||||
|
* @return the alert stage
|
||||||
|
*/
|
||||||
|
private static Stage _showtext(String title, String header, String content){
|
||||||
|
// close previous alert before showing a new one
|
||||||
|
close();
|
||||||
|
|
||||||
|
Stage alertStage = new Stage();
|
||||||
|
alertStage.initModality(Modality.APPLICATION_MODAL);
|
||||||
|
alertStage.initStyle(StageStyle.UTILITY);
|
||||||
|
alertStage.setAlwaysOnTop(true);
|
||||||
|
alertStage.setResizable(false);
|
||||||
|
|
||||||
|
double screenwidth = Screen.getPrimary().getBounds().getWidth();
|
||||||
|
double screenheight = Screen.getPrimary().getBounds().getHeight();
|
||||||
|
|
||||||
|
double height = screenheight/4;
|
||||||
|
double width = height * 21/9;
|
||||||
|
|
||||||
|
List<Node> children = new ArrayList<>();
|
||||||
|
if (ValidString(header)){
|
||||||
|
Label headerLabel = new Label(header);
|
||||||
|
headerLabel.setStyle("-fx-font-weight: bold; -fx-font-size: 28px;");
|
||||||
|
headerLabel.setMinHeight(height*0.25);
|
||||||
|
children.add(headerLabel);
|
||||||
|
}
|
||||||
|
if (ValidString(content)){
|
||||||
|
Label contentLabel = new Label(content);
|
||||||
|
contentLabel.setStyle("-fx-font-size: 24px;");
|
||||||
|
contentLabel.setMinHeight(height*0.75);
|
||||||
|
children.add(contentLabel);
|
||||||
|
}
|
||||||
|
|
||||||
|
VBox root = new VBox(10, children.toArray(new Node[0]));
|
||||||
|
root.setPrefSize(width, height);
|
||||||
|
root.setAlignment(Pos.CENTER);
|
||||||
|
|
||||||
|
Scene scene = new Scene(root);
|
||||||
|
alertStage.setScene(scene);
|
||||||
|
|
||||||
|
alertStage.setTitle(title);
|
||||||
|
|
||||||
|
double x = screenwidth/2 - width/2;
|
||||||
|
double y = screenheight - height - 10;
|
||||||
|
alertStage.setX(x);
|
||||||
|
alertStage.setY(y);
|
||||||
|
|
||||||
|
alertStage.show();
|
||||||
|
currentAlertStage = alertStage;
|
||||||
|
shownHeader = ValidString(header) ? header : "";
|
||||||
|
shownContent = ValidString(content) ? content : "";
|
||||||
|
shownTitle = ValidString(title) ? title : "";
|
||||||
|
shownBanner = null;
|
||||||
|
|
||||||
|
return alertStage;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Close the alert after a few seconds
|
||||||
|
* @param seconds the number of seconds before the alert is closed, if 0, the alert will not be closed
|
||||||
|
* @param onClose What to do after auto close
|
||||||
|
* @param alertStage the alert stage to be closed
|
||||||
|
*/
|
||||||
|
private static void closeAlertStage(int seconds, Consumer<String> onClose, Stage alertStage) {
|
||||||
|
if (seconds>0){
|
||||||
|
PauseTransition delay = new PauseTransition(Duration.seconds(seconds));
|
||||||
|
delay.setOnFinished(e -> {
|
||||||
|
alertStage.close();
|
||||||
|
if (currentAlertStage == alertStage) {
|
||||||
|
currentAlertStage = null;
|
||||||
|
}
|
||||||
|
if (onClose!=null) onClose.accept(shownTitle);
|
||||||
|
clear();
|
||||||
|
} );
|
||||||
|
delay.play();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private static Image LoadImage(String filename){
|
||||||
|
if (ValidFile(filename)){
|
||||||
|
try{
|
||||||
|
Image mm = new Image(Paths.get(filename).toUri().toString());
|
||||||
|
System.out.println("Load image from "+filename);
|
||||||
|
return mm;
|
||||||
|
} catch (Exception e){
|
||||||
|
System.out.println("Error loading image: " + filename+", Message: "+e.getMessage());
|
||||||
|
}
|
||||||
|
} else System.out.println("LoadImage: Invalid file: "+filename);
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
private static void clear(){
|
||||||
|
shownTitle = "";
|
||||||
|
shownContent = "";
|
||||||
|
shownHeader = "";
|
||||||
|
shownBanner= null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -5,6 +5,7 @@ import lombok.Setter;
|
|||||||
import org.bytedeco.opencv.opencv_core.Rect;
|
import org.bytedeco.opencv.opencv_core.Rect;
|
||||||
import org.bytedeco.opencv.opencv_core.Scalar;
|
import org.bytedeco.opencv.opencv_core.Scalar;
|
||||||
import org.bytedeco.opencv.opencv_core.UMat;
|
import org.bytedeco.opencv.opencv_core.UMat;
|
||||||
|
import org.opencv.imgproc.Imgproc;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@@ -14,6 +15,9 @@ import static org.bytedeco.opencv.global.opencv_imgproc.rectangle;
|
|||||||
public class DetectorResult {
|
public class DetectorResult {
|
||||||
private @Setter Rect Face;
|
private @Setter Rect Face;
|
||||||
private List<Rect> Eyes;
|
private List<Rect> Eyes;
|
||||||
|
private final int linethickness = 3;
|
||||||
|
private final int linetype = Imgproc.LINE_8;
|
||||||
|
private final int lineshift = 0;
|
||||||
|
|
||||||
public void AddEye(Rect eye){
|
public void AddEye(Rect eye){
|
||||||
if (Eyes == null) Eyes = new java.util.ArrayList<>();
|
if (Eyes == null) Eyes = new java.util.ArrayList<>();
|
||||||
@@ -22,14 +26,20 @@ public class DetectorResult {
|
|||||||
|
|
||||||
public void FaceRectangle(UMat mat){
|
public void FaceRectangle(UMat mat){
|
||||||
if (haveFace()){
|
if (haveFace()){
|
||||||
rectangle(mat, Face, Scalar.GREEN);
|
try{
|
||||||
|
rectangle(mat, Face, Scalar.GREEN, linethickness, linetype, lineshift);
|
||||||
|
|
||||||
|
} catch (Exception ignored){}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void EyesRectangle(UMat mat){
|
public void EyesRectangle(UMat mat){
|
||||||
if (haveEyes()){
|
if (haveEyes()){
|
||||||
for(Rect eye : Eyes){
|
for(Rect eye : Eyes){
|
||||||
rectangle(mat, eye, Scalar.BLUE);
|
try{
|
||||||
|
rectangle(mat, eye, Scalar.BLUE);
|
||||||
|
|
||||||
|
} catch (Exception ignored){}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -56,4 +66,5 @@ public class DetectorResult {
|
|||||||
if (!haveEyes()) return 0;
|
if (!haveEyes()) return 0;
|
||||||
return Eyes.size();
|
return Eyes.size();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,14 +9,10 @@ import org.tinylog.Logger;
|
|||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import static Config.SomeCodes.IsInsideRect;
|
|
||||||
|
|
||||||
public class Detectors {
|
public class Detectors {
|
||||||
public static CascadeClassifier frontalfaceDetector;
|
public static CascadeClassifier frontalfaceDetector;
|
||||||
private static CascadeClassifier eyeDetector;
|
private static CascadeClassifier eyeDetector;
|
||||||
private static CascadeClassifier profilefaceDetector;
|
private static CascadeClassifier profilefaceDetector;
|
||||||
//private static CascadeClassifier palmDetector;
|
|
||||||
//private static CascadeClassifier fistDetector;
|
|
||||||
|
|
||||||
private static double scaleFactor = 1.1;
|
private static double scaleFactor = 1.1;
|
||||||
private final static int minNeighbors = 3;
|
private final static int minNeighbors = 3;
|
||||||
@@ -24,10 +20,6 @@ public class Detectors {
|
|||||||
private static Size FaceminSize;
|
private static Size FaceminSize;
|
||||||
private static Size FacemaxSize;
|
private static Size FacemaxSize;
|
||||||
|
|
||||||
private static final int EyetoFaceRatio = 6;
|
|
||||||
private static Size EyeminSize;
|
|
||||||
private static Size EyemaxSize;
|
|
||||||
|
|
||||||
public static void LoadAllDetectors(){
|
public static void LoadAllDetectors(){
|
||||||
|
|
||||||
LoadFrontalFaceDetector();
|
LoadFrontalFaceDetector();
|
||||||
@@ -35,47 +27,10 @@ public class Detectors {
|
|||||||
|
|
||||||
LoadProfileFaceDetector();
|
LoadProfileFaceDetector();
|
||||||
|
|
||||||
|
|
||||||
//LoadFistDetector();
|
|
||||||
//LoadRightPalmDetector();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// private static void LoadFistDetector(){
|
|
||||||
// String filename = SomeCodes.ExtractResource("/fist.xml");
|
|
||||||
// if (filename!=null) {
|
|
||||||
// Logger.info("Fist Detector file : " + filename);
|
|
||||||
// if (fistDetector ==null) {
|
|
||||||
// try{
|
|
||||||
//
|
|
||||||
// fistDetector = new CascadeClassifier(filename);
|
|
||||||
// Logger.info("FistDetector loaded");
|
|
||||||
// } catch (Exception e){
|
|
||||||
// Logger.error("Exception on loading FistDetector : " + e.getMessage());
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// } else Logger.info("FistDetector already loaded");
|
|
||||||
// } else Logger.error("Unable to extract fist detector file");
|
|
||||||
// }
|
|
||||||
|
|
||||||
// private static void LoadRightPalmDetector(){
|
|
||||||
// String filename = SomeCodes.ExtractResource("/rpalm.xml");
|
|
||||||
// if (filename!=null) {
|
|
||||||
// Logger.info("Right Palm Detector file : " + filename);
|
|
||||||
// if (palmDetector ==null) {
|
|
||||||
// try{
|
|
||||||
//
|
|
||||||
// palmDetector = new CascadeClassifier(filename);
|
|
||||||
// Logger.info("RightPalmDetector loaded");
|
|
||||||
// } catch (Exception e){
|
|
||||||
// Logger.error("Exception on loading RightPalmDetector : " + e.getMessage());
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// } else Logger.info("RightPalmDetector already loaded");
|
|
||||||
// } else Logger.error("Unable to extract right palm detector file");
|
|
||||||
// }
|
|
||||||
|
|
||||||
private static void LoadFrontalFaceDetector(){
|
private static void LoadFrontalFaceDetector(){
|
||||||
String filename = SomeCodes.ExtractResource("/haarcascade_frontalface_alt.xml");
|
String filename = SomeCodes.ExtractResource("/haarcascade_frontalface_default.xml");
|
||||||
if (filename!=null) {
|
if (filename!=null) {
|
||||||
Logger.info("Face Detector file : " + filename);
|
Logger.info("Face Detector file : " + filename);
|
||||||
if (frontalfaceDetector==null) {
|
if (frontalfaceDetector==null) {
|
||||||
@@ -123,22 +78,6 @@ public class Detectors {
|
|||||||
} else Logger.error("Unable to extract eye detector file");
|
} else Logger.error("Unable to extract eye detector file");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// public static boolean HavePalm(UMat graymat){
|
|
||||||
// RectVector palms = Detect(graymat, palmDetector);
|
|
||||||
// return palms!=null && palms.size()>0;
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// public static boolean HaveFist(UMat graymat){
|
|
||||||
// RectVector fists = Detect(graymat, fistDetector);
|
|
||||||
// return fists!=null && fists.size()>0;
|
|
||||||
// }
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Detect if there is a frontal face, containing 2 eyes
|
* Detect if there is a frontal face, containing 2 eyes
|
||||||
* @param graymat Mat in Gray Scale
|
* @param graymat Mat in Gray Scale
|
||||||
@@ -150,12 +89,12 @@ public class Detectors {
|
|||||||
if (faces!=null && faces.size()>0){
|
if (faces!=null && faces.size()>0){
|
||||||
|
|
||||||
for(Rect face : faces.get()){
|
for(Rect face : faces.get()){
|
||||||
RectVector eyes = DetectEye(graymat);
|
RectVector eyes = DetectEye(graymat, face.width());
|
||||||
DetectorResult dr = new DetectorResult();
|
DetectorResult dr = new DetectorResult();
|
||||||
dr.setFace(face);
|
dr.setFace(face);
|
||||||
if (eyes!=null && eyes.size()>=2){
|
if (eyes!=null && eyes.size()>=2){
|
||||||
for(Rect eye : eyes.get()){
|
for(Rect eye : eyes.get()){
|
||||||
if (IsInsideRect(eye, face)) dr.AddEye(eye);
|
if (SomeCodes.IsInsideRect(eye, face)) dr.AddEye(eye);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
result.add(dr);
|
result.add(dr);
|
||||||
@@ -170,12 +109,12 @@ public class Detectors {
|
|||||||
if (faces!=null && faces.size()>0){
|
if (faces!=null && faces.size()>0){
|
||||||
|
|
||||||
for(Rect face : faces.get()){
|
for(Rect face : faces.get()){
|
||||||
RectVector eyes = DetectEye(graymat);
|
RectVector eyes = DetectEye(graymat, face.width());
|
||||||
DetectorResult dr = new DetectorResult();
|
DetectorResult dr = new DetectorResult();
|
||||||
dr.setFace(face);
|
dr.setFace(face);
|
||||||
if (eyes!=null && eyes.size()>0){
|
if (eyes!=null && eyes.size()>0){
|
||||||
for(Rect eye : eyes.get()){
|
for(Rect eye : eyes.get()){
|
||||||
if (IsInsideRect(eye, face)) dr.AddEye(eye);
|
if (SomeCodes.IsInsideRect(eye, face)) dr.AddEye(eye);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
result.add(dr);
|
result.add(dr);
|
||||||
@@ -195,34 +134,28 @@ public class Detectors {
|
|||||||
if (FaceminSize!=null){
|
if (FaceminSize!=null){
|
||||||
if (FaceminSize.width()!=value || FaceminSize.height()!=value) {
|
if (FaceminSize.width()!=value || FaceminSize.height()!=value) {
|
||||||
FaceminSize = new Size(value, value);
|
FaceminSize = new Size(value, value);
|
||||||
EyeminSize = new Size(value/EyetoFaceRatio, value/EyetoFaceRatio);
|
//Logger.info("FaceMinSize changed to : " + FaceminSize.width());
|
||||||
Logger.info("FaceMinSize changed to : " + FaceminSize.width());
|
|
||||||
Logger.info("EyeMinSize changed to : " + EyeminSize.width());
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
FaceminSize = new Size(value, value);
|
FaceminSize = new Size(value, value);
|
||||||
EyeminSize = new Size(value/EyetoFaceRatio, value/EyetoFaceRatio);
|
//Logger.info("FaceMinSize created with value : " + FaceminSize.width());
|
||||||
Logger.info("FaceMinSize created with value : " + FaceminSize.width());
|
|
||||||
Logger.info("EyeMinSize created with value : " + EyeminSize.width());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
System.out.println("Face Min Size : " + FaceminSize.width());
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void setFaceMaxSize(int value){
|
public static void setFaceMaxSize(int value){
|
||||||
if (FacemaxSize!=null){
|
if (FacemaxSize!=null){
|
||||||
if (FacemaxSize.width()!=value || FacemaxSize.height()!=value) {
|
if (FacemaxSize.width()!=value || FacemaxSize.height()!=value) {
|
||||||
FacemaxSize = new Size(value, value);
|
FacemaxSize = new Size(value, value);
|
||||||
EyemaxSize = new Size(value/EyetoFaceRatio, value/EyetoFaceRatio);
|
//Logger.info("FaceMaxSize changed to : " + FacemaxSize.width());
|
||||||
Logger.info("FaceMaxSize changed to : " + FacemaxSize.width());
|
|
||||||
Logger.info("EyeMaxSize changed to : " + EyemaxSize.width());
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
FacemaxSize = new Size(value, value);
|
FacemaxSize = new Size(value, value);
|
||||||
EyemaxSize = new Size(value/EyetoFaceRatio, value/EyetoFaceRatio);
|
//Logger.info("FaceMaxSize created with value : " + FacemaxSize.width());
|
||||||
Logger.info("FaceMaxSize created with value : " + FacemaxSize.width());
|
|
||||||
Logger.info("EyeMaxSize created with value : " + EyemaxSize.width());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
System.out.println("Face Max Size : " + FacemaxSize.width());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -230,23 +163,6 @@ public class Detectors {
|
|||||||
return Detect(graymat, profilefaceDetector, scaleFactor, minNeighbors, flags, FaceminSize, FacemaxSize);
|
return Detect(graymat, profilefaceDetector, scaleFactor, minNeighbors, flags, FaceminSize, FacemaxSize);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static RectVector DetectFrontalFace(Mat graymat, int minsize, int maxsize){
|
|
||||||
Size min = new Size(minsize, minsize);
|
|
||||||
Size max = new Size(maxsize, maxsize);
|
|
||||||
RectVector rect = new RectVector();
|
|
||||||
frontalfaceDetector.detectMultiScale(graymat, rect,scaleFactor, minNeighbors, flags, min, max);
|
|
||||||
return rect;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static RectVector DetectProfileFace(Mat graymat, int minsize, int maxsize){
|
|
||||||
Size min = new Size(minsize, minsize);
|
|
||||||
Size max = new Size(maxsize, maxsize);
|
|
||||||
RectVector rect = new RectVector();
|
|
||||||
profilefaceDetector.detectMultiScale(graymat, rect,scaleFactor, minNeighbors, flags, min, max);
|
|
||||||
return rect;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Detect Face from Mat
|
* Detect Face from Mat
|
||||||
* @param graymat Mat in Gray Scale
|
* @param graymat Mat in Gray Scale
|
||||||
@@ -256,48 +172,37 @@ public class Detectors {
|
|||||||
return Detect(graymat, frontalfaceDetector, scaleFactor, minNeighbors, flags, FaceminSize, FacemaxSize);
|
return Detect(graymat, frontalfaceDetector, scaleFactor, minNeighbors, flags, FaceminSize, FacemaxSize);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Detect Eye from Mat
|
* Detect Eye from Mat
|
||||||
* If Eye detected, it will return RectVector with size is number of eyes detected
|
* If Eye detected, it will return RectVector with size is number of eyes detected
|
||||||
* @param graymat Mat in Gray Scale
|
* @param graymat Mat in Gray Scale
|
||||||
* @return RectVector if eye detected, otherwise null
|
* @return RectVector if eye detected, otherwise null
|
||||||
*/
|
*/
|
||||||
public static RectVector DetectEye(UMat graymat){
|
public static RectVector DetectEye(UMat graymat, int facewidth){
|
||||||
//return Detect(graymat, eyeDetector, scaleFactor, minNeighbors, flags, EyeminSize, EyemaxSize);
|
//return Detect(graymat, eyeDetector);
|
||||||
return Detect(graymat, eyeDetector);
|
int minwidth = Math.max((int)(facewidth*0.25), 24);
|
||||||
}
|
int maxwidth = (int)(facewidth*0.4);
|
||||||
|
Size minsize = new Size(minwidth, minwidth);
|
||||||
|
Size maxsize = new Size(maxwidth, maxwidth);
|
||||||
|
return Detect(graymat, eyeDetector, scaleFactor, minNeighbors, flags, minsize, maxsize);
|
||||||
|
|
||||||
@SuppressWarnings("unused")
|
|
||||||
private static RectVector Detect(UMat graymat, CascadeClassifier detector){
|
|
||||||
if (detector!=null){
|
|
||||||
if (graymat!=null){
|
|
||||||
if (!graymat.empty()){
|
|
||||||
RectVector detected = new RectVector();
|
|
||||||
detector.detectMultiScale(graymat, detected);
|
|
||||||
return detected;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("SameParameterValue")
|
@SuppressWarnings("SameParameterValue")
|
||||||
private static RectVector Detect(UMat graymat, CascadeClassifier detector, double scaleFactor, int minNeighbors, int flags, Size minSize, Size maxSize){
|
private static RectVector Detect(UMat graymat, CascadeClassifier detector, double scaleFactor, int minNeighbors, int flags, Size minSize, Size maxSize){
|
||||||
if (detector!=null){
|
if (detector!=null){
|
||||||
if (graymat!=null){
|
if (graymat!=null && graymat.channels()==1){
|
||||||
if (!graymat.empty()){
|
if (!graymat.empty()){
|
||||||
if (minSize!=null){
|
if (minSize!=null){
|
||||||
if (maxSize!=null){
|
if (maxSize!=null){
|
||||||
RectVector detected = new RectVector();
|
try{
|
||||||
detector.detectMultiScale(graymat, detected, scaleFactor, minNeighbors, flags, minSize, maxSize);
|
RectVector detected = new RectVector();
|
||||||
return detected;
|
detector.detectMultiScale(graymat, detected, scaleFactor, minNeighbors, flags, minSize, maxSize);
|
||||||
|
|
||||||
|
return detected;
|
||||||
|
} catch (Exception e){
|
||||||
|
System.out.println("Detectors Detect Error, Message : "+e.getMessage());
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -22,6 +22,9 @@ import static Config.SomeCodes.config;
|
|||||||
public class MainApplication extends Application {
|
public class MainApplication extends Application {
|
||||||
@Override
|
@Override
|
||||||
public void start(Stage stage) throws IOException {
|
public void start(Stage stage) throws IOException {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SecureDongle sd = new SecureDongle((short)0x4B30, (short)0xA66C, (short)0x3109, (short)0x37B1);
|
SecureDongle sd = new SecureDongle((short)0x4B30, (short)0xA66C, (short)0x3109, (short)0x37B1);
|
||||||
if (sd.Find()){
|
if (sd.Find()){
|
||||||
if (sd.Open()){
|
if (sd.Open()){
|
||||||
@@ -32,9 +35,9 @@ public class MainApplication extends Application {
|
|||||||
Logger.info("Secure Dongle UserID valid");
|
Logger.info("Secure Dongle UserID valid");
|
||||||
FXMLLoader fxmlLoader = new FXMLLoader(MainApplication.class.getResource("main-view.fxml"));
|
FXMLLoader fxmlLoader = new FXMLLoader(MainApplication.class.getResource("main-view.fxml"));
|
||||||
Screen screen = Screen.getPrimary();
|
Screen screen = Screen.getPrimary();
|
||||||
Rectangle2D screenbound = screen.getVisualBounds();
|
Rectangle2D screenbound = screen.getBounds();
|
||||||
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 11032025-006");
|
stage.setTitle("MultiCam Capture App for ERHA 14042025-041");
|
||||||
stage.setScene(scene);
|
stage.setScene(scene);
|
||||||
stage.setResizable(true);
|
stage.setResizable(true);
|
||||||
stage.setMaximized(true);
|
stage.setMaximized(true);
|
||||||
@@ -50,6 +53,8 @@ public class MainApplication extends Application {
|
|||||||
|
|
||||||
stage.show();
|
stage.show();
|
||||||
|
|
||||||
|
AutoCloseAlert.init();
|
||||||
|
|
||||||
Logger.info("Application started");
|
Logger.info("Application started");
|
||||||
sd.setEvent(new SecureDongleEvent() {
|
sd.setEvent(new SecureDongleEvent() {
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -15,8 +15,7 @@ import org.tinylog.Logger;
|
|||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.nio.file.Path;
|
import java.nio.file.Path;
|
||||||
|
|
||||||
import static Config.SomeCodes.ShowAlert;
|
import static Config.SomeCodes.*;
|
||||||
import static Config.SomeCodes.config;
|
|
||||||
|
|
||||||
public class PhotoRow {
|
public class PhotoRow {
|
||||||
@FXML
|
@FXML
|
||||||
@@ -29,13 +28,11 @@ public class PhotoRow {
|
|||||||
private final String borderstyle = "-fx-border-color: black; -fx-border-width: 1px;";
|
private final String borderstyle = "-fx-border-color: black; -fx-border-width: 1px;";
|
||||||
|
|
||||||
public void setDatetime(String datetime){
|
public void setDatetime(String datetime){
|
||||||
this.datetime.setText(datetime);
|
LabelSetText(this.datetime, datetime, borderstyle);
|
||||||
this.datetime.setStyle(borderstyle);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setPrefix(String prefix){
|
public void setPrefix(String prefix){
|
||||||
this.prefix.setText(prefix);
|
LabelSetText(this.prefix,prefix,borderstyle);
|
||||||
this.prefix.setStyle(borderstyle);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setPhotos(int width, int height, String... thumbnails){
|
public void setPhotos(int width, int height, String... thumbnails){
|
||||||
|
|||||||
@@ -4,16 +4,14 @@ import FTP.FTPCheck;
|
|||||||
import javafx.application.Platform;
|
import javafx.application.Platform;
|
||||||
import javafx.fxml.FXML;
|
import javafx.fxml.FXML;
|
||||||
import javafx.scene.control.Alert;
|
import javafx.scene.control.Alert;
|
||||||
|
import javafx.scene.control.CheckBox;
|
||||||
import javafx.scene.control.ComboBox;
|
import javafx.scene.control.ComboBox;
|
||||||
import javafx.scene.control.TextField;
|
import javafx.scene.control.TextField;
|
||||||
import javafx.stage.DirectoryChooser;
|
import javafx.stage.DirectoryChooser;
|
||||||
import javafx.stage.FileChooser;
|
import javafx.stage.FileChooser;
|
||||||
import lombok.val;
|
|
||||||
import org.bytedeco.javacv.VideoInputFrameGrabber;
|
import org.bytedeco.javacv.VideoInputFrameGrabber;
|
||||||
import org.tinylog.Logger;
|
import org.tinylog.Logger;
|
||||||
|
|
||||||
import java.io.File;
|
|
||||||
|
|
||||||
import static Config.SomeCodes.*;
|
import static Config.SomeCodes.*;
|
||||||
|
|
||||||
public class SettingView {
|
public class SettingView {
|
||||||
@@ -39,9 +37,18 @@ public class SettingView {
|
|||||||
@FXML
|
@FXML
|
||||||
private TextField FTPPath;
|
private TextField FTPPath;
|
||||||
|
|
||||||
|
@FXML
|
||||||
|
private TextField Sharpness;
|
||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
private TextField PhotoDirectoryPath;
|
private TextField PhotoDirectoryPath;
|
||||||
|
|
||||||
|
@FXML
|
||||||
|
private CheckBox MirrorCamera;
|
||||||
|
|
||||||
|
@FXML
|
||||||
|
private CheckBox FlipCamera;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
final FileChooser jfc = new FileChooser();
|
final FileChooser jfc = new FileChooser();
|
||||||
@@ -65,11 +72,23 @@ public class SettingView {
|
|||||||
|
|
||||||
config.SetPhotoDirectory(path);
|
config.SetPhotoDirectory(path);
|
||||||
config.Save();
|
config.Save();
|
||||||
PhotoDirectoryPath.setText(path);
|
TextFieldSetText(PhotoDirectoryPath,path);
|
||||||
|
}
|
||||||
|
|
||||||
|
@FXML
|
||||||
|
private void SharpnessApply(){
|
||||||
|
String str = Sharpness.getText();
|
||||||
|
if (ValidDouble(str)){
|
||||||
|
config.setSharpnessThreshold(Double.parseDouble(str));
|
||||||
|
config.Save();
|
||||||
|
} else {
|
||||||
|
ShowAlert(Alert.AlertType.ERROR, "Sharpness Setting Error", "Sharpness Setting Error", "Sharpness Setting must be a number");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
private void CascadeSettingApply(){
|
private void CascadeSettingApply(){
|
||||||
|
|
||||||
String minsize = cascadeMinSize.getText();
|
String minsize = cascadeMinSize.getText();
|
||||||
String scalefactor = cascadeScaleFactor.getText();
|
String scalefactor = cascadeScaleFactor.getText();
|
||||||
String maxsize = cascadeMaxSize.getText();
|
String maxsize = cascadeMaxSize.getText();
|
||||||
@@ -104,6 +123,7 @@ public class SettingView {
|
|||||||
} else show_cascade_alert("Max Size must not empty");
|
} else show_cascade_alert("Max Size must not empty");
|
||||||
} else show_cascade_alert("Min Size must not empty");
|
} else show_cascade_alert("Min Size must not empty");
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void show_cascade_alert(String content){
|
private void show_cascade_alert(String content){
|
||||||
@@ -123,7 +143,17 @@ public class SettingView {
|
|||||||
Logger.error("Unable to detect Cameras, Msg : "+e.getMessage());
|
Logger.error("Unable to detect Cameras, Msg : "+e.getMessage());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MirrorCamera.selectedProperty().addListener(((observable, oldValue, newValue) -> {
|
||||||
|
System.out.println("Mirror option changed to : "+newValue);
|
||||||
|
config.setMirrorCamera(newValue);
|
||||||
|
config.Save();
|
||||||
|
}));
|
||||||
|
|
||||||
|
FlipCamera.selectedProperty().addListener((observable, oldValue, newValue) -> {
|
||||||
|
System.out.println("Flip option changed to : "+newValue);
|
||||||
|
config.setFlipCamera(newValue);
|
||||||
|
config.Save();
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
Platform.runLater(()->{
|
Platform.runLater(()->{
|
||||||
@@ -155,17 +185,23 @@ public class SettingView {
|
|||||||
CameraRight45.setValue(config.getCameraRight45());
|
CameraRight45.setValue(config.getCameraRight45());
|
||||||
CameraRight90.setValue(config.getCameraRight90());
|
CameraRight90.setValue(config.getCameraRight90());
|
||||||
|
|
||||||
FTPHost.setText(config.getFTPHost());
|
TextFieldSetText(FTPHost,config.getFTPHost());
|
||||||
FTPPort.setText(config.getFTPPort());
|
TextFieldSetText(FTPPort,config.getFTPPort());
|
||||||
FTPUser.setText(config.getFTPUser());
|
TextFieldSetText(FTPUser,config.getFTPUser());
|
||||||
FTPPass.setText(config.getFTPPass());
|
TextFieldSetText(FTPPass,config.getFTPPass());
|
||||||
FTPPath.setText(config.getFTPPath());
|
TextFieldSetText(FTPPath,config.getFTPPath());
|
||||||
|
|
||||||
PhotoDirectoryPath.setText(config.getPhotoDirectory());
|
TextFieldSetText(PhotoDirectoryPath,config.getPhotoDirectory());
|
||||||
|
|
||||||
cascadeScaleFactor.setText(String.valueOf(config.getCascadeScaleFactor()));
|
TextFieldSetText(cascadeScaleFactor,String.valueOf(config.getCascadeScaleFactor()));
|
||||||
cascadeMinSize.setText(String.valueOf(config.getCascadeMinSize()));
|
TextFieldSetText(cascadeMinSize,String.valueOf(config.getCascadeMinSize()));
|
||||||
cascadeMaxSize.setText(String.valueOf(config.getCascadeMaxSize()));
|
TextFieldSetText(cascadeMaxSize,String.valueOf(config.getCascadeMaxSize()));
|
||||||
|
|
||||||
|
|
||||||
|
MirrorCamera.setSelected(config.isMirrorCamera());
|
||||||
|
FlipCamera.setSelected(config.isFlipCamera());
|
||||||
|
|
||||||
|
TextFieldSetText(Sharpness,String.valueOf(config.getSharpnessThreshold()));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ import javafx.fxml.FXML;
|
|||||||
import javafx.scene.control.Label;
|
import javafx.scene.control.Label;
|
||||||
import javafx.scene.control.ProgressBar;
|
import javafx.scene.control.ProgressBar;
|
||||||
|
|
||||||
|
import static Config.SomeCodes.LabelSetText;
|
||||||
import static Config.SomeCodes.ValidString;
|
import static Config.SomeCodes.ValidString;
|
||||||
|
|
||||||
public class UploadProgress {
|
public class UploadProgress {
|
||||||
@@ -31,9 +32,7 @@ public class UploadProgress {
|
|||||||
* @param filename the filename to be displayed
|
* @param filename the filename to be displayed
|
||||||
*/
|
*/
|
||||||
public void SetFile(String filename){
|
public void SetFile(String filename){
|
||||||
if (ValidString(filename)){
|
LabelSetText(this.labelfile, filename,null);
|
||||||
labelfile.setText(filename);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -41,9 +40,7 @@ public class UploadProgress {
|
|||||||
* @param status the status to be displayed
|
* @param status the status to be displayed
|
||||||
*/
|
*/
|
||||||
public void SetStatus(String status){
|
public void SetStatus(String status){
|
||||||
if (ValidString(status)){
|
LabelSetText(this.labelstatus, status,null);
|
||||||
labelstatus.setText(status);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -197,11 +197,7 @@ public class Cameradetail_Arducam {
|
|||||||
* @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)){
|
LabelSetText(this.cameratitle, title, null);
|
||||||
if (cameratitle!=null){
|
|
||||||
cameratitle.setText(title);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setSaturation(double value){
|
public void setSaturation(double value){
|
||||||
@@ -259,11 +255,7 @@ public class Cameradetail_Arducam {
|
|||||||
* @param status Status of the Camera
|
* @param status Status of the Camera
|
||||||
*/
|
*/
|
||||||
public void setCameraStatus(String status){
|
public void setCameraStatus(String status){
|
||||||
if (ValidString(status)){
|
LabelSetText(this.camerastatus, status,null);
|
||||||
if (camerastatus!=null){
|
|
||||||
camerastatus.setText(status);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -519,13 +511,12 @@ public class Cameradetail_Arducam {
|
|||||||
* @param prefix filename prefix
|
* @param prefix filename prefix
|
||||||
* @return filename path of the saved photo, or null if failed
|
* @return filename path of the saved photo, or null if failed
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("BusyWait")
|
|
||||||
public String TakePhoto(String directory, String prefix){
|
public String TakePhoto(String directory, String prefix){
|
||||||
if (!ValidDirectory(directory)) directory = currentDirectory;
|
if (!ValidDirectory(directory)) directory = currentDirectory;
|
||||||
if (mGrabber!=null){
|
if (mGrabber!=null){
|
||||||
try{
|
try{
|
||||||
long nanos = System.nanoTime();
|
long nanos = System.nanoTime();
|
||||||
while(IsGrabbingLiveView.get()) Thread.sleep(10);
|
while(IsGrabbingLiveView.get()) Wait(10);
|
||||||
long delta = System.nanoTime() - nanos;
|
long delta = System.nanoTime() - nanos;
|
||||||
double ms = delta / 1000000.0;
|
double ms = delta / 1000000.0;
|
||||||
if (event!=null) event.onLog("Waited IsGrabbingLiveView for "+ms+" miliseconds");
|
if (event!=null) event.onLog("Waited IsGrabbingLiveView for "+ms+" miliseconds");
|
||||||
@@ -542,10 +533,10 @@ public class Cameradetail_Arducam {
|
|||||||
|
|
||||||
|
|
||||||
setAutoWB(true);
|
setAutoWB(true);
|
||||||
Thread.sleep(1000);
|
Wait(1000);
|
||||||
|
|
||||||
setAutoExposure(true);
|
setAutoExposure(true);
|
||||||
Thread.sleep(1000);
|
Wait(1000);
|
||||||
|
|
||||||
long delta3 = System.nanoTime() - nanos;
|
long delta3 = System.nanoTime() - nanos;
|
||||||
double ms3 = delta3 / 1000000.0;
|
double ms3 = delta3 / 1000000.0;
|
||||||
@@ -673,14 +664,13 @@ public class Cameradetail_Arducam {
|
|||||||
AutoWhiteBalance.setSelected(true);
|
AutoWhiteBalance.setSelected(true);
|
||||||
|
|
||||||
val task = new Task<Image>() {
|
val task = new Task<Image>() {
|
||||||
@SuppressWarnings("BusyWait")
|
|
||||||
@Override
|
@Override
|
||||||
protected Image call() {
|
protected Image call() {
|
||||||
while (Capturing.get()) {
|
while (Capturing.get()) {
|
||||||
try {
|
try {
|
||||||
// selama proses pengambilan foto, jangan ambil frame
|
// selama proses pengambilan foto, jangan ambil frame
|
||||||
while(TakingPhoto.get() && Capturing.get()){
|
while(TakingPhoto.get() && Capturing.get()){
|
||||||
Thread.sleep(10);
|
Wait(10);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!Capturing.get()) return null;
|
if (!Capturing.get()) return null;
|
||||||
@@ -737,7 +727,10 @@ public class Cameradetail_Arducam {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// start task
|
// start task
|
||||||
new Thread(task).start();
|
Thread taskThread = new Thread(task);
|
||||||
|
taskThread.setDaemon(true);
|
||||||
|
taskThread.start();
|
||||||
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
<?import javafx.scene.image.*?>
|
<?import javafx.scene.image.*?>
|
||||||
<?import javafx.scene.layout.*?>
|
<?import javafx.scene.layout.*?>
|
||||||
|
|
||||||
<AnchorPane prefHeight="720.0" prefWidth="360.0" xmlns="http://javafx.com/javafx/11.0.14-internal" xmlns:fx="http://javafx.com/fxml/1" fx:controller="id.co.gtc.erhacam.Cameradetail">
|
<AnchorPane prefHeight="720.0" prefWidth="360.0" xmlns="http://javafx.com/javafx/17.0.12" xmlns:fx="http://javafx.com/fxml/1" fx:controller="id.co.gtc.erhacam.Cameradetail">
|
||||||
<children>
|
<children>
|
||||||
<GridPane layoutX="5.0" layoutY="5.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
|
<GridPane layoutX="5.0" layoutY="5.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
|
||||||
<columnConstraints>
|
<columnConstraints>
|
||||||
@@ -20,8 +20,12 @@
|
|||||||
<children>
|
<children>
|
||||||
<GridPane AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
|
<GridPane AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
|
||||||
<columnConstraints>
|
<columnConstraints>
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" percentWidth="20.0" />
|
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" percentWidth="10.0" />
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
||||||
|
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" percentWidth="10.0" prefWidth="100.0" />
|
||||||
|
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" percentWidth="10.0" prefWidth="100.0" />
|
||||||
|
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" percentWidth="10.0" prefWidth="100.0" />
|
||||||
|
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" percentWidth="10.0" prefWidth="100.0" />
|
||||||
</columnConstraints>
|
</columnConstraints>
|
||||||
<rowConstraints>
|
<rowConstraints>
|
||||||
<RowConstraints minHeight="10.0" vgrow="SOMETIMES" />
|
<RowConstraints minHeight="10.0" vgrow="SOMETIMES" />
|
||||||
@@ -37,6 +41,28 @@
|
|||||||
<Label fx:id="camerastatus" alignment="CENTER" style="-fx-border-color: black;" text="Camera Status" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0" />
|
<Label fx:id="camerastatus" alignment="CENTER" style="-fx-border-color: black;" text="Camera Status" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0" />
|
||||||
</children>
|
</children>
|
||||||
</AnchorPane>
|
</AnchorPane>
|
||||||
|
<AnchorPane prefHeight="200.0" prefWidth="200.0" style="-fx-border-color: black;" GridPane.columnIndex="2">
|
||||||
|
<children>
|
||||||
|
<Label fx:id="face_indicator" alignment="CENTER" layoutY="8.0" prefHeight="30.0" prefWidth="35.0" text="Face" visible="false" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0" />
|
||||||
|
|
||||||
|
|
||||||
|
</children>
|
||||||
|
</AnchorPane>
|
||||||
|
<AnchorPane prefHeight="200.0" prefWidth="200.0" style="-fx-border-color: black;" GridPane.columnIndex="3">
|
||||||
|
<children>
|
||||||
|
<Label fx:id="eye_indicator" alignment="CENTER" layoutY="8.0" prefHeight="30.0" prefWidth="35.0" text="Eye" visible="false" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0" />
|
||||||
|
</children>
|
||||||
|
</AnchorPane>
|
||||||
|
<AnchorPane prefHeight="200.0" prefWidth="200.0" GridPane.columnIndex="5">
|
||||||
|
<children>
|
||||||
|
<Label fx:id="sharpness_indicator" alignment="CENTER" layoutX="7.0" layoutY="8.0" prefHeight="30.0" prefWidth="35.0" style="-fx-border-color: black;" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0" />
|
||||||
|
</children>
|
||||||
|
</AnchorPane>
|
||||||
|
<AnchorPane prefHeight="200.0" prefWidth="200.0" GridPane.columnIndex="4">
|
||||||
|
<children>
|
||||||
|
<Label fx:id="BlinkCounterLabel" alignment="CENTER" layoutY="8.0" prefHeight="30.0" prefWidth="35.0" style="-fx-border-color: black;" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0" />
|
||||||
|
</children>
|
||||||
|
</AnchorPane>
|
||||||
</children>
|
</children>
|
||||||
</GridPane>
|
</GridPane>
|
||||||
</children>
|
</children>
|
||||||
@@ -68,9 +94,9 @@
|
|||||||
<Insets />
|
<Insets />
|
||||||
</GridPane.margin>
|
</GridPane.margin>
|
||||||
</AnchorPane>
|
</AnchorPane>
|
||||||
<AnchorPane prefHeight="200.0" prefWidth="200.0" GridPane.rowIndex="1">
|
<AnchorPane prefHeight="200.0" prefWidth="200.0" scaleZ="0.0" GridPane.rowIndex="1">
|
||||||
<children>
|
<children>
|
||||||
<VBox maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="240.0" prefWidth="140.0" visible="false" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
|
<VBox maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="240.0" prefWidth="140.0" scaleZ="0.0" visible="false" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
|
||||||
<children>
|
<children>
|
||||||
<Label text="Brightness" />
|
<Label text="Brightness" />
|
||||||
<Slider fx:id="brightnessSlider" min="-100.0">
|
<Slider fx:id="brightnessSlider" min="-100.0">
|
||||||
|
|||||||
@@ -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">
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<?import javafx.scene.control.*?>
|
<?import javafx.scene.control.*?>
|
||||||
<?import javafx.scene.layout.*?>
|
<?import javafx.scene.layout.*?>
|
||||||
|
|
||||||
<AnchorPane maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308" minHeight="-Infinity" minWidth="-Infinity" 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.SettingView">
|
<AnchorPane maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308" minHeight="-Infinity" minWidth="-Infinity" prefWidth="1024.0" xmlns="http://javafx.com/javafx/17.0.12" xmlns:fx="http://javafx.com/fxml/1" fx:controller="id.co.gtc.erhacam.SettingView">
|
||||||
<children>
|
<children>
|
||||||
<GridPane layoutX="70.0" layoutY="78.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
|
<GridPane layoutX="70.0" layoutY="78.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
|
||||||
<columnConstraints>
|
<columnConstraints>
|
||||||
@@ -11,7 +11,7 @@
|
|||||||
</columnConstraints>
|
</columnConstraints>
|
||||||
<rowConstraints>
|
<rowConstraints>
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
||||||
<RowConstraints minHeight="200.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
<RowConstraints minHeight="300.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
||||||
<RowConstraints minHeight="200.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
<RowConstraints minHeight="200.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
||||||
@@ -41,7 +41,7 @@
|
|||||||
<children>
|
<children>
|
||||||
<GridPane>
|
<GridPane>
|
||||||
<columnConstraints>
|
<columnConstraints>
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" percentWidth="15.0" prefWidth="100.0" />
|
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" percentWidth="25.0" prefWidth="100.0" />
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" percentWidth="15.0" prefWidth="100.0" />
|
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" percentWidth="15.0" prefWidth="100.0" />
|
||||||
</columnConstraints>
|
</columnConstraints>
|
||||||
@@ -51,6 +51,9 @@
|
|||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
||||||
|
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
||||||
|
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
||||||
|
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
||||||
</rowConstraints>
|
</rowConstraints>
|
||||||
<children>
|
<children>
|
||||||
<AnchorPane prefHeight="200.0" prefWidth="200.0">
|
<AnchorPane prefHeight="200.0" prefWidth="200.0">
|
||||||
@@ -128,6 +131,41 @@
|
|||||||
<Button layoutX="22.0" layoutY="8.0" mnemonicParsing="false" onAction="#ApplyCameraRight90" prefHeight="40.0" prefWidth="88.0" text="Apply" AnchorPane.bottomAnchor="2.0" AnchorPane.leftAnchor="2.0" AnchorPane.rightAnchor="2.0" AnchorPane.topAnchor="2.0" />
|
<Button layoutX="22.0" layoutY="8.0" mnemonicParsing="false" onAction="#ApplyCameraRight90" prefHeight="40.0" prefWidth="88.0" text="Apply" AnchorPane.bottomAnchor="2.0" AnchorPane.leftAnchor="2.0" AnchorPane.rightAnchor="2.0" AnchorPane.topAnchor="2.0" />
|
||||||
</children>
|
</children>
|
||||||
</AnchorPane>
|
</AnchorPane>
|
||||||
|
<AnchorPane prefHeight="200.0" prefWidth="200.0" GridPane.rowIndex="5">
|
||||||
|
<children>
|
||||||
|
<Label layoutX="60.0" prefHeight="40.0" prefWidth="175.0" text="Mirror Camera" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="5.0" AnchorPane.rightAnchor="5.0" AnchorPane.topAnchor="0.0" />
|
||||||
|
</children>
|
||||||
|
</AnchorPane>
|
||||||
|
<AnchorPane prefHeight="200.0" prefWidth="200.0" GridPane.columnIndex="1" GridPane.rowIndex="5">
|
||||||
|
<children>
|
||||||
|
<CheckBox fx:id="MirrorCamera" layoutX="30.0" layoutY="6.0" mnemonicParsing="false" prefHeight="40.0" prefWidth="175.0" AnchorPane.bottomAnchor="2.0" AnchorPane.leftAnchor="2.0" AnchorPane.rightAnchor="2.0" AnchorPane.topAnchor="2.0" />
|
||||||
|
</children>
|
||||||
|
</AnchorPane>
|
||||||
|
<AnchorPane prefHeight="200.0" prefWidth="200.0" GridPane.rowIndex="6">
|
||||||
|
<children>
|
||||||
|
<Label prefHeight="40.0" prefWidth="175.0" text="Flip Camera" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="5.0" AnchorPane.rightAnchor="5.0" AnchorPane.topAnchor="0.0" />
|
||||||
|
</children>
|
||||||
|
</AnchorPane>
|
||||||
|
<AnchorPane prefHeight="200.0" prefWidth="200.0" GridPane.columnIndex="1" GridPane.rowIndex="6">
|
||||||
|
<children>
|
||||||
|
<CheckBox fx:id="FlipCamera" mnemonicParsing="false" prefHeight="40.0" prefWidth="175.0" AnchorPane.bottomAnchor="2.0" AnchorPane.leftAnchor="2.0" AnchorPane.rightAnchor="2.0" AnchorPane.topAnchor="2.0" />
|
||||||
|
</children>
|
||||||
|
</AnchorPane>
|
||||||
|
<AnchorPane prefHeight="200.0" prefWidth="200.0" GridPane.rowIndex="7">
|
||||||
|
<children>
|
||||||
|
<Label layoutX="32.0" layoutY="19.0" prefHeight="37.0" prefWidth="92.0" text="Sharpness Threshold" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="5.0" AnchorPane.rightAnchor="5.0" AnchorPane.topAnchor="0.0" />
|
||||||
|
</children>
|
||||||
|
</AnchorPane>
|
||||||
|
<AnchorPane prefHeight="200.0" prefWidth="200.0" GridPane.columnIndex="1" GridPane.rowIndex="7">
|
||||||
|
<children>
|
||||||
|
<TextField fx:id="Sharpness" layoutX="35.0" layoutY="2.0" prefHeight="37.0" prefWidth="368.0" promptText="if Sharpness below this number, photos considered as blurred" AnchorPane.bottomAnchor="2.0" AnchorPane.leftAnchor="2.0" AnchorPane.rightAnchor="2.0" AnchorPane.topAnchor="2.0" />
|
||||||
|
</children>
|
||||||
|
</AnchorPane>
|
||||||
|
<AnchorPane GridPane.columnIndex="2" GridPane.rowIndex="7">
|
||||||
|
<children>
|
||||||
|
<Button mnemonicParsing="false" onAction="#SharpnessApply" prefHeight="37.0" prefWidth="92.0" text="Apply" AnchorPane.bottomAnchor="2.0" AnchorPane.leftAnchor="2.0" AnchorPane.rightAnchor="2.0" AnchorPane.topAnchor="2.0" />
|
||||||
|
</children>
|
||||||
|
</AnchorPane>
|
||||||
</children>
|
</children>
|
||||||
</GridPane>
|
</GridPane>
|
||||||
<GridPane GridPane.columnIndex="1">
|
<GridPane GridPane.columnIndex="1">
|
||||||
@@ -152,7 +190,7 @@
|
|||||||
</AnchorPane>
|
</AnchorPane>
|
||||||
<AnchorPane GridPane.rowIndex="1">
|
<AnchorPane GridPane.rowIndex="1">
|
||||||
<children>
|
<children>
|
||||||
<ScrollPane layoutY="0.7999992370605469" prefHeight="200.8" prefWidth="410.4" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="5.0" AnchorPane.rightAnchor="5.0" AnchorPane.topAnchor="0.0">
|
<ScrollPane layoutX="5.0" prefHeight="200.8" prefWidth="410.4" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="5.0" AnchorPane.rightAnchor="5.0" AnchorPane.topAnchor="0.0">
|
||||||
<content>
|
<content>
|
||||||
<AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="200.0" minWidth="0.0" prefWidth="350.0">
|
<AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="200.0" minWidth="0.0" prefWidth="350.0">
|
||||||
<children>
|
<children>
|
||||||
|
|||||||
BIN
voices/camera-shutter-click-01.wav
Normal file
BIN
voices/camera-shutter-click-01.wav
Normal file
Binary file not shown.
BIN
voices/hubungistafkami.wav
Normal file
BIN
voices/hubungistafkami.wav
Normal file
Binary file not shown.
Reference in New Issue
Block a user