File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Sources/FaceLiveness/FaceDetection/BlazeFace Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ struct DetectedFace {
34
34
}
35
35
36
36
let faceWidth = ow
37
- let faceHeight = 1.68 * faceWidth
37
+ let faceHeight = 1.618 * faceWidth
38
38
let faceBoxBottom = boundingBox. maxY
39
39
let faceBoxTop = faceBoxBottom - faceHeight
40
40
let faceBoxLeft = min ( cx - ow / 2 , rightEar. x)
Original file line number Diff line number Diff line change @@ -100,9 +100,9 @@ final class DetectedFaceTests: XCTestCase {
100
100
let ovalRect = CGRect . zero
101
101
let expectedBoundingBox = CGRect (
102
102
x: 0.1658528943614037 ,
103
- y: 0.041756969751750916 ,
103
+ y: 0.072967669448238516 ,
104
104
width: 0.6240418540649166 ,
105
- height: 0.8457092820983773
105
+ height: 0.8144985824018897
106
106
)
107
107
let boundingBox = detectedFace. boundingBoxFromLandmarks ( ovalRect: ovalRect)
108
108
XCTAssertEqual ( boundingBox. origin. x, expectedBoundingBox. origin. x)
You can’t perform that action at this time.
0 commit comments