diff --git a/config/compound_eye.png b/config/compound_eye.png index ef3b17b..3b4885b 100644 Binary files a/config/compound_eye.png and b/config/compound_eye.png differ diff --git a/config/exported_config.json b/config/exported_config.json new file mode 100644 index 0000000..80e9487 --- /dev/null +++ b/config/exported_config.json @@ -0,0 +1,35 @@ +{ + "name": "prototype", + "version": "1.0", + "camera": { + "resolution_raw": [1920, 1080], + "fps": 60, + "units": 15, + "units_used": 9, + "resolution_stitch": [400, 400] + }, + "stitcher": { + "min_area_frac": 0.018, + "max_area_frac": 0.035, + "max_aspect_ratio": 100, + "index": [1, 2, 3, 6, 7, 8, 11, 12, 13], + "margin": 10, + "nominal_ov_pos": 100, + "n": [3, 3] + }, + "tracker": { + "adaptive": true, + "lower_threshold": 12.0, + "upper_threshold": 18.0, + "loop_closure_interval": 1, + "dis_preset": "medium" + }, + "contact": { + "min_contour_area": 3000, + "flow_threshold": 1, + "div_threshold": 0.02, + "expansion_threshold": 0.01, + "kernel_size": [5, 5], + "denoise_sigma": 15 + } +} diff --git a/example1_basic_pipeline.py b/example1_basic_pipeline.py index 53e17ee..a9d5378 100644 --- a/example1_basic_pipeline.py +++ b/example1_basic_pipeline.py @@ -19,10 +19,10 @@ def main(): # 步骤1:创建传感器对象 (必要步骤),config_name为配置文件名(内置配置文件名)或路径(自定义配置文件路径) # 方式1: 从视频文件读取 - sensor = orisys.Sensor("./s1.mp4", isstitch=True, cuda=True, verbose=True,config_name="prototype") + # sensor = orisys.Sensor("./s1.mp4", isstitch=True, cuda=True, verbose=True,config_name="prototype") # 方式2: 从摄像头读取(取消注释使用) - # sensor = orisys.Sensor(0, cuda=True, verbose=True, config_name="prototype") + sensor = orisys.Sensor(0, cuda=True, verbose=True, config_name="prototype") sensor.export_config(path="./config/exported_config.json") # 导出配置文件供查看和修改 print("\n按 'q' 退出程序,按 'r' 重置光流追踪器")