Freigeben über


Projects - Quick Test Image Url

Dient zum schnellen Testen einer Bild-URL.

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

URI-Parameter

Name In Erforderlich Typ Beschreibung
Endpoint
path True

string

Unterstützte Cognitive Services-Endpunkte.

projectId
path True

string (uuid)

Das Projekt, das ausgewertet werden soll.

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: "application/json", "application/xml", "text/xml", "application/x-www-form-urlencoded"

Name Erforderlich Typ Beschreibung
Training-Key True

string

Anforderungstext

Media Types: "application/json", "application/xml", "text/xml", "application/x-www-form-urlencoded"

Name Erforderlich Typ Beschreibung
url True

string

URL des Bilds.

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 QuickTestImageUrl request

Beispielanforderung

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


{
  "url": "{Image URL}"
}

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.

ImageUrl

Bild-URL.

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
NoError
BadRequest
BadRequestExceededBatchSize
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
BadRequestMultiClassClassificationTrainingValidationFailed
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

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.

ImageUrl

Bild-URL.

Name Typ Beschreibung
url

string

URL des Bilds.

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
Regular
Negative
GeneralProduct