Commit 14042025
This commit is contained in:
@@ -26,15 +26,20 @@ public class DetectorResult {
|
||||
|
||||
public void FaceRectangle(UMat mat){
|
||||
if (haveFace()){
|
||||
try{
|
||||
rectangle(mat, Face, Scalar.GREEN, linethickness, linetype, lineshift);
|
||||
|
||||
rectangle(mat, Face, Scalar.GREEN, linethickness, linetype, lineshift);
|
||||
} catch (Exception ignored){}
|
||||
}
|
||||
}
|
||||
|
||||
public void EyesRectangle(UMat mat){
|
||||
if (haveEyes()){
|
||||
for(Rect eye : Eyes){
|
||||
rectangle(mat, eye, Scalar.BLUE);
|
||||
try{
|
||||
rectangle(mat, eye, Scalar.BLUE);
|
||||
|
||||
} catch (Exception ignored){}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user