你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

@azure/cognitiveservices-customvision-prediction package

PredictionAPIClient
PredictionAPIClientContext

接口

BoundingBox

定义图像区域的边界框。

CustomVisionError

表示 CustomVisionError 的接口。

ImagePrediction

图像预测请求的结果。

ImageUrl

图像 URL。

Prediction

预测结果。

PredictionAPIClientClassifyImageOptionalParams

可选参数。

PredictionAPIClientClassifyImageUrlOptionalParams

可选参数。

PredictionAPIClientClassifyImageUrlWithNoStoreOptionalParams

可选参数。

PredictionAPIClientClassifyImageWithNoStoreOptionalParams

可选参数。

PredictionAPIClientDetectImageOptionalParams

可选参数。

PredictionAPIClientDetectImageUrlOptionalParams

可选参数。

PredictionAPIClientDetectImageUrlWithNoStoreOptionalParams

可选参数。

PredictionAPIClientDetectImageWithNoStoreOptionalParams

可选参数。

类型别名

ClassifyImageResponse

包含 classifyImage 操作的响应数据。

ClassifyImageUrlResponse

包含 classifyImageUrl 操作的响应数据。

ClassifyImageUrlWithNoStoreResponse

包含 classifyImageUrlWithNoStore 操作的响应数据。

ClassifyImageWithNoStoreResponse

包含 classifyImageWithNoStore 操作的响应数据。

CustomVisionErrorCodes

定义 CustomVisionErrorCodes 的值。 可能的值包括:“NoError”、“BadRequest”、“BadRequestExceedededBatchSize”、“BadRequestNotSupported”、“BadRequestInvalidIds”、“BadRequestProjectName”、“BadRequestProjectNameNotUnique”, 'BadRequestProjectDescription', 'BadRequestProjectUnknownDomain', 'BadRequestProjectUnknownClassification', 'BadRequestProjectUnsupportedDomainTypeChange', 'BadRequestProjectUnsupportedExportPlatform', 'BadRequestProjectImagePreprocessingSettings', 'BadRequestProjectDuplicated', 'BadRequestIterationName', 'BadRequestIterationNameNotUnique', 'BadRequestIterationDescription', 'BadRequestIterationIsNotTrained', 'BadRequestIterationValidationFailed', 'BadRequestWorkspaceCannotBeModified', 'BadRequestWorkspaceNotDeletable', 'BadRequestTagName', 'BadRequestTagNameNotUnique', 'BadRequestTagDescription', 'BadRequestTagType', 'BadRequestMultipleNegativeTag', 'BadRequestMultipleGeneralProductTag', 'BadRequestImageTags“、”BadRequestImageRegions“、”BadRequestNegativeAndRegularTagOnSameImage“、”BadRequestUnsupportedDomain“、”BadRequestRequiredParamIsNull“、”BadRequestIterationIsPublished“、”BadRequestInvalidPublishName“, 'BadRequestInvalidPublishTarget', 'BadRequestUnpublishFailed', 'BadRequestIterationNotPublished', 'BadRequestSubscriptionApi', 'BadRequestExceedProjectLimit', 'BadRequestExceedIterationPerProjectLimit', 'BadRequestExceedTagPerProjectLimit','BadRequestExceedTagPerImageLimit', 'BadRequestExceededQuota', 'BadRequestCannotMigrateProjectWithName', 'BadRequestNotLimitedTrial', 'BadRequestImageBatch', 'BadRequestImageStream', 'BadRequestImageUrl', 'BadRequestImageFormat', 'BadRequestImageSizeBytes', 'BadRequestImageDimensions', 'BadRequestImageExceededCount', 'BadRequestTrainingNotNeeded', 'BadRequestTrainingNotNeededButTrainingPipelineUpdated', 'BadRequestTrainingValidationFailed',BadRequestClassificationTrainingValidationFailed', 'BadRequestMultiClassificationTrainingValidationFailed', 'BadRequestMultiLabelClassificationTrainingValidationFailed', 'BadRequestDetectionTrainingValidationFailed', 'BadRequestTrainingAlreadyInProgress', 'BadRequestDetectionTrainingNotAllowNegativeTag', 'BadRequestInvalidEmailAddress', 'BadRequestDomainNotSupportedForAdvancedTraining', 'BadRequestExportPlatformNotSupportedForAdvancedTraining', 'BadRequestReservedBudgetInHoursNotEnoughForAdvancedTraining', 'BadRequestExportValidationFailed', 'BadRequestExportAlreadyInProgress', 'BadRequestPredictionIdsMissing', 'BadRequestPredictionIdsExceededCount', 'BadRequestPredictionTagsExceededCount', 'BadRequestPredictionResultsExceededCount', 'BadRequestPredictionInvalidApplicationName', 'BadRequestPredictionInvalidQueryParameters', 'BadRequestInvalidImportToken', 'BadRequestExportWhileTraining',BadRequestImageMetadataKey“、”BadRequestImageMetadataValue“、”BadRequestOperationNotSupported“、”BadRequestInvalidArtifactUri“、”BadRequestCustomerManagedKeyRevoked“、”BadRequestInvalid“, 'UnsupportedMediaType', 'Forbidden', 'ForbiddenUser', 'ForbiddenUserResource', 'ForbiddenUserSignupDisabled', 'ForbiddenUserSignupAllowanceExceeded', 'ForbiddenUserDoesNotExist', 'ForbiddenUserDisabled', 'ForbiddenUserInsufficientCapability', 'ForbiddenDRModeEnabled',ForbiddenInvalid“、”NotFound“、”NotFoundProject“、”NotFoundProjectDefaultIteration“、”NotFoundIteration“、”NotFoundIterationPerformance“、”NotFoundTag“、”NotFoundImage“、”NotFoundDomain“, 'NotFoundApimSubscription', 'NotFoundInvalid', 'Conflict', 'ConflictInvalid', 'ErrorUnknown', 'ErrorIterationCopyFailed', 'ErrorPreparePerformanceMigrationFailed', 'ErrorProjectInvalidWorkspace', 'ErrorProjectInvalidPipelineConfiguration', 'ErrorProjectInvalidDomain', 'ErrorProjectTrainingRequestFailed', 'ErrorProjectImportRequestFailed', 'ErrorProjectExportRequestFailed', 'ErrorFeaturizationServiceUnavailable', 'ErrorFeaturizationQueueTimeout', 'ErrorFeaturizationInvalidFeaturizer', 'ErrorFeaturizationAugmentationUnavailable', 'ErrorFeaturizationUnrecognizedJob', 'ErrorFeaturizationAugmentationError', 'ErrorExporterInvalidPlatform', 'ErrorExporterInvalidFeaturizer', 'ErrorExporterInvalidClassifier',ErrorPredictionServiceUnavailable', 'ErrorPredictionModelNotFound', 'ErrorPredictionModelNotCached', 'ErrorPrediction', 'ErrorPredictionStorage', 'ErrorRegionProposal', 'ErrorUnknownBaseModel', 'ErrorInvalid'

DetectImageResponse

包含 detectImage 操作的响应数据。

DetectImageUrlResponse

包含 detectImageUrl 操作的响应数据。

DetectImageUrlWithNoStoreResponse

包含 detectImageUrlWithNoStore 操作的响应数据。

DetectImageWithNoStoreResponse

包含 detectImageWithNoStore 操作的响应数据。

TagType

定义 TagType 的值。 可能的值包括:“Regular”、“Negative”、“GeneralProduct”