revisi 09/05/2025
Detectors.java :
* scaleFactor 1.05 become 1.2
* minNeighbors 3 become 5
* haarcascade_frontalface_default.xml become haarcascade_frontalface_alt.xml
CaptureView.java :
OpenCVFrameGrabber grabber = new OpenCVFrameGrabber(devicenumber) become OpenCVFrameGrabber grabber = new OpenCVFrameGrabber(CAP_DSHOW+devicenumber);
MainApplication.java :
stage.setTitle("MultiCam Capture App for ERHA 09052025-001")
This commit is contained in:
@@ -37,6 +37,7 @@ import org.bytedeco.opencv.opencv_core.Size;
|
||||
import org.tinylog.Logger;
|
||||
|
||||
import static Config.SomeCodes.*;
|
||||
import static org.bytedeco.opencv.global.opencv_videoio.CAP_DSHOW;
|
||||
|
||||
public class CaptureView {
|
||||
|
||||
@@ -842,7 +843,9 @@ public class CaptureView {
|
||||
|
||||
Platform.runLater(()-> image.setCameraTitle(title));
|
||||
if (devicenumber!=-1){
|
||||
OpenCVFrameGrabber grabber = new OpenCVFrameGrabber(devicenumber);
|
||||
// revisi 09/05/2025 dari new OpenCVFrameGrabber(devicenumber)
|
||||
OpenCVFrameGrabber grabber = new OpenCVFrameGrabber(CAP_DSHOW+devicenumber);
|
||||
|
||||
// default
|
||||
int livewidth = 640;
|
||||
int liveheight = 480;
|
||||
|
||||
@@ -14,8 +14,8 @@ public class Detectors {
|
||||
private static CascadeClassifier eyeDetector;
|
||||
private static CascadeClassifier profilefaceDetector;
|
||||
|
||||
private static double scaleFactor = 1.05;
|
||||
private final static int minNeighbors = 3;
|
||||
private static double scaleFactor = 1.2; // revisi 09/05/2025, dari nilai 1.05
|
||||
private final static int minNeighbors = 5; // revisi 09/05/2025, dari nilai 3
|
||||
private final static int flags = 0;
|
||||
private static Size FaceminSize;
|
||||
private static Size FacemaxSize;
|
||||
@@ -30,7 +30,8 @@ public class Detectors {
|
||||
}
|
||||
|
||||
private static void LoadFrontalFaceDetector(){
|
||||
String filename = SomeCodes.ExtractResource("/haarcascade_frontalface_default.xml");
|
||||
// revisi 09/05/2025, dari filename = SomeCodes.ExtractResource("/haarcascade_frontalface_default.xml");
|
||||
String filename = SomeCodes.ExtractResource("/haarcascade_frontalface_alt.xml");
|
||||
if (filename!=null) {
|
||||
Logger.info("Face Detector file : " + filename);
|
||||
if (frontalfaceDetector==null) {
|
||||
|
||||
@@ -46,7 +46,7 @@ public class MainApplication extends Application {
|
||||
Screen screen = Screen.getPrimary();
|
||||
Rectangle2D screenbound = screen.getBounds();
|
||||
Scene scene = new Scene(fxmlLoader.load(), screenbound.getWidth(), screenbound.getHeight());
|
||||
stage.setTitle("MultiCam Capture App for ERHA 25042025-013");
|
||||
stage.setTitle("MultiCam Capture App for ERHA 09052025-001");
|
||||
stage.setScene(scene);
|
||||
stage.setResizable(true);
|
||||
stage.setMaximized(true);
|
||||
|
||||
Reference in New Issue
Block a user