MLKitFaceDetection フレームワーク リファレンス

タイプの定義

次の型定義はグローバルで使用できます。

  • 顔の輪郭。

    宣言

    Swift

    struct FaceContourType : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable
  • 顔の配列または nil(エラーがある場合)を含むブロック。

    宣言

    Swift

    typealias FaceDetectionCallback = ([MLKFace]?, Error?) -> Void

    パラメータ

    faces

    画像内で検出された顔の配列。エラーが発生した場合は nil

    error

    エラーまたは nil

  • @enum FaceDetectorClassificationMode 顔検出の分類モード。

    宣言

    Swift

    struct FaceDetectorClassificationMode : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable
  • @enum FaceDetectorPerformanceMode 顔検出の精度または速度に関するパフォーマンス設定。

    宣言

    Swift

    struct FaceDetectorPerformanceMode : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable
  • @enum FaceDetector 履歴モード: 顔検出のランドマーク検出モード。

    宣言

    Swift

    struct FaceDetectorLandmarkMode : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable
  • @enum FaceDetectorContourMode 顔検出の輪郭検出モード。

    宣言

    Swift

    struct FaceDetectorContourMode : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable
  • 顔のランドマーク。

    宣言

    Swift

    struct FaceLandmarkType : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable