本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
AWS Panorama 應用程序清單
部署應用程序時,將提供一個稱為應用程序清單的配置文件。此文件將應用程序定義為帶有節點和邊的圖形。應用程式清單是應用程式原始碼的一部分,儲存在graphs
目錄。
範例 圖表aws-panorama-sample/圖形 .json
{ "nodeGraph": { "envelopeVersion": "2021-01-01", "packages": [ { "name": "123456789012::SAMPLE_CODE", "version": "1.0" }, { "name": "123456789012::SQUEEZENET_PYTORCH_V1", "version": "1.0" }, { "name": "panorama::abstract_rtsp_media_source", "version": "1.0" }, { "name": "panorama::hdmi_data_sink", "version": "1.0" } ], "nodes": [ { "name": "code_node", "interface": "123456789012::SAMPLE_CODE.interface" } { "name": "model_node", "interface": "123456789012::SQUEEZENET_PYTORCH_V1.interface" }, { "name": "camera_node", "interface": "panorama::abstract_rtsp_media_source.rtsp_v1_interface", "overridable": true, "overrideMandatory": true, "decorator": { "title": "IP camera", "description": "Choose a camera stream." } }, { "name": "output_node", "interface": "panorama::hdmi_data_sink.hdmi0" }, { "name": "log_level", "interface": "string", "value": "INFO", "overridable": true, "decorator": { "title": "Logging level", "description": "DEBUG, INFO, WARNING, ERROR, or CRITICAL." } } ... ], "edges": [ { "producer": "camera_node.video_out", "consumer": "code_node.video_in" }, { "producer": "code_node.video_out", "consumer": "output_node.video_in" }, { "producer": "log_level", "consumer": "code_node.log_level" } ] } }
節點通過邊連接,邊指定節點輸入和輸出之間的映射。一個節點的輸出連接到另一個節點的輸入,形成一個圖形。
JSON 結構描述
應用程序清單和覆蓋文檔的格式是在 JSON 架構中定義的。您可以在部署前使用 JSON 架構驗證配置文檔。JSON 架構可在本指南的GitHub儲存庫。
-
JSON 結構描述–aws-panorama-developer-指南/資源