You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to replace camera with static image, it detects the face landmarks but points are misplaced. Below is the code, where the points are misplaced and it draws the path on wrong position.
if let boundingBox = self.faceLandmarks.inputFaceObservations?.first?.boundingBox {
let faceBoundingBox = boundingBox.scaled(to: self.imgView.frame.size)
//different types of landmarks
let allpoints = observation.landmarks?.allPoints
self.convertPointsForFace(allpoints, faceBoundingBox)
}
Can you please help me to get correct facelandmarks points from static image?
The text was updated successfully, but these errors were encountered:
@Nisha-SpaceoTech you can use the func only once.
FaceARDetect/FaceARDetectIOS.h
-(BOOL) run_FaceAR:(cv::Mat)captured_image frame__:(int)frame_count fx__:(double)fx fy__:(double)fy cx__:(double)cx cy__:(double)cy;
When I try to replace camera with static image, it detects the face landmarks but points are misplaced. Below is the code, where the points are misplaced and it draws the path on wrong position.
if let boundingBox = self.faceLandmarks.inputFaceObservations?.first?.boundingBox {
let faceBoundingBox = boundingBox.scaled(to: self.imgView.frame.size)
//different types of landmarks
}
Can you please help me to get correct facelandmarks points from static image?
The text was updated successfully, but these errors were encountered: