Hello! Gchiste, thank you very much for the explanations.
I am trying several tests of sample app "Tracking the User's Face in Real Time" with my iPhone.
I added "print(results)" to ViewController.swift at the step-545th for minitoring.
......................................................(ViewController.swift)...............................................................
......................................................................................................................................................
guard let landmarksRequest = request as? VNDetectFaceLandmarksRequest,
let results = landmarksRequest.results as? [VNFaceObservation] else {
return
}
print(results) //********************************************************************* 2019.2.28 Try Test by addition.
// Perform all UI updates (drawing) on the main queue, not the background queue on which this handler is being called.
DispatchQueue.main.async {
self.drawFaceObservations(results)
}
.....................................................................................................................................................
.....................................................................................................................................................
The reacted Debug area in Real time is the following.
......................................................................................................................................................
[<VNFaceObservation: 0x131e11da0> 36E02117-F477-47AF-BD6A-FC94E2DEBC8D, revision 0, 1.000000 [0.204768 0.0890206 0.626646 0.352488] ID=0 landmarks 0.499072]
[<VNFaceObservation: 0x131d084f0> D0B5286F-7A77-45AE-94DA-1D8ABE0DFD94, revision 0, 1.000000 [0.212853 0.0844527 0.633526 0.356358] ID=0 landmarks 0.524259]
......................................................................................................................................................
May you explain these meaning of ech item? Specially I am assuming that [0.204768 0.0890206 0.626646 0.352488] is [ x,y,width,height] of the rectangle. Is this correct?
Respectfully.