asw_component/__init__.py +3−0 View file@@ -0,0 +1,3 @@
1 +
from .component import execute 2 +
3 +
__all__ = ["execute"][참조 MVP] 작물구조 3D 매핑 — 작물과 장애물 관측을 작업공간 지도로 집계하는 위탁연구 참조 MVP입니다.
https://git.agrithing.ai/unist/crop-structure-mapping.git d699d39 e30994c 75404aa 6059ecc 75404aa3718216bf2f9fce484f2ecd0c29d54a97 asw_component/__init__.py +3−0 View filefrom .component import execute__all__ = ["execute"]asw_component/component.py +7−0 View filefrom __future__ import annotationsdef execute(payload: dict) -> dict: if not isinstance(payload, dict) or not payload: raise ValueError("a non-empty object is required") return {"component": "unist/crop-structure-mapping", "accepted": True, "status": "READY", "target": "vpu", "input_fields": sorted(payload.keys())}examples/input.json +17−0 View file{ "mapId": "row-03-map", "points": [ { "class": "stem", "x": 1.2, "y": 0.5, "z": 1.4 }, { "class": "obstacle", "x": 2.1, "y": 0.7, "z": 0.3 } ]}pyproject.toml +5−0 View file[project]name = "crop-structure-mapping"version = "0.1.0"description = "작물과 장애물 관측을 작업공간 지도로 집계하는 위탁연구 참조 MVP입니다."requires-python = ">=3.11"run.py +9−0 View filefrom __future__ import annotationsimport jsonimport sysfrom asw_component import executepath = sys.argv[1] if len(sys.argv) > 1 else Nonewith open(path, encoding="utf-8") if path else sys.stdin as source: payload = json.load(source)print(json.dumps(execute(payload), ensure_ascii=False, indent=2))