TrainingAPIClient class

Extends

建構函式

TrainingAPIClient(ServiceClientCredentials, string, ServiceClientOptions)

初始化 TrainingAPIClient 類別的新實例。

繼承的屬性

credentials
endpoint

方法

createImageRegions(string, ImageRegionCreateBatch, RequestOptionsBase)

此 API 接受一批映射區域,並選擇性地標記,以使用區域資訊更新現有的映射。 批次中有 64 個專案的限制。 如果成功建立所有區域,則會傳回 200 (OK) 狀態碼。 否則,將會傳回 207 (多重狀態) 狀態碼,而且每個區域的詳細狀態都會列在回應承載中。

createImageRegions(string, ImageRegionCreateBatch, RequestOptionsBase, ServiceCallback<ImageRegionCreateSummary>)
createImageRegions(string, ImageRegionCreateBatch, ServiceCallback<ImageRegionCreateSummary>)
createImagesFromData(string, HttpRequestBody, ServiceCallback<ImageCreateSummary>)
createImagesFromData(string, HttpRequestBody, TrainingAPIClientCreateImagesFromDataOptionalParams)

此 API 接受主體內容做為 multipart/form-data 和 application/octet-stream。 一次使用多部分多個影像檔時,最多可以傳送 64 個檔案。 如果成功建立所有映射,則會傳回 200 (OK) 狀態碼。 否則,將會傳回 207 (多重狀態) 狀態碼,而且每個影像的詳細狀態都會列在回應承載中。

createImagesFromData(string, HttpRequestBody, TrainingAPIClientCreateImagesFromDataOptionalParams, ServiceCallback<ImageCreateSummary>)
createImagesFromFiles(string, ImageFileCreateBatch, RequestOptionsBase)

此 API 會接受一批檔案,並選擇性地標記來建立映射。 其限制為 64 個影像和 20 個標記。 如果成功建立所有映射,則會傳回 200 (OK) 狀態碼。 否則,將會傳回 207 (多重狀態) 狀態碼,而且每個影像的詳細狀態都會列在回應承載中。

createImagesFromFiles(string, ImageFileCreateBatch, RequestOptionsBase, ServiceCallback<ImageCreateSummary>)
createImagesFromFiles(string, ImageFileCreateBatch, ServiceCallback<ImageCreateSummary>)
createImagesFromPredictions(string, ImageIdCreateBatch, RequestOptionsBase)

此 API 會從指定的預測影像建立一批影像。 其限制為 64 個影像和 20 個標記。 如果成功建立所有映射,則會傳回 200 (OK) 狀態碼。 否則,將會傳回 207 (多重狀態) 狀態碼,而且每個影像的詳細狀態都會列在回應承載中。

createImagesFromPredictions(string, ImageIdCreateBatch, RequestOptionsBase, ServiceCallback<ImageCreateSummary>)
createImagesFromPredictions(string, ImageIdCreateBatch, ServiceCallback<ImageCreateSummary>)
createImagesFromUrls(string, ImageUrlCreateBatch, RequestOptionsBase)

此 API 接受一批 URL,並選擇性地標記來建立影像。 其限制為 64 個影像和 20 個標記。 如果成功建立所有映射,則會傳回 200 (OK) 狀態碼。 否則,將會傳回 207 (多重狀態) 狀態碼,而且每個影像的詳細狀態都會列在回應承載中。

createImagesFromUrls(string, ImageUrlCreateBatch, RequestOptionsBase, ServiceCallback<ImageCreateSummary>)
createImagesFromUrls(string, ImageUrlCreateBatch, ServiceCallback<ImageCreateSummary>)
createImageTags(string, ImageTagCreateBatch, RequestOptionsBase)
createImageTags(string, ImageTagCreateBatch, RequestOptionsBase, ServiceCallback<ImageTagCreateSummary>)
createImageTags(string, ImageTagCreateBatch, ServiceCallback<ImageTagCreateSummary>)
createProject(string, ServiceCallback<Project>)
createProject(string, TrainingAPIClientCreateProjectOptionalParams)
createProject(string, TrainingAPIClientCreateProjectOptionalParams, ServiceCallback<Project>)
createTag(string, string, ServiceCallback<Tag>)
createTag(string, string, TrainingAPIClientCreateTagOptionalParams)
createTag(string, string, TrainingAPIClientCreateTagOptionalParams, ServiceCallback<Tag>)
deleteImageRegions(string, string[], RequestOptionsBase)
deleteImageRegions(string, string[], RequestOptionsBase, ServiceCallback<void>)
deleteImageRegions(string, string[], ServiceCallback<void>)
deleteImages(string, ServiceCallback<void>)
deleteImages(string, TrainingAPIClientDeleteImagesOptionalParams)
deleteImages(string, TrainingAPIClientDeleteImagesOptionalParams, ServiceCallback<void>)
deleteImageTags(string, string[], string[], RequestOptionsBase)
deleteImageTags(string, string[], string[], RequestOptionsBase, ServiceCallback<void>)
deleteImageTags(string, string[], string[], ServiceCallback<void>)
deleteIteration(string, string, RequestOptionsBase)
deleteIteration(string, string, RequestOptionsBase, ServiceCallback<void>)
deleteIteration(string, string, ServiceCallback<void>)
deletePrediction(string, string[], RequestOptionsBase)
deletePrediction(string, string[], RequestOptionsBase, ServiceCallback<void>)
deletePrediction(string, string[], ServiceCallback<void>)
deleteProject(string, RequestOptionsBase)
deleteProject(string, RequestOptionsBase, ServiceCallback<void>)
deleteProject(string, ServiceCallback<void>)
deleteTag(string, string, RequestOptionsBase)
deleteTag(string, string, RequestOptionsBase, ServiceCallback<void>)
deleteTag(string, string, ServiceCallback<void>)
exportIteration(string, string, Platform, ServiceCallback<ExportModel>)
exportIteration(string, string, Platform, TrainingAPIClientExportIterationOptionalParams)
exportIteration(string, string, Platform, TrainingAPIClientExportIterationOptionalParams, ServiceCallback<ExportModel>)
exportProject(string, RequestOptionsBase)
exportProject(string, RequestOptionsBase, ServiceCallback<ProjectExport>)
exportProject(string, ServiceCallback<ProjectExport>)
getArtifact(string, string, RequestOptionsBase)
getArtifact(string, string, RequestOptionsBase, ServiceCallback<void>)
getArtifact(string, string, ServiceCallback<void>)
getDomain(string, RequestOptionsBase)
getDomain(string, RequestOptionsBase, ServiceCallback<Domain>)
getDomain(string, ServiceCallback<Domain>)
getDomains(RequestOptionsBase)
getDomains(RequestOptionsBase, ServiceCallback<Domain[]>)
getDomains(ServiceCallback<Domain[]>)
getExports(string, string, RequestOptionsBase)
getExports(string, string, RequestOptionsBase, ServiceCallback<ExportModel[]>)
getExports(string, string, ServiceCallback<ExportModel[]>)
getImageCount(string, ServiceCallback<number>)
getImageCount(string, TrainingAPIClientGetImageCountOptionalParams)

篩選是在 和/或關聯性上。 例如,如果提供的標記識別項適用于 「Dog」 和 「Cat」 標籤,則只會傳回以 Dog 和/或 Cat 標記標記的影像

getImageCount(string, TrainingAPIClientGetImageCountOptionalParams, ServiceCallback<number>)
getImagePerformanceCount(string, string, ServiceCallback<number>)
getImagePerformanceCount(string, string, TrainingAPIClientGetImagePerformanceCountOptionalParams)

篩選是在 和/或關聯性上。 例如,如果提供的標記識別項適用于 「Dog」 和 「Cat」 標籤,則只會傳回以 Dog 和/或 Cat 標記標記的影像

getImagePerformanceCount(string, string, TrainingAPIClientGetImagePerformanceCountOptionalParams, ServiceCallback<number>)
getImagePerformances(string, string, ServiceCallback<ImagePerformance[]>)
getImagePerformances(string, string, TrainingAPIClientGetImagePerformancesOptionalParams)

此 API 支援批次處理和範圍選取。 根據預設,它只會傳回前 50 個符合影像的影像。 使用 {take} 和 {skip} 參數來控制指定批次中要傳回的影像數目。 篩選是在 和/或關聯性上。 例如,如果提供的標記識別項適用于 「Dog」 和 「Cat」 標籤,則只會傳回以 Dog 和/或 Cat 標記標記的影像

getImagePerformances(string, string, TrainingAPIClientGetImagePerformancesOptionalParams, ServiceCallback<ImagePerformance[]>)
getImageRegionProposals(string, string, RequestOptionsBase)

此 API 將取得影像的區域提案,以及區域信賴度。 如果找不到提案,它會傳回空陣列。

getImageRegionProposals(string, string, RequestOptionsBase, ServiceCallback<ImageRegionProposal>)
getImageRegionProposals(string, string, ServiceCallback<ImageRegionProposal>)
getImages(string, ServiceCallback<Image[]>)
getImages(string, TrainingAPIClientGetImagesOptionalParams)

此 API 支援批次處理和範圍選取。 根據預設,它只會傳回前 50 個符合影像的影像。 使用 {take} 和 {skip} 參數來控制指定批次中要傳回的影像數目。 篩選是在 和/或關聯性上。 例如,如果提供的標記識別項適用于 「Dog」 和 「Cat」 標籤,則只會傳回以 Dog 和/或 Cat 標記標記的影像

getImages(string, TrainingAPIClientGetImagesOptionalParams, ServiceCallback<Image[]>)
getImagesByIds(string, ServiceCallback<Image[]>)
getImagesByIds(string, TrainingAPIClientGetImagesByIdsOptionalParams)

此 API 會針對指定的標記傳回一組影像,並選擇性地反復專案。 如果未指定任何反復專案,則會使用目前的工作區。

