Skip to content
This repository was archived by the owner on May 4, 2022. It is now read-only.
This repository was archived by the owner on May 4, 2022. It is now read-only.

Face rect detection #2

Description

@KimDarren

To get the detected faces result.

let image = UIImage(named: "image_contains_faces")
image.face.detect { result in
  switch result {
  case .success(let rects):
    // rects: [CGRect]
  case .notFound:
    // no faces founded.
  case .failure(let error): 
    // any error occurred.
  }
}

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions