Share via


PredictionAPIClient class

Extends

Construtores

PredictionAPIClient(ServiceClientCredentials, string, ServiceClientOptions)

Inicializa uma nova instância da classe PredictionAPIClient.

Propriedades Herdadas

credentials
endpoint

Métodos

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

Métodos Herdados

sendOperationRequest(OperationArguments, OperationSpec, ServiceCallback<any>)

Envie um pedido HTTP preenchido com o OperationSpec fornecido.

sendRequest(RequestPrepareOptions | WebResourceLike)

Envie o httpRequest fornecido.

Detalhes do Construtor

PredictionAPIClient(ServiceClientCredentials, string, ServiceClientOptions)

Inicializa uma nova instância da classe PredictionAPIClient.

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

Parâmetros

credentials
ServiceClientCredentials

Credenciais de subscrição que identificam exclusivamente a subscrição do cliente.

endpoint

string

Pontos finais dos Serviços Cognitivos suportados.

options
ServiceClientOptions

As opções de parâmetros

Detalhes da Propriedade Herdada

credentials

credentials: ServiceClientCredentials

Valor de Propriedade

Herdado dePredictionAPIClientContext.credentials

endpoint

endpoint: string

Valor de Propriedade

string

Herdado dePredictionAPIClientContext.endpoint

Detalhes de Método

classifyImage(string, string, HttpRequestBody, PredictionAPIClientClassifyImageOptionalParams)

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

Parâmetros

projectId

string

O ID do projeto.

publishedName

string

Especifica o nome do modelo a avaliar.

imageData
HttpRequestBody

Dados de imagens binários. Os formatos suportados são JPEG, GIF, PNG e BMP. Suporta imagens até 4 MB.

options
PredictionAPIClientClassifyImageOptionalParams

Os parâmetros opcionais

Devoluções

Promise<Models.ClassifyImageResponse>

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

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

Parâmetros

projectId

string

O ID do projeto.

publishedName

string

Especifica o nome do modelo a avaliar.

imageData
HttpRequestBody

Dados de imagens binários. Os formatos suportados são JPEG, GIF, PNG e BMP. Suporta imagens até 4 MB.

options
PredictionAPIClientClassifyImageOptionalParams

Os parâmetros opcionais

callback

ServiceCallback<ImagePrediction>

A chamada de retorno

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

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

Parâmetros

projectId

string

O ID do projeto.

publishedName

string

Especifica o nome do modelo a avaliar.

imageData
HttpRequestBody

Dados de imagens binários. Os formatos suportados são JPEG, GIF, PNG e BMP. Suporta imagens até 4 MB.

callback

ServiceCallback<ImagePrediction>

A chamada de retorno

classifyImageUrl(string, string, ImageUrl, PredictionAPIClientClassifyImageUrlOptionalParams)

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

Parâmetros

projectId

string

O ID do projeto.

publishedName

string

Especifica o nome do modelo a avaliar.

imageUrl
ImageUrl

Um ImageUrl que contém o URL da imagem a avaliar.

options
PredictionAPIClientClassifyImageUrlOptionalParams

Os parâmetros opcionais

Devoluções

Promise<Models.ClassifyImageUrlResponse>

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

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

Parâmetros

projectId

string

O ID do projeto.

publishedName

string

Especifica o nome do modelo a avaliar.

imageUrl
ImageUrl

Um ImageUrl que contém o URL da imagem a avaliar.

options
PredictionAPIClientClassifyImageUrlOptionalParams

Os parâmetros opcionais

callback

ServiceCallback<ImagePrediction>

A chamada de retorno

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

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

Parâmetros

projectId

string

O ID do projeto.

publishedName

string

Especifica o nome do modelo a avaliar.

imageUrl
ImageUrl

Um ImageUrl que contém o URL da imagem a avaliar.

callback

ServiceCallback<ImagePrediction>

A chamada de retorno

classifyImageUrlWithNoStore(string, string, ImageUrl, PredictionAPIClientClassifyImageUrlWithNoStoreOptionalParams)

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

