PredictionAPIClient class
- Extends
Konstruktoren
Prediction |
Initialisiert eine neue Instanz der PredictionAPIClient-Klasse. |
Geerbte Eigenschaften
credentials | |
endpoint |
Methoden
Geerbte Methoden
send |
Senden Sie eine HTTP-Anforderung, die mit der bereitgestellten OperationSpec aufgefüllt wird. |
send |
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
Die Parameteroptionen
Geerbte Eigenschaftsdetails
credentials
credentials: ServiceClientCredentials
Eigenschaftswert
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, das ausgewertet werden soll.
- imageData
- HttpRequestBody
Binäre Bilddaten. Unterstützte Formate sind JPEG, GIF, PNG und BMP. Unterstützt Bilder bis zu 4 MB.
Die optionalen Parameter
Gibt zurück
Promise<ClassifyImageResponse>
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, das ausgewertet werden soll.
- imageData
- HttpRequestBody
Binäre Bilddaten. Unterstützte Formate sind JPEG, GIF, PNG und BMP. Unterstützt Bilder bis zu 4 MB.
Die optionalen Parameter
- callback
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, das ausgewertet werden soll.
- imageData
- HttpRequestBody
Binäre Bilddaten. Unterstützte Formate sind JPEG, GIF, PNG und BMP. Unterstützt Bilder bis zu 4 MB.
- callback
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, das ausgewertet werden soll.
- imageUrl
- ImageUrl
Ein ImageUrl, das die URL des zu bewertenden Bilds enthält.
Die optionalen Parameter
Gibt zurück
Promise<ClassifyImageUrlResponse>
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, das ausgewertet werden soll.
- imageUrl
- ImageUrl
Ein ImageUrl, das die URL des zu bewertenden Bilds enthält.
Die optionalen Parameter
- callback
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, das ausgewertet werden soll.
- imageUrl
- ImageUrl
Ein ImageUrl, das die URL des zu bewertenden Bilds enthält.
- callback
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, das ausgewertet werden soll.
- imageUrl
- ImageUrl
Eine {Iris.Web.Api.Models.ImageUrl}, die die URL des zu bewertenden Bilds enthält.
Die optionalen Parameter
Gibt zurück
Promise<ClassifyImageUrlWithNoStoreResponse>
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, das ausgewertet werden soll.
- imageUrl
- ImageUrl
Eine {Iris.Web.Api.Models.ImageUrl}, die die URL des zu bewertenden Bilds enthält.
Die optionalen Parameter
- callback
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, das ausgewertet werden soll.
- imageUrl
- ImageUrl
Eine {Iris.Web.Api.Models.ImageUrl}, die die URL des zu bewertenden Bilds enthält.
- callback
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, das ausgewertet werden soll.
- imageData
- HttpRequestBody
Binäre Bilddaten. Unterstützte Formate sind JPEG, GIF, PNG und BMP. Unterstützt Bilder bis zu 4 MB.
Die optionalen Parameter
Gibt zurück
Promise<ClassifyImageWithNoStoreResponse>
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, das ausgewertet werden soll.
- imageData
- HttpRequestBody
Binäre Bilddaten. Unterstützte Formate sind JPEG, GIF, PNG und BMP. Unterstützt Bilder bis zu 4 MB.
Die optionalen Parameter
- callback
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, das ausgewertet werden soll.
- imageData
- HttpRequestBody
Binäre Bilddaten. Unterstützte Formate sind JPEG, GIF, PNG und BMP. Unterstützt Bilder bis zu 4 MB.
- callback
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, das ausgewertet werden soll.
- imageData
- HttpRequestBody
Binäre Bilddaten. Unterstützte Formate sind JPEG, GIF, PNG und BMP. Unterstützt Bilder bis zu 4 MB.
Die optionalen Parameter
Gibt zurück
Promise<DetectImageResponse>
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, das ausgewertet werden soll.
- imageData
- HttpRequestBody
Binäre Bilddaten. Unterstützte Formate sind JPEG, GIF, PNG und BMP. Unterstützt Bilder bis zu 4 MB.
Die optionalen Parameter
- callback
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, das ausgewertet werden soll.
- imageData
- HttpRequestBody
Binäre Bilddaten. Unterstützte Formate sind JPEG, GIF, PNG und BMP. Unterstützt Bilder bis zu 4 MB.
- callback
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, das ausgewertet werden soll.
- imageUrl
- ImageUrl
Ein ImageUrl, das die URL des zu bewertenden Bilds enthält.
Die optionalen Parameter
Gibt zurück
Promise<DetectImageUrlResponse>
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, das ausgewertet werden soll.
- imageUrl
- ImageUrl
Ein ImageUrl, das die URL des zu bewertenden Bilds enthält.
Die optionalen Parameter
- callback
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, das ausgewertet werden soll.
- imageUrl
- ImageUrl
Ein ImageUrl, das die URL des zu bewertenden Bilds enthält.
- callback
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, das ausgewertet werden soll.
- imageUrl
- ImageUrl
Eine {Iris.Web.Api.Models.ImageUrl}, die die URL des zu bewertenden Bilds enthält.
Die optionalen Parameter
Gibt zurück
Promise<DetectImageUrlWithNoStoreResponse>
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, das ausgewertet werden soll.
- imageUrl
- ImageUrl
Eine {Iris.Web.Api.Models.ImageUrl}, die die URL des zu bewertenden Bilds enthält.
Die optionalen Parameter
- callback
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, das ausgewertet werden soll.
- imageUrl
- ImageUrl
Eine {Iris.Web.Api.Models.ImageUrl}, die die URL des zu bewertenden Bilds enthält.
- callback
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, das ausgewertet werden soll.
- imageData
- HttpRequestBody
Binäre Bilddaten. Unterstützte Formate sind JPEG, GIF, PNG und BMP. Unterstützt Bilder bis zu 4 MB.
Die optionalen Parameter
Gibt zurück
Promise<DetectImageWithNoStoreResponse>
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, das ausgewertet werden soll.
- imageData
- HttpRequestBody
Binäre Bilddaten. Unterstützte Formate sind JPEG, GIF, PNG und BMP. Unterstützt Bilder bis zu 4 MB.
Die optionalen Parameter
- callback
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, das ausgewertet werden soll.
- imageData
- HttpRequestBody
Binäre Bilddaten. Unterstützte Formate sind JPEG, GIF, PNG und BMP. Unterstützt Bilder bis zu 4 MB.
- callback
Der Rückruf
Details zur geerbten Methode
sendOperationRequest(OperationArguments, OperationSpec, ServiceCallback<any>)
Senden Sie eine HTTP-Anforderung, die mit der bereitgestellten OperationSpec aufgefüllt wird.
function sendOperationRequest(operationArguments: OperationArguments, operationSpec: OperationSpec, callback?: ServiceCallback<any>): Promise<RestResponse>
Parameter
- operationArguments
- OperationArguments
Die Argumente, aus denen die vorlagenbasierten Werte der HTTP-Anforderung ausgefüllt werden.
- operationSpec
- OperationSpec
Die OperationSpec, die zum Auffüllen der httpRequest verwendet werden soll.
- callback
-
ServiceCallback<any>
Der Rückruf, der aufgerufen werden soll, wenn die Antwort empfangen wird.
Gibt zurück
Promise<RestResponse>
sendRequest(RequestPrepareOptions | WebResourceLike)
Senden Sie die bereitgestellte httpRequest.
function sendRequest(options: RequestPrepareOptions | WebResourceLike): Promise<HttpOperationResponse>
Parameter
- options
Gibt zurück
Promise<HttpOperationResponse>
geerbt vonPredictionAPIClientContext.sendRequest