Freigeben über


PredictionAPIClient class

Extends

Konstruktoren

PredictionAPIClient(ServiceClientCredentials, string, ServiceClientOptions)

Initialisiert eine neue Instanz der PredictionAPIClient-Klasse.

Geerbte Eigenschaften

credentials
endpoint

Methoden

classifyImage(string, string, HttpRequestBody, PredictionAPIClientClassifyImageOptionalParams)
classifyImage(string, string, HttpRequestBody, PredictionAPIClientClassifyImageOptionalParams, ServiceCallback<ImagePrediction>)
classifyImage(string, string, HttpRequestBody, ServiceCallback<ImagePrediction>)
classifyImageUrl(string, string, ImageUrl, PredictionAPIClientClassifyImageUrlOptionalParams)
classifyImageUrl(string, string, ImageUrl, PredictionAPIClientClassifyImageUrlOptionalParams, ServiceCallback<ImagePrediction>)
classifyImageUrl(string, string, ImageUrl, ServiceCallback<ImagePrediction>)
classifyImageUrlWithNoStore(string, string, ImageUrl, PredictionAPIClientClassifyImageUrlWithNoStoreOptionalParams)
classifyImageUrlWithNoStore(string, string, ImageUrl, PredictionAPIClientClassifyImageUrlWithNoStoreOptionalParams, ServiceCallback<ImagePrediction>)
classifyImageUrlWithNoStore(string, string, ImageUrl, ServiceCallback<ImagePrediction>)
classifyImageWithNoStore(string, string, HttpRequestBody, PredictionAPIClientClassifyImageWithNoStoreOptionalParams)
classifyImageWithNoStore(string, string, HttpRequestBody, PredictionAPIClientClassifyImageWithNoStoreOptionalParams, ServiceCallback<ImagePrediction>)
classifyImageWithNoStore(string, string, HttpRequestBody, ServiceCallback<ImagePrediction>)
detectImage(string, string, HttpRequestBody, PredictionAPIClientDetectImageOptionalParams)
detectImage(string, string, HttpRequestBody, PredictionAPIClientDetectImageOptionalParams, ServiceCallback<ImagePrediction>)
detectImage(string, string, HttpRequestBody, ServiceCallback<ImagePrediction>)
detectImageUrl(string, string, ImageUrl, PredictionAPIClientDetectImageUrlOptionalParams)
detectImageUrl(string, string, ImageUrl, PredictionAPIClientDetectImageUrlOptionalParams, ServiceCallback<ImagePrediction>)
detectImageUrl(string, string, ImageUrl, ServiceCallback<ImagePrediction>)
detectImageUrlWithNoStore(string, string, ImageUrl, PredictionAPIClientDetectImageUrlWithNoStoreOptionalParams)
detectImageUrlWithNoStore(string, string, ImageUrl, PredictionAPIClientDetectImageUrlWithNoStoreOptionalParams, ServiceCallback<ImagePrediction>)
detectImageUrlWithNoStore(string, string, ImageUrl, ServiceCallback<ImagePrediction>)
detectImageWithNoStore(string, string, HttpRequestBody, PredictionAPIClientDetectImageWithNoStoreOptionalParams)
detectImageWithNoStore(string, string, HttpRequestBody, PredictionAPIClientDetectImageWithNoStoreOptionalParams, ServiceCallback<ImagePrediction>)
detectImageWithNoStore(string, string, HttpRequestBody, ServiceCallback<ImagePrediction>)

Geerbte Methoden

sendOperationRequest(OperationArguments, OperationSpec, ServiceCallback<any>)

Senden Sie eine HTTP-Anforderung, die mithilfe der angegebenen OperationSpec aufgefüllt wird.

sendRequest(RequestPrepareOptions | WebResourceLike)

Senden Sie die bereitgestellte httpRequest.

Details zum Konstruktor

PredictionAPIClient(ServiceClientCredentials, string, ServiceClientOptions)

