commit 18/08/2025

This commit is contained in:
2025-08-18 16:27:27 +07:00
parent d566e4bc4f
commit f7c74304f5
14 changed files with 195 additions and 113 deletions

View File

@@ -39,7 +39,6 @@ import java.time.LocalDateTime;
import java.util.concurrent.atomic.AtomicBoolean;
import static Config.SomeCodes.*;
import static id.co.gtc.erhacam.Detectors.frontalfaceDetector;
import static org.bytedeco.opencv.global.opencv_core.CV_8UC3;
import static org.bytedeco.opencv.global.opencv_core.mean;
import static org.bytedeco.opencv.global.opencv_imgcodecs.imwrite;
@@ -776,11 +775,11 @@ public class Cameradetail_Arducam {
* @return true if face detected, otherwise false
*/
private RectVector DetectFace(UMat graymat){
if (frontalfaceDetector!=null){
val face = new RectVector();
frontalfaceDetector.detectMultiScale(graymat, face);
return face;
}
// if (frontalfaceDetector!=null){
// val face = new RectVector();
// frontalfaceDetector.detectMultiScale(graymat, face);
// return face;
// }
return null;
}