PredictionAPIClient class

Extends

Konstruktorok

PredictionAPIClient(ServiceClientCredentials, string, ServiceClientOptions)

Inicializálja a PredictionAPIClient osztály új példányát.

Örökölt tulajdonságok

credentials
endpoint

Metódusok

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

Örökölt metódusok

sendOperationRequest(OperationArguments, OperationSpec, ServiceCallback<any>)

Küldjön egy HTTP-kérést, amely a megadott OperationSpec paranccsal van feltöltve.

sendRequest(RequestPrepareOptions | WebResourceLike)

Küldje el a megadott httpRequest parancsot.

Konstruktor adatai

PredictionAPIClient(ServiceClientCredentials, string, ServiceClientOptions)

Inicializálja a PredictionAPIClient osztály új példányát.

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

Paraméterek

credentials
ServiceClientCredentials

Az előfizetés hitelesítő adatai, amelyek egyedileg azonosítják az ügyfél-előfizetést.

endpoint

string

Támogatott Cognitive Services-végpontok.

options
ServiceClientOptions

A paraméter beállításai

Örökölt tulajdonság részletei

credentials

credentials: ServiceClientCredentials

Tulajdonság értéke

Örökölt: PredictionAPIClientContext.credentials

endpoint

endpoint: string

Tulajdonság értéke

string

Örökölt: PredictionAPIClientContext.endpoint

Metódus adatai

classifyImage(string, string, HttpRequestBody, PredictionAPIClientClassifyImageOptionalParams)

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

Paraméterek

projectId

string

A projekt azonosítója.

publishedName

string

A kiértékelendő modell nevét adja meg.

imageData
HttpRequestBody

Bináris képadatok. A támogatott formátumok a KÖVETKEZŐK: JPEG, GIF, PNG és BMP. Legfeljebb 4 MB méretű képeket támogat.

options
PredictionAPIClientClassifyImageOptionalParams

A választható paraméterek

Válaszok

Promise<Models.ClassifyImageResponse>

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

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

Paraméterek

projectId

string

A projekt azonosítója.

publishedName

string

A kiértékelendő modell nevét adja meg.

imageData
HttpRequestBody

Bináris képadatok. A támogatott formátumok a KÖVETKEZŐK: JPEG, GIF, PNG és BMP. Legfeljebb 4 MB méretű képeket támogat.

options
PredictionAPIClientClassifyImageOptionalParams

A választható paraméterek

callback

ServiceCallback<ImagePrediction>

A visszahívás

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

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

Paraméterek

projectId

string

A projekt azonosítója.

publishedName

string

A kiértékelendő modell nevét adja meg.

imageData
HttpRequestBody

Bináris képadatok. A támogatott formátumok a KÖVETKEZŐK: JPEG, GIF, PNG és BMP. Legfeljebb 4 MB méretű képeket támogat.

callback

ServiceCallback<ImagePrediction>

A visszahívás

classifyImageUrl(string, string, ImageUrl, PredictionAPIClientClassifyImageUrlOptionalParams)

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

Paraméterek

projectId

string

A projekt azonosítója.

publishedName

string

A kiértékelendő modell nevét adja meg.

imageUrl
ImageUrl

A kiértékelendő kép URL-címét tartalmazó ImageUrl.

options
PredictionAPIClientClassifyImageUrlOptionalParams

A választható paraméterek

Válaszok

Promise<Models.ClassifyImageUrlResponse>

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

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

Paraméterek

projectId

string

A projekt azonosítója.

publishedName

string

A kiértékelendő modell nevét adja meg.

imageUrl
ImageUrl

A kiértékelendő kép URL-címét tartalmazó ImageUrl.

options
PredictionAPIClientClassifyImageUrlOptionalParams

A választható paraméterek

callback

ServiceCallback<ImagePrediction>

A visszahívás

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

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

Paraméterek

projectId

string

A projekt azonosítója.

publishedName

string

A kiértékelendő modell nevét adja meg.

imageUrl
ImageUrl

A kiértékelendő kép URL-címét tartalmazó ImageUrl.

callback

ServiceCallback<ImagePrediction>

A visszahívás

classifyImageUrlWithNoStore(string, string, ImageUrl, PredictionAPIClientClassifyImageUrlWithNoStoreOptionalParams)

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

Paraméterek

projectId

string

A projekt azonosítója.

publishedName

string

A kiértékelendő modell nevét adja meg.

imageUrl
ImageUrl

Egy {Iris.Web.Api.Models.ImageUrl}, amely a kiértékelendő kép URL-címét tartalmazza.