Initialisiert eine neue Instanz der PredictionAPIClient-Klasse.

new PredictionAPIClient(credentials: ServiceClientCredentials, endpoint: string, options?: ServiceClientOptions)

Parameter

credentials
ServiceClientCredentials

Abonnementanmeldeinformationen, die das Clientabonnement eindeutig identifizieren.

endpoint

string

Unterstützte Cognitive Services-Endpunkte.

options
ServiceClientOptions

Parameteroptionen

Geerbte Eigenschaftsdetails

credentials

credentials: ServiceClientCredentials

Eigenschaftswert

Geerbt vonPredictionAPIClientContext.credentials

endpoint

endpoint: string

Eigenschaftswert

string

Geerbt vonPredictionAPIClientContext.endpoint

Details zur Methode

classifyImage(string, string, HttpRequestBody, PredictionAPIClientClassifyImageOptionalParams)

function classifyImage(projectId: string, publishedName: string, imageData: HttpRequestBody, options?: PredictionAPIClientClassifyImageOptionalParams): Promise<ClassifyImageResponse>

Parameter

projectId

string

Die Projekt-ID.

publishedName

string

Gibt den Namen des Modells an, für das ausgewertet werden soll.

imageData
HttpRequestBody

Binärbilddaten. Unterstützte Formate sind JPEG, GIF, PNG und BMP. Unterstützt Bilder mit bis zu 4 MB.

options
PredictionAPIClientClassifyImageOptionalParams

Die optionalen Parameter

Gibt zurück

Promise<Models.ClassifyImageResponse>

classifyImage(string, string, HttpRequestBody, PredictionAPIClientClassifyImageOptionalParams, ServiceCallback<ImagePrediction>)

function classifyImage(projectId: string, publishedName: string, imageData: HttpRequestBody, options: PredictionAPIClientClassifyImageOptionalParams, callback: ServiceCallback<ImagePrediction>)

Parameter

projectId

string

Die Projekt-ID.

publishedName

string

Gibt den Namen des Modells an, für das ausgewertet werden soll.

imageData
HttpRequestBody

Binärbilddaten. Unterstützte Formate sind JPEG, GIF, PNG und BMP. Unterstützt Bilder mit bis zu 4 MB.

options
PredictionAPIClientClassifyImageOptionalParams

Die optionalen Parameter

callback

ServiceCallback<ImagePrediction>

Der Rückruf.

classifyImage(string, string, HttpRequestBody, ServiceCallback<ImagePrediction>)

function classifyImage(projectId: string, publishedName: string, imageData: HttpRequestBody, callback: ServiceCallback<ImagePrediction>)

Parameter

projectId

string

Die Projekt-ID.

publishedName

string

Gibt den Namen des Modells an, für das ausgewertet werden soll.

imageData
HttpRequestBody

Binärbilddaten. Unterstützte Formate sind JPEG, GIF, PNG und BMP. Unterstützt Bilder mit bis zu 4 MB.

callback

ServiceCallback<ImagePrediction>

Der Rückruf.

classifyImageUrl(string, string, ImageUrl, PredictionAPIClientClassifyImageUrlOptionalParams)

function classifyImageUrl(projectId: string, publishedName: string, imageUrl: ImageUrl, options?: PredictionAPIClientClassifyImageUrlOptionalParams): Promise<ClassifyImageUrlResponse>

Parameter

projectId

string

Die Projekt-ID.

publishedName

string

Gibt den Namen des Modells an, für das ausgewertet werden soll.

imageUrl
ImageUrl

Eine ImageUrl,die die URL des auszuwertenden Bilds enthält.

options
PredictionAPIClientClassifyImageUrlOptionalParams

Die optionalen Parameter

Gibt zurück

Promise<Models.ClassifyImageUrlResponse>

classifyImageUrl(string, string, ImageUrl, PredictionAPIClientClassifyImageUrlOptionalParams, ServiceCallback<ImagePrediction>)