getImagesByIds(string, TrainingAPIClientGetImagesByIdsOptionalParams, ServiceCallback<Image[]>)
getIteration(string, string, RequestOptionsBase)
getIteration(string, string, RequestOptionsBase, ServiceCallback<Iteration>)
getIteration(string, string, ServiceCallback<Iteration>)
getIterationPerformance(string, string, ServiceCallback<IterationPerformance>)
getIterationPerformance(string, string, TrainingAPIClientGetIterationPerformanceOptionalParams)
getIterationPerformance(string, string, TrainingAPIClientGetIterationPerformanceOptionalParams, ServiceCallback<IterationPerformance>)
getIterations(string, RequestOptionsBase)
getIterations(string, RequestOptionsBase, ServiceCallback<Iteration[]>)
getIterations(string, ServiceCallback<Iteration[]>)
getProject(string, RequestOptionsBase)
getProject(string, RequestOptionsBase, ServiceCallback<Project>)
getProject(string, ServiceCallback<Project>)
getProjects(RequestOptionsBase)
getProjects(RequestOptionsBase, ServiceCallback<Project[]>)
getProjects(ServiceCallback<Project[]>)
getTag(string, string, ServiceCallback<Tag>)
getTag(string, string, TrainingAPIClientGetTagOptionalParams)
getTag(string, string, TrainingAPIClientGetTagOptionalParams, ServiceCallback<Tag>)
getTaggedImageCount(string, ServiceCallback<number>)
getTaggedImageCount(string, TrainingAPIClientGetTaggedImageCountOptionalParams)

篩選是在 和/或關聯性上。 例如,如果提供的標記識別項適用于 「Dog」 和 「Cat」 標籤,則只會傳回以 Dog 和/或 Cat 標記標記的影像

getTaggedImageCount(string, TrainingAPIClientGetTaggedImageCountOptionalParams, ServiceCallback<number>)
getTaggedImages(string, ServiceCallback<Image[]>)
getTaggedImages(string, TrainingAPIClientGetTaggedImagesOptionalParams)

此 API 支援批次處理和範圍選取。 根據預設,它只會傳回前 50 個符合影像的影像。 使用 {take} 和 {skip} 參數來控制指定批次中要傳回的影像數目。 篩選是在 和/或關聯性上。 例如,如果提供的標記識別項適用于 「Dog」 和 「Cat」 標籤,則只會傳回以 Dog 和/或 Cat 標記標記的影像

getTaggedImages(string, TrainingAPIClientGetTaggedImagesOptionalParams, ServiceCallback<Image[]>)
getTags(string, ServiceCallback<Tag[]>)
getTags(string, TrainingAPIClientGetTagsOptionalParams)
getTags(string, TrainingAPIClientGetTagsOptionalParams, ServiceCallback<Tag[]>)
getUntaggedImageCount(string, ServiceCallback<number>)
getUntaggedImageCount(string, TrainingAPIClientGetUntaggedImageCountOptionalParams)

此 API 會傳回沒有指定專案標籤的影像,並選擇性地傳回反復專案。 如果未指定任何反復專案,則會使用目前的工作區。

getUntaggedImageCount(string, TrainingAPIClientGetUntaggedImageCountOptionalParams, ServiceCallback<number>)
getUntaggedImages(string, ServiceCallback<Image[]>)
getUntaggedImages(string, TrainingAPIClientGetUntaggedImagesOptionalParams)

此 API 支援批次處理和範圍選取。 根據預設,它只會傳回前 50 個符合影像的影像。 使用 {take} 和 {skip} 參數來控制指定批次中要傳回的影像數目。

getUntaggedImages(string, TrainingAPIClientGetUntaggedImagesOptionalParams, ServiceCallback<Image[]>)
importProject(string, ServiceCallback<Project>)
importProject(string, TrainingAPIClientImportProjectOptionalParams)
importProject(string, TrainingAPIClientImportProjectOptionalParams, ServiceCallback<Project>)
publishIteration(string, string, string, string, ServiceCallback<boolean>)
publishIteration(string, string, string, string, TrainingAPIClientPublishIterationOptionalParams)
publishIteration(string, string, string, string, TrainingAPIClientPublishIterationOptionalParams, ServiceCallback<boolean>)
queryPredictions(string, PredictionQueryToken, RequestOptionsBase)
queryPredictions(string, PredictionQueryToken, RequestOptionsBase, ServiceCallback<PredictionQueryResult>)
queryPredictions(string, PredictionQueryToken, ServiceCallback<PredictionQueryResult>)
querySuggestedImageCount(string, string, TagFilter, RequestOptionsBase)

此 API 會採用 tagIds,以針對指定的閾值取得每個建議標籤的未標記影像計數。

querySuggestedImageCount(string, string, TagFilter, RequestOptionsBase, ServiceCallback<{[propertyName: string]: number}>)
querySuggestedImageCount(string, string, TagFilter, ServiceCallback<{[propertyName: string]: number}>)
querySuggestedImages(string, string, SuggestedTagAndRegionQueryToken, RequestOptionsBase)

此 API 會擷取由建議標籤識別碼篩選的未標記影像。 如果找不到任何影像,則會傳回空陣列。

querySuggestedImages(string, string, SuggestedTagAndRegionQueryToken, RequestOptionsBase, ServiceCallback<SuggestedTagAndRegionQuery>)
querySuggestedImages(string, string, SuggestedTagAndRegionQueryToken, ServiceCallback<SuggestedTagAndRegionQuery>)
quickTestImage(string, HttpRequestBody, ServiceCallback<ImagePrediction>)
quickTestImage(string, HttpRequestBody, TrainingAPIClientQuickTestImageOptionalParams)
quickTestImage(string, HttpRequestBody, TrainingAPIClientQuickTestImageOptionalParams, ServiceCallback<ImagePrediction>)
quickTestImageUrl(string, ImageUrl, ServiceCallback<ImagePrediction>)
quickTestImageUrl(string, ImageUrl, TrainingAPIClientQuickTestImageUrlOptionalParams)
quickTestImageUrl(string, ImageUrl, TrainingAPIClientQuickTestImageUrlOptionalParams, ServiceCallback<ImagePrediction>)
suggestTagsAndRegions(string, string, string[], RequestOptionsBase)

此 API 會取得陣列/批次未標記影像的建議標籤和區域,以及標記的信賴度。 如果找不到任何標記,會傳回空陣列。 批次中有 64 個映射的限制。

suggestTagsAndRegions(string, string, string[], RequestOptionsBase, ServiceCallback<SuggestedTagAndRegion[]>)
suggestTagsAndRegions(string, string, string[], ServiceCallback<SuggestedTagAndRegion[]>)
trainProject(string, ServiceCallback<Iteration>)
trainProject(string, TrainingAPIClientTrainProjectOptionalParams)
trainProject(string, TrainingAPIClientTrainProjectOptionalParams, ServiceCallback<Iteration>)
unpublishIteration(string, string, RequestOptionsBase)
unpublishIteration(string, string, RequestOptionsBase, ServiceCallback<void>)
unpublishIteration(string, string, ServiceCallback<void>)
updateImageMetadata(string, string[], {[propertyName: string]: string}, RequestOptionsBase)

此 API 接受一批映射識別碼和中繼資料來更新映射。 有 64 個影像的限制。

updateImageMetadata(string, string[], {[propertyName: string]: string}, RequestOptionsBase, ServiceCallback<ImageMetadataUpdateSummary>)
updateImageMetadata(string, string[], {[propertyName: string]: string}, ServiceCallback<ImageMetadataUpdateSummary>)
updateIteration(string, string, Iteration, RequestOptionsBase)
updateIteration(string, string, Iteration, RequestOptionsBase, ServiceCallback<Iteration>)
updateIteration(string, string, Iteration, ServiceCallback<Iteration>)
updateProject(string, Project, RequestOptionsBase)
updateProject(string, Project, RequestOptionsBase, ServiceCallback<Project>)
updateProject(string, Project, ServiceCallback<Project>)
updateTag(string, string, Tag, RequestOptionsBase)
updateTag(string, string, Tag, RequestOptionsBase, ServiceCallback<Tag>)
updateTag(string, string, Tag, ServiceCallback<Tag>)

繼承的方法

sendOperationRequest(OperationArguments, OperationSpec, ServiceCallback<any>)

傳送使用提供的 OperationSpec 填入的 HTTP 要求。

sendRequest(RequestPrepareOptions | WebResourceLike)

傳送提供的 HTTPRequest。

建構函式詳細資料

TrainingAPIClient(ServiceClientCredentials, string, ServiceClientOptions)

初始化 TrainingAPIClient 類別的新實例。

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

參數

credentials
ServiceClientCredentials

可唯一識別用戶端訂用帳戶的訂用帳號憑證。

endpoint

string

支援的認知服務端點。

options
ServiceClientOptions

參數選項

繼承的屬性詳細資料

credentials

credentials: ServiceClientCredentials

屬性值

繼承自TrainingAPIClientCoNtext.credentials

endpoint

endpoint: string

屬性值

string

繼承自TrainingAPIClientCoNtext.endpoint

方法詳細資料

createImageRegions(string, ImageRegionCreateBatch, RequestOptionsBase)

此 API 接受一批映射區域,並選擇性地標記,以使用區域資訊更新現有的映射。 批次中有 64 個專案的限制。 如果成功建立所有區域,則會傳回 200 (OK) 狀態碼。 否則,將會傳回 207 (多重狀態) 狀態碼,而且每個區域的詳細狀態都會列在回應承載中。

function createImageRegions(projectId: string, batch: ImageRegionCreateBatch, options?: RequestOptionsBase): Promise<CreateImageRegionsResponse>

參數

projectId

string

專案識別碼。

batch
ImageRegionCreateBatch

包含標籤和周框方塊的映射區域批次。 限制為 64。

options
RequestOptionsBase

選擇性參數

傳回

Promise < Models.CreateImageRegionsResponse>

createImageRegions(string, ImageRegionCreateBatch, RequestOptionsBase, ServiceCallback<ImageRegionCreateSummary>)

function createImageRegions(projectId: string, batch: ImageRegionCreateBatch, options: RequestOptionsBase, callback: ServiceCallback<ImageRegionCreateSummary>)

參數

projectId

string

專案識別碼。

batch
ImageRegionCreateBatch

包含標籤和周框方塊的映射區域批次。 限制為 64。

options
RequestOptionsBase

選擇性參數

createImageRegions(string, ImageRegionCreateBatch, ServiceCallback<ImageRegionCreateSummary>)

function createImageRegions(projectId: string, batch: ImageRegionCreateBatch, callback: ServiceCallback<ImageRegionCreateSummary>)

參數

projectId

string

專案識別碼。

batch
ImageRegionCreateBatch

包含標籤和周框方塊的映射區域批次。 限制為 64。

createImagesFromData(string, HttpRequestBody, ServiceCallback<ImageCreateSummary>)

function createImagesFromData(projectId: string, imageData: HttpRequestBody, callback: ServiceCallback<ImageCreateSummary>)

參數

projectId

string