Parâmetros

projectId

string

O ID do projeto.

publishedName

string

Especifica o nome do modelo a avaliar.

imageUrl
ImageUrl

Um {Iris.Web.Api.Models.ImageUrl} que contém o URL da imagem a avaliar.

Devoluções

Promise<Models.ClassifyImageUrlWithNoStoreResponse>

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

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

Parâmetros

projectId

string

O ID do projeto.

publishedName

string

Especifica o nome do modelo a avaliar.

imageUrl
ImageUrl

Um {Iris.Web.Api.Models.ImageUrl} que contém o URL da imagem a avaliar.

callback

ServiceCallback<ImagePrediction>

A chamada de retorno

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

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

Parâmetros

projectId

string

O ID do projeto.

publishedName

string

Especifica o nome do modelo a avaliar.

imageUrl
ImageUrl

Um {Iris.Web.Api.Models.ImageUrl} que contém o URL da imagem a avaliar.

callback

ServiceCallback<ImagePrediction>

A chamada de retorno

classifyImageWithNoStore(string, string, HttpRequestBody, PredictionAPIClientClassifyImageWithNoStoreOptionalParams)

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

Parâmetros

projectId

string

O ID do projeto.

publishedName

string

Especifica o nome do modelo a avaliar.

imageData
HttpRequestBody

Dados de imagens binários. Os formatos suportados são JPEG, GIF, PNG e BMP. Suporta imagens até 4 MB.

Devoluções

Promise<Models.ClassifyImageWithNoStoreResponse>

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

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

Parâmetros

projectId

string

O ID do projeto.

publishedName

string

Especifica o nome do modelo a avaliar.

imageData
HttpRequestBody

Dados de imagens binários. Os formatos suportados são JPEG, GIF, PNG e BMP. Suporta imagens até 4 MB.

callback

ServiceCallback<ImagePrediction>

A chamada de retorno

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

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

Parâmetros

projectId

string

O ID do projeto.

publishedName

string

Especifica o nome do modelo a avaliar.

imageData
HttpRequestBody

Dados de imagens binários. Os formatos suportados são JPEG, GIF, PNG e BMP. Suporta imagens até 4 MB.

callback

ServiceCallback<ImagePrediction>

A chamada de retorno

detectImage(string, string, HttpRequestBody, PredictionAPIClientDetectImageOptionalParams)

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

Parâmetros

projectId

string

O ID do projeto.

publishedName

string

Especifica o nome do modelo a avaliar.

imageData
HttpRequestBody

Dados de imagens binários. Os formatos suportados são JPEG, GIF, PNG e BMP. Suporta imagens até 4 MB.

options
PredictionAPIClientDetectImageOptionalParams

Os parâmetros opcionais

Devoluções

Promise<Models.DetectImageResponse>

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

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

Parâmetros

projectId

string

O ID do projeto.

publishedName

string

Especifica o nome do modelo a avaliar.

imageData
HttpRequestBody

Dados de imagens binários. Os formatos suportados são JPEG, GIF, PNG e BMP. Suporta imagens até 4 MB.

options
PredictionAPIClientDetectImageOptionalParams

Os parâmetros opcionais

callback

ServiceCallback<ImagePrediction>

A chamada de retorno

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

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

Parâmetros

projectId

string

O ID do projeto.

publishedName

string

Especifica o nome do modelo para avaliar.

imageData
HttpRequestBody

Dados de imagens binárias. Os formatos suportados são JPEG, GIF, PNG e BMP. Suporta imagens até 4 MB.

callback

ServiceCallback<ImagePrediction>

A chamada de retorno

detectImageUrl(string, string, ImageUrl, PredictionAPIClientDetectImageUrlOptionalParams)

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

Parâmetros

projectId

string

O ID do projeto.

publishedName

string

Especifica o nome do modelo para avaliar.

imageUrl
ImageUrl

Um ImageUrl que contém o URL da imagem a avaliar.

options
PredictionAPIClientDetectImageUrlOptionalParams

