MLKCustomObjectDetectorOptions
@interface MLKCustomObjectDetectorOptions : MLKCommonObjectDetectorOptions
커스텀 모델 객체 감지기의 구성입니다.
-
객체 인식기에서 반환된 라벨의 신뢰도 기준입니다. 객체 감지기에서 반환된 라벨의 신뢰도 수준은 지정된 임곗값보다 높거나 같습니다. 기준은 부동 소수점 값이며 [0, 1] 범위 내에 있어야 합니다. 설정하지 않거나 잘못된 값을 설정하면 모델의 메타데이터에서 지정된 분류 기준 임계값이 사용됩니다. 모델에 메타데이터가 포함되어 있지 않거나 메타데이터가 분류 기준 임곗값을 지정하지 않으면 기본 임곗값
0.0
가 사용됩니다.선언
Objective-C
@property (nonatomic, nullable) NSNumber *classificationConfidenceThreshold;
-
감지된 객체에 대해 반환할 최대 라벨 수입니다. 양수여야 합니다. 설정하지 않거나 잘못된 값이 설정되면 기본값
10
이 사용됩니다.선언
Objective-C
@property (nonatomic) NSInteger maxPerObjectLabelCount;
-
classificationConfidenceThreshold
속성이nil
로 설정된 지정된LocalModel
를 사용하여CustomObjectDetectorOptions
인스턴스를 초기화합니다. 정책을 설정하지 않으면 모델 메타데이터에 포함된 신뢰도 기준점(있는 경우)이 사용됩니다. 존재하지 않으면0.0
값이 대신 사용됩니다.선언
Objective-C
- (nonnull instancetype)initWithLocalModel:(nonnull MLKLocalModel *)localModel;
매개변수
localModel
기기에 로컬로 저장되는 커스텀 객체 분류 모델입니다.
반환 값
지정된
LocalModel
를 사용하는CustomObjectDetectorOptions
의 새 인스턴스입니다. -
classificationConfidenceThreshold
속성이nil
로 설정된 지정된CustomRemoteModel
를 사용하여CustomObjectDetectorOptions
인스턴스를 초기화합니다. 정책을 설정하지 않으면 모델 메타데이터에 포함된 신뢰도 기준점(있는 경우)이 사용됩니다. 존재하지 않으면0.0
값이 대신 사용됩니다.선언
Objective-C
- (nonnull instancetype)initWithRemoteModel: (nonnull MLKCustomRemoteModel *)remoteModel;
매개변수
remoteModel
서버에 원격으로 저장되고 기기에 다운로드된 커스텀 객체 분류 모델입니다.
반환 값
지정된
CustomRemoteModel
를 사용하는CustomObjectDetectorOptions
의 새 인스턴스입니다. -
사용할 수 없습니다.
선언
Objective-C
- (nonnull instancetype)init;