Rack Labs

How it works

In the order the rig measures a set

The rig turns three photographs of one instant into the 3D position of 33 joints, and from those into metrics and the load on each joint. The captions are in Korean; the text beside each animation tells the same in English. The 3D scenes can be turned by dragging.

1Global shutter

Rolling shutter against global shutter

Global shutter

A rolling shutter exposes the sensor one row at a time, from the top row down. While the exposure line travels down the frame the blade keeps turning, so each row shows the blade at a different moment and a straight blade comes out bent. A fast bar or a knee does the same thing.

A global shutter exposes every row at the same instant. The frame is one moment. The three cameras on the rig fire on one trigger within 0.12 ms, so the three images are three views of the same instant.

What to look for
  • The line across the sensor divides the rows already exposed from those still moving.
  • The chart under each sensor is the exposure time of every row.

2Lens calibration

Focal length, optical centre and distortion, per camera

Lens calibration, the principle

Before a pixel can be turned into a direction in space, the camera has to be described: where the optical centre sits, how long the focal length is and how the lens bends straight lines towards the edges. These numbers are the intrinsics, the matrix K and the distortion terms, and they are different for each of the three cameras.

The camera stays where it is and a calibration board is shown to it in about ten poses. The corners found in every shot pair a point on the board with a pixel, and from those pairs K and the distortion terms are solved. The result is one K file per camera that every later step reads.

What to look for
  • The small window at the top right is what the camera sees.
  • As the rig runs it has six stages; the K file is written only after shots held out of the fit pass the check.

3Position calibration

Position and orientation of the three cameras, relative to the rack

Position calibration

Lens calibration describes each camera on its own; position calibration places the three in one frame of reference, the rack. A board is set at a known position on the rack and each camera observes it, and from the board’s corners each camera’s rotation and position are solved relative to the rack. The result is checked against the rack’s real dimensions and written to a file.

From then on every point the cameras see gets a position in centimetres from the rack’s origin. Because the cameras are fixed to the rack, the calibration carries over to the next session.

What to look for
  • Four stages: floor, rack origin, camera to camera, file.
  • The rack is the PVC mock-up at its real dimensions.
  • What moves into view is what was computed.

4Measurement

From three images of one instant to joints, metrics and load

Measurement

For every triggered frame the joint detector finds the 2D joints in each of the three images. With K the lens distortion is taken out of those pixels, and each pixel becomes a ray leaving its camera. The rays for one joint from the three cameras meet at one point in space; that intersection is the joint’s 3D position. All 33 joints are found this way, frame after frame through the set.

Thanks to the position calibration those points are in rack coordinates, so depth, lean, left-right asymmetry and the path of the bar are read directly. From the change in joint positions and the load on the bar, the load on each joint is computed per rep, and the reps are counted from the motion.

What to look for
  • Four stages: 2D joints, rays, intersection, rack coordinates and metrics.
  • Camera 1 is mounted upright, so its small window is upright too.
  • The closing burst is the same computation repeated frame after frame.