PredictionAPIClient class

Extends

Konstruktory

PredictionAPIClient(ServiceClientCredentials, string, ServiceClientOptions)

Inicjuje nowe wystąpienie klasy PredictionAPIClient.

Właściwości dziedziczone

credentials
endpoint

Metody

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>)

Metody dziedziczone

sendOperationRequest(OperationArguments, OperationSpec, ServiceCallback<any>)

Wyślij żądanie HTTP wypełnione przy użyciu podanego elementu OperationSpec.

sendRequest(RequestPrepareOptions | WebResourceLike)

Wyślij podany element httpRequest.

Szczegóły konstruktora

PredictionAPIClient(ServiceClientCredentials, string, ServiceClientOptions)

Inicjuje nowe wystąpienie klasy PredictionAPIClient.

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

Parametry

credentials
ServiceClientCredentials

Poświadczenia subskrypcji, które jednoznacznie identyfikują subskrypcję klienta.

endpoint

string

Obsługiwane punkty końcowe usług Cognitive Services.

options
ServiceClientOptions

Opcje parametrów

Szczegóły właściwości dziedziczonej

credentials

credentials: ServiceClientCredentials

Wartość właściwości

Dziedziczone zpredictionAPIClientContext.credentials

endpoint

endpoint: string

Wartość właściwości

string

Dziedziczone zelementu PredictionAPIClientContext.endpoint

Szczegóły metody

classifyImage(string, string, HttpRequestBody, PredictionAPIClientClassifyImageOptionalParams)

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

Parametry

projectId

string

Identyfikator projektu.

publishedName

string

Określa nazwę modelu do oceny.

imageData
HttpRequestBody

Dane obrazu binarnego. Obsługiwane formaty to JPEG, GIF, PNG i BMP. Obsługuje obrazy do 4 MB.

options
PredictionAPIClientClassifyImageOptionalParams

Parametry opcjonalne

Zwraca

Promise<Models.ClassifyImageResponse>

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

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

Parametry

projectId

string

Identyfikator projektu.

publishedName

string

Określa nazwę modelu do oceny.

imageData
HttpRequestBody

Dane obrazu binarnego. Obsługiwane formaty to JPEG, GIF, PNG i BMP. Obsługuje obrazy do 4 MB.

options
PredictionAPIClientClassifyImageOptionalParams

Parametry opcjonalne

callback

ServiceCallback<ImagePrediction>

Wywołanie zwrotne

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

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

Parametry

projectId

string

Identyfikator projektu.

publishedName

string

Określa nazwę modelu do oceny.

imageData
HttpRequestBody

Dane obrazu binarnego. Obsługiwane formaty to JPEG, GIF, PNG i BMP. Obsługuje obrazy do 4 MB.

callback

ServiceCallback<ImagePrediction>

Wywołanie zwrotne

classifyImageUrl(string, string, ImageUrl, PredictionAPIClientClassifyImageUrlOptionalParams)

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

Parametry

projectId

string

Identyfikator projektu.

publishedName

string

Określa nazwę modelu do oceny.

imageUrl
ImageUrl

ImageUrl, który zawiera adres URL obrazu do oceny.

Zwraca

Promise<Models.ClassifyImageUrlResponse>

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

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

Parametry

projectId

string

Identyfikator projektu.

publishedName

string

Określa nazwę modelu do oceny.

imageUrl
ImageUrl

ImageUrl, który zawiera adres URL obrazu do oceny.

callback

ServiceCallback<ImagePrediction>

Wywołanie zwrotne

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

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

Parametry

projectId

string

Identyfikator projektu.

publishedName

string

Określa nazwę modelu do oceny.

imageUrl
ImageUrl

ImageUrl, który zawiera adres URL obrazu do oceny.

callback

ServiceCallback<ImagePrediction>

Wywołanie zwrotne

classifyImageUrlWithNoStore(string, string, ImageUrl, PredictionAPIClientClassifyImageUrlWithNoStoreOptionalParams)

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

Parametry

projectId

string

Identyfikator projektu.

publishedName

string

Określa nazwę modelu do oceny.

imageUrl
ImageUrl

Element {Iris.Web.Api.Models.ImageUrl}, który zawiera adres URL obrazu do oceny.

Zwraca

Promise<Models.ClassifyImageUrlWithNoStoreResponse>

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

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

Parametry

projectId

string

Identyfikator projektu.

publishedName

string

Określa nazwę modelu do oceny.

imageUrl
ImageUrl

Element {Iris.Web.Api.Models.ImageUrl}, który zawiera adres URL obrazu do oceny.

callback

ServiceCallback<ImagePrediction>

Wywołanie zwrotne

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

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

Parametry

projectId

string

Identyfikator projektu.

publishedName

string

Określa nazwę modelu do oceny.

imageUrl
ImageUrl

Element {Iris.Web.Api.Models.ImageUrl}, który zawiera adres URL obrazu do oceny.

callback

ServiceCallback<ImagePrediction>

Wywołanie zwrotne

classifyImageWithNoStore(string, string, HttpRequestBody, PredictionAPIClientClassifyImageWithNoStoreOptionalParams)

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

Parametry

projectId

string

Identyfikator projektu.

publishedName

string

Określa nazwę modelu do oceny.

imageData
HttpRequestBody

Dane obrazu binarnego. Obsługiwane formaty to JPEG, GIF, PNG i BMP. Obsługuje obrazy do 4 MB.

Zwraca

Promise<Models.ClassifyImageWithNoStoreResponse>

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

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

Parametry

projectId

string

Identyfikator projektu.

publishedName

string

Określa nazwę modelu do oceny.

imageData
HttpRequestBody

Dane obrazu binarnego. Obsługiwane formaty to JPEG, GIF, PNG i BMP. Obsługuje obrazy do 4 MB.

callback

ServiceCallback<ImagePrediction>

Wywołanie zwrotne

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

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

Parametry

projectId

string

Identyfikator projektu.

publishedName

string

Określa nazwę modelu do oceny.

imageData
HttpRequestBody

Dane obrazu binarnego. Obsługiwane formaty to JPEG, GIF, PNG i BMP. Obsługuje obrazy do 4 MB.

callback

ServiceCallback<ImagePrediction>

Wywołanie zwrotne

detectImage(string, string, HttpRequestBody, PredictionAPIClientDetectImageOptionalParams)

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

Parametry

projectId

string

Identyfikator projektu.

publishedName

string

Określa nazwę modelu do oceny.

imageData
HttpRequestBody

Dane obrazu binarnego. Obsługiwane formaty to JPEG, GIF, PNG i BMP. Obsługuje obrazy do 4 MB.

options
PredictionAPIClientDetectImageOptionalParams

Parametry opcjonalne

Zwraca

Promise<Models.DetectImageResponse>

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

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

Parametry

projectId

string

Identyfikator projektu.

publishedName

string

Określa nazwę modelu do oceny.

imageData
HttpRequestBody

Dane obrazu binarnego. Obsługiwane formaty to JPEG, GIF, PNG i BMP. Obsługuje obrazy do 4 MB.

options
PredictionAPIClientDetectImageOptionalParams

Parametry opcjonalne

callback

ServiceCallback<ImagePrediction>

Wywołanie zwrotne

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

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

Parametry

projectId

string

Identyfikator projektu.

publishedName

string

Określa nazwę modelu do oceny.

imageData
HttpRequestBody

Dane obrazu binarnego. Obsługiwane formaty to JPEG, GIF, PNG i BMP. Obsługuje obrazy do 4 MB.

callback

ServiceCallback<ImagePrediction>

Wywołanie zwrotne

detectImageUrl(string, string, ImageUrl, PredictionAPIClientDetectImageUrlOptionalParams)

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

Parametry

projectId

string

Identyfikator projektu.

publishedName

string

Określa nazwę modelu do oceny.

imageUrl
ImageUrl

ImageUrl, który zawiera adres URL obrazu do oceny.

