24 lines
676 B
Python
24 lines
676 B
Python
import asyncio
|
|
from .test_camera import test_rtsp_camera
|
|
from .test_person_detector import test_person_detector
|
|
from .test_distance_estimator import test_distance_estimator
|
|
from .test_api import test_distance_api
|
|
|
|
async def run_all_tests():
|
|
print("开始运行所有测试...")
|
|
# print("\n1. 测试摄像头模块")
|
|
# test_rtsp_camera()
|
|
|
|
print("\n2. 测试人物检测模块")
|
|
test_person_detector()
|
|
|
|
print("\n3. 测试距离估算模块")
|
|
test_distance_estimator()
|
|
|
|
# print("\n4. 测试API模块")
|
|
# await test_distance_api()
|
|
|
|
print("\n所有测试完成!")
|
|
|
|
if __name__ == "__main__":
|
|
asyncio.run(run_all_tests()) |