Is the code for the simple jumping jacks, lunges, squats app available to download?
thanks,
Dale
thanks,
Dale
Code Block /// Extracts poses from a frame. func processFrame(_ samplebuffer: CMSampleBuffer) throws -> [MLMultiArray] { // Perform Vision body pose request let framePoses = extractPoses(from: samplebuffer) <---- this ....
Code Block func extractPoses(from sampleBuffer: CMSampleBuffer) -> [MLMultiArray] { let requestHandler = VNImageRequestHandler(cmSampleBuffer: sampleBuffer, orientation: .down) let request = VNDetectHumanBodyPoseRequest(completionHandler: bodyPoseHandler) do { // Perform the body pose-detection request. try requestHandler.perform([request]) } catch { print("Unable to perform the request: \(error).") } }