update config

This commit is contained in:
gcw_4spBpAfv
2026-05-11 18:05:37 +08:00
parent bd5ebdaa43
commit 0a1c7cff5c
2 changed files with 10 additions and 1 deletions

View File

@@ -43,7 +43,8 @@ WIFI_CONFIG_AP_PASSWORD = "12345678" # 热点密码WPA2 通常至少 8
WIFI_CONFIG_HTTP_HOST = "0.0.0.0" # HTTP 监听地址 WIFI_CONFIG_HTTP_HOST = "0.0.0.0" # HTTP 监听地址
WIFI_CONFIG_HTTP_PORT = 8080 # 默认 8080避免占用 80 需 root 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/ 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) 配置 ===== # ===== TCP over SSL(TLS) 配置 =====
USE_TCP_SSL = True # True=按手册走 MSSLCFG/MIPCFG 绑定 SSL USE_TCP_SSL = True # True=按手册走 MSSLCFG/MIPCFG 绑定 SSL
TCP_LINK_ID = 2 # TCP_LINK_ID = 2 #

View File

@@ -84,3 +84,11 @@ printf 'AT+MHTTPDLFILE="http://static.shelingxingqiu.com/shoot/v1/main.py","down
然后在板子上跑 test 目录下的 test_camera_rtsp.py 让相机启动了一个服务然后在电脑上接收这个视频流并且跑opencv 内置的标定程序: 然后在板子上跑 test 目录下的 test_camera_rtsp.py 让相机启动了一个服务然后在电脑上接收这个视频流并且跑opencv 内置的标定程序:
set OPENCV_FFMPEG_CAPTURE_OPTIONS="rtsp_transport;tcp" 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 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