PredictionAPIClient class

Extends

المنشئون

PredictionAPIClient(ServiceClientCredentials, string, ServiceClientOptions)

تهيئة مثيل جديد من فئة PredictionAPIClient.

الخصائص الموروثة

credentials
endpoint

الأساليب

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

الأساليب المتوارثة

sendOperationRequest(OperationArguments, OperationSpec, ServiceCallback<any>)

أرسل طلب HTTP الذي يتم ملؤه باستخدام OperationSpec المتوفر.

sendRequest(RequestPrepareOptions | WebResourceLike)

أرسل httpRequest المتوفر.

تفاصيل المنشئ

PredictionAPIClient(ServiceClientCredentials, string, ServiceClientOptions)

تهيئة مثيل جديد من فئة PredictionAPIClient.

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

المعلمات

credentials
ServiceClientCredentials

بيانات اعتماد الاشتراك التي تحدد اشتراك العميل بشكل فريد.

endpoint

string

نقاط نهاية الخدمات المعرفية المدعومة.

options
ServiceClientOptions

خيارات المعلمة

تفاصيل الخاصية الموروثة

credentials

credentials: ServiceClientCredentials

قيمة الخاصية

موروث منPredictionAPIClientContext.credentials

endpoint

endpoint: string

قيمة الخاصية

string

موروث منPredictionAPIClientContext.endpoint

تفاصيل الأسلوب

classifyImage(string, string, HttpRequestBody, PredictionAPIClientClassifyImageOptionalParams)

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

المعلمات

projectId

string

معرف المشروع.

publishedName

string

يحدد اسم النموذج المراد تقييمه مقابله.

imageData
HttpRequestBody

بيانات الصورة الثنائية. التنسيقات المدعومة هي JPEG وGIF وPNG وBMP. يدعم الصور التي تصل إلى 4 ميغابايت.

options
PredictionAPIClientClassifyImageOptionalParams

المعلمات الاختيارية

المرتجعات

Promise<Models.ClassifyImageResponse>

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

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

المعلمات

projectId

string

معرف المشروع.

publishedName

string

يحدد اسم النموذج المراد تقييمه مقابله.

imageData
HttpRequestBody

بيانات الصورة الثنائية. التنسيقات المدعومة هي JPEG وGIF وPNG وBMP. يدعم الصور التي تصل إلى 4 ميغابايت.

options
PredictionAPIClientClassifyImageOptionalParams

المعلمات الاختيارية

callback

ServiceCallback<ImagePrediction>

رد الاتصال

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

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

المعلمات

projectId

string

معرف المشروع.

publishedName

string

يحدد اسم النموذج المراد تقييمه مقابله.

imageData
HttpRequestBody

بيانات الصورة الثنائية. التنسيقات المدعومة هي JPEG وGIF وPNG وBMP. يدعم الصور التي تصل إلى 4 ميغابايت.

callback

ServiceCallback<ImagePrediction>

رد الاتصال

classifyImageUrl(string, string, ImageUrl, PredictionAPIClientClassifyImageUrlOptionalParams)

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

المعلمات

projectId

string

معرف المشروع.

publishedName

string

يحدد اسم النموذج المراد تقييمه مقابله.

imageUrl
ImageUrl

ImageUrl يحتوي على عنوان URL للصورة التي سيتم تقييمها.

options
PredictionAPIClientClassifyImageUrlOptionalParams

المعلمات الاختيارية

المرتجعات

Promise<Models.ClassifyImageUrlResponse>

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

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

المعلمات

projectId

string

معرف المشروع.

publishedName

string

يحدد اسم النموذج المراد تقييمه مقابله.

imageUrl
ImageUrl

ImageUrl يحتوي على عنوان URL للصورة التي سيتم تقييمها.

options
PredictionAPIClientClassifyImageUrlOptionalParams

المعلمات الاختيارية

callback

ServiceCallback<ImagePrediction>

رد الاتصال

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

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

المعلمات

projectId

string

معرف المشروع.

publishedName

string

يحدد اسم النموذج المراد تقييمه مقابله.

imageUrl
ImageUrl

ImageUrl يحتوي على عنوان URL للصورة التي سيتم تقييمها.

callback

ServiceCallback<ImagePrediction>

رد الاتصال

classifyImageUrlWithNoStore(string, string, ImageUrl, PredictionAPIClientClassifyImageUrlWithNoStoreOptionalParams)

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

المعلمات

projectId

string

معرف المشروع.

publishedName

string

يحدد اسم النموذج المراد تقييمه مقابله.

imageUrl
ImageUrl

{Iris.Web.Api.Models.ImageUrl} الذي يحتوي على عنوان URL للصورة التي سيتم تقييمها.

options
PredictionAPIClientClassifyImageUrlWithNoStoreOptionalParams

المعلمات الاختيارية

المرتجعات

Promise<Models.ClassifyImageUrlWithNoStoreResponse>

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

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

المعلمات

projectId

string

معرف المشروع.

publishedName

string

يحدد اسم النموذج المراد تقييمه مقابله.

imageUrl
ImageUrl

{Iris.Web.Api.Models.ImageUrl} الذي يحتوي على عنوان URL للصورة التي سيتم تقييمها.

options
PredictionAPIClientClassifyImageUrlWithNoStoreOptionalParams

المعلمات الاختيارية

callback

ServiceCallback<ImagePrediction>

رد الاتصال

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

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

المعلمات

projectId

string

معرف المشروع.

publishedName

string

يحدد اسم النموذج المراد تقييمه مقابله.

imageUrl
ImageUrl

{Iris.Web.Api.Models.ImageUrl} الذي يحتوي على عنوان URL للصورة التي سيتم تقييمها.

callback

ServiceCallback<ImagePrediction>

رد الاتصال

classifyImageWithNoStore(string, string, HttpRequestBody, PredictionAPIClientClassifyImageWithNoStoreOptionalParams)

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

المعلمات

projectId

string

معرف المشروع.

publishedName

string

يحدد اسم النموذج المراد تقييمه مقابله.

imageData
HttpRequestBody

بيانات الصورة الثنائية. التنسيقات المدعومة هي JPEG وGIF وPNG وBMP. يدعم الصور التي تصل إلى 4 ميغابايت.

options
PredictionAPIClientClassifyImageWithNoStoreOptionalParams

المعلمات الاختيارية

المرتجعات

Promise<Models.ClassifyImageWithNoStoreResponse>

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

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

المعلمات

projectId

string

معرف المشروع.

publishedName

string

يحدد اسم النموذج المراد تقييمه مقابله.

imageData
HttpRequestBody

بيانات الصورة الثنائية. التنسيقات المدعومة هي JPEG وGIF وPNG وBMP. يدعم الصور التي تصل إلى 4 ميغابايت.

options
PredictionAPIClientClassifyImageWithNoStoreOptionalParams

المعلمات الاختيارية

callback

ServiceCallback<ImagePrediction>

رد الاتصال

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

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

المعلمات

projectId

string

معرف المشروع.

publishedName

string

يحدد اسم النموذج المراد تقييمه مقابله.

imageData
HttpRequestBody

بيانات الصورة الثنائية. التنسيقات المدعومة هي JPEG وGIF وPNG وBMP. يدعم الصور التي تصل إلى 4 ميغابايت.

callback

ServiceCallback<ImagePrediction>

رد الاتصال

detectImage(string, string, HttpRequestBody, PredictionAPIClientDetectImageOptionalParams)

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

المعلمات

projectId

string

معرف المشروع.

publishedName

string

يحدد اسم النموذج المراد تقييمه مقابله.

imageData
HttpRequestBody

بيانات الصورة الثنائية. التنسيقات المدعومة هي JPEG وGIF وPNG وBMP. يدعم الصور التي تصل إلى 4 ميغابايت.

options
PredictionAPIClientDetectImageOptionalParams

المعلمات الاختيارية

المرتجعات

Promise<Models.DetectImageResponse>

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

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

المعلمات

projectId

string

معرف المشروع.

publishedName

string

يحدد اسم النموذج المراد تقييمه مقابله.

imageData
HttpRequestBody

بيانات الصورة الثنائية. التنسيقات المدعومة هي JPEG وGIF وPNG وBMP. يدعم الصور التي تصل إلى 4 ميغابايت.

options
PredictionAPIClientDetectImageOptionalParams

المعلمات الاختيارية

callback

ServiceCallback<ImagePrediction>

رد الاتصال

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

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

المعلمات

projectId

string

معرف المشروع.

publishedName

string

يحدد اسم النموذج المراد تقييمه مقابله.

imageData
HttpRequestBody

بيانات الصورة الثنائية. التنسيقات المدعومة هي JPEG وGIF وPNG وBMP. يدعم الصور التي تصل إلى 4 ميغابايت.

callback

ServiceCallback<ImagePrediction>

رد الاتصال

detectImageUrl(string, string, ImageUrl, PredictionAPIClientDetectImageUrlOptionalParams)

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

المعلمات

projectId

string

معرف المشروع.

publishedName

string

يحدد اسم النموذج المراد تقييمه مقابله.

imageUrl
ImageUrl

ImageUrl يحتوي على عنوان URL للصورة التي سيتم تقييمها.

options
PredictionAPIClientDetectImageUrlOptionalParams

المعلمات الاختيارية

المرتجعات

Promise<Models.DetectImageUrlResponse>

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

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

المعلمات

projectId

