Skip to content

feat(calibration): 1920x1080 参考鱼眼内参 FISHEYE_FALLBACK_CAL_HD - #45

Merged
Vertax42 merged 1 commit into
mainfrom
feat/fisheye-hd-reference-cal
Nov 21, 2026
Merged

Vertax42 merged 1 commit into
mainfrom
feat/fisheye-hd-reference-cal

Conversation

@Vertax42

Copy link
Copy Markdown
Collaborator

背景

用户要求把主爪 TCGU01A28Z0116m(相机 XCA28Z0116m、固件 1.3.1)2026-11-22 在 1920x1080 下的标定(棋盘格 16 张,RMS 0.145 px)记为 SDK 的 1080p 参考内参;理论上所有设备都应重新标定,这组只作参考。数值取自设备 flash 读回的 float32(经产线配置工具会话转来)。

改动

  • FISHEYE_FALLBACK_CAL_HD、FISHEYE_FALLBACK_CAL_HD_SOURCE、fisheye_fallback_cal_for(w, h)(C++ / Python)。
  • resolve_fisheye_for(1920, 1080) 槽空时退回 HD 参考(尺寸 1920x1080)。行为变化:1080p 腕部相机在完全没有标定的设备上改为用 HD 参考并告警(原先抛错);只有另一分辨率标定时仍抛错。
  • matches_fisheye_fallback_cal(cal, w, h) 按尺寸比对;matches_reference 与写入告警改用它。HD 参考就是 0116m 自己的标定,那台按构造会匹配(告警写明)。单参数形式不变。
  • 文档:CALIBRATION.md、USAGE(中英)、CHANGELOG [Unreleased]。

验证

  • C++ 666 passed(ResolveForAnEmptySlotFallsBackToTheReference、NoCalibrationAnywhereFallsBackToTheReference 按新行为改写;新增 TheHdReferenceIsMatchedBySize、AnHdSlotHoldingTheHdReferenceIsFlagged);pytest 176 passed / 2 skipped;ruff 通过。
  • 实机未测:当前两台设备被产线配置工具 GUI 占用。

🤖 Generated with Claude Code

用户要求把主爪 TCGU01A28Z0116m(相机 XCA28Z0116m、固件 1.3.1)在 1920x1080 下的
标定记为 SDK 参考:棋盘格 16 张、RMS 0.145 px,2026-11-22,取设备 flash 读回的
float32 值。理论上所有设备都应重新标定,这组只作参考。

- FISHEYE_FALLBACK_CAL_HD / FISHEYE_FALLBACK_CAL_HD_SOURCE / fisheye_fallback_cal_for(w, h)
  (C++ / Python)。
- resolve_fisheye_for(1920, 1080) 退回 HD 参考(尺寸 1920x1080),不再退回在该尺寸下
  会被去畸变拒绝的 640x480 参考:1080p 腕部相机在完全没有标定的设备上改为用 HD 参考
  并告警(原先抛错);只有另一分辨率标定时仍抛错。
- matches_fisheye_fallback_cal(cal, w, h) 按尺寸比对,matches_reference 与写入告警改用
  它;HD 参考就是 0116m 自己的标定,那台按构造会匹配,告警里写明。单参数形式不变(640)。

C++ 666 passed(两个旧用例按新行为改写,新增 2 个),pytest 176 passed / 2 skipped。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Vertax42
Vertax42 merged commit d3a888b into main Nov 21, 2026
3 checks passed
@Vertax42
Vertax42 deleted the feat/fisheye-hd-reference-cal branch November 21, 2026 16:55
@Vertax42 Vertax42 mentioned this pull request Nov 21, 2026
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