專案識別碼。

imageData
HttpRequestBody

二進位影像資料。 支援的格式包括 JPEG、GIF、PNG 和 BMP。 支援最多 6MB 的映射。

createImagesFromData(string, HttpRequestBody, TrainingAPIClientCreateImagesFromDataOptionalParams)

此 API 接受主體內容做為 multipart/form-data 和 application/octet-stream。 一次使用多部分多個影像檔時,最多可以傳送 64 個檔案。 如果成功建立所有映射,則會傳回 200 (OK) 狀態碼。 否則,將會傳回 207 (多重狀態) 狀態碼,而且每個影像的詳細狀態都會列在回應承載中。

function createImagesFromData(projectId: string, imageData: HttpRequestBody, options?: TrainingAPIClientCreateImagesFromDataOptionalParams): Promise<CreateImagesFromDataResponse>

參數

projectId

string

專案識別碼。

imageData
HttpRequestBody

二進位影像資料。 支援的格式包括 JPEG、GIF、PNG 和 BMP。 支援最多 6MB 的映射。

傳回

Promise < Models.CreateImagesFromDataResponse>

createImagesFromData(string, HttpRequestBody, TrainingAPIClientCreateImagesFromDataOptionalParams, ServiceCallback<ImageCreateSummary>)

function createImagesFromData(projectId: string, imageData: HttpRequestBody, options: TrainingAPIClientCreateImagesFromDataOptionalParams, callback: ServiceCallback<ImageCreateSummary>)

參數

projectId

string

專案識別碼。

imageData
HttpRequestBody

二進位影像資料。 支援的格式包括 JPEG、GIF、PNG 和 BMP。 支援最多 6MB 的映射。

createImagesFromFiles(string, ImageFileCreateBatch, RequestOptionsBase)

此 API 會接受一批檔案,並選擇性地標記來建立映射。 其限制為 64 個影像和 20 個標記。 如果成功建立所有映射,則會傳回 200 (OK) 狀態碼。 否則,將會傳回 207 (多重狀態) 狀態碼,而且每個影像的詳細狀態都會列在回應承載中。

function createImagesFromFiles(projectId: string, batch: ImageFileCreateBatch, options?: RequestOptionsBase): Promise<CreateImagesFromFilesResponse>

參數

projectId

string

專案識別碼。

batch
ImageFileCreateBatch

要新增的映射檔案批次。 每個批次限制為 64 個影像和 20 個標籤。

options
RequestOptionsBase

選擇性參數

傳回

Promise < Models.CreateImagesFromFilesResponse>

createImagesFromFiles(string, ImageFileCreateBatch, RequestOptionsBase, ServiceCallback<ImageCreateSummary>)

function createImagesFromFiles(projectId: string, batch: ImageFileCreateBatch, options: RequestOptionsBase, callback: ServiceCallback<ImageCreateSummary>)

參數

projectId

string

專案識別碼。

batch
ImageFileCreateBatch

要新增的映射檔案批次。 每個批次限制為 64 個影像和 20 個標籤。

options
RequestOptionsBase

選擇性參數

createImagesFromFiles(string, ImageFileCreateBatch, ServiceCallback<ImageCreateSummary>)

function createImagesFromFiles(projectId: string, batch: ImageFileCreateBatch, callback: ServiceCallback<ImageCreateSummary>)

參數

projectId

string

專案識別碼。

batch
ImageFileCreateBatch

要新增的映射檔案批次。 每個批次限制為 64 個影像和 20 個標籤。

createImagesFromPredictions(string, ImageIdCreateBatch, RequestOptionsBase)

此 API 會從指定的預測影像建立一批影像。 其限制為 64 個影像和 20 個標記。 如果成功建立所有映射,則會傳回 200 (OK) 狀態碼。 否則,將會傳回 207 (多重狀態) 狀態碼,而且每個影像的詳細狀態都會列在回應承載中。

function createImagesFromPredictions(projectId: string, batch: ImageIdCreateBatch, options?: RequestOptionsBase): Promise<CreateImagesFromPredictionsResponse>

參數

projectId

string

專案識別碼。

batch
ImageIdCreateBatch

影像、標記識別項和中繼資料。 每個批次限制為 64 個影像和 20 個標籤。

options
RequestOptionsBase

選擇性參數

傳回

Promise < Models.CreateImagesFromPredictionsResponse>

createImagesFromPredictions(string, ImageIdCreateBatch, RequestOptionsBase, ServiceCallback<ImageCreateSummary>)

function createImagesFromPredictions(projectId: string, batch: ImageIdCreateBatch, options: RequestOptionsBase, callback: ServiceCallback<ImageCreateSummary>)

參數

projectId

string

專案識別碼。

batch
ImageIdCreateBatch

影像、標記識別項和中繼資料。 每個批次限制為 64 個影像和 20 個標籤。

options
RequestOptionsBase

選擇性參數

createImagesFromPredictions(string, ImageIdCreateBatch, ServiceCallback<ImageCreateSummary>)

function createImagesFromPredictions(projectId: string, batch: ImageIdCreateBatch, callback: ServiceCallback<ImageCreateSummary>)

參數

projectId

string

專案識別碼。

batch
ImageIdCreateBatch

影像、標記識別項和中繼資料。 每個批次限制為 64 個影像和 20 個標籤。

createImagesFromUrls(string, ImageUrlCreateBatch, RequestOptionsBase)

此 API 接受一批 URL,並選擇性地標記來建立影像。 其限制為 64 個影像和 20 個標記。 如果成功建立所有映射,則會傳回 200 (OK) 狀態碼。 否則,將會傳回 207 (多重狀態) 狀態碼,而且每個影像的詳細狀態都會列在回應承載中。

function createImagesFromUrls(projectId: string, batch: ImageUrlCreateBatch, options?: RequestOptionsBase): Promise<CreateImagesFromUrlsResponse>

參數

projectId

string

專案識別碼。

batch
ImageUrlCreateBatch

影像 URL、標記識別項和中繼資料。 每個批次限制為 64 個影像和 20 個標籤。

options
RequestOptionsBase

選擇性參數

傳回

Promise < Models.CreateImagesFromUrlsResponse>

createImagesFromUrls(string, ImageUrlCreateBatch, RequestOptionsBase, ServiceCallback<ImageCreateSummary>)

function createImagesFromUrls(projectId: string, batch: ImageUrlCreateBatch, options: RequestOptionsBase, callback: ServiceCallback<ImageCreateSummary>)

參數

projectId

string

專案識別碼。

batch
ImageUrlCreateBatch

影像 URL、標記識別項和中繼資料。 每個批次限制為 64 個影像和 20 個標籤。

options
RequestOptionsBase

選擇性參數

createImagesFromUrls(string, ImageUrlCreateBatch, ServiceCallback<ImageCreateSummary>)

function createImagesFromUrls(projectId: string, batch: ImageUrlCreateBatch, callback: ServiceCallback<ImageCreateSummary>)

參數

projectId

string

專案識別碼。

batch
ImageUrlCreateBatch

影像 URL、標記識別項和中繼資料。 每個批次限制為 64 個影像和 20 個標籤。

createImageTags(string, ImageTagCreateBatch, RequestOptionsBase)

function createImageTags(projectId: string, batch: ImageTagCreateBatch, options?: RequestOptionsBase): Promise<CreateImageTagsResponse>

參數

projectId

string

專案識別碼。

batch
ImageTagCreateBatch

影像標籤的批次。 每個批次限制為 128 個標籤。

options
RequestOptionsBase

選擇性參數

傳回

Promise < Models.CreateImageTagsResponse>

createImageTags(string, ImageTagCreateBatch, RequestOptionsBase, ServiceCallback<ImageTagCreateSummary>)

function createImageTags(projectId: string, batch: ImageTagCreateBatch, options: RequestOptionsBase, callback: ServiceCallback<ImageTagCreateSummary>)

參數

projectId

string

專案識別碼。

batch
ImageTagCreateBatch

影像標籤的批次。 每個批次限制為 128 個標籤。

options
RequestOptionsBase

選擇性參數

createImageTags(string, ImageTagCreateBatch, ServiceCallback<ImageTagCreateSummary>)

function createImageTags(projectId: string, batch: ImageTagCreateBatch, callback: ServiceCallback<ImageTagCreateSummary>)

參數

projectId

string

專案識別碼。

batch
ImageTagCreateBatch

影像標籤的批次。 每個批次限制為 128 個標籤。

createProject(string, ServiceCallback<Project>)

function createProject(name: string, callback: ServiceCallback<Project>)

參數

name

string

專案的名稱。

callback

ServiceCallback<Project>

回呼

createProject(string, TrainingAPIClientCreateProjectOptionalParams)

function createProject(name: string, options?: TrainingAPIClientCreateProjectOptionalParams): Promise<CreateProjectResponse>

參數

name

string

專案的名稱。

傳回

Promise < Models.CreateProjectResponse>

createProject(string, TrainingAPIClientCreateProjectOptionalParams, ServiceCallback<Project>)

function createProject(name: string, options: TrainingAPIClientCreateProjectOptionalParams, callback: ServiceCallback<Project>)

參數

name

string

專案的名稱。

callback

ServiceCallback<Project>

回呼

createTag(string, string, ServiceCallback<Tag>)

function createTag(projectId: string, name: string, callback: ServiceCallback<Tag>)

參數

projectId

string

專案識別碼。

name

string

標記名稱。

callback

ServiceCallback<Tag>

回呼

createTag(string, string, TrainingAPIClientCreateTagOptionalParams)

function createTag(projectId: string, name: string, options?: TrainingAPIClientCreateTagOptionalParams): Promise<CreateTagResponse>

參數

projectId

string

專案識別碼。

name

string

標記名稱。

傳回

Promise < Models.CreateTagResponse>

createTag(string, string, TrainingAPIClientCreateTagOptionalParams, ServiceCallback<Tag>)

function createTag(projectId: string, name: string, options: TrainingAPIClientCreateTagOptionalParams, callback: ServiceCallback<Tag>)

參數

projectId

string

專案識別碼。

name

string

標記名稱。

callback

ServiceCallback<Tag>

回呼

deleteImageRegions(string, string[], RequestOptionsBase)

function deleteImageRegions(projectId: string, regionIds: string[], options?: RequestOptionsBase): Promise<RestResponse>

參數

projectId

string

專案識別碼。

regionIds

string[]

要刪除的區域。 限制為 64。

options
RequestOptionsBase

選擇性參數

傳回