Os parâmetros opcionais

Devoluções

Promise<Models.DetectImageUrlResponse>

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

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

Parâmetros

projectId

string

O ID do projeto.

publishedName

string

Especifica o nome do modelo para avaliar.

imageUrl
ImageUrl

Um ImageUrl que contém o URL da imagem a avaliar.

options
PredictionAPIClientDetectImageUrlOptionalParams

Os parâmetros opcionais

callback

ServiceCallback<ImagePrediction>

A chamada de retorno

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

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

Parâmetros

projectId

string

O ID do projeto.

publishedName

string

Especifica o nome do modelo para avaliar.

imageUrl
ImageUrl

Um ImageUrl que contém o URL da imagem a avaliar.

callback

ServiceCallback<ImagePrediction>

A chamada de retorno

detectImageUrlWithNoStore(string, string, ImageUrl, PredictionAPIClientDetectImageUrlWithNoStoreOptionalParams)

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

Parâmetros

projectId

string

O ID do projeto.

publishedName

string

Especifica o nome do modelo para avaliar.

imageUrl
ImageUrl

Um {Iris.Web.Api.Models.ImageUrl} que contém o URL da imagem a avaliar.

Devoluções

Promise<Models.DetectImageUrlWithNoStoreResponse>

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

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

Parâmetros

projectId

string

O ID do projeto.

publishedName

string

Especifica o nome do modelo para avaliar.

imageUrl
ImageUrl

Um {Iris.Web.Api.Models.ImageUrl} que contém o URL da imagem a avaliar.

callback

ServiceCallback<ImagePrediction>

A chamada de retorno

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

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

Parâmetros

projectId

string

O ID do projeto.

publishedName

string

Especifica o nome do modelo para avaliar.

imageUrl
ImageUrl

Um {Iris.Web.Api.Models.ImageUrl} que contém o URL da imagem a avaliar.

callback

ServiceCallback<ImagePrediction>

A chamada de retorno

detectImageWithNoStore(string, string, HttpRequestBody, PredictionAPIClientDetectImageWithNoStoreOptionalParams)

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

Parâmetros

projectId

string

O ID do projeto.

publishedName

string

Especifica o nome do modelo para avaliar.

imageData
HttpRequestBody

Dados de imagens binárias. Os formatos suportados são JPEG, GIF, PNG e BMP. Suporta imagens até 4 MB.

Devoluções

Promise<Models.DetectImageWithNoStoreResponse>

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

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

Parâmetros

projectId

string

O ID do projeto.

publishedName

string

Especifica o nome do modelo para avaliar.

imageData
HttpRequestBody

Dados de imagens binárias. Os formatos suportados são JPEG, GIF, PNG e BMP. Suporta imagens até 4 MB.

callback

ServiceCallback<ImagePrediction>

A chamada de retorno

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

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

Parâmetros

projectId

string

O ID do projeto.

publishedName

string

Especifica o nome do modelo para avaliar.

imageData
HttpRequestBody

Dados de imagens binárias. Os formatos suportados são JPEG, GIF, PNG e BMP. Suporta imagens até 4 MB.

callback

ServiceCallback<ImagePrediction>

A chamada de retorno

Detalhes do Método Herdado

sendOperationRequest(OperationArguments, OperationSpec, ServiceCallback<any>)

Envie um pedido HTTP preenchido com o OperationSpec fornecido.

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

Parâmetros

operationArguments
OperationArguments

Os argumentos a partir dos quais os valores de modelo do pedido HTTP serão preenchidos.

operationSpec
OperationSpec

O OperationSpec a utilizar para preencher o httpRequest.

callback

ServiceCallback<any>

A chamada de retorno a chamar quando a resposta é recebida.

Devoluções

Promise<RestResponse>

Herdado dePredictionAPIClientContext.sendOperationRequest

sendRequest(RequestPrepareOptions | WebResourceLike)

Envie o httpRequest fornecido.

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

Parâmetros

Devoluções

Herdado dePredictionAPIClientContext.sendRequest