URI

<machinelearning_uri>/ml-process:ObjectDetection[.<format>]

Supported methods

GETPOSTHEAD

Parent resource

machineLearning

Introduction

使用神经网络模型检测影像中的目标。

Supported methods:

  • GET:Returns an interactive operation page for analysis.
  • POST:Executes the analysis.
  • HEAD:检查datasourceresource exists, or if there is permission to accessdatasource资源。

Supported output formats:JSONP、RJSON、JSON、HTML、XML。

GIS Services Resource Hierarchy

HTTP Request Methods

Perform an HTTP request on the following URI. Here, supermapiserver is the server name.

http://supermapiserver:8090/iserver/services/machinelearning/restjsr/ml-process:ObjectDetection

GET 请求

Returns an interactive operation page for analysis.

 

POST 请求

Executes the analysis.

请求参数

Request parameter list:

Field Type Definition

inputDatasource

[Required]

String

指定进行分析影像数据集所在数据源,目前只支持udb,udbx两种数据源。

inputDatasetName

[Required]

String

指定进行分析的影像数据集名字。

modelFile

[Required]

String

用于进行分析的训练好的模型文件。

categoryName

[Optional]

String

指定分析结果存放的数据源路径,支持udb,udbx两种文件,在文件不存在时会自行创建。

scoreThresh

[Optional]

double

概率阈值,仅保留预测概率高于该值的目标。默认值为0.5。

nmsThresh

[Optional]

double

去重阈值,去除重复目标的阈值。默认值为0.3。

outputDatasource

[Required]

String

指定分析结果存放的数据源路径,支持udb,udbx,geotiff, 输出文件格式需要与输入匹配,在文件不存在时会自行创建。

outputDatasetName

[Optional]

String

结果数据集名,默认值为objdetect_result。

HEAD 请求

Returns the same HTTP response headers as a GET request, but without the response body. This allows retrieving meta-information from the response headers without transporting the entire content. The meta-information includes the media type,字符编码,压缩编码,实体内容长度等。

A HEAD request can be used to check if objectDetection 资源是否存在,或者客户端是否有权限访问 objectDetection 资源。通过对加.<format>的 URI 执行 HEAD 请求,还可以快速判断 objectDetection资源是否支持<format>格式的表述。

See