function classifyImageUrl(projectId: string, publishedName: string, imageUrl: ImageUrl, options: PredictionAPIClientClassifyImageUrlOptionalParams, callback: ServiceCallback<ImagePrediction>)

Parameter

projectId

string

Die Projekt-ID.

publishedName

string

Gibt den Namen des Modells an, für das ausgewertet werden soll.

imageUrl
ImageUrl

Eine ImageUrl,die die URL des auszuwertenden Bilds enthält.

options
PredictionAPIClientClassifyImageUrlOptionalParams

Die optionalen Parameter

callback

ServiceCallback<ImagePrediction>

Der Rückruf.

classifyImageUrl(string, string, ImageUrl, ServiceCallback<ImagePrediction>)

function classifyImageUrl(projectId: string, publishedName: string, imageUrl: ImageUrl, callback: ServiceCallback<ImagePrediction>)

Parameter

projectId

string

Die Projekt-ID.

publishedName

string

Gibt den Namen des Modells an, für das ausgewertet werden soll.

imageUrl
ImageUrl

Eine ImageUrl,die die URL des auszuwertenden Bilds enthält.

callback

ServiceCallback<ImagePrediction>

Der Rückruf.

classifyImageUrlWithNoStore(string, string, ImageUrl, PredictionAPIClientClassifyImageUrlWithNoStoreOptionalParams)

function classifyImageUrlWithNoStore(projectId: string, publishedName: string, imageUrl: ImageUrl, options?: PredictionAPIClientClassifyImageUrlWithNoStoreOptionalParams): Promise<ClassifyImageUrlWithNoStoreResponse>

Parameter

projectId

string

Die Projekt-ID.

publishedName

string

Gibt den Namen des Modells an, für das ausgewertet werden soll.

imageUrl
ImageUrl

Ein {Iris.Web.Api.Models.ImageUrl},das die URL des auszuwertenden Bilds enthält.

Gibt zurück

Promise<Models.ClassifyImageUrlWithNoStoreResponse>

classifyImageUrlWithNoStore(string, string, ImageUrl, PredictionAPIClientClassifyImageUrlWithNoStoreOptionalParams, ServiceCallback<ImagePrediction>)

function classifyImageUrlWithNoStore(projectId: string, publishedName: string, imageUrl: ImageUrl, options: PredictionAPIClientClassifyImageUrlWithNoStoreOptionalParams, callback: ServiceCallback<ImagePrediction>)

Parameter

projectId

string

Die Projekt-ID.

publishedName

string

Gibt den Namen des Modells an, für das ausgewertet werden soll.

imageUrl
ImageUrl

Ein {Iris.Web.Api.Models.ImageUrl},das die URL des auszuwertenden Bilds enthält.

callback

ServiceCallback<ImagePrediction>

Der Rückruf.

classifyImageUrlWithNoStore(string, string, ImageUrl, ServiceCallback<ImagePrediction>)

function classifyImageUrlWithNoStore(projectId: string, publishedName: string, imageUrl: ImageUrl, callback: ServiceCallback<ImagePrediction>)

Parameter

projectId

string

Die Projekt-ID.

publishedName

string

Gibt den Namen des Modells an, für das ausgewertet werden soll.

imageUrl
ImageUrl

Ein {Iris.Web.Api.Models.ImageUrl},das die URL des auszuwertenden Bilds enthält.

callback

ServiceCallback<ImagePrediction>

Der Rückruf.

classifyImageWithNoStore(string, string, HttpRequestBody, PredictionAPIClientClassifyImageWithNoStoreOptionalParams)

function classifyImageWithNoStore(projectId: string, publishedName: string, imageData: HttpRequestBody, options?: PredictionAPIClientClassifyImageWithNoStoreOptionalParams): Promise<ClassifyImageWithNoStoreResponse>

Parameter

projectId

string

Die Projekt-ID.

publishedName

string

