A-SW Hub / Repositories
Local Gitea · READ ONLY
← 저장소 Repositories
REPOSITORY

metafarmers/fruit-work-target-perception Private

[참조 MVP] 과채류 작업대상 인식 — RGB-D 관측에서 과실과 생장점을 식별하고 로봇 작업 후보를 구조화하는 참조 MVP입니다.

https://git.agrithing.ai/metafarmers/fruit-work-target-perception.git
4 commits
COMMIT DETAIL

feat: add executable institution reference MVP

A-SW Reference Factory <[email protected]> · 2026. 8. 3. 오후 2:18:28
66d6ea9e932717d3fd5032864edc6a4ea082e58b
5 changed files +40 −0 parent bee1524
added asw_component/__init__.py +3−0 View file
@@ -0,0 +1,3 @@
1 + from .component import execute
2 +
3 + __all__ = ["execute"]
added asw_component/component.py +7−0 View file
@@ -0,0 +1,7 @@
1 + from __future__ import annotations
2 +
3 +
4 + def execute(payload: dict) -> dict:
5 + if not isinstance(payload, dict) or not payload:
6 + raise ValueError("a non-empty object is required")
7 + return {"component": "metafarmers/fruit-work-target-perception", "accepted": True, "status": "READY", "target": "vpu", "input_fields": sorted(payload.keys())}
added examples/input.json +16−0 View file
@@ -0,0 +1,16 @@
1 + {
2 + "frameId": "greenhouse-row-03",
3 + "observations": [
4 + {
5 + "id": "fruit-17",
6 + "kind": "fruit",
7 + "confidence": 0.94
8 + },
9 + {
10 + "id": "tip-02",
11 + "kind": "growth-tip",
12 + "confidence": 0.89
13 + }
14 + ],
15 + "threshold": 0.8
16 + }
added pyproject.toml +5−0 View file
@@ -0,0 +1,5 @@
1 + [project]
2 + name = "fruit-work-target-perception"
3 + version = "0.1.0"
4 + description = "RGB-D 관측에서 과실과 생장점을 식별하고 로봇 작업 후보를 구조화하는 참조 MVP입니다."
5 + requires-python = ">=3.11"
added run.py +9−0 View file
@@ -0,0 +1,9 @@
1 + from __future__ import annotations
2 + import json
3 + import sys
4 + from asw_component import execute
5 +
6 + path = sys.argv[1] if len(sys.argv) > 1 else None
7 + with open(path, encoding="utf-8") if path else sys.stdin as source:
8 + payload = json.load(source)
9 + print(json.dumps(execute(payload), ensure_ascii=False, indent=2))