string

معرف المشروع.

publishedName

string

يحدد اسم النموذج المراد تقييمه مقابله.

imageUrl
ImageUrl

ImageUrl يحتوي على عنوان URL للصورة التي سيتم تقييمها.

options
PredictionAPIClientDetectImageUrlOptionalParams

المعلمات الاختيارية

callback

ServiceCallback<ImagePrediction>

رد الاتصال

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

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

المعلمات

projectId

string

معرف المشروع.

publishedName

string

يحدد اسم النموذج المراد تقييمه مقابله.

imageUrl
ImageUrl

ImageUrl يحتوي على عنوان URL للصورة التي سيتم تقييمها.

callback

ServiceCallback<ImagePrediction>

رد الاتصال

detectImageUrlWithNoStore(string, string, ImageUrl, PredictionAPIClientDetectImageUrlWithNoStoreOptionalParams)

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

المعلمات

projectId

string

معرف المشروع.

publishedName

string

يحدد اسم النموذج المراد تقييمه مقابله.

imageUrl
ImageUrl

{Iris.Web.Api.Models.ImageUrl} الذي يحتوي على عنوان URL للصورة التي سيتم تقييمها.

options
PredictionAPIClientDetectImageUrlWithNoStoreOptionalParams

المعلمات الاختيارية

المرتجعات

Promise<Models.DetectImageUrlWithNoStoreResponse>

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

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

المعلمات

projectId

string

معرف المشروع.

publishedName

string

يحدد اسم النموذج المراد تقييمه مقابله.

imageUrl
ImageUrl

{Iris.Web.Api.Models.ImageUrl} الذي يحتوي على عنوان URL للصورة التي سيتم تقييمها.

options
PredictionAPIClientDetectImageUrlWithNoStoreOptionalParams

المعلمات الاختيارية

callback

ServiceCallback<ImagePrediction>

رد الاتصال

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

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

المعلمات

projectId

string

معرف المشروع.

publishedName

string

يحدد اسم النموذج المراد تقييمه مقابله.

imageUrl
ImageUrl

{Iris.Web.Api.Models.ImageUrl} الذي يحتوي على عنوان URL للصورة التي سيتم تقييمها.

callback

ServiceCallback<ImagePrediction>

رد الاتصال

detectImageWithNoStore(string, string, HttpRequestBody, PredictionAPIClientDetectImageWithNoStoreOptionalParams)

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

المعلمات

projectId

string

معرف المشروع.

publishedName

string

يحدد اسم النموذج المراد تقييمه مقابله.

imageData
HttpRequestBody

بيانات الصورة الثنائية. التنسيقات المدعومة هي JPEG وGIF وPNG وBMP. يدعم الصور التي تصل إلى 4 ميغابايت.

options
PredictionAPIClientDetectImageWithNoStoreOptionalParams

المعلمات الاختيارية

المرتجعات

Promise<Models.DetectImageWithNoStoreResponse>

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

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

المعلمات

projectId

string

معرف المشروع.

publishedName

string

يحدد اسم النموذج المراد تقييمه مقابله.

imageData
HttpRequestBody

بيانات الصورة الثنائية. التنسيقات المدعومة هي JPEG وGIF وPNG وBMP. يدعم الصور التي تصل إلى 4 ميغابايت.

options
PredictionAPIClientDetectImageWithNoStoreOptionalParams

المعلمات الاختيارية

callback

ServiceCallback<ImagePrediction>

رد الاتصال

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

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

المعلمات

projectId

string

معرف المشروع.

publishedName

string

يحدد اسم النموذج المراد تقييمه مقابله.

imageData
HttpRequestBody

بيانات الصورة الثنائية. التنسيقات المدعومة هي JPEG وGIF وPNG وBMP. يدعم الصور التي تصل إلى 4 ميغابايت.

callback

ServiceCallback<ImagePrediction>

رد الاتصال

تفاصيل الأساليب المتوارثة

sendOperationRequest(OperationArguments, OperationSpec, ServiceCallback<any>)

أرسل طلب HTTP الذي يتم ملؤه باستخدام OperationSpec المتوفر.

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

المعلمات

operationArguments
OperationArguments

سيتم ملء الوسيطات التي سيتم ملء القيم المقالب لطلب HTTP منها.

operationSpec
OperationSpec

OperationSpec لاستخدامه لملء httpRequest.

callback

ServiceCallback<any>

رد الاتصال للاتصال عند تلقي الاستجابة.

المرتجعات

Promise<RestResponse>

موروث منPredictionAPIClientContext.sendOperationRequest

sendRequest(RequestPrepareOptions | WebResourceLike)

أرسل httpRequest المتوفر.

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

المعلمات

المرتجعات

موروث منPredictionAPIClientContext.sendRequest