Promise<RestResponse>

Promise < msRest.RestResponse>

deleteImageRegions(string, string[], RequestOptionsBase, ServiceCallback<void>)

function deleteImageRegions(projectId: string, regionIds: string[], options: RequestOptionsBase, callback: ServiceCallback<void>)

參數

projectId

string

專案識別碼。

regionIds

string[]

要刪除的區域。 限制為 64。

options
RequestOptionsBase

選擇性參數

callback

ServiceCallback<void>

回呼

deleteImageRegions(string, string[], ServiceCallback<void>)

function deleteImageRegions(projectId: string, regionIds: string[], callback: ServiceCallback<void>)

參數

projectId

string

專案識別碼。

regionIds

string[]

要刪除的區域。 限制為 64。

callback

ServiceCallback<void>

回呼

deleteImages(string, ServiceCallback<void>)

function deleteImages(projectId: string, callback: ServiceCallback<void>)

參數

projectId

string

專案識別碼。

callback

ServiceCallback<void>

回呼

deleteImages(string, TrainingAPIClientDeleteImagesOptionalParams)

function deleteImages(projectId: string, options?: TrainingAPIClientDeleteImagesOptionalParams): Promise<RestResponse>

參數

projectId

string

專案識別碼。

傳回

Promise<RestResponse>

Promise < msRest.RestResponse>

deleteImages(string, TrainingAPIClientDeleteImagesOptionalParams, ServiceCallback<void>)

function deleteImages(projectId: string, options: TrainingAPIClientDeleteImagesOptionalParams, callback: ServiceCallback<void>)

參數

projectId

string

專案識別碼。

callback

ServiceCallback<void>

回呼

deleteImageTags(string, string[], string[], RequestOptionsBase)

function deleteImageTags(projectId: string, imageIds: string[], tagIds: string[], options?: RequestOptionsBase): Promise<RestResponse>

參數

projectId

string

專案識別碼。

imageIds

string[]

影像識別碼。 限制為 64 個影像。

tagIds

string[]

要從指定的影像中刪除的標記。 限制為 20 個標籤。

options
RequestOptionsBase

選擇性參數

傳回

Promise<RestResponse>

Promise < msRest.RestResponse>

deleteImageTags(string, string[], string[], RequestOptionsBase, ServiceCallback<void>)

function deleteImageTags(projectId: string, imageIds: string[], tagIds: string[], options: RequestOptionsBase, callback: ServiceCallback<void>)

參數

projectId

string

專案識別碼。

imageIds

string[]

影像識別碼。 限制為 64 個影像。

tagIds

string[]

要從指定的影像中刪除的標記。 限制為 20 個標籤。

options
RequestOptionsBase

選擇性參數

callback

ServiceCallback<void>

回呼

deleteImageTags(string, string[], string[], ServiceCallback<void>)

function deleteImageTags(projectId: string, imageIds: string[], tagIds: string[], callback: ServiceCallback<void>)

參數

projectId

string

專案識別碼。

imageIds

string[]

影像識別碼。 限制為 64 個影像。

tagIds

string[]

要從指定的影像中刪除的標記。 限制為 20 個標記。

callback

ServiceCallback<void>

回呼

deleteIteration(string, string, RequestOptionsBase)

function deleteIteration(projectId: string, iterationId: string, options?: RequestOptionsBase): Promise<RestResponse>

參數

projectId

string

專案識別碼。

iterationId

string

反復專案識別碼。

options
RequestOptionsBase

選擇性參數

傳回

Promise<RestResponse>

Promise < msRest.RestResponse>

deleteIteration(string, string, RequestOptionsBase, ServiceCallback<void>)

function deleteIteration(projectId: string, iterationId: string, options: RequestOptionsBase, callback: ServiceCallback<void>)

參數

projectId

string

專案識別碼。

iterationId

string

反復專案識別碼。

options
RequestOptionsBase

選擇性參數

callback

ServiceCallback<void>

回呼

deleteIteration(string, string, ServiceCallback<void>)

function deleteIteration(projectId: string, iterationId: string, callback: ServiceCallback<void>)

參數

projectId

string

專案識別碼。

iterationId

string

反復專案識別碼。

callback

ServiceCallback<void>

回呼

deletePrediction(string, string[], RequestOptionsBase)

function deletePrediction(projectId: string, ids: string[], options?: RequestOptionsBase): Promise<RestResponse>

參數

projectId

string

專案識別碼。

ids

string[]

預測識別碼。 限制為 64。

options
RequestOptionsBase

選擇性參數

傳回

Promise<RestResponse>

Promise < msRest.RestResponse>

deletePrediction(string, string[], RequestOptionsBase, ServiceCallback<void>)

function deletePrediction(projectId: string, ids: string[], options: RequestOptionsBase, callback: ServiceCallback<void>)

參數

projectId

string

專案識別碼。

ids

string[]

預測識別碼。 限制為 64。

options
RequestOptionsBase

選擇性參數

callback

ServiceCallback<void>

回呼

deletePrediction(string, string[], ServiceCallback<void>)

function deletePrediction(projectId: string, ids: string[], callback: ServiceCallback<void>)

參數

projectId

string

專案識別碼。

ids

string[]

預測識別碼。 限制為 64。

callback

ServiceCallback<void>

回呼

deleteProject(string, RequestOptionsBase)

function deleteProject(projectId: string, options?: RequestOptionsBase): Promise<RestResponse>

參數

projectId

string

專案識別碼。

options
RequestOptionsBase

選擇性參數

傳回

Promise<RestResponse>

Promise < msRest.RestResponse>

deleteProject(string, RequestOptionsBase, ServiceCallback<void>)

function deleteProject(projectId: string, options: RequestOptionsBase, callback: ServiceCallback<void>)

參數

projectId

string

專案識別碼。

options
RequestOptionsBase

選擇性參數

callback

ServiceCallback<void>

回呼

deleteProject(string, ServiceCallback<void>)

function deleteProject(projectId: string, callback: ServiceCallback<void>)

參數

projectId

string

專案識別碼。

callback

ServiceCallback<void>

回呼

deleteTag(string, string, RequestOptionsBase)

function deleteTag(projectId: string, tagId: string, options?: RequestOptionsBase): Promise<RestResponse>

參數

projectId

string

專案識別碼。

tagId

string

要刪除之標記的識別碼。

options
RequestOptionsBase

選擇性參數

傳回

Promise<RestResponse>

Promise < msRest.RestResponse>

deleteTag(string, string, RequestOptionsBase, ServiceCallback<void>)

function deleteTag(projectId: string, tagId: string, options: RequestOptionsBase, callback: ServiceCallback<void>)

參數

projectId

string

專案識別碼。

tagId

string

要刪除之標記的識別碼。

options
RequestOptionsBase

選擇性參數

callback

ServiceCallback<void>

回呼

deleteTag(string, string, ServiceCallback<void>)

function deleteTag(projectId: string, tagId: string, callback: ServiceCallback<void>)

參數

projectId

string

專案識別碼。

tagId

string

要刪除之標記的識別碼。

callback

ServiceCallback<void>

回呼

exportIteration(string, string, Platform, ServiceCallback<ExportModel>)

function exportIteration(projectId: string, iterationId: string, platform: Platform, callback: ServiceCallback<ExportModel>)

參數

projectId

string

專案識別碼。

iterationId

string

反復專案識別碼。

platform
Platform

目標平臺。 可能的值包括:'CoreML'、'TensorFlow'、'DockerFile'、'ONNX'、'VAIDK'、'OpenVino'

callback

ServiceCallback<ExportModel>

回呼

exportIteration(string, string, Platform, TrainingAPIClientExportIterationOptionalParams)

function exportIteration(projectId: string, iterationId: string, platform: Platform, options?: TrainingAPIClientExportIterationOptionalParams): Promise<ExportIterationResponse>

參數

projectId

string

專案識別碼。

iterationId

string

反復專案識別碼。

platform
Platform

目標平臺。 可能的值包括:'CoreML'、'TensorFlow'、'DockerFile'、'ONNX'、'VAIDK'、'OpenVino'

傳回

Promise < Models.ExportIterationResponse>

exportIteration(string, string, Platform, TrainingAPIClientExportIterationOptionalParams, ServiceCallback<ExportModel>)

function exportIteration(projectId: string, iterationId: string, platform: Platform, options: TrainingAPIClientExportIterationOptionalParams, callback: ServiceCallback<ExportModel>)

參數

projectId

string

專案識別碼。

iterationId

string

反復專案識別碼。

platform
Platform

目標平臺。 可能的值包括:'CoreML'、'TensorFlow'、'DockerFile'、'ONNX'、'VAIDK'、'OpenVino'

callback

ServiceCallback<ExportModel>

回呼

exportProject(string, RequestOptionsBase)

function exportProject(projectId: string, options?: RequestOptionsBase): Promise<ExportProjectResponse>

參數

projectId

string

要匯出之專案的專案識別碼。

options
RequestOptionsBase

選擇性參數

傳回

Promise < Models.ExportProjectResponse>

exportProject(string, RequestOptionsBase, ServiceCallback<ProjectExport>)

function exportProject(projectId: string, options: RequestOptionsBase, callback: ServiceCallback<ProjectExport>)

參數

projectId

string

要匯出之專案的專案識別碼。

options
RequestOptionsBase

選擇性參數

callback

ServiceCallback<ProjectExport>

回呼

exportProject(string, ServiceCallback<ProjectExport>)

function exportProject(projectId: string, callback: ServiceCallback<ProjectExport>)

參數

projectId

string

要匯出之專案的專案識別碼。

callback

ServiceCallback<ProjectExport>

回呼

getArtifact(string, string, RequestOptionsBase)

function getArtifact(projectId: string, path: string, options?: RequestOptionsBase): Promise<GetArtifactResponse>

參數

projectId

string

專案識別碼。

path

string

成品的相對路徑。

options
RequestOptionsBase

選擇性參數

傳回

Promise < Models.GetArtifactResponse>

getArtifact(string, string, RequestOptionsBase, ServiceCallback<void>)

function getArtifact(projectId: string, path: string, options: RequestOptionsBase, callback: ServiceCallback<void>)

參數

projectId

string

專案識別碼。

path

string

成品的相對路徑。

options
RequestOptionsBase

選擇性參數

callback

ServiceCallback<void>

回呼

getArtifact(string, string, ServiceCallback<void>)

function getArtifact(projectId: string, path: string, callback: ServiceCallback<void>)

參數

projectId

string

專案識別碼。

path

string

成品的相對路徑。

callback

ServiceCallback<void>

回呼

getDomain(string, RequestOptionsBase)

function getDomain(domainId: string, options?: RequestOptionsBase): Promise<GetDomainResponse>

參數

domainId

string

要取得相關資訊之網域的識別碼。

options
RequestOptionsBase

選擇性參數

傳回

Promise < Models.GetDomainResponse>

getDomain(string, RequestOptionsBase, ServiceCallback<Domain>)

function getDomain(domainId: string, options: RequestOptionsBase, callback: ServiceCallback<Domain>)

參數

domainId

string

要取得相關資訊之網域的識別碼。

options
RequestOptionsBase

選擇性參數

callback

ServiceCallback<Domain>

回呼

getDomain(string, ServiceCallback<Domain>)

function getDomain(domainId: string, callback: ServiceCallback<Domain>)

參數

domainId

string

要取得相關資訊之網域的識別碼。

callback

ServiceCallback<Domain>

回呼

getDomains(RequestOptionsBase)

function getDomains(options?: RequestOptionsBase): Promise<GetDomainsResponse>

參數

options
RequestOptionsBase

選擇性參數

傳回

Promise < Models.GetDomainsResponse>

getDomains(RequestOptionsBase, ServiceCallback<Domain[]>)

function getDomains(options: RequestOptionsBase, callback: ServiceCallback<Domain[]>)

參數

options
RequestOptionsBase

選擇性參數

callback

ServiceCallback<Domain[]>

回呼

getDomains(ServiceCallback<Domain[]>)

function getDomains(callback: ServiceCallback<Domain[]>)

參數

callback

ServiceCallback<Domain[]>

回呼

getExports(string, string, RequestOptionsBase)

function getExports(projectId: string, iterationId: string, options?: RequestOptionsBase): Promise<GetExportsResponse>

參數

projectId

string

專案識別碼。

iterationId

string

反復專案識別碼。

options
RequestOptionsBase

選擇性參數

傳回

Promise < Models.GetExportsResponse>

getExports(string, string, RequestOptionsBase, ServiceCallback<ExportModel[]>)

function getExports(projectId: string, iterationId: string, options: RequestOptionsBase, callback: ServiceCallback<ExportModel[]>)

參數

projectId

string

專案識別碼。

iterationId

string

反復專案識別碼。

options
RequestOptionsBase

選擇性參數

callback

ServiceCallback<ExportModel[]>

回呼

getExports(string, string, ServiceCallback<ExportModel[]>)

function getExports(projectId: string, iterationId: string, callback: ServiceCallback<ExportModel[]>)

參數

projectId

string

專案識別碼。

iterationId

string

反復專案識別碼。

callback

ServiceCallback<ExportModel[]>

回呼

getImageCount(string, ServiceCallback<number>)

function getImageCount(projectId: string, callback: ServiceCallback<number>)

參數

projectId

string

專案識別碼。

callback

ServiceCallback<number>

回呼

getImageCount(string, TrainingAPIClientGetImageCountOptionalParams)

篩選是在 和/或關聯性上。 例如,如果提供的標記識別項適用于 「Dog」 和 「Cat」 標籤,則只會傳回以 Dog 和/或 Cat 標記標記的影像

function getImageCount(projectId: string, options?: TrainingAPIClientGetImageCountOptionalParams): Promise<GetImageCountResponse>

參數

projectId

string

專案識別碼。

傳回

Promise < Models.GetImageCountResponse>

getImageCount(string, TrainingAPIClientGetImageCountOptionalParams, ServiceCallback<number>)

function getImageCount(projectId: string, options: TrainingAPIClientGetImageCountOptionalParams, callback: ServiceCallback<number>)

參數

projectId

string

專案識別碼。

callback

ServiceCallback<number>

回呼

getImagePerformanceCount(string, string, ServiceCallback<number>)

function getImagePerformanceCount(projectId: string, iterationId: string, callback: ServiceCallback<number>)

參數

projectId

string

專案識別碼。

iterationId

string

反復專案識別碼。預設為工作區。

callback

ServiceCallback<number>

回呼

getImagePerformanceCount(string, string, TrainingAPIClientGetImagePerformanceCountOptionalParams)

篩選是在 和/或關聯性上。 例如,如果提供的標記識別項適用于 「Dog」 和 「Cat」 標籤,則只會傳回以 Dog 和/或 Cat 標記標記的影像

function getImagePerformanceCount(projectId: string, iterationId: string, options?: TrainingAPIClientGetImagePerformanceCountOptionalParams): Promise<GetImagePerformanceCountResponse>

參數

projectId

string

專案識別碼。

iterationId

string

反復專案識別碼。預設為工作區。

傳回

Promise < Models.GetImagePerformanceCountResponse>

getImagePerformanceCount(string, string, TrainingAPIClientGetImagePerformanceCountOptionalParams, ServiceCallback<number>)

function getImagePerformanceCount(projectId: string, iterationId: string, options: TrainingAPIClientGetImagePerformanceCountOptionalParams, callback: ServiceCallback<number>)

參數

projectId

string

專案識別碼。

iterationId

string

反復專案識別碼。預設為工作區。

callback

ServiceCallback<number>

回呼

getImagePerformances(string, string, ServiceCallback<ImagePerformance[]>)

function getImagePerformances(projectId: string, iterationId: string, callback: ServiceCallback<ImagePerformance[]>)

參數

projectId

string

專案識別碼。

iterationId

string

反復專案識別碼。預設為工作區。

callback

ServiceCallback<ImagePerformance[]>

回呼

getImagePerformances(string, string, TrainingAPIClientGetImagePerformancesOptionalParams)

此 API 支援批次處理和範圍選取。 根據預設,它只會傳回前 50 個符合影像的影像。 使用 {take} 和 {skip} 參數來控制指定批次中要傳回的影像數目。 篩選是在 和/或關聯性上。 例如,如果提供的標記識別項適用于 「Dog」 和 「Cat」 標籤,則只會傳回以 Dog 和/或 Cat 標記標記的影像

function getImagePerformances(projectId: string, iterationId: string, options?: TrainingAPIClientGetImagePerformancesOptionalParams): Promise<GetImagePerformancesResponse>

參數

projectId

string

專案識別碼。

iterationId

string

反復專案識別碼。預設為工作區。

傳回

Promise < Models.GetImagePerformancesResponse>

getImagePerformances(string, string, TrainingAPIClientGetImagePerformancesOptionalParams, ServiceCallback<ImagePerformance[]>)

function getImagePerformances(projectId: string, iterationId: string, options: TrainingAPIClientGetImagePerformancesOptionalParams, callback: ServiceCallback<ImagePerformance[]>)

參數

projectId

string

專案識別碼。

iterationId

string

反復專案識別碼。預設為工作區。

callback

ServiceCallback<ImagePerformance[]>

回呼

getImageRegionProposals(string, string, RequestOptionsBase)

此 API 將取得影像的區域提案,以及區域信賴度。 如果找不到提案,它會傳回空陣列。

function getImageRegionProposals(projectId: string, imageId: string, options?: RequestOptionsBase): Promise<GetImageRegionProposalsResponse>

參數

projectId

string

專案識別碼。

imageId

string

映射識別碼。

options
RequestOptionsBase

選擇性參數

傳回

Promise < Models.GetImageRegionProposalsResponse>

getImageRegionProposals(string, string, RequestOptionsBase, ServiceCallback<ImageRegionProposal>)

function getImageRegionProposals(projectId: string, imageId: string, options: RequestOptionsBase, callback: ServiceCallback<ImageRegionProposal>)

參數

projectId

string

專案識別碼。

imageId

string

映射識別碼。

options
RequestOptionsBase

選擇性參數

getImageRegionProposals(string, string, ServiceCallback<ImageRegionProposal>)

function getImageRegionProposals(projectId: string, imageId: string, callback: ServiceCallback<ImageRegionProposal>)

參數

projectId

string

專案識別碼。

imageId

string

映射識別碼。

getImages(string, ServiceCallback<Image[]>)

function getImages(projectId: string, callback: ServiceCallback<Image[]>)

參數

projectId

string

專案識別碼。

callback

ServiceCallback<Image[]>

回呼

getImages(string, TrainingAPIClientGetImagesOptionalParams)

此 API 支援批次處理和範圍選取。 根據預設,它只會傳回前 50 個符合影像的影像。 使用 {take} 和 {skip} 參數來控制指定批次中要傳回的影像數目。 篩選是在 和/或關聯性上。 例如,如果提供的標記識別項適用于 「Dog」 和 「Cat」 標籤,則只會傳回以 Dog 和/或 Cat 標記標記的影像

function getImages(projectId: string, options?: TrainingAPIClientGetImagesOptionalParams): Promise<GetImagesResponse>

參數

projectId

string

專案識別碼。

傳回

Promise < Models.GetImagesResponse>

getImages(string, TrainingAPIClientGetImagesOptionalParams, ServiceCallback<Image[]>)

function getImages(projectId: string, options: TrainingAPIClientGetImagesOptionalParams, callback: ServiceCallback<Image[]>)

參數

projectId

string

專案識別碼。

callback

ServiceCallback<Image[]>

回呼

getImagesByIds(string, ServiceCallback<Image[]>)

function getImagesByIds(projectId: string, callback: ServiceCallback<Image[]>)

參數

projectId

string

專案識別碼。

callback

ServiceCallback<Image[]>

回呼

getImagesByIds(string, TrainingAPIClientGetImagesByIdsOptionalParams)

此 API 會針對指定的標記傳回一組影像,並選擇性地反復專案。 如果未指定任何反復專案,則會使用目前的工作區。

function getImagesByIds(projectId: string, options?: TrainingAPIClientGetImagesByIdsOptionalParams): Promise<GetImagesByIdsResponse>

參數

projectId

string

專案識別碼。

傳回

Promise < Models.GetImagesByIdsResponse>

getImagesByIds(string, TrainingAPIClientGetImagesByIdsOptionalParams, ServiceCallback<Image[]>)

function getImagesByIds(projectId: string, options: TrainingAPIClientGetImagesByIdsOptionalParams, callback: ServiceCallback<Image[]>)

參數

projectId

string

專案識別碼。

callback

ServiceCallback<Image[]>

回呼

getIteration(string, string, RequestOptionsBase)

function getIteration(projectId: string, iterationId: string, options?: RequestOptionsBase): Promise<GetIterationResponse>

參數

projectId

string

反復專案所屬專案的識別碼。

iterationId

string

要取得之反復專案的識別碼。

options
RequestOptionsBase

選擇性參數

傳回

Promise < Models.GetIterationResponse>

getIteration(string, string, RequestOptionsBase, ServiceCallback<Iteration>)

function getIteration(projectId: string, iterationId: string, options: RequestOptionsBase, callback: ServiceCallback<Iteration>)

參數

projectId

string

反復專案所屬專案的識別碼。

iterationId

string

要取得之反復專案的識別碼。

options
RequestOptionsBase

選擇性參數

callback

ServiceCallback<Iteration>

回呼

getIteration(string, string, ServiceCallback<Iteration>)

function getIteration(projectId: string, iterationId: string, callback: ServiceCallback<Iteration>)

參數

projectId

string

反復專案所屬專案的識別碼。

iterationId

string

要取得之反復專案的識別碼。

callback

ServiceCallback<Iteration>

回呼

getIterationPerformance(string, string, ServiceCallback<IterationPerformance>)

function getIterationPerformance(projectId: string, iterationId: string, callback: ServiceCallback<IterationPerformance>)

參數

projectId

string

反復專案所屬專案的識別碼。

iterationId

string

要取得之反復專案的識別碼。

getIterationPerformance(string, string, TrainingAPIClientGetIterationPerformanceOptionalParams)

function getIterationPerformance(projectId: string, iterationId: string, options?: TrainingAPIClientGetIterationPerformanceOptionalParams): Promise<GetIterationPerformanceResponse>

參數

projectId

string

反復專案所屬專案的識別碼。

iterationId

string

要取得之反復專案的識別碼。

傳回

Promise < Models.GetIterationPerformanceResponse>

getIterationPerformance(string, string, TrainingAPIClientGetIterationPerformanceOptionalParams, ServiceCallback<IterationPerformance>)

function getIterationPerformance(projectId: string, iterationId: string, options: TrainingAPIClientGetIterationPerformanceOptionalParams, callback: ServiceCallback<IterationPerformance>)

參數

projectId

string

反復專案所屬專案的識別碼。

iterationId

string

要取得之反復專案的識別碼。

getIterations(string, RequestOptionsBase)

function getIterations(projectId: string, options?: RequestOptionsBase): Promise<GetIterationsResponse>

參數

projectId

string

專案識別碼。

options
RequestOptionsBase

選擇性參數

傳回

Promise < Models.GetIterationsResponse>

getIterations(string, RequestOptionsBase, ServiceCallback<Iteration[]>)

function getIterations(projectId: string, options: RequestOptionsBase, callback: ServiceCallback<Iteration[]>)

參數

projectId

string

專案識別碼。

options
RequestOptionsBase

選擇性參數

callback

ServiceCallback<Iteration[]>

回呼

getIterations(string, ServiceCallback<Iteration[]>)

function getIterations(projectId: string, callback: ServiceCallback<Iteration[]>)

參數

projectId

string

專案識別碼。

callback

ServiceCallback<Iteration[]>

回呼

getProject(string, RequestOptionsBase)

function getProject(projectId: string, options?: RequestOptionsBase): Promise<GetProjectResponse>

參數

projectId

string

要取得之專案的識別碼。

options
RequestOptionsBase

選擇性參數

傳回

Promise < Models.GetProjectResponse>

getProject(string, RequestOptionsBase, ServiceCallback<Project>)

function getProject(projectId: string, options: RequestOptionsBase, callback: ServiceCallback<Project>)

參數

projectId

string

要取得之專案的識別碼。

options
RequestOptionsBase

選擇性參數

callback

ServiceCallback<Project>

回呼

getProject(string, ServiceCallback<Project>)

function getProject(projectId: string, callback: ServiceCallback<Project>)

參數

projectId

string

要取得之專案的識別碼。

callback

ServiceCallback<Project>

回呼

getProjects(RequestOptionsBase)

function getProjects(options?: RequestOptionsBase): Promise<GetProjectsResponse>

參數

options
RequestOptionsBase

選擇性參數

傳回

Promise < Models.GetProjectsResponse>

getProjects(RequestOptionsBase, ServiceCallback<Project[]>)

function getProjects(options: RequestOptionsBase, callback: ServiceCallback<Project[]>)

參數

options
RequestOptionsBase

選擇性參數

callback

ServiceCallback<Project[]>

回呼

getProjects(ServiceCallback<Project[]>)

function getProjects(callback: ServiceCallback<Project[]>)

參數

callback

ServiceCallback<Project[]>

回呼

getTag(string, string, ServiceCallback<Tag>)

function getTag(projectId: string, tagId: string, callback: ServiceCallback<Tag>)

參數

projectId

string

此標籤所屬的專案。

tagId

string

標記識別項。

callback

ServiceCallback<Tag>

回呼

getTag(string, string, TrainingAPIClientGetTagOptionalParams)

function getTag(projectId: string, tagId: string, options?: TrainingAPIClientGetTagOptionalParams): Promise<GetTagResponse>

參數

projectId

string

此標籤所屬的專案。

tagId

string

標記識別項。

options
TrainingAPIClientGetTagOptionalParams

選擇性參數

傳回

Promise<GetTagResponse>

Promise < Models.GetTagResponse>

getTag(string, string, TrainingAPIClientGetTagOptionalParams, ServiceCallback<Tag>)

function getTag(projectId: string, tagId: string, options: TrainingAPIClientGetTagOptionalParams, callback: ServiceCallback<Tag>)

參數

projectId

string

此標籤所屬的專案。

tagId

string

標記識別項。

options
TrainingAPIClientGetTagOptionalParams

選擇性參數

callback

ServiceCallback<Tag>

回呼

getTaggedImageCount(string, ServiceCallback<number>)

function getTaggedImageCount(projectId: string, callback: ServiceCallback<number>)

參數

projectId

string

專案識別碼。

callback

ServiceCallback<number>

回呼

getTaggedImageCount(string, TrainingAPIClientGetTaggedImageCountOptionalParams)

篩選是在 和/或關聯性上。 例如,如果提供的標記識別項適用于 「Dog」 和 「Cat」 標籤,則只會傳回以 Dog 和/或 Cat 標記標記的影像

function getTaggedImageCount(projectId: string, options?: TrainingAPIClientGetTaggedImageCountOptionalParams): Promise<GetTaggedImageCountResponse>

參數

projectId

string

專案識別碼。

傳回

Promise < Models.GetTaggedImageCountResponse>

getTaggedImageCount(string, TrainingAPIClientGetTaggedImageCountOptionalParams, ServiceCallback<number>)

function getTaggedImageCount(projectId: string, options: TrainingAPIClientGetTaggedImageCountOptionalParams, callback: ServiceCallback<number>)

參數

projectId

string

專案識別碼。

callback

ServiceCallback<number>

回呼

getTaggedImages(string, ServiceCallback<Image[]>)

function getTaggedImages(projectId: string, callback: ServiceCallback<Image[]>)

參數

projectId

string

專案識別碼。

callback

ServiceCallback<Image[]>

回呼

getTaggedImages(string, TrainingAPIClientGetTaggedImagesOptionalParams)

此 API 支援批次處理和範圍選取。 根據預設,它只會傳回前 50 個符合影像的影像。 使用 {take} 和 {skip} 參數來控制指定批次中要傳回的影像數目。 篩選是在 和/或關聯性上。 例如,如果提供的標記識別項適用于 「Dog」 和 「Cat」 標籤,則只會傳回以 Dog 和/或 Cat 標記標記的影像

function getTaggedImages(projectId: string, options?: TrainingAPIClientGetTaggedImagesOptionalParams): Promise<GetTaggedImagesResponse>

參數

projectId

string

專案識別碼。

傳回

Promise < Models.GetTaggedImagesResponse>

getTaggedImages(string, TrainingAPIClientGetTaggedImagesOptionalParams, ServiceCallback<Image[]>)

function getTaggedImages(projectId: string, options: TrainingAPIClientGetTaggedImagesOptionalParams, callback: ServiceCallback<Image[]>)

參數

projectId

string

專案識別碼。

callback

ServiceCallback<Image[]>

回呼

getTags(string, ServiceCallback<Tag[]>)

function getTags(projectId: string, callback: ServiceCallback<Tag[]>)

參數

projectId

string

專案識別碼。

callback

ServiceCallback<Tag[]>

回呼

getTags(string, TrainingAPIClientGetTagsOptionalParams)

function getTags(projectId: string, options?: TrainingAPIClientGetTagsOptionalParams): Promise<GetTagsResponse>

參數

projectId

string

專案識別碼。

options
TrainingAPIClientGetTagsOptionalParams

選擇性參數

傳回

Promise<GetTagsResponse>

Promise < Models.GetTagsResponse>

getTags(string, TrainingAPIClientGetTagsOptionalParams, ServiceCallback<Tag[]>)

function getTags(projectId: string, options: TrainingAPIClientGetTagsOptionalParams, callback: ServiceCallback<Tag[]>)

參數

projectId

string

專案識別碼。

options
TrainingAPIClientGetTagsOptionalParams

選擇性參數

callback

ServiceCallback<Tag[]>

回呼

getUntaggedImageCount(string, ServiceCallback<number>)

function getUntaggedImageCount(projectId: string, callback: ServiceCallback<number>)

參數

projectId

string

專案識別碼。

callback

ServiceCallback<number>

回呼

getUntaggedImageCount(string, TrainingAPIClientGetUntaggedImageCountOptionalParams)

此 API 會傳回沒有指定專案標籤的影像,並選擇性地傳回反復專案。 如果未指定任何反復專案,則會使用目前的工作區。

function getUntaggedImageCount(projectId: string, options?: TrainingAPIClientGetUntaggedImageCountOptionalParams): Promise<GetUntaggedImageCountResponse>

參數

projectId

string

專案識別碼。

傳回

Promise < Models.GetUntaggedImageCountResponse>

getUntaggedImageCount(string, TrainingAPIClientGetUntaggedImageCountOptionalParams, ServiceCallback<number>)

function getUntaggedImageCount(projectId: string, options: TrainingAPIClientGetUntaggedImageCountOptionalParams, callback: ServiceCallback<number>)

參數

projectId

string

專案識別碼。

callback

ServiceCallback<number>

回呼

getUntaggedImages(string, ServiceCallback<Image[]>)

function getUntaggedImages(projectId: string, callback: ServiceCallback<Image[]>)

參數