Zwraca

Promise<Models.DetectImageUrlResponse>

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

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

Parametry

projectId

string

Identyfikator projektu.

publishedName

string

Określa nazwę modelu do oceny.

imageUrl
ImageUrl

ImageUrl, który zawiera adres URL obrazu do oceny.

callback

ServiceCallback<ImagePrediction>

Wywołanie zwrotne

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

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

Parametry

projectId

string

Identyfikator projektu.

publishedName

string

Określa nazwę modelu do oceny.

imageUrl
ImageUrl

ImageUrl, który zawiera adres URL obrazu do oceny.

callback

ServiceCallback<ImagePrediction>

Wywołanie zwrotne

detectImageUrlWithNoStore(string, string, ImageUrl, PredictionAPIClientDetectImageUrlWithNoStoreOptionalParams)

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

Parametry

projectId

string

Identyfikator projektu.

publishedName

string

Określa nazwę modelu do oceny.

imageUrl
ImageUrl

{Iris.Web.Api.Models.ImageUrl}, który zawiera adres URL obrazu do oceny.

Zwraca

Promise<Models.DetectImageUrlWithNoStoreResponse>

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

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

Parametry

projectId

string

Identyfikator projektu.

publishedName

string

Określa nazwę modelu do oceny.

imageUrl
ImageUrl

{Iris.Web.Api.Models.ImageUrl}, który zawiera adres URL obrazu do oceny.

callback

ServiceCallback<ImagePrediction>

Wywołanie zwrotne

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

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

Parametry

projectId

string

Identyfikator projektu.

publishedName

string

Określa nazwę modelu do oceny.

imageUrl
ImageUrl

{Iris.Web.Api.Models.ImageUrl}, który zawiera adres URL obrazu do oceny.

callback

ServiceCallback<ImagePrediction>

Wywołanie zwrotne

detectImageWithNoStore(string, string, HttpRequestBody, PredictionAPIClientDetectImageWithNoStoreOptionalParams)

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

Parametry

projectId

string

Identyfikator projektu.

publishedName

string

Określa nazwę modelu do oceny.

imageData
HttpRequestBody

Dane obrazu binarnego. Obsługiwane formaty to JPEG, GIF, PNG i BMP. Obsługuje obrazy do 4 MB.

Zwraca

Promise<Models.DetectImageWithNoStoreResponse>

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

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

Parametry

projectId

string

Identyfikator projektu.

publishedName

string

Określa nazwę modelu do oceny.

imageData
HttpRequestBody

Dane obrazu binarnego. Obsługiwane formaty to JPEG, GIF, PNG i BMP. Obsługuje obrazy do 4 MB.

callback

ServiceCallback<ImagePrediction>

Wywołanie zwrotne

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

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

Parametry

projectId

string

Identyfikator projektu.

publishedName

string

Określa nazwę modelu do oceny.

imageData
HttpRequestBody

Dane obrazu binarnego. Obsługiwane formaty to JPEG, GIF, PNG i BMP. Obsługuje obrazy do 4 MB.

callback

ServiceCallback<ImagePrediction>

Wywołanie zwrotne

Szczegóły metody dziedziczonej

sendOperationRequest(OperationArguments, OperationSpec, ServiceCallback<any>)

Wyślij żądanie HTTP wypełnione przy użyciu podanego elementu OperationSpec.

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

Parametry

operationArguments
OperationArguments

Argumenty, z których zostaną wypełnione wartości szablonowe żądania HTTP.

operationSpec
OperationSpec

Element OperationSpec używany do wypełniania żądania httpRequest.

callback

ServiceCallback<any>

Wywołanie zwrotne do wywołania po odebraniu odpowiedzi.

Zwraca

Promise<RestResponse>

Dziedziczone zpredictionAPIClientContext.sendOperationRequest

sendRequest(RequestPrepareOptions | WebResourceLike)

Wyślij podany element httpRequest.

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

Parametry

Zwraca

Dziedziczone zPredictionAPIClientContext.sendRequest