REPOSITORY
jbnu/environment-adaptive-perception Private
[참조 MVP] 환경 적응형 인지 A-SW — 조도·강우·먼지 조건에 따라 탐지 임계값과 센서 우선순위를 조정합니다.
https://git.agrithing.ai/jbnu/environment-adaptive-perception.git f7fec31 feat: adopt python VPU SDV reference implementation
5816174 feat: adopt python VPU SDV reference implementation
ae4151f ci: add language-specific static and dynamic analysis
2ed89a8 docs: define component scope and interface contract
a8a443e ci: verify contract tests and evidence package
f4e589c feat: add executable reference MVP
be6d31d docs: define component scope and interface contract
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()