跳转到内容

C102 第 3 课:镜头、快门、传感器与 IMU

无论一套方案录制哪些视角,每台相机都是一个镜头、一个传感器和一个快门,旁边通常还有一个 IMU。这一课逐条讲那些决定画面能否使用的规格条目,同时给出当前公开采集设备使用的数值,以及让你自己核对规格书的公式。

另见术语表的采集硬件和光学部分。

术语 含义
视场角(HFOV、VFOV、DFOV) 相机在图像宽度、高度或对角线方向上覆盖的角度
等距鱼眼 一种镜头,其图像半径与光线角度成正比,r = f · θ,因此它可以达到 180° 甚至更大
全局快门 每个像素在同一时刻开始和结束曝光
卷帘快门 各行依次曝光,所以最后一行比第一行晚一个完整的读出时间才被读出
曝光时间 每个像素为一帧收集光的时长;它决定运动模糊
像素间距 像素与像素之间的中心距;像素越大,收集的光越多
输出数据率(ODR) IMU 每秒输出多少个采样
满量程范围 IMU 在输出饱和截断之前能报告的最大旋转速率或加速度

实用指南描述的第一人称相机使用广角和鱼眼镜头:Build AI 的相机横向 128°,EGO1GS 每台相机 157° × 84°,Ego-OSCAR 每个传感器 126°,直到当前头戴设备上 180° 及以上的鱼眼镜头(从一个镜头到多个镜头、当前的采集设备)。据我们所知,人看任务的时候多于看自己的手,而手在视野中位置较低,靠近身体;只覆盖注视方向的镜头会把手漏掉。已发表的工作为使用广角镜头给出了同样的理由:Activities of Daily Living 的作者选择了一台 170° 的相机,因为 “A large viewing angle is important in capturing this type of footage to reduce object and hand truncation”(意为:大视角对拍摄这类画面很重要,可以减少物体和手被画面截断的情况)(Pirsiavash and Ramanan, 2012)。在腕部,这种影响已被测量过:把 UMI 的 155° 鱼眼裁剪到 69°,它的杯子任务从 20/20 降到了 11/20(第 2 课)。

Head camera field of view: narrow versus wide lens Side view of a person at a bench, looking at the task further along it. A narrow lens centred on their gaze covers the task but not their hands, which sit close to the body and lower in the view. A wide lens covers both the task and the hands. task hands where they look Wide lens: hands and task in frame Narrow lens: hands drop out of frame
People look at the task, not at their hands. A narrow lens centred on the gaze loses the hands; a wide lens keeps both in frame.

宽视野有三项代价:

  • 每度的像素更少。同样多的像素被摊到了更大范围的场景上。
  • 处理流程必须建模的畸变。针孔投影 r = f · tan θ 在 90° 处趋于无穷大,所以没有哪种直线投影镜头能达到 180°;鱼眼镜头遵循其他投影(镜头投影与畸变)。鱼眼头戴设备随机提供 Kannala–Brandt 内参(Build AI、RoboCap)。要选一种你的处理流程的相机模型能够描述的镜头:C201 的第 1 课讲这些模型。
  • 与普通照片之间的差距。VISTA 的作者发现,对基准测试图像做鱼眼变换 “causes a consistent mean absolute drop of 4.0 points (8.6% relative degradation) across all models”(意为:在所有模型上都造成一致的下降,平均绝对下降 4.0 分,相对退化 8.6%)(Yang et al., 2026,转引自手持夹爪硬件对比)。
Projection functions: image radius against ray angle A plot of image radius r, in units of the focal length f, against the angle theta between an incoming ray and the optical axis, from 0 to 100 degrees. The perspective curve r = f tan theta climbs steeply and goes to infinity at 90 degrees. The fisheye curves stay finite: stereographic r = 2f tan(theta/2) reaches 2f at 90 degrees, equidistant r = f theta is a straight line reaching about 1.57f, equisolid r = 2f sin(theta/2) reaches about 1.41f, and orthographic r = f sin theta flattens to f at 90 degrees. All five agree near the axis. 0°20°40°60°80°100°0123 angle of the ray off the optical axis, θ image radius r, in units of f perspectivestereographicequidistantequisolidorthographic
How far from the image centre a ray lands (r, in units of f) for a ray arriving θ off the axis. The perspective (pinhole) curve r = f·tan θ runs to infinity at 90°, so no rectilinear lens can reach a 180° view. The fisheye projections stay finite. All five agree near the axis, which is why a narrow lens looks like a pinhole.