projectId

string

專案識別碼。

callback

ServiceCallback<Image[]>

回呼

getUntaggedImages(string, TrainingAPIClientGetUntaggedImagesOptionalParams)

此 API 支援批次處理和範圍選取。 根據預設,它只會傳回前 50 個符合影像的影像。 使用 {take} 和 {skip} 參數來控制指定批次中要傳回的影像數目。

function getUntaggedImages(projectId: string, options?: TrainingAPIClientGetUntaggedImagesOptionalParams): Promise<GetUntaggedImagesResponse>

參數

projectId

string

專案識別碼。

傳回

Promise < Models.GetUntaggedImagesResponse>

getUntaggedImages(string, TrainingAPIClientGetUntaggedImagesOptionalParams, ServiceCallback<Image[]>)

function getUntaggedImages(projectId: string, options: TrainingAPIClientGetUntaggedImagesOptionalParams, callback: ServiceCallback<Image[]>)

參數

projectId

string

專案識別碼。

callback

ServiceCallback<Image[]>

回呼

importProject(string, ServiceCallback<Project>)

function importProject(token: string, callback: ServiceCallback<Project>)

參數

token

string

從匯出專案呼叫產生的權杖。

callback

ServiceCallback<Project>

回呼

importProject(string, TrainingAPIClientImportProjectOptionalParams)

function importProject(token: string, options?: TrainingAPIClientImportProjectOptionalParams): Promise<ImportProjectResponse>

參數

token

string

從匯出專案呼叫產生的權杖。

傳回

Promise < Models.ImportProjectResponse>

importProject(string, TrainingAPIClientImportProjectOptionalParams, ServiceCallback<Project>)

function importProject(token: string, options: TrainingAPIClientImportProjectOptionalParams, callback: ServiceCallback<Project>)

參數

token

string

從匯出專案呼叫產生的權杖。

callback

ServiceCallback<Project>

回呼

publishIteration(string, string, string, string, ServiceCallback<boolean>)

function publishIteration(projectId: string, iterationId: string, publishName: string, predictionId: string, callback: ServiceCallback<boolean>)

參數

projectId

string

專案識別碼。

iterationId

string

反復專案識別碼。

publishName

string

要提供已發佈反復專案的名稱。

predictionId

string

要發行至之預測資源的識別碼。

callback

ServiceCallback<boolean>

回呼

publishIteration(string, string, string, string, TrainingAPIClientPublishIterationOptionalParams)

function publishIteration(projectId: string, iterationId: string, publishName: string, predictionId: string, options?: TrainingAPIClientPublishIterationOptionalParams): Promise<PublishIterationResponse>

參數

projectId

string

專案識別碼。

iterationId

string

反復專案識別碼。

publishName

string

要提供已發行反復專案的名稱。

predictionId

string

要發行至之預測資源的識別碼。

傳回

Promise < Models.PublishIterationResponse>

publishIteration(string, string, string, string, TrainingAPIClientPublishIterationOptionalParams, ServiceCallback<boolean>)

function publishIteration(projectId: string, iterationId: string, publishName: string, predictionId: string, options: TrainingAPIClientPublishIterationOptionalParams, callback: ServiceCallback<boolean>)

參數

projectId

string

專案識別碼。

iterationId

string

反復專案識別碼。

publishName

string

要提供已發行反復專案的名稱。

predictionId

string

要發行至之預測資源的識別碼。

callback

ServiceCallback<boolean>

回呼

queryPredictions(string, PredictionQueryToken, RequestOptionsBase)

function queryPredictions(projectId: string, query: PredictionQueryToken, options?: RequestOptionsBase): Promise<QueryPredictionsResponse>

參數

projectId

string

專案識別碼。

query
PredictionQueryToken

用來查詢預測的參數。 限制為合併 2 個標記。

options
RequestOptionsBase

選擇性參數

傳回

Promise < Models.QueryPredictionsResponse>

queryPredictions(string, PredictionQueryToken, RequestOptionsBase, ServiceCallback<PredictionQueryResult>)

function queryPredictions(projectId: string, query: PredictionQueryToken, options: RequestOptionsBase, callback: ServiceCallback<PredictionQueryResult>)

參數

projectId

string

專案識別碼。

query
PredictionQueryToken

用來查詢預測的參數。 限制為合併 2 個標記。

options
RequestOptionsBase

選擇性參數

queryPredictions(string, PredictionQueryToken, ServiceCallback<PredictionQueryResult>)

function queryPredictions(projectId: string, query: PredictionQueryToken, callback: ServiceCallback<PredictionQueryResult>)

參數

projectId

string

專案識別碼。

query
PredictionQueryToken

用來查詢預測的參數。 限制為合併 2 個標記。

querySuggestedImageCount(string, string, TagFilter, RequestOptionsBase)

此 API 會採用 tagIds,以針對指定的閾值取得每個建議標籤的未標記影像計數。

function querySuggestedImageCount(projectId: string, iterationId: string, query: TagFilter, options?: RequestOptionsBase): Promise<QuerySuggestedImageCountResponse>

參數

projectId

string

專案識別碼。

iterationId

string

用於建議標籤和區域的 IterationId。

query
TagFilter

包含要查詢之 tagId、threshold 和 projectType 的模型。

options
RequestOptionsBase

選擇性參數

傳回

Promise < Models.QuerySuggestedImageCountResponse>

querySuggestedImageCount(string, string, TagFilter, RequestOptionsBase, ServiceCallback<{[propertyName: string]: number}>)

function querySuggestedImageCount(projectId: string, iterationId: string, query: TagFilter, options: RequestOptionsBase, callback: ServiceCallback<{[propertyName: string]: number}>)

參數

projectId

string

專案識別碼。

iterationId

string

用於建議標籤和區域的 IterationId。

query
TagFilter

包含要查詢之 tagId、threshold 和 projectType 的模型。

options
RequestOptionsBase

選擇性參數

callback

ServiceCallback<{[propertyName: string]: number}>

回呼

querySuggestedImageCount(string, string, TagFilter, ServiceCallback<{[propertyName: string]: number}>)

function querySuggestedImageCount(projectId: string, iterationId: string, query: TagFilter, callback: ServiceCallback<{[propertyName: string]: number}>)

參數

projectId

string

專案識別碼。

iterationId

string

用於建議標籤和區域的 IterationId。

query
TagFilter

包含要查詢之 tagId、threshold 和 projectType 的模型。

callback

ServiceCallback<{[propertyName: string]: number}>

回呼

querySuggestedImages(string, string, SuggestedTagAndRegionQueryToken, RequestOptionsBase)

此 API 會擷取由建議標籤識別碼篩選的未標記影像。 如果找不到任何影像,則會傳回空陣列。

function querySuggestedImages(projectId: string, iterationId: string, query: SuggestedTagAndRegionQueryToken, options?: RequestOptionsBase): Promise<QuerySuggestedImagesResponse>

參數

projectId

string

專案識別碼。

iterationId

string

用於建議標籤和區域的 IterationId。

query
SuggestedTagAndRegionQueryToken

包含我們需要查詢建議影像的屬性。

options
RequestOptionsBase

選擇性參數

傳回

Promise < Models.QuerySuggestedImagesResponse>

querySuggestedImages(string, string, SuggestedTagAndRegionQueryToken, RequestOptionsBase, ServiceCallback<SuggestedTagAndRegionQuery>)

function querySuggestedImages(projectId: string, iterationId: string, query: SuggestedTagAndRegionQueryToken, options: RequestOptionsBase, callback: ServiceCallback<SuggestedTagAndRegionQuery>)

參數

projectId

string

專案識別碼。

iterationId

string

用於建議標籤和區域的 IterationId。

query
SuggestedTagAndRegionQueryToken

包含我們需要查詢建議影像的屬性。

options
RequestOptionsBase

選擇性參數

querySuggestedImages(string, string, SuggestedTagAndRegionQueryToken, ServiceCallback<SuggestedTagAndRegionQuery>)

function querySuggestedImages(projectId: string, iterationId: string, query: SuggestedTagAndRegionQueryToken, callback: ServiceCallback<SuggestedTagAndRegionQuery>)

參數

projectId

string

專案識別碼。

iterationId

string

用於建議標籤和區域的 IterationId。

query
SuggestedTagAndRegionQueryToken

包含我們需要查詢建議影像的屬性。

quickTestImage(string, HttpRequestBody, ServiceCallback<ImagePrediction>)

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

參數

projectId

string

專案識別碼。

imageData
HttpRequestBody

二進位影像資料。 支援的格式為 JPEG、GIF、PNG 和 BMP。 支援最多 6 MB 的映射。

callback

ServiceCallback<ImagePrediction>

回呼

quickTestImage(string, HttpRequestBody, TrainingAPIClientQuickTestImageOptionalParams)

function quickTestImage(projectId: string, imageData: HttpRequestBody, options?: TrainingAPIClientQuickTestImageOptionalParams): Promise<QuickTestImageResponse>

參數

projectId

string

專案識別碼。

imageData
HttpRequestBody

二進位影像資料。 支援的格式為 JPEG、GIF、PNG 和 BMP。 支援最多 6 MB 的映射。

傳回

Promise < Models.QuickTestImageResponse>

quickTestImage(string, HttpRequestBody, TrainingAPIClientQuickTestImageOptionalParams, ServiceCallback<ImagePrediction>)

function quickTestImage(projectId: string, imageData: HttpRequestBody, options: TrainingAPIClientQuickTestImageOptionalParams, callback: ServiceCallback<ImagePrediction>)

參數

projectId

string

專案識別碼。

imageData
HttpRequestBody

二進位影像資料。 支援的格式為 JPEG、GIF、PNG 和 BMP。 支援最多 6 MB 的映射。

callback

ServiceCallback<ImagePrediction>

回呼

quickTestImageUrl(string, ImageUrl, ServiceCallback<ImagePrediction>)

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

參數

projectId

string

要評估的專案。

imageUrl
ImageUrl

ImageUrl,其中包含要評估之影像的 URL。

callback

ServiceCallback<ImagePrediction>

回呼

quickTestImageUrl(string, ImageUrl, TrainingAPIClientQuickTestImageUrlOptionalParams)

function quickTestImageUrl(projectId: string, imageUrl: ImageUrl, options?: TrainingAPIClientQuickTestImageUrlOptionalParams): Promise<QuickTestImageUrlResponse>

參數

projectId

string

要評估的專案。

imageUrl
ImageUrl

ImageUrl,其中包含要評估之影像的 URL。

傳回

Promise < Models.QuickTestImageUrlResponse>

quickTestImageUrl(string, ImageUrl, TrainingAPIClientQuickTestImageUrlOptionalParams, ServiceCallback<ImagePrediction>)

function quickTestImageUrl(projectId: string, imageUrl: ImageUrl, options: TrainingAPIClientQuickTestImageUrlOptionalParams, callback: ServiceCallback<ImagePrediction>)

參數

projectId

string

要評估的專案。

imageUrl
ImageUrl

ImageUrl,其中包含要評估之影像的 URL。

callback

ServiceCallback<ImagePrediction>

回呼

suggestTagsAndRegions(string, string, string[], RequestOptionsBase)

此 API 會取得陣列/批次未標記影像的建議標籤和區域,以及標記的信賴度。 如果找不到任何標記,會傳回空陣列。 批次中有 64 個映射的限制。

function suggestTagsAndRegions(projectId: string, iterationId: string, imageIds: string[], options?: RequestOptionsBase): Promise<SuggestTagsAndRegionsResponse>

參數

projectId

string

專案識別碼。

iterationId

string

用於標記和區域建議的 IterationId。

imageIds

string[]

需要影像識別碼標籤建議的陣列。 使用 GetUntaggedImages API 來取得 imageIds。

options
RequestOptionsBase

選擇性參數

傳回

Promise < Models.SuggestTagsAndRegionsResponse>

suggestTagsAndRegions(string, string, string[], RequestOptionsBase, ServiceCallback<SuggestedTagAndRegion[]>)

function suggestTagsAndRegions(projectId: string, iterationId: string, imageIds: string[], options: RequestOptionsBase, callback: ServiceCallback<SuggestedTagAndRegion[]>)

參數

projectId

string

專案識別碼。

iterationId

string

用於標記和區域建議的 IterationId。

imageIds

string[]

需要影像識別碼標籤建議的陣列。 使用 GetUntaggedImages API 來取得 imageIds。

options
RequestOptionsBase

選擇性參數

suggestTagsAndRegions(string, string, string[], ServiceCallback<SuggestedTagAndRegion[]>)

function suggestTagsAndRegions(projectId: string, iterationId: string, imageIds: string[], callback: ServiceCallback<SuggestedTagAndRegion[]>)

參數

projectId

string

專案識別碼。

iterationId

string

用於標記和區域建議的 IterationId。

imageIds

string[]

需要影像識別碼標籤建議的陣列。 使用 GetUntaggedImages API 來取得 imageIds。

trainProject(string, ServiceCallback<Iteration>)

function trainProject(projectId: string, callback: ServiceCallback<Iteration>)

參數

projectId

string

專案識別碼。

callback

ServiceCallback<Iteration>

回呼

trainProject(string, TrainingAPIClientTrainProjectOptionalParams)

function trainProject(projectId: string, options?: TrainingAPIClientTrainProjectOptionalParams): Promise<TrainProjectResponse>

參數

projectId

string

專案識別碼。

傳回

Promise < Models.TrainProjectResponse>

trainProject(string, TrainingAPIClientTrainProjectOptionalParams, ServiceCallback<Iteration>)

function trainProject(projectId: string, options: TrainingAPIClientTrainProjectOptionalParams, callback: ServiceCallback<Iteration>)

參數

projectId

string

專案識別碼。

callback

ServiceCallback<Iteration>

回呼

unpublishIteration(string, string, RequestOptionsBase)

function unpublishIteration(projectId: string, iterationId: string, options?: RequestOptionsBase): Promise<RestResponse>

參數

projectId

string

專案識別碼。

iterationId

string

反復專案識別碼。

options
RequestOptionsBase

選擇性參數

傳回

Promise<RestResponse>

Promise < msRest.RestResponse>

unpublishIteration(string, string, RequestOptionsBase, ServiceCallback<void>)

function unpublishIteration(projectId: string, iterationId: string, options: RequestOptionsBase, callback: ServiceCallback<void>)

參數

projectId

string

專案識別碼。

iterationId

string

反復專案識別碼。

options
RequestOptionsBase

選擇性參數

callback

ServiceCallback<void>

回呼

unpublishIteration(string, string, ServiceCallback<void>)

function unpublishIteration(projectId: string, iterationId: string, callback: ServiceCallback<void>)

參數

projectId

string

專案識別碼。

iterationId

string

反復專案識別碼。

callback

ServiceCallback<void>

回呼

updateImageMetadata(string, string[], {[propertyName: string]: string}, RequestOptionsBase)

此 API 接受一批映射識別碼和中繼資料來更新映射。 有 64 個影像的限制。

function updateImageMetadata(projectId: string, imageIds: string[], metadata: {[propertyName: string]: string}, options?: RequestOptionsBase): Promise<UpdateImageMetadataResponse>

參數

projectId

string

專案識別碼。

imageIds

string[]

要更新的映射識別碼清單。 限制為 64。

metadata

{[propertyName: string]: string}

要更新為指定影像的中繼資料。 每個影像限制為 10 個機碼/值組。 金鑰長度限制為 128。 值的長度限制為 256。

options
RequestOptionsBase

選擇性參數

傳回

Promise < Models.UpdateImageMetadataResponse>

updateImageMetadata(string, string[], {[propertyName: string]: string}, RequestOptionsBase, ServiceCallback<ImageMetadataUpdateSummary>)

function updateImageMetadata(projectId: string, imageIds: string[], metadata: {[propertyName: string]: string}, options: RequestOptionsBase, callback: ServiceCallback<ImageMetadataUpdateSummary>)

參數

projectId

string

專案識別碼。

imageIds

string[]

要更新的映射識別碼清單。 限制為 64。

metadata

{[propertyName: string]: string}

要更新為指定影像的中繼資料。 每個影像限制為 10 個機碼/值組。 金鑰長度限制為 128。 值的長度限制為 256。

options
RequestOptionsBase

選擇性參數

updateImageMetadata(string, string[], {[propertyName: string]: string}, ServiceCallback<ImageMetadataUpdateSummary>)

function updateImageMetadata(projectId: string, imageIds: string[], metadata: {[propertyName: string]: string}, callback: ServiceCallback<ImageMetadataUpdateSummary>)

參數

projectId

string

專案識別碼。

imageIds

string[]

要更新的映射識別碼清單。 限制為 64。

metadata

{[propertyName: string]: string}

要更新為指定影像的中繼資料。 每個影像限制為 10 個機碼/值組。 金鑰長度限制為 128。 值的長度限制為 256。

updateIteration(string, string, Iteration, RequestOptionsBase)

function updateIteration(projectId: string, iterationId: string, updatedIteration: Iteration, options?: RequestOptionsBase): Promise<UpdateIterationResponse>

參數

projectId

string

專案識別碼。

iterationId

string

反復專案識別碼。

updatedIteration
Iteration

更新的反復專案模型。

options
RequestOptionsBase

選擇性參數

傳回

Promise < Models.UpdateIterationResponse>

updateIteration(string, string, Iteration, RequestOptionsBase, ServiceCallback<Iteration>)

function updateIteration(projectId: string, iterationId: string, updatedIteration: Iteration, options: RequestOptionsBase, callback: ServiceCallback<Iteration>)

參數

projectId

string

專案識別碼。

iterationId

string

反復專案識別碼。

updatedIteration
Iteration

更新的反復專案模型。

options
RequestOptionsBase

選擇性參數

callback

ServiceCallback<Iteration>

回呼

updateIteration(string, string, Iteration, ServiceCallback<Iteration>)

function updateIteration(projectId: string, iterationId: string, updatedIteration: Iteration, callback: ServiceCallback<Iteration>)

參數

projectId

string

專案識別碼。

iterationId

string

反復專案識別碼。

updatedIteration
Iteration

更新的反復專案模型。

callback

ServiceCallback<Iteration>

回呼

updateProject(string, Project, RequestOptionsBase)

function updateProject(projectId: string, updatedProject: Project, options?: RequestOptionsBase): Promise<UpdateProjectResponse>

參數

projectId

string

要更新之專案的識別碼。

updatedProject
Project

更新的專案模型。

options
RequestOptionsBase

選擇性參數

傳回

Promise < Models.UpdateProjectResponse>

updateProject(string, Project, RequestOptionsBase, ServiceCallback<Project>)

function updateProject(projectId: string, updatedProject: Project, options: RequestOptionsBase, callback: ServiceCallback<Project>)

參數

projectId

string

要更新之專案的識別碼。

updatedProject
Project

更新的專案模型。

options
RequestOptionsBase

選擇性參數

callback

ServiceCallback<Project>

回呼

updateProject(string, Project, ServiceCallback<Project>)

function updateProject(projectId: string, updatedProject: Project, callback: ServiceCallback<Project>)

參數

projectId

string

要更新之專案的識別碼。

updatedProject
Project

更新的專案模型。

callback

ServiceCallback<Project>

回呼

updateTag(string, string, Tag, RequestOptionsBase)

function updateTag(projectId: string, tagId: string, updatedTag: Tag, options?: RequestOptionsBase): Promise<UpdateTagResponse>

參數

projectId

string

專案識別碼。

tagId

string

目標標籤的識別碼。

updatedTag
Tag

更新的標記模型。

options
RequestOptionsBase

選擇性參數

傳回

Promise < Models.UpdateTagResponse>

updateTag(string, string, Tag, RequestOptionsBase, ServiceCallback<Tag>)

function updateTag(projectId: string, tagId: string, updatedTag: Tag, options: RequestOptionsBase, callback: ServiceCallback<Tag>)

參數

projectId

string

專案識別碼。

tagId

string

目標標籤的識別碼。

updatedTag
Tag

更新的標記模型。

options
RequestOptionsBase

選擇性參數

callback

ServiceCallback<Tag>

回呼

updateTag(string, string, Tag, ServiceCallback<Tag>)

function updateTag(projectId: string, tagId: string, updatedTag: Tag, callback: ServiceCallback<Tag>)

參數

projectId

string

專案識別碼。

tagId

string

目標標籤的識別碼。

updatedTag
Tag

更新的標記模型。

callback

ServiceCallback<Tag>

回呼

繼承的方法的詳細資料

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>

繼承自TrainingAPIClientCoNtext.sendOperationRequest

sendRequest(RequestPrepareOptions | WebResourceLike)

傳送提供的 HTTPRequest。

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

參數

傳回

繼承自TrainingAPIClientCoNtext.sendRequest