Válaszok

Promise<Models.ClassifyImageUrlWithNoStoreResponse>

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

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

Paraméterek

projectId

string

A projekt azonosítója.

publishedName

string

A kiértékelendő modell nevét adja meg.

imageUrl
ImageUrl

Egy {Iris.Web.Api.Models.ImageUrl}, amely a kiértékelendő kép URL-címét tartalmazza.

callback

ServiceCallback<ImagePrediction>

A visszahívás

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

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

Paraméterek

projectId

string

A projekt azonosítója.

publishedName

string

A kiértékelendő modell nevét adja meg.

imageUrl
ImageUrl

Egy {Iris.Web.Api.Models.ImageUrl}, amely a kiértékelendő kép URL-címét tartalmazza.

callback

ServiceCallback<ImagePrediction>

A visszahívás

classifyImageWithNoStore(string, string, HttpRequestBody, PredictionAPIClientClassifyImageWithNoStoreOptionalParams)

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

Paraméterek

projectId

string

A projekt azonosítója.

publishedName

string

A kiértékelendő modell nevét adja meg.

imageData
HttpRequestBody

Bináris képadatok. A támogatott formátumok a KÖVETKEZŐK: JPEG, GIF, PNG és BMP. Legfeljebb 4 MB méretű képeket támogat.

options
PredictionAPIClientClassifyImageWithNoStoreOptionalParams

A választható paraméterek

Válaszok

Promise<Models.ClassifyImageWithNoStoreResponse>

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

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

Paraméterek

projectId

string

A projekt azonosítója.

publishedName

string

A kiértékelendő modell nevét adja meg.

imageData
HttpRequestBody

Bináris képadatok. A támogatott formátumok a KÖVETKEZŐK: JPEG, GIF, PNG és BMP. Legfeljebb 4 MB méretű képeket támogat.

options
PredictionAPIClientClassifyImageWithNoStoreOptionalParams

A választható paraméterek

callback

ServiceCallback<ImagePrediction>

A visszahívás

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

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

Paraméterek

projectId

string

A projekt azonosítója.

publishedName

string

A kiértékelendő modell nevét adja meg.

imageData
HttpRequestBody

Bináris képadatok. A támogatott formátumok a KÖVETKEZŐK: JPEG, GIF, PNG és BMP. Legfeljebb 4 MB méretű képeket támogat.

callback

ServiceCallback<ImagePrediction>

A visszahívás

detectImage(string, string, HttpRequestBody, PredictionAPIClientDetectImageOptionalParams)

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

Paraméterek

projectId

string

A projekt azonosítója.

publishedName

string

A kiértékelendő modell nevét adja meg.

imageData
HttpRequestBody

Bináris képadatok. A támogatott formátumok a KÖVETKEZŐK: JPEG, GIF, PNG és BMP. Legfeljebb 4 MB méretű képeket támogat.

options
PredictionAPIClientDetectImageOptionalParams

A választható paraméterek

Válaszok

Promise<Models.DetectImageResponse>

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

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

Paraméterek

projectId

string

A projekt azonosítója.

publishedName

string

A kiértékelendő modell nevét adja meg.

imageData
HttpRequestBody

Bináris képadatok. A támogatott formátumok a KÖVETKEZŐK: JPEG, GIF, PNG és BMP. Legfeljebb 4 MB méretű képeket támogat.

options
PredictionAPIClientDetectImageOptionalParams

A választható paraméterek

callback

ServiceCallback<ImagePrediction>

A visszahívás

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

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

Paraméterek

projectId

string

A projekt azonosítója.

publishedName

string

A kiértékelendő modell nevét adja meg.

imageData
HttpRequestBody

Bináris képadatok. A támogatott formátumok a KÖVETKEZŐK: JPEG, GIF, PNG és BMP. Legfeljebb 4 MB méretű képeket támogat.

callback

ServiceCallback<ImagePrediction>

A visszahívás

detectImageUrl(string, string, ImageUrl, PredictionAPIClientDetectImageUrlOptionalParams)

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

Paraméterek

projectId

string

A projekt azonosítója.

publishedName

string

A kiértékelendő modell nevét adja meg.

imageUrl
ImageUrl

A kiértékelendő kép URL-címét tartalmazó ImageUrl.

options
PredictionAPIClientDetectImageUrlOptionalParams

A választható paraméterek

Válaszok

Promise<Models.DetectImageUrlResponse>

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

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

Paraméterek

projectId

string

A projekt azonosítója.

publishedName

string

