Skip to content

Dev latest#7

Merged
YihuiLu merged 20 commits intodevfrom
dev-latest
Mar 30, 2026
Merged

Dev latest#7
YihuiLu merged 20 commits intodevfrom
dev-latest

Conversation

@YihuiLu
Copy link
Copy Markdown
Contributor

@YihuiLu YihuiLu commented Mar 30, 2026

No description provided.

YihuiLu added 20 commits March 28, 2026 00:57
…nd fix exposure mode save conflict

- 从驱动 controls 读取曝光/模拟增益/数字增益范围并回传前端,避免固定滑条上限与硬件不一致 / Read exposure, analogue gain, and digital gain ranges from driver controls and return them to frontend to avoid fixed slider limits mismatching hardware
- 调整调试页设置提交流程与预设保存逻辑,确保手动/自动曝光状态与实际生效状态一致 / Align debug settings submit flow and preset save logic so manual/auto exposure state matches applied state

Made-with: Cursor
…rry Pi realtime performance

- 在预览抓取器中引入抓帧与JPEG编码并行流水线,降低串行阻塞导致的帧率下滑 / Introduce parallel capture and JPEG encoding pipeline in preview grabber to reduce FPS drops caused by serial blocking
- 新增预览JPEG质量可配置项并默认下调质量,优先保障低功耗设备下的预览稳定性 / Add configurable preview JPEG quality with lower default to prioritize preview stability on low-power devices

Made-with: Cursor
- 照片与视频同名 .txt 记录完整相机参数;视频停止时写入侧车 / Sidecar with full camera params; video sidecar on stop
- 文件名含参数摘要与时间戳毫秒 / Filename param slug and ms timestamp
- 下载图片或视频时自动拉取同名侧车 / Auto-fetch sidecar when downloading media
- install 脚本移除 libatlas-base-dev、libspidev-dev / Remove optional apt deps from install script

Made-with: Cursor
- 新增 scripts/mirror.sh、board-update.sh,增强 install.sh(镜像、发行版检测、PEP 668)/ Add mirror helpers, OS checks, venv policy
- 新增 DEPLOY.md、plate-solve-data.md,更新开发指南 / Add deployment and plate-solve docs
- 移除 catalog API 与旧 catalog 数据,引入 vendor tetra3 与 plate_solve 目录调整 / Remove catalog API; add vendored tetra3
- 分析/实时与前端调试页、测试与依赖锁文件更新 / Analysis, realtime, tests, poetry.lock

Made-with: Cursor
- scripts/uninstall.sh:停止 systemd、移除 unit、可选删 .venv 与数据 / Stop service, remove unit, optional venv/data
- 更新开发指南中英说明 / Update development README (CN/EN)

Made-with: Cursor
- README §6.3:uninstall.sh 行为、环境变量与示例 / CN guide: §6.3 uninstall section
- README_EN §6.3:parallel English section / EN guide
- DEPLOY / DEPLOY_EN:增加卸载小节 / Short uninstall section in checklists

Made-with: Cursor
…op DEPLOY

- README / README_EN 新增 §0 部署速查(爱好者复刻)/ Add §0 quick checklist
- 删除 DEPLOY.md、DEPLOY_EN.md,避免与主指南重复 / Remove duplicate DEPLOY pair

Made-with: Cursor
…etry venv on board

- mirror.sh:numpy/scipy 校验与 systemd ExecStart 同步函数 / Add verify + ExecStart sync helpers
- board-update / install:poetry install 后校验 scipy,必要时 --no-cache 与 pip 补装 / Verify scipy after install
- board-update:每次更新将 ExecStart 指向当前 .venv,避免 ~/.virtualenvs 旧路径 / Sync ExecStart each update
- uninstall:可选 OGSCOPE_UNINSTALL_REMOVE_LEGACY_POETRY_VENV 清理遗留全局名 venv / Optional legacy venv cleanup
- 开发文档:补充 scipy 导入失败排错 / Docs: scipy troubleshooting

Made-with: Cursor
…nd Tetra extraction pipeline

- vendor/tetra3 补齐上游包文件(cedar_detect、cli、proto 等)/ Full upstream tetra3 package layout
- 分析单图使用 solve_from_bgr_frame(get_centroids_from_image + solve)/ Analysis matches Tetra3 solve_from_image
- StarExtractor 大图与轮廓防爆、几何过滤 / Star extract RAM guards and shape filters
- SolveResult tetra 字段 JSON 安全序列化 / numpy-safe to_dict for FastAPI
- .gitignore 忽略 data/plate_solve/default_database.npz(大文件)/ Ignore large pattern DB blob
- tests:mock solve_from_bgr_frame / Update conftest mocks

Made-with: Cursor
- 解算结果含 solve_overlay,少星时亦返回质心叠加 / Include solve_overlay; TOO_FEW still returns centroids overlay
- Tetra3 调用 return_matches 以获取证认与图案星 / Pass return_matches for matched stars
- 调试分析页:Canvas 叠加层开关与摘要面板 / Debug page: overlay toggles and summary panel
- 更新 conftest 中 solve_from_bgr_frame mock / Update solve_from_bgr_frame mock in tests

