PredictionAPIClient class
- Extends
المنشئون
Prediction |
تهيئة مثيل جديد من فئة PredictionAPIClient. |
الخصائص الموروثة
credentials | |
endpoint |
الأساليب
الأساليب المتوارثة
send |
أرسل طلب HTTP الذي يتم ملؤه باستخدام OperationSpec المتوفر. |
send |
أرسل httpRequest المتوفر. |
تفاصيل المنشئ
PredictionAPIClient(ServiceClientCredentials, string, ServiceClientOptions)
تهيئة مثيل جديد من فئة PredictionAPIClient.
new PredictionAPIClient(credentials: ServiceClientCredentials, endpoint: string, options?: ServiceClientOptions)
المعلمات
- credentials
- ServiceClientCredentials
بيانات اعتماد الاشتراك التي تحدد اشتراك العميل بشكل فريد.
- endpoint
-
string
نقاط نهاية الخدمات المعرفية المدعومة.
- options
- ServiceClientOptions
خيارات المعلمة
تفاصيل الخاصية الموروثة
credentials
credentials: ServiceClientCredentials
قيمة الخاصية
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 ميغابايت.
المعلمات الاختيارية
المرتجعات
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>)
المعلمات
- projectId
-
string
معرف المشروع.
- publishedName
-
string
يحدد اسم النموذج المراد تقييمه مقابله.
- imageData
- HttpRequestBody
بيانات الصورة الثنائية. التنسيقات المدعومة هي JPEG وGIF وPNG وBMP. يدعم الصور التي تصل إلى 4 ميغابايت.
المعلمات الاختيارية
- callback
رد الاتصال
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
رد الاتصال
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 للصورة التي سيتم تقييمها.
المعلمات الاختيارية
المرتجعات
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>)
المعلمات
- projectId
-
string
معرف المشروع.
- publishedName
-
string
يحدد اسم النموذج المراد تقييمه مقابله.
- imageUrl
- ImageUrl
ImageUrl يحتوي على عنوان URL للصورة التي سيتم تقييمها.
المعلمات الاختيارية
- callback
رد الاتصال
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
رد الاتصال
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 للصورة التي سيتم تقييمها.
المعلمات الاختيارية
المرتجعات
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>)
المعلمات
- projectId
-
string
معرف المشروع.
- publishedName
-
string
يحدد اسم النموذج المراد تقييمه مقابله.
- imageUrl
- ImageUrl
{Iris.Web.Api.Models.ImageUrl} الذي يحتوي على عنوان URL للصورة التي سيتم تقييمها.
المعلمات الاختيارية
- callback
رد الاتصال
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
رد الاتصال
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 ميغابايت.
المعلمات الاختيارية
المرتجعات
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>)
المعلمات
- projectId
-
string
معرف المشروع.
- publishedName
-
string
يحدد اسم النموذج المراد تقييمه مقابله.
- imageData
- HttpRequestBody
بيانات الصورة الثنائية. التنسيقات المدعومة هي JPEG وGIF وPNG وBMP. يدعم الصور التي تصل إلى 4 ميغابايت.
المعلمات الاختيارية
- callback
رد الاتصال
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
رد الاتصال
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 ميغابايت.
المعلمات الاختيارية
المرتجعات
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>)
المعلمات
- projectId
-
string
معرف المشروع.
- publishedName
-
string
يحدد اسم النموذج المراد تقييمه مقابله.
- imageData
- HttpRequestBody
بيانات الصورة الثنائية. التنسيقات المدعومة هي JPEG وGIF وPNG وBMP. يدعم الصور التي تصل إلى 4 ميغابايت.
المعلمات الاختيارية
- callback
رد الاتصال
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
رد الاتصال
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 للصورة التي سيتم تقييمها.
المعلمات الاختيارية
المرتجعات
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>)
المعلمات
- projectId
-
string
معرف المشروع.
- publishedName
-
string
يحدد اسم النموذج المراد تقييمه مقابله.
- imageUrl
- ImageUrl
ImageUrl يحتوي على عنوان URL للصورة التي سيتم تقييمها.
المعلمات الاختيارية
- callback
رد الاتصال
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
رد الاتصال
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 للصورة التي سيتم تقييمها.
المعلمات الاختيارية
المرتجعات
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>)
المعلمات
- projectId
-
string
معرف المشروع.
- publishedName
-
string
يحدد اسم النموذج المراد تقييمه مقابله.
- imageUrl
- ImageUrl
{Iris.Web.Api.Models.ImageUrl} الذي يحتوي على عنوان URL للصورة التي سيتم تقييمها.
المعلمات الاختيارية
- callback
رد الاتصال
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
رد الاتصال
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 ميغابايت.
المعلمات الاختيارية
المرتجعات
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>)
المعلمات
- projectId
-
string
معرف المشروع.
- publishedName
-
string
يحدد اسم النموذج المراد تقييمه مقابله.
- imageData
- HttpRequestBody
بيانات الصورة الثنائية. التنسيقات المدعومة هي JPEG وGIF وPNG وBMP. يدعم الصور التي تصل إلى 4 ميغابايت.
المعلمات الاختيارية
- callback
رد الاتصال
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
رد الاتصال
تفاصيل الأساليب المتوارثة
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>
sendRequest(RequestPrepareOptions | WebResourceLike)
أرسل httpRequest المتوفر.
function sendRequest(options: RequestPrepareOptions | WebResourceLike): Promise<HttpOperationResponse>
المعلمات
- options
المرتجعات
Promise<HttpOperationResponse>