From 0a1c7cff5c7cb770c38e18df5d02d3fe65eaa771 Mon Sep 17 00:00:00 2001 From: gcw_4spBpAfv Date: Mon, 11 May 2026 18:05:37 +0800 Subject: [PATCH] update config --- config.py | 3 ++- design_doc/command_record.md | 8 ++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/config.py b/config.py index 3586c93..bf72cd5 100644 --- a/config.py +++ b/config.py @@ -43,7 +43,8 @@ WIFI_CONFIG_AP_PASSWORD = "12345678" # 热点密码(WPA2 通常至少 8 WIFI_CONFIG_HTTP_HOST = "0.0.0.0" # HTTP 监听地址 WIFI_CONFIG_HTTP_PORT = 8080 # 默认 8080,避免占用 80 需 root WIFI_CONFIG_AP_IP = "192.168.66.1" # 与 MaixPy Wifi.start_ap 默认一致,手机访问 http://192.168.66.1:8080/ - + # 这个地址需要和 /boot/wifi.ipv4_prefix 配合,才能正确访问。 + # 比如说 /boot/wifi.ipv4_prefix 需要写成 192.168.66 # ===== TCP over SSL(TLS) 配置 ===== USE_TCP_SSL = True # True=按手册走 MSSLCFG/MIPCFG 绑定 SSL TCP_LINK_ID = 2 # diff --git a/design_doc/command_record.md b/design_doc/command_record.md index fea95d4..15efb6f 100644 --- a/design_doc/command_record.md +++ b/design_doc/command_record.md @@ -84,3 +84,11 @@ printf 'AT+MHTTPDLFILE="http://static.shelingxingqiu.com/shoot/v1/main.py","down 然后在板子上跑 test 目录下的 test_camera_rtsp.py ,让相机启动了一个服务,然后在电脑上接收这个视频流,并且跑opencv 内置的标定程序: set OPENCV_FFMPEG_CAPTURE_OPTIONS="rtsp_transport;tcp" opencv_interactive-calibration -t=chessboard -w=9 -h=6 -sz=0.025 -v="http://192.168.1.81:8000/stream" 2>nul + + +7. 生成训练图片:在test目录下,执行以下命令。注意,其中 D:\code\shooting\target_photo\write.png 是靶纸的图片。 + D:\data\test_target_photo 是用来叠加的背景图 + + 7.1 生成靶纸及黑色三角形的截图的图片,带动动,但1.12的外框 +python .\synth_compose_yolo.py --perspective 0.04 --perspective-prob 0.8 --color-jitter 0.6 --bg-dir D:\data\test_target_photo --fg D:\code\shooting\target_photo\write.png --out ./synth_out --class-name triangle --zip ./maix_dataset.zip --num 60 --triangles-json archery_triangles_default.json --format voc --stage2-crop --stage2-pad-min 0.03 --stage2-pad-max 0.18 --motion-prob 0.9 --motion-kernel-max 8 --blur-max 0 --triangle-bbox-pad-frac 0.12 +