Made-with: Cursor
- 重构 index 为 dark 模式、Tailwind 与 Material Symbols / Refactor index with dark mode, Tailwind, Material Symbols
- 新增 hud-home.css 铺满视口与顶栏遥测等辅助样式 / Add hud-home.css for full-viewport HUD and telemetry
- GPS 文本使用不间断空格替代 textContent 内 HTML 实体 / Use NBSP in GPS textContent instead of HTML entities

Made-with: Cursor
…ancements

- 扩展解算器配置与提星参数(Settings、CentroidExtractionParams)/ Extend solver settings and centroid params
- 分析服务:上传列表、预览、任务与解算接口 / Analysis service: uploads, preview, jobs, solve endpoints
- 调试页:上传列表、提星调参、叠加预览;静态资源 mtime 缓存破坏 / Debug UI: uploads, centroid tuning, overlay; mtime-based asset cache bust
- 补充单元与集成测试 / Add unit and integration tests

Made-with: Cursor
- 新增 Vite+React+Tailwind 前端 web/analysis-ui,产物至 web/static/analysis-lab / Add Vite React UI and static build output
- 清单来源标签、批量解算、预设与实验记录、调试采集导入 / Manifest source, batch solve, presets, experiments, debug import
- CI 集成 npm build;开发板同步脚本 sync_dev_board.sh / CI npm build and dev board sync script
- 补充官方预设、文档与测试 / Official preset sample, README, tests

Made-with: Cursor
- 全局默认 1600×900、5fps、解算超时 3000ms、FOV 11 与提星长边 / Global defaults for camera, solve timeout, FOV, max side
- 图片/视频解算台、素材过滤、视频单帧解算与系统负载展示 / Image vs video labs, frame solve API, system metrics
- 实验快照、replay、批量保存、删除素材级联实验 / Experiment snapshots, replay payload, batch save, cascade delete
- 批量解算 model_validate 与前端深拷贝;置信度与 tetra Prob 展示 / Batch solve validation and prob display
- 分析 i18n JSON、Vite 构建产物与单测更新 / Analysis i18n, build artifacts, unit tests

Made-with: Cursor
…ore debug preview stability

- 统一相机重配置临界区并加固共享抓帧错误处理,避免分辨率/颜色切换导致竞态与取消异常外溢 / Unify camera reconfiguration critical sections and harden shared grabber error handling to prevent races and cancellation leakage during resolution/color switching
- 调试控制台与相机接口改为稳定消费共享帧流,补齐首帧兜底与重连行为,修复启动后黑屏与无法点击预览问题 / Make debug console and camera endpoints consume the shared frame stream reliably, add first-frame fallback and reconnect behavior, and fix black screen/unresponsive preview start
- 增加运行时预览参数与默认参数分层能力,支持显式确认后再写入默认配置 / Add layered runtime-preview vs persisted-default camera parameters with explicit confirmation before persisting defaults

Made-with: Cursor
…ability

- 修复视频解算台上传素材预览不稳定问题,增加浏览器不支持格式时的明确提示 / Fix unstable uploaded video preview and add clear unsupported-format hints
- 将视频与相机解算操作统一放到右侧控制区,补充相机解算开始/停止/单次按钮以避免误触与不可达 / Move video and camera solve actions to the right control panel and add start/stop/single-shot camera solve controls
- 同步更新分析台多语言文案与构建产物,确保交互行为与展示一致 / Update analysis i18n texts and build artifacts to keep behavior and UI consistent

Made-with: Cursor
…lysis UI

- 解算档位(speed/balanced/robust)与质心参数合并 / Solve profiles and centroid merge
- 专用 ThreadPoolExecutor 避免与预览争用 / Dedicated executor for solve jobs
- 分析 API、schema、前端、i18n 与静态构建同步 / API, schemas, React, i18n, static assets
- 解算器与测试配置小幅调整 / Solver tweaks and test conftest

Made-with: Cursor
…e solve

- 提星前低分辨率高斯背景估计与 BGR 校正 / Downsampled Gaussian BG flatten before Tetra3 centroiding
- API 与任务增加 large_scale_bg_subtract;配置 solver_large_scale_bg_downsample
- 解算控制台复选框与中英 i18n;重建 analysis-lab 静态资源
- 单元测试 subtract_large_scale_background_bgr

Made-with: Cursor
…format failures

- 统一 Python 版本到 3.10+ 并调整 CI/Release 工作流矩阵,避免 Poetry 在 3.9 安装失败 / Align Python versions to 3.10+ in CI and release workflows to avoid Poetry install failures on 3.9
- 执行 Black/Ruff 批量修复并更新 Ruff 配置,确保本地与 CI 的 lint/format 行为一致 / Apply Black/Ruff batch fixes and update Ruff config so local and CI lint-format behavior matches
- 修复环境探测与异常处理细节并放宽 Codecov 上传失败策略,提升流水线稳定性 / Improve environment checks and exception handling, and relax Codecov upload failure policy for more stable pipelines

Made-with: Cursor
@YihuiLu YihuiLu merged commit 7264b36 into dev Mar 30, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant