MLKitImageLabeling커스텀 프레임워크 참조

MLKCustomImageLabelerOptions


@interface MLKCustomImageLabelerOptions : MLKCommonImageLabelerOptions

커스텀 모델 이미지 라벨러 구성

  • 이미지에 대해 반환할 최대 라벨 수입니다. 양수여야 합니다. 설정하지 않거나 잘못된 값이 설정되면 기본값 10이 사용됩니다.

    선언

    Objective-C

    @property (nonatomic) NSInteger maxResultCount;
  • confidenceThreshold 속성이 nil로 설정된 지정된 LocalModel를 사용하여 CustomImageLabelerOptions 인스턴스를 초기화합니다. 정책을 설정하지 않으면 모델 메타데이터에 포함된 신뢰도 기준점(있는 경우)이 사용됩니다. 존재하지 않으면 0.0 값이 대신 사용됩니다.

    선언

    Objective-C

    - (nonnull instancetype)initWithLocalModel:(nonnull MLKLocalModel *)localModel;

    매개변수

    localModel

    기기에 로컬로 저장된 커스텀 이미지 라벨 지정 모델입니다.

    반환 값

    지정된 LocalModel를 사용하는 CustomImageLabelerOptions의 새 인스턴스입니다.

  • confidenceThreshold 속성이 nil로 설정된 지정된 CustomRemoteModel를 사용하여 CustomImageLabelerOptions 인스턴스를 초기화합니다. 정책을 설정하지 않으면 모델 메타데이터에 포함된 신뢰도 기준점(있는 경우)이 사용됩니다. 존재하지 않으면 0.0 값이 대신 사용됩니다.

    선언

    Objective-C

    - (nonnull instancetype)initWithRemoteModel:
        (nonnull MLKCustomRemoteModel *)remoteModel;

    매개변수

    remoteModel

    서버에 원격으로 저장되고 기기에 다운로드된 커스텀 이미지 라벨 지정 모델입니다.

    반환 값

    지정된 CustomRemoteModel를 사용하는 CustomImageLabelerOptions의 새 인스턴스입니다.

  • 사용할 수 없습니다.

    선언

    Objective-C

    - (nonnull instancetype)init;