PredictionAPIClient class

Extends

Costruttori

PredictionAPIClient(ServiceClientCredentials, string, ServiceClientOptions)

Inizializza una nuova istanza della classe PredictionAPIClient.

Proprietà ereditate

credentials
endpoint

Metodi

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

Metodi ereditati

sendOperationRequest(OperationArguments, OperationSpec, ServiceCallback<any>)

Inviare una richiesta HTTP popolata usando OperationSpec fornito.

sendRequest(RequestPrepareOptions | WebResourceLike)

Inviare l'oggetto httpRequest specificato.

Dettagli costruttore

PredictionAPIClient(ServiceClientCredentials, string, ServiceClientOptions)

Inizializza una nuova istanza della classe PredictionAPIClient.

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

Parametri

credentials
ServiceClientCredentials

Credenziali della sottoscrizione che identificano in modo univoco la sottoscrizione client.

endpoint

string

Endpoint di Servizi cognitivi supportati.

options
ServiceClientOptions

Opzioni dei parametri

Dettagli proprietà ereditate

credentials

credentials: ServiceClientCredentials

Valore della proprietà

Ereditato daPredictionAPIClientContext.credentials

endpoint

endpoint: string

Valore della proprietà

string

Ereditato daPredictionAPIClientContext.endpoint

Dettagli metodo

classifyImage(string, string, HttpRequestBody, PredictionAPIClientClassifyImageOptionalParams)

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

Parametri

projectId

string

ID progetto.

publishedName

string

Specifica il nome del modello da valutare.

imageData
HttpRequestBody

Dati dell'immagine binaria. I formati supportati sono JPEG, GIF, PNG e BMP. Supporta immagini fino a 4 MB.

options
PredictionAPIClientClassifyImageOptionalParams

Parametri facoltativi

Restituisce

Promise<Models.ClassifyImageResponse>

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

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

Parametri

projectId

string

ID progetto.

publishedName

string

Specifica il nome del modello da valutare.

imageData
HttpRequestBody

Dati dell'immagine binaria. I formati supportati sono JPEG, GIF, PNG e BMP. Supporta immagini fino a 4 MB.

options
PredictionAPIClientClassifyImageOptionalParams

Parametri facoltativi

callback

ServiceCallback<ImagePrediction>

Callback

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

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

Parametri

projectId

string

ID progetto.

publishedName

string

Specifica il nome del modello da valutare.

imageData
HttpRequestBody

Dati dell'immagine binaria. I formati supportati sono JPEG, GIF, PNG e BMP. Supporta immagini fino a 4 MB.

callback

ServiceCallback<ImagePrediction>

Callback

classifyImageUrl(string, string, ImageUrl, PredictionAPIClientClassifyImageUrlOptionalParams)

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

Parametri

projectId

string

ID progetto.

publishedName

string

Specifica il nome del modello da valutare.

imageUrl
ImageUrl

Oggetto ImageUrl che contiene l'URL dell'immagine da valutare.

Restituisce

Promise<Models.ClassifyImageUrlResponse>

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

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

Parametri

projectId

string

ID progetto.

publishedName

string

Specifica il nome del modello da valutare.

imageUrl
ImageUrl

Oggetto ImageUrl che contiene l'URL dell'immagine da valutare.

callback

ServiceCallback<ImagePrediction>

Callback

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

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

Parametri

projectId

string

ID progetto.

publishedName

string

Specifica il nome del modello da valutare.

imageUrl
ImageUrl

Oggetto ImageUrl che contiene l'URL dell'immagine da valutare.

callback

ServiceCallback<ImagePrediction>

Callback

classifyImageUrlWithNoStore(string, string, ImageUrl, PredictionAPIClientClassifyImageUrlWithNoStoreOptionalParams)

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

Parametri

projectId

string

ID progetto.

publishedName

string

Specifica il nome del modello da valutare.

imageUrl
ImageUrl

{Iris.Web.Api.Models.ImageUrl} che contiene l'URL dell'immagine da valutare.

Restituisce

Promise<Models.ClassifyImageUrlWithNoStoreResponse>

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

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

Parametri

projectId

string

ID progetto.

publishedName

string

Specifica il nome del modello da valutare.

imageUrl
ImageUrl

{Iris.Web.Api.Models.ImageUrl} che contiene l'URL dell'immagine da valutare.

callback

ServiceCallback<ImagePrediction>

Callback

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

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

Parametri

projectId

string

ID progetto.

publishedName

string

Specifica il nome del modello da valutare.

imageUrl
ImageUrl

{Iris.Web.Api.Models.ImageUrl} che contiene l'URL dell'immagine da valutare.

callback

ServiceCallback<ImagePrediction>

Callback

classifyImageWithNoStore(string, string, HttpRequestBody, PredictionAPIClientClassifyImageWithNoStoreOptionalParams)

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

Parametri

projectId

string

ID progetto.

publishedName

string

Specifica il nome del modello da valutare.

imageData
HttpRequestBody

Dati dell'immagine binaria. I formati supportati sono JPEG, GIF, PNG e BMP. Supporta immagini fino a 4 MB.

Restituisce

Promise<Models.ClassifyImageWithNoStoreResponse>

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

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

Parametri

projectId

string

ID progetto.

publishedName

string

Specifica il nome del modello da valutare.

imageData
HttpRequestBody

Dati dell'immagine binaria. I formati supportati sono JPEG, GIF, PNG e BMP. Supporta immagini fino a 4 MB.

callback

ServiceCallback<ImagePrediction>

Callback

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

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

Parametri

projectId

string

ID progetto.

publishedName

string

Specifica il nome del modello da valutare.

imageData
HttpRequestBody

Dati dell'immagine binaria. I formati supportati sono JPEG, GIF, PNG e BMP. Supporta immagini fino a 4 MB.

callback

ServiceCallback<ImagePrediction>

Callback

detectImage(string, string, HttpRequestBody, PredictionAPIClientDetectImageOptionalParams)

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

Parametri

projectId

string

ID progetto.

publishedName

string

Specifica il nome del modello da valutare.

imageData
HttpRequestBody

Dati dell'immagine binaria. I formati supportati sono JPEG, GIF, PNG e BMP. Supporta immagini fino a 4 MB.

options
PredictionAPIClientDetectImageOptionalParams

Parametri facoltativi

Restituisce

Promise<Models.DetectImageResponse>

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

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

Parametri

projectId

string

ID progetto.

publishedName

string

Specifica il nome del modello da valutare.

imageData
HttpRequestBody

Dati dell'immagine binaria. I formati supportati sono JPEG, GIF, PNG e BMP. Supporta immagini fino a 4 MB.

options
PredictionAPIClientDetectImageOptionalParams

Parametri facoltativi

callback

ServiceCallback<ImagePrediction>

Callback

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

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

Parametri

projectId

string

ID progetto.

publishedName

string

Specifica il nome del modello da valutare.

imageData
HttpRequestBody

Dati dell'immagine binaria. I formati supportati sono JPEG, GIF, PNG e BMP. Supporta immagini fino a 4 MB.

callback

ServiceCallback<ImagePrediction>

Callback

detectImageUrl(string, string, ImageUrl, PredictionAPIClientDetectImageUrlOptionalParams)

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

Parametri

projectId

string

ID progetto.

publishedName

string

Specifica il nome del modello da valutare.

imageUrl
ImageUrl

Oggetto ImageUrl che contiene l'URL dell'immagine da valutare.

options
PredictionAPIClientDetectImageUrlOptionalParams

Parametri facoltativi

Restituisce

Promise<Models.DetectImageUrlResponse>

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

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

Parametri

projectId

string

ID progetto.

publishedName

string

Specifica il nome del modello da valutare.

imageUrl
ImageUrl

Oggetto ImageUrl che contiene l'URL dell'immagine da valutare.

options
PredictionAPIClientDetectImageUrlOptionalParams

Parametri facoltativi

callback

ServiceCallback<ImagePrediction>

Callback

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

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

Parametri

projectId

string

ID progetto.

publishedName

string

Specifica il nome del modello da valutare.

imageUrl
ImageUrl

Oggetto ImageUrl che contiene l'URL dell'immagine da valutare.

callback

ServiceCallback<ImagePrediction>

Callback

detectImageUrlWithNoStore(string, string, ImageUrl, PredictionAPIClientDetectImageUrlWithNoStoreOptionalParams)

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

Parametri

projectId

string

ID progetto.

publishedName

string

Specifica il nome del modello da valutare.

imageUrl
ImageUrl

{Iris.Web.Api.Models.ImageUrl} che contiene l'URL dell'immagine da valutare.

Restituisce

Promise<Models.DetectImageUrlWithNoStoreResponse>

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

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

Parametri

projectId

string

ID progetto.

publishedName

string

Specifica il nome del modello da valutare.

imageUrl
ImageUrl

{Iris.Web.Api.Models.ImageUrl} che contiene l'URL dell'immagine da valutare.

callback

ServiceCallback<ImagePrediction>

Callback

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

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

Parametri

projectId

string

ID progetto.

publishedName

string

Specifica il nome del modello da valutare.

imageUrl
ImageUrl

{Iris.Web.Api.Models.ImageUrl} che contiene l'URL dell'immagine da valutare.

callback

ServiceCallback<ImagePrediction>

Callback

detectImageWithNoStore(string, string, HttpRequestBody, PredictionAPIClientDetectImageWithNoStoreOptionalParams)

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

Parametri

projectId

string

ID progetto.

publishedName

string

Specifica il nome del modello da valutare.

imageData
HttpRequestBody

Dati dell'immagine binaria. I formati supportati sono JPEG, GIF, PNG e BMP. Supporta immagini fino a 4 MB.

Restituisce

Promise<Models.DetectImageWithNoStoreResponse>

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

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

Parametri

projectId

string

ID progetto.

publishedName

string

Specifica il nome del modello da valutare.

imageData
HttpRequestBody

Dati dell'immagine binaria. I formati supportati sono JPEG, GIF, PNG e BMP. Supporta immagini fino a 4 MB.

callback

ServiceCallback<ImagePrediction>

Callback

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

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

Parametri

projectId

string

ID progetto.

publishedName

string

Specifica il nome del modello da valutare.

imageData
HttpRequestBody

Dati dell'immagine binaria. I formati supportati sono JPEG, GIF, PNG e BMP. Supporta immagini fino a 4 MB.

callback

ServiceCallback<ImagePrediction>

Callback

Dettagli dei metodi ereditati

sendOperationRequest(OperationArguments, OperationSpec, ServiceCallback<any>)

Inviare una richiesta HTTP popolata usando OperationSpec fornito.

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

Parametri

operationArguments
OperationArguments

Gli argomenti da cui verranno popolati i valori modelli della richiesta HTTP.

operationSpec
OperationSpec

OperationSpec da usare per popolare httpRequest.

callback

ServiceCallback<any>

Callback da chiamare quando viene ricevuta la risposta.

Restituisce

Promise<RestResponse>

Ereditato daPredictionAPIClientContext.sendOperationRequest

sendRequest(RequestPrepareOptions | WebResourceLike)

Inviare l'oggetto httpRequest specificato.

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

Parametri

Restituisce

Ereditato daPredictionAPIClientContext.sendRequest