Freigeben über


Projects - Quick Test Image

Dient zum schnellen Testen eines Bilds.

POST {Endpoint}/customvision/v3.3/training/projects/{projectId}/quicktest/image
POST {Endpoint}/customvision/v3.3/training/projects/{projectId}/quicktest/image?iterationId={iterationId}&store={store}

URI-Parameter

Name In Erforderlich Typ Beschreibung
imageData
formData True

file

Binäre Bilddaten. Unterstützte Formate sind JPEG, GIF, PNG und BMP. Unterstützt Bilder von bis zu 6 MB.

Endpoint
path True

string

Unterstützte Cognitive Services-Endpunkte.

projectId
path True

string (uuid)

Die Projekt-ID.

iterationId
query

string (uuid)

Wahlfrei. Gibt die ID einer bestimmten Iteration an, für die ausgewertet werden soll.

        The default iteration for the project will be used when not specified.
store
query

boolean

Wahlfrei. Gibt an, ob das Ergebnis dieser Vorhersage gespeichert werden soll. Der Standardwert ist "true", um sie zu speichern.

Anforderungsheader

Media Types: "multipart/form-data", "application/octet-stream"

Name Erforderlich Typ Beschreibung
Training-Key True

string

Antworten

Name Typ Beschreibung
200 OK

ImagePrediction

OKAY

Media Types: "application/json", "application/xml", "text/xml"

Other Status Codes

CustomVisionError

Fehlerantwort

Media Types: "application/json", "application/xml", "text/xml"

Sicherheit

Training-Key

Typ: apiKey
In: header

Beispiele

Successful QuickTestImage request

Beispielanforderung

POST https://westus.api.cognitive.microsoft.com/customvision/v3.3/training/projects/64b822c5-8082-4b36-a426-27225f4aa18c/quicktest/image?iterationId=fe1e83c4-6f50-4899-9544-6bb08cf0e15a

Beispiel für eine Antwort

{
  "id": "951098b2-9b69-427b-bddb-d5cb618874e3",
  "project": "64b822c5-8082-4b36-a426-27225f4aa18c",
  "iteration": "fe1e83c4-6f50-4899-9544-6bb08cf0e15a",
  "created": "2017-12-19T14:21:41Z",
  "predictions": [
    {
      "tagId": "e31ff107-5505-4753-be42-b369b21b026c",
      "tagName": "Hemlock",
      "probability": 0.05149666
    },
    {
      "tagId": "349d72ac-0948-4d51-b1e4-c14a1f9b848a",
      "tagName": "Japanese Cherry",
      "probability": 0
    }
  ]
}

Definitionen

Name Beschreibung
BoundingBox

Umgebendes Feld, das einen Bereich eines Bilds definiert.

CustomVisionError
CustomVisionErrorCodes

Der Fehlercode.

ImagePrediction

Ergebnis einer Bildvorhersageanforderung.

Prediction

Vorhersageergebnis.

TagType

Typ des vorhergesagten Tags.

BoundingBox

Umgebendes Feld, das einen Bereich eines Bilds definiert.

Name Typ Beschreibung
height

number (float)

Höhe.

left

number (float)

Koordinate der linken Grenze.

top

number (float)

Koordinate der oberen Grenze.

width

number (float)

Breite.

CustomVisionError

Name Typ Beschreibung
code

CustomVisionErrorCodes

Der Fehlercode.

message

string

Eine Meldung, die den vom Dienst gemeldeten Fehler erklärt.

CustomVisionErrorCodes

Der Fehlercode.

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

ImagePrediction

Ergebnis einer Bildvorhersageanforderung.

Name Typ Beschreibung
created

string (date-time)

Datum, an dem diese Vorhersage erstellt wurde.

id

string (uuid)

Vorhersage-ID.

iteration

string (uuid)

Iterations-ID.

predictions

Prediction[]

Liste der Vorhersagen.

project

string (uuid)

Projekt-ID.

Prediction

Vorhersageergebnis.

Name Typ Beschreibung
boundingBox

BoundingBox

Umgebendes Feld der Vorhersage.

probability

number (float)

Wahrscheinlichkeit des Tags.

tagId

string (uuid)

ID des vorhergesagten Tags.

tagName

string

Name des vorhergesagten Tags.

tagType

TagType

Typ des vorhergesagten Tags.

TagType

Typ des vorhergesagten Tags.

Wert Beschreibung
GeneralProduct
Negative
Regular