要用焦距和传感器尺寸核对规格书上的视场角:对直线投影镜头,FOV = 2 · atan(d / 2f);对等距鱼眼,FOV = d / f,单位为弧度,前提是像圈覆盖了这个方向的尺寸(镜头如何成像)。

对焦。焦距短,超焦距就小,所以一个固定的对焦位置几乎能覆盖从一臂距离往外的所有范围。在实用指南的算例中,一只 2.0 mm f/2.0 的镜头对焦在 0.5 m 处,以 2 像素的模糊限值计,从 0.20 m 到无穷远都是清晰的,但以 1 像素的限值计,没有哪一个对焦位置能覆盖 0.25 m 到无穷远(定焦可穿戴相机)。自动对焦和防抖会逐帧改变内参,所以用于测量的相机要把它们锁定(破坏标定的镜头效应)。事后转动定焦镜头同样会使标定作废:标定出的焦距其实是镜头到传感器的距离,所以在实用指南的 2.0 mm M12 例子中,转动不到 6° 就会使图像边缘附近的点移动 2.6 px(对焦改变内参)。

2025 和 2026 年公布的专用采集头戴设备使用全局快门相机。卷帘快门仍然存在于运动相机、智能手机,以及头显和研究用眼镜的高分辨率 RGB 相机中,后两者把它与全局快门的追踪相机搭配使用(全局快门与卷帘快门)。

Global shutter and rolling shutter timing Two timing charts with sensor rows down the side and time running left to right. Global shutter: every row's exposure bar starts and ends at the same moments, so the whole image shows one instant. Rolling shutter: each row's exposure bar starts a row time, t_row, after the row above, so the bars form a staircase. Every bar has the same length, the exposure time, which sets motion blur within a row. The readout time, from the first row to the last, equals t_row times the number of rows and sets the skew between the top and bottom of the image, whatever the exposure time. Global shutter Rolling shutter exposure time exposure time every row exposes over the same interval each row starts t_row after the row above t_row readout time = t_row × number of rows top rowbottom row top rowbottom row timetime
Exposure timing, row by row. A global shutter exposes every row over the same interval. A rolling shutter starts each row a row time (t_row) after the one above, so the last row is read a whole readout time (t_row × number of rows) after the first. Exposure time sets blur within a row; readout time sets skew across the frame, so a short exposure does not fix a rolling shutter.

短曝光不能解决卷帘快门的问题。曝光决定一行之内的模糊;读出时间决定整帧上的倾斜变形。在实用指南的算例中,Aria Gen 1 RGB 相机的 16 ms 读出时间遇上 100°/s 的转头,会在最上一行和最下一行之间造成约 34 px 的差(算例)。

A vertical pole seen during a head turn The same vertical pole photographed while the head turns to the right, so the scene moves left across the image. With a global shutter every row is captured at the same instant and the pole is straight. With a rolling shutter the bottom rows are read out later than the top rows, after the scene has moved further left, so the pole leans. The horizontal offset between top and bottom is head rate times readout time, converted to pixels. Worked example from the page: a 16 ms readout at 100 degrees per second gives 1.6 degrees, about 34 pixels at 20.9 pixels per degree. Not to scale. the head turns right, so the scene moves left in the image Global shutter all rows at one instant: the pole is straight Rolling shutter lower rows read later: the pole leans skew row read-out order
What row-by-row readout does to a vertical edge during a head turn: the lower rows are read later, after the scene has moved, so straight lines lean by roughly head rate × readout time. The worked numbers (16 ms readout at 100°/s ≈ 34 px) are on Global Shutter vs Rolling Shutter. Not to scale.

卷帘快门在已发表的处理流程中行得通的情况有:场景静止且相机的运动以高采样率已知,追踪器对行时序建模,读出时间短,或者视频用于外观而不是几何。来源明确反对的情况是:在没有逐行时序的条件下,用卷帘快门相机跨视角对运动的手做三角测量(什么时候卷帘快门就够用)。取舍在于像素尺寸和噪声:Aria Gen 2 的全局快门 CV 相机在 512 × 512 的阵列上有 4.6 µm 的像素,它的卷帘快门 RGB 相机在 12 MP 的传感器上是 1.0 µm 的像素(全局快门的代价)。

已公布的手部采集头戴设备以 1080p、30 fps 左右录制,有些达到 60 fps(图像传感器)。分辨率按任务选择:

任务 已发表系统中使用的分辨率
头部追踪(VIO/SLAM) 512 × 512 到 1024 × 1024,或由 1080p 降采样
手部和双目深度,头部视角 1920 × 1080 到 1920 × 1200
腕部视角 1280 × 720(EgoKit)
读取场景文字 GLIMPSE 中为读小字用 12 MP

传感器尺寸固定时,像素越多就意味着像素越小,而收集到的光与像素面积成正比:一个 3.0 µm 的像素收集的光是 1.0 µm 像素的 9 倍(分辨率和像素尺寸)。

Motion blur from a turning head, by exposure time With the head turning at 100 degrees per second and 1920 pixels across a 120 degree view, about 16 pixels per degree, an exposure of 1/30 s smears each point across about 53 pixels, 1/60 s about 27, 1/250 s about 6 and 1/1000 s about 2. Head turning at 100°/s · 1920 px across a 120° view ≈ 16 px per degree 1/30 s 1/60 s 1/250 s 1/1000 s ≈ 53 px ≈ 27 px ≈ 6 px ≈ 2 px Exposure time Length of the smear in the image
How far a point smears across the image while the head turns at 100°/s, for a 1920-pixel-wide image covering 120°. Shorter exposures cut the blur in proportion.

曝光时间决定模糊:blur (px) ≈ angular rate (°/s) × exposure (s) × pixels per degree(运动模糊与曝光时间)。RoboCap 让每台相机自动曝光,但把曝光上限定在 10 ms。使用市电的灯以 100 或 120 Hz 频闪;EPIC-KITCHENS-100 以 50 fps 拍摄来避开它(市电频闪)。

陀螺仪承载相机帧与帧之间的运动信息,这让追踪在快速转动和模糊中不至于中断(可穿戴采集设备上的 IMU)。

The IMU fills the gaps between camera frames A 200 millisecond timeline. The camera takes a frame every 33 milliseconds, at 30 frames per second. The IMU reports every 5 milliseconds, at 200 Hz, so several inertial measurements fall between each pair of frames and carry the motion across the gap. Camera30 fps IMU200 Hz between frames, only the IMU knows how the head moved 200 ms shown
Camera frames are tens of milliseconds apart. The IMU reports many times in between, so it carries the motion across each gap, and through blur.

当前采集设备的共同模式是:相机头部组件上有一到两个 6 轴 MEMS IMU,以 200–800 Hz 采样,并由触发相机的同一个控制器读取(已公开设备上的 IMU)。IMU 规格书上有三条最要紧:

  • 采样率。除以帧率得到每个帧间隔内的采样数:200 Hz 在 30 fps 下是 6.7 个,800 Hz 是 26.7 个。
  • 满量程范围。传感器一旦饱和截断,那段旋转就永远丢失了。Aria Gen 1 带有一个 500 °/s 的 IMU 和一个 1000 °/s 的 IMU;RoboCap 的论文指出,在大约 500 °/s 以上,有些陀螺仪会饱和。更宽的量程不是没有代价的:位数固定时,每一级更粗,这会抬高量化噪声,所以要先选定生产中使用的量程,再去测量噪声(满量程范围)。
  • 时钟。IMU 必须与相机在同一个刚性部件上,并使用同一个时钟。标定求出的是 IMU 与相机之间的一个固定变换,所以如果它们之间的部件发生弯曲,这个变换就变了(与相机装在同一个刚性部件上);而用另一个时钟打时间戳的 IMU 采样,会被放在帧与帧之间错误的时刻,这就是当前采集设备在触发相机的控制器上读取 IMU 的原因(时钟和时间戳)。处在同一个刚体上,也是标定能够求出相机–IMU 变换的根本前提,而且只有在标定录制过程中让设备在每个轴上都运动才行(为什么每个轴都必须动)。规格书上的噪声数字用于比较器件;装配好的采集设备的噪声必须实测,RoboCap 对整批设备的估计值比裸芯片的数字高一个数量级(噪声)。
  1. 一份规格书承诺一台卷帘快门相机“曝光短”。这能消除转头时的倾斜变形吗?
  2. 一只直线投影镜头装在 3.84 mm 宽的传感器上,焦距为 2.0 mm。2 · atan(d / 2f) 给出的水平视场角大约是多少?
  3. 你的 IMU 以 200 Hz 采样,你的相机以 60 fps 运行。每个帧间隔内有多少个 IMU 采样?
  4. 说出卷帘快门相机在已发表的处理流程中行得通的两种条件。
  1. 不能。曝光决定一行之内的模糊;倾斜变形来自读出时间,即第一行和最后一行之间的延迟。
  2. 约 88°:2 · atan(3.84 / 4.0) ≈ 87.7°,即实用指南算例中的数字。
  3. 约 3.3 个。
  4. 以下任意两项:场景静止且相机的运动以高采样率已知;对行时序建模的追踪器;读出时间短,例如裁剪的高帧率模式;视频用于外观,而不是几何。