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

jbnu/environment-adaptive-perception Private

[참조 MVP] 환경 적응형 인지 A-SW — 조도·강우·먼지 조건에 따라 탐지 임계값과 센서 우선순위를 조정합니다.

https://git.agrithing.ai/jbnu/environment-adaptive-perception.git
7 commits
1 items · main
·/ tests/test_component.py
python · 598 B · 11baa0c Download
from __future__ import annotationsimport jsonimport unittestfrom pathlib import Pathfrom asw_component import executeROOT = Path(__file__).resolve().parents[1]class ComponentTest(unittest.TestCase):    def test_reference_scenario(self):        payload = json.loads((ROOT / "examples/input.json").read_text(encoding="utf-8"))        result = execute(payload)        self.assertEqual(result["primary_sensor"], "rgb_camera")        self.assertGreater(result["detection_threshold"], 0.55)        self.assertLess(result["degradation"], 0.5)if __name__ == "__main__":    unittest.main()