Gibt den Namen des Modells an, für das ausgewertet werden soll.

imageData
HttpRequestBody

Binärbilddaten. Unterstützte Formate sind JPEG, GIF, PNG und BMP. Unterstützt Bilder mit bis zu 4 MB.

Gibt zurück

Promise<models.ClassifyImageWithNoStoreResponse>

classifyImageWithNoStore(string, string, HttpRequestBody, PredictionAPIClientClassifyImageWithNoStoreOptionalParams, ServiceCallback<ImagePrediction>)

function classifyImageWithNoStore(projectId: string, publishedName: string, imageData: HttpRequestBody, options: PredictionAPIClientClassifyImageWithNoStoreOptionalParams, callback: ServiceCallback<ImagePrediction>)

Parameter

projectId

string

Die Projekt-ID.

publishedName

string

Gibt den Namen des Modells an, für das ausgewertet werden soll.

imageData
HttpRequestBody

Binärbilddaten. Unterstützte Formate sind JPEG, GIF, PNG und BMP. Unterstützt Bilder mit bis zu 4 MB.

callback

ServiceCallback<ImagePrediction>

Der Rückruf.

classifyImageWithNoStore(string, string, HttpRequestBody, ServiceCallback<ImagePrediction>)

function classifyImageWithNoStore(projectId: string, publishedName: string, imageData: HttpRequestBody, callback: ServiceCallback<ImagePrediction>)

Parameter

projectId

string

Die Projekt-ID.

publishedName

string

Gibt den Namen des Modells an, für das ausgewertet werden soll.

imageData
HttpRequestBody

Binärbilddaten. Unterstützte Formate sind JPEG, GIF, PNG und BMP. Unterstützt Bilder mit bis zu 4 MB.

callback

ServiceCallback<ImagePrediction>

Der Rückruf.

detectImage(string, string, HttpRequestBody, PredictionAPIClientDetectImageOptionalParams)

function detectImage(projectId: string, publishedName: string, imageData: HttpRequestBody, options?: PredictionAPIClientDetectImageOptionalParams): Promise<DetectImageResponse>

Parameter

projectId

string

Die Projekt-ID.

publishedName

string

Gibt den Namen des Modells an, für das ausgewertet werden soll.

imageData
HttpRequestBody

Binärbilddaten. Unterstützte Formate sind JPEG, GIF, PNG und BMP. Unterstützt Bilder mit bis zu 4 MB.

options
PredictionAPIClientDetectImageOptionalParams

Die optionalen Parameter

Gibt zurück

Promise<Models.DetectImageResponse>

detectImage(string, string, HttpRequestBody, PredictionAPIClientDetectImageOptionalParams, ServiceCallback<ImagePrediction>)

function detectImage(projectId: string, publishedName: string, imageData: HttpRequestBody, options: PredictionAPIClientDetectImageOptionalParams, callback: ServiceCallback<ImagePrediction>)

Parameter

projectId

string

Die Projekt-ID.

publishedName

string

Gibt den Namen des Modells an, für das ausgewertet werden soll.

imageData
HttpRequestBody

Binärbilddaten. Unterstützte Formate sind JPEG, GIF, PNG und BMP. Unterstützt Bilder mit bis zu 4 MB.

options
PredictionAPIClientDetectImageOptionalParams

Die optionalen Parameter

callback

ServiceCallback<ImagePrediction>

Der Rückruf.

detectImage(string, string, HttpRequestBody, ServiceCallback<ImagePrediction>)

function detectImage(projectId: string, publishedName: string, imageData: HttpRequestBody, callback: ServiceCallback<ImagePrediction>)

Parameter

projectId

string

Die Projekt-ID.

publishedName

string

Gibt den Namen des Modells an, für das ausgewertet werden soll.

imageData
HttpRequestBody

Binärbilddaten. Unterstützte Formate sind JPEG, GIF, PNG und BMP. Unterstützt Bilder bis zu 4 MB.

callback

ServiceCallback<ImagePrediction>

Der Rückruf.

detectImageUrl(string, string, ImageUrl, PredictionAPIClientDetectImageUrlOptionalParams)

function detectImageUrl(projectId: string, publishedName: string, imageUrl: ImageUrl, options?: PredictionAPIClientDetectImageUrlOptionalParams): Promise<DetectImageUrlResponse>

Parameter

projectId

string

Die Projekt-ID.

publishedName

string

Gibt den Namen des Modells an, für das ausgewertet werden soll.

imageUrl
ImageUrl

Eine ImageUrl, die die URL des auszuwertenden Bilds enthält.

options
PredictionAPIClientDetectImageUrlOptionalParams

Die optionalen Parameter

Gibt zurück

Promise<Models.DetectImageUrlResponse>

detectImageUrl(string, string, ImageUrl, PredictionAPIClientDetectImageUrlOptionalParams, ServiceCallback<ImagePrediction>)

function detectImageUrl(projectId: string, publishedName: string, imageUrl: ImageUrl, options: PredictionAPIClientDetectImageUrlOptionalParams, callback: ServiceCallback<ImagePrediction>)

Parameter

projectId

string

Die Projekt-ID.

publishedName

string

Gibt den Namen des Modells an, für das ausgewertet werden soll.

imageUrl
ImageUrl

Eine ImageUrl, die die URL des auszuwertenden Bilds enthält.

options
PredictionAPIClientDetectImageUrlOptionalParams

Die optionalen Parameter

callback

ServiceCallback<ImagePrediction>

Der Rückruf.

detectImageUrl(string, string, ImageUrl, ServiceCallback<ImagePrediction>)

function detectImageUrl(projectId: string, publishedName: string, imageUrl: ImageUrl, callback: ServiceCallback<ImagePrediction>)

Parameter

projectId

string

Die Projekt-ID.

publishedName

string

Gibt den Namen des Modells an, für das ausgewertet werden soll.

imageUrl
ImageUrl

Eine ImageUrl, die die URL des auszuwertenden Bilds enthält.

callback

ServiceCallback<ImagePrediction>

Der Rückruf.

detectImageUrlWithNoStore(string, string, ImageUrl, PredictionAPIClientDetectImageUrlWithNoStoreOptionalParams)

function detectImageUrlWithNoStore(projectId: string, publishedName: string, imageUrl: ImageUrl, options?: PredictionAPIClientDetectImageUrlWithNoStoreOptionalParams): Promise<DetectImageUrlWithNoStoreResponse>

Parameter

projectId

string

Die Projekt-ID.

publishedName

string

Gibt den Namen des Modells an, für das ausgewertet werden soll.

imageUrl
ImageUrl

Ein {Iris.Web.Api.Models.ImageUrl}-Objekt, das die URL des auszuwertenden Bilds enthält.

Gibt zurück

Promise<Models.DetectImageUrlWithNoStoreResponse>

detectImageUrlWithNoStore(string, string, ImageUrl, PredictionAPIClientDetectImageUrlWithNoStoreOptionalParams, ServiceCallback<ImagePrediction>)

function detectImageUrlWithNoStore(projectId: string, publishedName: string, imageUrl: ImageUrl, options: PredictionAPIClientDetectImageUrlWithNoStoreOptionalParams, callback: ServiceCallback<ImagePrediction>)

Parameter

projectId

string

Die Projekt-ID.

publishedName

string

Gibt den Namen des Modells an, für das ausgewertet werden soll.

imageUrl
ImageUrl

Ein {Iris.Web.Api.Models.ImageUrl}-Objekt, das die URL des auszuwertenden Bilds enthält.

callback

ServiceCallback<ImagePrediction>

Der Rückruf.

detectImageUrlWithNoStore(string, string, ImageUrl, ServiceCallback<ImagePrediction>)

function detectImageUrlWithNoStore(projectId: string, publishedName: string, imageUrl: ImageUrl, callback: ServiceCallback<ImagePrediction>)

Parameter

projectId

string

Die Projekt-ID.

publishedName

string

Gibt den Namen des Modells an, für das ausgewertet werden soll.

imageUrl
ImageUrl

Ein {Iris.Web.Api.Models.ImageUrl}-Objekt, das die URL des auszuwertenden Bilds enthält.

callback

ServiceCallback<ImagePrediction>

Der Rückruf.

detectImageWithNoStore(string, string, HttpRequestBody, PredictionAPIClientDetectImageWithNoStoreOptionalParams)

function detectImageWithNoStore(projectId: string, publishedName: string, imageData: HttpRequestBody, options?: PredictionAPIClientDetectImageWithNoStoreOptionalParams): Promise<DetectImageWithNoStoreResponse>

Parameter

projectId

string

Die Projekt-ID.

publishedName

string

Gibt den Namen des Modells an, für das ausgewertet werden soll.

imageData
HttpRequestBody

Binärbilddaten. Unterstützte Formate sind JPEG, GIF, PNG und BMP. Unterstützt Bilder bis zu 4 MB.

Gibt zurück

Promise<Models.DetectImageWithNoStoreResponse>

detectImageWithNoStore(string, string, HttpRequestBody, PredictionAPIClientDetectImageWithNoStoreOptionalParams, ServiceCallback<ImagePrediction>)

function detectImageWithNoStore(projectId: string, publishedName: string, imageData: HttpRequestBody, options: PredictionAPIClientDetectImageWithNoStoreOptionalParams, callback: ServiceCallback<ImagePrediction>)

Parameter

projectId

string

Die Projekt-ID.

publishedName

string

Gibt den Namen des Modells an, für das ausgewertet werden soll.

imageData
HttpRequestBody

Binärbilddaten. Unterstützte Formate sind JPEG, GIF, PNG und BMP. Unterstützt Bilder bis zu 4 MB.

callback

ServiceCallback<ImagePrediction>

Der Rückruf.

detectImageWithNoStore(string, string, HttpRequestBody, ServiceCallback<ImagePrediction>)

function detectImageWithNoStore(projectId: string, publishedName: string, imageData: HttpRequestBody, callback: ServiceCallback<ImagePrediction>)

Parameter

projectId

string

Die Projekt-ID.

publishedName

string

Gibt den Namen des Modells an, für das ausgewertet werden soll.

imageData
HttpRequestBody

Binärbilddaten. Unterstützte Formate sind JPEG, GIF, PNG und BMP. Unterstützt Bilder bis zu 4 MB.

callback

ServiceCallback<ImagePrediction>

Der Rückruf.

Details zur geerbten Methode

sendOperationRequest(OperationArguments, OperationSpec, ServiceCallback<any>)

Senden Sie eine HTTP-Anforderung, die mithilfe der angegebenen OperationSpec aufgefüllt wird.

function sendOperationRequest(operationArguments: OperationArguments, operationSpec: OperationSpec, callback?: ServiceCallback<any>): Promise<RestResponse>

Parameter

operationArguments
OperationArguments

Die Argumente, von denen die vorlagenbasierten Werte der HTTP-Anforderung aufgefüllt werden.

operationSpec
OperationSpec

Die OperationSpec, die zum Auffüllen von httpRequest verwendet werden soll.

callback

ServiceCallback<any>

Der Rückruf, der aufgerufen werden soll, wenn die Antwort empfangen wird.

Gibt zurück

Promise<RestResponse>

Geerbt vonPredictionAPIClientContext.sendOperationRequest

sendRequest(RequestPrepareOptions | WebResourceLike)

Senden Sie die bereitgestellte httpRequest.

function sendRequest(options: RequestPrepareOptions | WebResourceLike): Promise<HttpOperationResponse>

Parameter

Gibt zurück

Geerbt vonPredictionAPIClientContext.sendRequest