/
run

run

앱 인스턴스 실행에 사용하는 객체.

Send Object

[Fields]

Key

Type

Required

Description

Key

Type

Required

Description

host

String

Required

VI로부터 RPC recv_callback을 받을 MD경로

inputs [ ]

String

Required

Application-specific input resources. 앱이 인스턴스 생성을 위해 입력받는 파라메터들.

output_targets [ ]

String

 

출력 RPC를 받을 호스트. 입력 값은 UI의 호스트 주소로 한다.

alarm_interval_hint

Integer

 

선호하는 알람 주기를 앱에게 힌트로 보내기 위한 값. (단위: 밀리초)

annotation_level

Integer

 

비디오 주석 수준 (0: 비디오 주석 안함, 1~5: 가장 약함 ~ 가장 강함)

app_configs [ ]

String

 

Application-specific input contexts or configurations

[JSON Body]

{ "host":"http://localhost:17250", "inputs": [ "rtsp://220.11.59.183:554" // 입력 비디오 RTSP URI ], "output_targets": [ "192.168.0.37" // 앱의 출력 데이터를 RPC로 받을 호스트 ], "alarm_interval_hint": 5000, // 앱 인스턴스로부터 5초마다 알람을 받는 것을 선호 "annotation_level": 5, // Video annotation 수준 "app_configs": [ {"max_count": "256"} // 앱마다 고유 정의되는 설정 값 ] }

 

Receive Object

[Fields]

Parameter

Type

Required

Description

Parameter

Type

Required

Description

app_instance_id

String

Required

앱 인스턴스 ID

result

String

Required

실행결과

outputs [ ]

String

 

앱의 출력 결과값들

결과값들의 형태는 앱마다 고유하게 정의 됨

logs [ ]

String

 

결과 로그. 자유 형식.

[JSON Body]

{ "app_instance_id": "98gduio4l2j9o08fusd9", // 앱 서버가 직접 생성한 인스턴스 ID "result": "succeed", "outputs": [ "rtsp://220.11.59.183:554/annotated_video_0", // 출력 비디오 RTSP URI #0 "rtsp://220.11.59.183:554/annotated_video_1", // 출력 비디오 RTSP URI #1 "https://220.11.59.183/nk2/people_counting/12973/statistics/674" // 분석통계에 직접 접근할 수 있는 URI ], "logs": [ "hello world", "my name is nk2 instance" ] }