A kiértékelendő modell nevét adja meg.

imageUrl
ImageUrl

A kiértékelendő kép URL-címét tartalmazó ImageUrl.

options
PredictionAPIClientDetectImageUrlOptionalParams

A választható paraméterek

callback

ServiceCallback<ImagePrediction>

A visszahívás

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

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

Paraméterek

projectId

string

A projekt azonosítója.

publishedName

string

A kiértékelendő modell nevét adja meg.

imageUrl
ImageUrl

A kiértékelendő kép URL-címét tartalmazó ImageUrl.

callback

ServiceCallback<ImagePrediction>

A visszahívás

detectImageUrlWithNoStore(string, string, ImageUrl, PredictionAPIClientDetectImageUrlWithNoStoreOptionalParams)

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

Paraméterek

projectId

string

A projekt azonosítója.

publishedName

string

A kiértékelendő modell nevét adja meg.

imageUrl
ImageUrl

Egy {Iris.Web.Api.Models.ImageUrl}, amely a kiértékelendő kép URL-címét tartalmazza.

options
PredictionAPIClientDetectImageUrlWithNoStoreOptionalParams

A választható paraméterek

Válaszok

Promise<Models.DetectImageUrlWithNoStoreResponse>

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

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

Paraméterek

projectId

string

A projekt azonosítója.

publishedName

string

A kiértékelendő modell nevét adja meg.

imageUrl
ImageUrl

Egy {Iris.Web.Api.Models.ImageUrl}, amely a kiértékelendő kép URL-címét tartalmazza.

options
PredictionAPIClientDetectImageUrlWithNoStoreOptionalParams

A választható paraméterek

callback

ServiceCallback<ImagePrediction>

A visszahívás

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

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

Paraméterek

projectId

string

A projekt azonosítója.

publishedName

string

A kiértékelendő modell nevét adja meg.

imageUrl
ImageUrl

Egy {Iris.Web.Api.Models.ImageUrl}, amely a kiértékelendő kép URL-címét tartalmazza.

callback

ServiceCallback<ImagePrediction>

A visszahívás

detectImageWithNoStore(string, string, HttpRequestBody, PredictionAPIClientDetectImageWithNoStoreOptionalParams)

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

Paraméterek

projectId

string

A projekt azonosítója.

publishedName

string

A kiértékelendő modell nevét adja meg.

imageData
HttpRequestBody

Bináris képadatok. A támogatott formátumok a KÖVETKEZŐK: JPEG, GIF, PNG és BMP. Legfeljebb 4 MB méretű képeket támogat.

options
PredictionAPIClientDetectImageWithNoStoreOptionalParams

A választható paraméterek

Válaszok

Promise<Models.DetectImageWithNoStoreResponse>

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

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

Paraméterek

projectId

string

A projekt azonosítója.

publishedName

string

A kiértékelendő modell nevét adja meg.

imageData
HttpRequestBody

Bináris képadatok. A támogatott formátumok a KÖVETKEZŐK: JPEG, GIF, PNG és BMP. Legfeljebb 4 MB méretű képeket támogat.

options
PredictionAPIClientDetectImageWithNoStoreOptionalParams

A választható paraméterek

callback

ServiceCallback<ImagePrediction>

A visszahívás

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

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

Paraméterek

projectId

string

A projekt azonosítója.

publishedName

string

A kiértékelendő modell nevét adja meg.

imageData
HttpRequestBody

Bináris képadatok. A támogatott formátumok a KÖVETKEZŐK: JPEG, GIF, PNG és BMP. Legfeljebb 4 MB méretű képeket támogat.

callback

ServiceCallback<ImagePrediction>

A visszahívás

Örökölt metódus részletei

sendOperationRequest(OperationArguments, OperationSpec, ServiceCallback<any>)

Küldjön egy HTTP-kérést, amely a megadott OperationSpec paranccsal van feltöltve.

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

Paraméterek

operationArguments
OperationArguments

Azok az argumentumok, amelyekből a HTTP-kérelem sablonértékei ki lesznek töltve.

operationSpec
OperationSpec

A httpRequest feltöltéséhez használandó OperationSpec.

callback

ServiceCallback<any>

A visszahívás a válasz érkezésekor.

Válaszok

Promise<RestResponse>

Örökölt:PredictionAPIClientContext.sendOperationRequest

sendRequest(RequestPrepareOptions | WebResourceLike)

Küldje el a megadott httpRequest parancsot.

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

Paraméterek

Válaszok

Örökölt: PredictionAPIClientContext.sendRequest