备注

主要是校验分析结果

任务的信息校验

主要是检查任务信息(task_info)和上传(upload)资产信息, 不管是使用SDK的自动化分析还是用户自定义本地分析,最后得到的配置信息 都必须进行这一步的信息校验。

Check the analysis results.

Check the analysis of the task information and upload asset information.

class rayvision_api.task.check.RayvisionCheck(api, analyze=None, workspace=None)

基类:object

Check the analysis results.

check_analyze(analyze, workspace, is_cover=True)

Initializes the configuration file information.

check_error_warn_info(language='0')

Check the error in the analysis scenario.

According to the status code of the analyzed error information, the API interface is called to obtain detailed error information and solutions, and the warning information is printed out, and the number of error information is recorded.

参数:
  • language (str) -- The language that identifies the details of the

  • obtained (error) -- Chinese (default) 1: English.

  • 0 -- Chinese (default) 1: English.

返回:

List of detailed descriptions of errors.

返回类型:

list

static check_path(tmp_path)

Check if the path exists.

check_plugin(task_data)
check_task_info(task_info)

Check and add the required parameter information.

check_workspace(workspace)

Check the working environment.

参数:

workspace (str) -- Workspace path.

返回:

Workspace path.

返回类型:

str

execute(hardware_config, task_json, upload_json='', asset_json='', is_cover=True, only_id=True)

Check asset configuration information.

Check the scene for problems and filter unwanted configuration information. :param is_cover: Whether the updated json file overwrites the file under the original path,

by default 'True'.

get_json_info(data)
is_scene_have_error()

Check the scene.

Determine whether the scene has an error based on the number of serious errors.

抛出:

RayvisionError -- There is a problem with the scene.

set_custom_hardware(custom_hardware, task_info, task_path)

Check whether the hardware configuration information exists and whether it meets the requirements.

write(only_id=True)

Check and write to a json file.