Closed max-frai closed 2 years ago
contours
and bounds
are not implemented yet for iOS.
I've tried to fix it while fixing contours
but I had no idea how bounding box calculation works.
Waiting for this feature =)
I've sent PR for fixing empty countours
here: https://github.com/rodgomesc/vision-camera-face-detector/pull/4
You can try fixing it yourself by replicating code of android plugin(which I failed)
Hi, thank you @iAmGhost for the contouring, I've implemented a sort of bounding box, in fact is the frame of the face given in a origin point with width and height I don't know if it helps
private static func processBoundingBox(from face: Face) -> [[String:CGFloat]] {
let frame = face.frame;
var pointsArray: [[String:CGFloat]] = [];
let currentPointsMap = [
"origin_x": frame.origin.x,
"origin_y": frame.origin.y,
"width":frame.size.width,
"height":frame.size.height,
]
pointsArray.append(currentPointsMap)
return pointsArray
}
@PietroGranati Also check for #9, it fixes this issue but not merged with master yet
Hello, thank you for the plugin. I'm using it with ios and everything is ok except it does not show me position of the face relative to screen. This is not supported for now or it could be some bug?