Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
18d4839
new分支:1.添加.gitignore忽略Lib目录 2.修改main.py优化无人机控制逻辑
xiaoshiyuan888 Dec 18, 2025
99c7bf4
Merge branch 'OpenHUTB:main' into new
xiaoshiyuan888 Dec 18, 2025
dd54e83
改进无人机手势控制系统,优化摄像头处理和手势稳定性
xiaoshiyuan888 Dec 18, 2025
09037fe
Merge branch 'OpenHUTB:main' into new
xiaoshiyuan888 Dec 19, 2025
d1726c9
优化手势识别算法,提升系统稳定性和用户体验
xiaoshiyuan888 Dec 19, 2025
0d155c7
Merge branch 'OpenHUTB:main' into new
xiaoshiyuan888 Dec 19, 2025
fd2edd8
Merge branch 'OpenHUTB:main' into new
xiaoshiyuan888 Dec 19, 2025
4b5e52e
优化英文界面,改进手势识别算法,增强单指识别准确率
xiaoshiyuan888 Dec 19, 2025
5aa3395
Merge branch 'new' of https://github.com/xiaoshiyuan888/nn into new
xiaoshiyuan888 Dec 19, 2025
87eeee6
Merge branch 'OpenHUTB:main' into new
xiaoshiyuan888 Dec 19, 2025
f1897a2
持续优化手势识别算法,解决位置敏感问题,增强全屏手势检测能力
xiaoshiyuan888 Dec 19, 2025
75421ae
Merge branch 'OpenHUTB:main' into new
xiaoshiyuan888 Dec 19, 2025
f095776
Merge branch 'OpenHUTB:main' into new
xiaoshiyuan888 Dec 19, 2025
a7cb67e
Merge branch 'OpenHUTB:main' into new
xiaoshiyuan888 Dec 19, 2025
1c7a07d
优化手势标签显示,修复中文字体缺失导致的问号问题
xiaoshiyuan888 Dec 19, 2025
a499a9b
Merge branch 'OpenHUTB:main' into new
xiaoshiyuan888 Dec 19, 2025
81afe79
Merge branch 'OpenHUTB:main' into new
xiaoshiyuan888 Dec 19, 2025
36f5403
新增:语音反馈系统,支持多平台音频播放
xiaoshiyuan888 Dec 19, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
108 changes: 86 additions & 22 deletions src/autonomus_drone_hand_gesture_project/gesture_config.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,95 @@
{
"system": {
"version": "1.0",
"last_updated": "2025-12-19 20:51:44",
"debug_mode": false
},
"camera": {
"device_id": 0,
"resolution": {
"width": 640,
"height": 480
},
"fps": 30,
"flip_horizontal": true,
"use_virtual_camera": false,
"index": 0,
"width": 640,
"height": 480,
"fps": 30
"height": 480
},
"gesture_detection": {
"skin_hsv_ranges": {
"h_low": 0,
"h_high": 25,
"s_low": 30,
"s_high": 255,
"v_low": 60,
"v_high": 255
},
"min_hand_area": 2000,
"max_hand_area": 30000,
"confidence_threshold": 0.5,
"smoothing_window": 5,
"detection_interval": 1
},
"gesture_mapping": {
"0": "stop",
"1": "forward",
"2": "backward",
"3": "up",
"4": "down",
"5": "left",
"6": "right",
"7": "hover"
},
"drone_control": {
"base_speed": 2.0,
"altitude": -10.0,
"control_delay": 0.3,
"takeoff_height": 5.0,
"emergency_stop_enabled": true
},
"display": {
"show_fps": true,
"show_confidence": true,
"show_gesture_info": true,
"show_control_help": true,
"show_detection_overlay": true,
"theme": "dark",
"show_help": true,
"show_contours": true,
"show_bbox": true,
"show_fingertips": true,
"show_palm_center": false,
"show_hand_direction": false,
"show_debug_info": false,
"show_direction": true,
"show_region_grid": true
},
"performance": {
"target_fps": 30,
"enable_multithreading": false,
"enable_hardware_acceleration": true,
"resize_factor": 1.0,
"enable_multiprocessing": false
},
"gesture": {
"skin_lower_h": 0,
"skin_upper_h": 25,
"skin_lower_s": 30,
"skin_upper_s": 255,
"skin_lower_v": 60,
"skin_upper_v": 255,
"min_hand_area": 3000,
"max_hand_area": 30000,
"history_size": 10,
"smooth_frames": 5,
"min_confidence": 0.6,
"detection_interval": 2,
"hand_ratio_threshold": 1.5,
"contour_simplify_epsilon": 0.02,
"defect_distance_threshold": 20,
"palm_circle_radius_ratio": 0.3,
"skin_lower": [
0,
30,
Expand All @@ -16,11 +100,6 @@
255,
255
],
"min_hand_area": 3000,
"history_size": 10,
"smooth_frames": 5,
"min_confidence": 0.6,
"detection_interval": 2,
"hand_region_threshold": 0.2,
"face_exclusion_area": 8000,
"palm_aspect_ratio": 1.3,
Expand All @@ -31,20 +110,5 @@
"duration": 0.3,
"altitude": -10.0,
"control_interval": 0.3
},
"display": {
"show_fps": true,
"show_confidence": true,
"show_help": true,
"show_contours": true,
"show_bbox": true,
"show_fingertips": true,
"show_direction": true,
"show_region_grid": true
},
"performance": {
"target_fps": 30,
"resize_factor": 1.0,
"enable_multiprocessing": false
}
}
20 changes: 15 additions & 5 deletions src/autonomus_drone_hand_gesture_project/gesture_config_v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
},
"gesture": {
"skin_lower_h": 0,
"skin_upper_h": 178,
"skin_upper_h": 175,
"skin_lower_s": 0,
"skin_upper_s": 255,
"skin_upper_s": 57,
"skin_lower_v": 0,
"skin_upper_v": 77,
"skin_upper_v": 53,
"min_hand_area": 2000,
"max_hand_area": 30000,
"history_size": 10,
Expand All @@ -21,7 +21,15 @@
"hand_ratio_threshold": 1.5,
"contour_simplify_epsilon": 0.02,
"defect_distance_threshold": 20,
"palm_circle_radius_ratio": 0.3
"palm_circle_radius_ratio": 0.3,
"validation_buffer_size": 5,
"validation_threshold": 0.8,
"min_hold_frames": 8,
"false_trigger_cooldown": 0.5,
"min_gesture_duration": 0.3,
"stability_threshold": 3,
"position_change_threshold": 0.15,
"area_change_threshold": 0.3
},
"drone": {
"velocity": 2.5,
Expand All @@ -38,7 +46,9 @@
"show_fingertips": true,
"show_palm_center": true,
"show_hand_direction": true,
"show_debug_info": false
"show_debug_info": false,
"show_validation_info": true,
"show_stability_indicator": true
},
"performance": {
"target_fps": 30,
Expand Down
83 changes: 69 additions & 14 deletions src/autonomus_drone_hand_gesture_project/gesture_config_v3.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,56 @@
"index": 0,
"width": 640,
"height": 480,
"fps": 30
"fps": 30,
"flip_horizontal": true,
"auto_exposure": true
},
"gesture": {
"skin_lower_h": 0,
"skin_upper_h": 25,
"skin_lower_s": 30,
"skin_upper_s": 255,
"skin_lower_v": 60,
"skin_upper_v": 255,
"skin_upper_h": 176,
"skin_lower_s": 0,
"skin_upper_s": 72,
"skin_lower_v": 1,
"skin_upper_v": 96,
"min_hand_area": 2000,
"max_hand_area": 30000,
"history_size": 15,
"smooth_frames": 10,
"min_confidence": 0.5,
"detection_interval": 1,
"gesture_lock_frames": 8,
"hand_ratio_threshold": 1.5,
"contour_simplify_epsilon": 0.02,
"defect_distance_threshold": 20,
"palm_circle_radius_ratio": 0.3
"palm_circle_radius_ratio": 0.3,
"validation_buffer_size": 8,
"validation_threshold": 0.75,
"min_hold_frames": 10,
"false_trigger_cooldown": 0.8,
"min_gesture_duration": 0.5,
"stability_threshold": 5,
"position_change_threshold": 0.1,
"area_change_threshold": 0.25,
"use_background_subtraction": true,
"bg_history": 50,
"bg_var_threshold": 16,
"morph_close_iterations": 2,
"morph_open_iterations": 2,
"use_roi": true,
"roi_margin": 50,
"finger_min_length_ratio": 0.15,
"finger_max_length_ratio": 0.8,
"enable_multi_hand": false,
"hand_tracking_smoothness": 0.7,
"gesture_lock_frames": 8
},
"drone": {
"velocity": 2.5,
"duration": 0.3,
"altitude": -10.0,
"control_interval": 0.3
"control_interval": 0.3,
"angular_velocity": 45.0,
"smooth_movement": true,
"emergency_landing_timeout": 10.0
},
"display": {
"show_fps": true,
Expand All @@ -36,18 +61,48 @@
"show_contours": true,
"show_bbox": true,
"show_fingertips": true,
"show_palm_center": false,
"show_hand_direction": false,
"show_debug_info": false
"show_palm_center": true,
"show_hand_direction": true,
"show_debug_info": false,
"show_speech_status": true,
"show_validation_info": true,
"show_stability_indicator": true,
"use_english_text": true,
"show_skin_mask": false,
"show_trajectory": false,
"show_gesture_history": false,
"ui_theme": "dark",
"font_size": 16
},
"performance": {
"target_fps": 30,
"resize_factor": 1.0,
"enable_multiprocessing": false
"enable_multiprocessing": false,
"optimize_for_low_end": false,
"max_frame_skip": 2
},
"calibration": {
"auto_calibrate_skin": true,
"skin_calibration_frames": 30,
"hand_size_calibration": true
"hand_size_calibration": true,
"calibration_done": true,
"environment_adaptation": true,
"adaptive_threshold": true
},
"speech": {
"enabled": true,
"volume": 1.0,
"rate": 150,
"announce_gestures": true,
"announce_connections": true,
"announce_flight_events": true,
"min_gesture_confidence": 0.7
},
"advanced": {
"use_ml_backup": false,
"enable_gesture_learning": false,
"save_gesture_samples": false,
"log_level": "INFO",
"auto_save_config": true
}
}
Loading
Loading