סימוכין למסגרת של 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 FaceDetectorLandmarkMode מצב זיהוי של סמן מיקום לצורך זיהוי פנים.

    הצהרה

    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