Share via


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

제공된 OperationSpec을 사용하여 채워진 HTTP 요청을 보냅니다.

sendRequest(RequestPrepareOptions | WebResourceLike)

제공된 httpRequest를 보냅니다.

생성자 세부 정보

PredictionAPIClient(ServiceClientCredentials, string, ServiceClientOptions)

PredictionAPIClient 클래스의 새 인스턴스를 초기화합니다.

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

매개 변수

credentials
ServiceClientCredentials

클라이언트 구독을 고유하게 식별하는 구독 자격 증명입니다.

endpoint

string

지원되는 Cognitive Services 엔드포인트.

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

프로젝트 ID입니다.

publishedName

string

평가할 모델의 이름을 지정합니다.

imageData
HttpRequestBody

이진 이미지 데이터입니다. 지원되는 형식은 JPEG, GIF, PNG 및 BMP입니다. 최대 4MB의 이미지를 지원합니다.

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

프로젝트 ID입니다.

publishedName

string

평가할 모델의 이름을 지정합니다.

imageData
HttpRequestBody

이진 이미지 데이터입니다. 지원되는 형식은 JPEG, GIF, PNG 및 BMP입니다. 최대 4MB의 이미지를 지원합니다.

options
PredictionAPIClientClassifyImageOptionalParams

선택적 매개 변수

callback

ServiceCallback<ImagePrediction>

콜백

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

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

매개 변수

projectId

string

프로젝트 ID입니다.

publishedName

string

평가할 모델의 이름을 지정합니다.

imageData
HttpRequestBody

이진 이미지 데이터입니다. 지원되는 형식은 JPEG, GIF, PNG 및 BMP입니다. 최대 4MB의 이미지를 지원합니다.

callback

ServiceCallback<ImagePrediction>

콜백

classifyImageUrl(string, string, ImageUrl, PredictionAPIClientClassifyImageUrlOptionalParams)

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

매개 변수

projectId

string

프로젝트 ID입니다.

publishedName

string

평가할 모델의 이름을 지정합니다.

imageUrl
ImageUrl

평가할 이미지의 URL을 포함하는 ImageUrl입니다.

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

프로젝트 ID입니다.

publishedName

string

평가할 모델의 이름을 지정합니다.

imageUrl
ImageUrl

평가할 이미지의 URL을 포함하는 ImageUrl입니다.

options
PredictionAPIClientClassifyImageUrlOptionalParams

선택적 매개 변수

callback

ServiceCallback<ImagePrediction>

콜백

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

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

매개 변수

projectId

string

프로젝트 ID입니다.

publishedName

string

평가할 모델의 이름을 지정합니다.

imageUrl
ImageUrl

평가할 이미지의 URL을 포함하는 ImageUrl입니다.

callback

ServiceCallback<ImagePrediction>

콜백

classifyImageUrlWithNoStore(string, string, ImageUrl, PredictionAPIClientClassifyImageUrlWithNoStoreOptionalParams)

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

매개 변수

projectId

string

프로젝트 ID입니다.

publishedName

string

평가할 모델의 이름을 지정합니다.

imageUrl
ImageUrl

평가할 이미지의 URL을 포함하는 {Iris.Web.Api.Models.ImageUrl}입니다.

반환

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

프로젝트 ID입니다.

publishedName

string

평가할 모델의 이름을 지정합니다.

imageUrl
ImageUrl

평가할 이미지의 URL을 포함하는 {Iris.Web.Api.Models.ImageUrl}입니다.

callback

ServiceCallback<ImagePrediction>

콜백

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

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

매개 변수

projectId

string

프로젝트 ID입니다.

publishedName

string

평가할 모델의 이름을 지정합니다.

imageUrl
ImageUrl

평가할 이미지의 URL을 포함하는 {Iris.Web.Api.Models.ImageUrl}입니다.

callback

ServiceCallback<ImagePrediction>

콜백

classifyImageWithNoStore(string, string, HttpRequestBody, PredictionAPIClientClassifyImageWithNoStoreOptionalParams)

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

매개 변수

projectId

string

프로젝트 ID입니다.

publishedName

string

평가할 모델의 이름을 지정합니다.

imageData
HttpRequestBody

이진 이미지 데이터입니다. 지원되는 형식은 JPEG, GIF, PNG 및 BMP입니다. 최대 4MB의 이미지를 지원합니다.

반환

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

프로젝트 ID입니다.

publishedName

string

평가할 모델의 이름을 지정합니다.

imageData
HttpRequestBody

이진 이미지 데이터입니다. 지원되는 형식은 JPEG, GIF, PNG 및 BMP입니다. 최대 4MB의 이미지를 지원합니다.

callback

ServiceCallback<ImagePrediction>

콜백

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

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

매개 변수

projectId

string

프로젝트 ID입니다.

publishedName

string

평가할 모델의 이름을 지정합니다.

imageData
HttpRequestBody

이진 이미지 데이터입니다. 지원되는 형식은 JPEG, GIF, PNG 및 BMP입니다. 최대 4MB의 이미지를 지원합니다.

callback

ServiceCallback<ImagePrediction>

콜백

detectImage(string, string, HttpRequestBody, PredictionAPIClientDetectImageOptionalParams)

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

매개 변수

projectId

string

프로젝트 ID입니다.

