คำจำกัดความของประเภท
คำจำกัดความของประเภทต่อไปนี้พร้อมใช้งานทั่วโลก
-
รูปร่างของใบหน้า
คำประกาศ
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