revisi 16/12/2024
This commit is contained in:
@@ -705,12 +705,12 @@ public class Cameradetail_Arducam {
|
||||
if (use_face){
|
||||
RectVector face = DetectFace(graymat);
|
||||
if (face!=null && face.size()>0){
|
||||
if (event!=null) event.onFaceDetector(true);
|
||||
if (event!=null) event.onFaceDetector(true,photoWidth, photoHeight);
|
||||
for(int i=0; i<face.size(); i++){
|
||||
val rect = face.get(i);
|
||||
rectangle(umat, rect, Scalar.GREEN);
|
||||
}
|
||||
} else if (event!=null) event.onFaceDetector(false);
|
||||
} else if (event!=null) event.onFaceDetector(false, photoWidth, photoHeight);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user