publishedName

string

평가할 모델의 이름을 지정합니다.

imageData
HttpRequestBody

이진 이미지 데이터입니다. 지원되는 형식은 JPEG, GIF, PNG 및 BMP입니다. 최대 4MB의 이미지를 지원합니다.

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

프로젝트 ID입니다.

publishedName

string

평가할 모델의 이름을 지정합니다.

imageData
HttpRequestBody

이진 이미지 데이터입니다. 지원되는 형식은 JPEG, GIF, PNG 및 BMP입니다. 최대 4MB의 이미지를 지원합니다.

options
PredictionAPIClientDetectImageOptionalParams

선택적 매개 변수

callback

ServiceCallback<ImagePrediction>

콜백

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

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

매개 변수

projectId

string

프로젝트 ID입니다.

publishedName

string

평가할 모델의 이름을 지정합니다.

imageData
HttpRequestBody

이진 이미지 데이터입니다. 지원되는 형식은 JPEG, GIF, PNG 및 BMP입니다. 최대 4MB의 이미지를 지원합니다.

callback

ServiceCallback<ImagePrediction>

콜백

detectImageUrl(string, string, ImageUrl, PredictionAPIClientDetectImageUrlOptionalParams)

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

매개 변수

projectId

string

프로젝트 ID입니다.

publishedName

string

평가할 모델의 이름을 지정합니다.

imageUrl
ImageUrl

평가할 이미지의 URL을 포함하는 ImageUrl입니다.

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

프로젝트 ID입니다.

publishedName

string

평가할 모델의 이름을 지정합니다.

imageUrl
ImageUrl

평가할 이미지의 URL을 포함하는 ImageUrl입니다.

options
PredictionAPIClientDetectImageUrlOptionalParams

선택적 매개 변수

callback

ServiceCallback<ImagePrediction>

콜백

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

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

매개 변수

projectId

string

프로젝트 ID입니다.

publishedName

string

평가할 모델의 이름을 지정합니다.

imageUrl
ImageUrl

평가할 이미지의 URL을 포함하는 ImageUrl입니다.

callback

ServiceCallback<ImagePrediction>

콜백

detectImageUrlWithNoStore(string, string, ImageUrl, PredictionAPIClientDetectImageUrlWithNoStoreOptionalParams)

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

매개 변수

projectId

string

프로젝트 ID입니다.

publishedName

string

평가할 모델의 이름을 지정합니다.

imageUrl
ImageUrl

평가할 이미지의 URL을 포함하는 {Iris.Web.Api.Models.ImageUrl}입니다.

반환

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

프로젝트 ID입니다.

publishedName

string

평가할 모델의 이름을 지정합니다.

imageUrl
ImageUrl

평가할 이미지의 URL을 포함하는 {Iris.Web.Api.Models.ImageUrl}입니다.

callback

ServiceCallback<ImagePrediction>

콜백

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

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

매개 변수

projectId

string

프로젝트 ID입니다.

publishedName

string

평가할 모델의 이름을 지정합니다.

imageUrl
ImageUrl

평가할 이미지의 URL을 포함하는 {Iris.Web.Api.Models.ImageUrl}입니다.

callback

ServiceCallback<ImagePrediction>

콜백

detectImageWithNoStore(string, string, HttpRequestBody, PredictionAPIClientDetectImageWithNoStoreOptionalParams)

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

매개 변수

projectId

string

프로젝트 ID입니다.

publishedName

string

평가할 모델의 이름을 지정합니다.

imageData
HttpRequestBody

이진 이미지 데이터입니다. 지원되는 형식은 JPEG, GIF, PNG 및 BMP입니다. 최대 4MB의 이미지를 지원합니다.

반환

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

프로젝트 ID입니다.

publishedName

string

평가할 모델의 이름을 지정합니다.

imageData
HttpRequestBody

이진 이미지 데이터입니다. 지원되는 형식은 JPEG, GIF, PNG 및 BMP입니다. 최대 4MB의 이미지를 지원합니다.

callback

ServiceCallback<ImagePrediction>

콜백

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

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

매개 변수

projectId

string

프로젝트 ID입니다.

publishedName

string

평가할 모델의 이름을 지정합니다.

imageData
HttpRequestBody

이진 이미지 데이터입니다. 지원되는 형식은 JPEG, GIF, PNG 및 BMP입니다. 최대 4MB의 이미지를 지원합니다.

callback

ServiceCallback<ImagePrediction>

콜백

상속된 메서드 세부 정보

sendOperationRequest(OperationArguments, OperationSpec, ServiceCallback<any>)

제공된 OperationSpec을 사용하여 채워진 HTTP 요청을 보냅니다.

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

매개 변수

operationArguments
OperationArguments

HTTP 요청의 템플릿 값이 채워질 인수입니다.

operationSpec
OperationSpec

httpRequest를 채우는 데 사용할 OperationSpec입니다.

callback

ServiceCallback<any>

응답을 받을 때 호출할 콜백입니다.

반환

Promise<RestResponse>

PredictionAPIClientContext.sendOperationRequest에서 상속됨

sendRequest(RequestPrepareOptions | WebResourceLike)

제공된 httpRequest를 보냅니다.

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

매개 변수

반환

PredictionAPIClientContext.sendRequest에서 상속됨