Hardware guide

Hardware setup

Overview

Our hardware system consists of a monitor for displaying images from the ground truth dataset, two lensless imagers, and a ground truth lensed camera. Though we use two lensless imagers in our setup, the DiffuserCam and Random Multi-focal Lenslet (RML) imager, the hardware setup can be easily modified to accommodate other lensless imaging systems. This page will be updated with detailed instructions on building and troubleshooting the hardware system.

Equipment

Below is a list of equipment we used for our hardware setup and the model. Feel free to use different models for your own convinience.

  • Portable monitor: INNOCN 13A1F
  • Board level sensors: Basler daA1920-160uc
  • Lensed camera mount and lens: Evetar S-mount, f=6 mm lens
  • 50/50 split ratio beamsplitter: ThorLabs BS031
  • Diffuser: Luminit 0.5°
  • Basler USB 3.1 Hub
  • ThorLabs KM100C - Kinematic Mount

Building the system

We chose to build our system on an optical breadboard so it can be portable for in-the-wild captures. We used a breadboard that was readily available in our lab, which set size constraints of our system. All sensors are connected to power through the Basler USB Hub.

1. Mount the ground truth camera

First, we mounted an f=6 mm lens to our board level sensors using an S-mount. Then, we mounted the camera onto a right-handed kinematic mount. We added double-sided tape to the clamps of the mount to minimize wiggling.

Taping the lensed camera

Taping the lensed camera

Back view of mounted lensed camera

Back view of mounted lensed camera

2. Build the lensless imagers

For both the RML and Diffusercam, we first mounted the board level sensors onto a 2-to-1 baseplate. Because the Basler board level sensors we used were not compatible with our existing baseplates, we 3D printed a custom 2-to-1 mount that allowed us to attach our lensless imagers to an off-the-shelf Thorlabs plate. This would allow us to attach the Thorlabs plate to an optical post.

To build the diffusercam, we taped a piece of diffuser (large enough to cover the sensor) onto the mounted board level by putting double-sided tape on its screws, roughly 4.5mm from the sensor. We also added padding using layers of tape. We created a small aperture using black masking tape by shining a point source at the imaging distance and created an aperture to limit the PSF extent to the center of the sensor.

Board level sensor mounted on a custom 3D printed mount and Thorlabs baseplate

Board level sensor mounted on a custom 3D printed mount and Thorlabs baseplate

Our mounted Diffusercam

Our mounted Diffusercam

Aligning the beamsplitter, lensed camera, and Diffusercam

Aligning the beamsplitter, lensed camera, and Diffusercam

To build the RML, we mounted a custom RML phase mask onto an optical post. Using black masking tape and black cardboard, we built a small enclosure around the mounted board level to block stray light. Having the sensor and phase mask on separate posts makes calibration easier.

3. Place components on breadboard

First, we placed our display screen at the edge of the breadboard. We decided to place our display screen horizontally to maximize the size of the images we could display and secured the display using clamps on both sides. This allowed us to easily remove the display by loosening the clamps. We divided the display in half with a black separator, leaving one side for the RML and the other for the Diffusercam and lensed camera. We chose to split the Diffusercam with the beamsplitter due to higher light throughput of the gaussian diffuser. Then, we placed the beamsplitter ~12cm away from the display screen. We aligned the lensed camera and Diffusercam to the beamsplitter using a point source (30mm and 25mm from the edge of the beamsplitter to sensor, respectively).

On the other side, we placed the mounted board level for the RML ~150mm from the display screen. To it, we aligned the RML phase mask 18mm from the sensor. The RML and Diffusercam are 135mm apart.

Calibrating the RML using a point source

Calibrating the RML using a point source

Clamps installed to secure the display

Clamps installed to secure the display

Diffusercam, lensed camera, and RML on the breadboard

Diffusercam, lensed camera, and RML on the breadboard

4. Aligning and calibrating the imagers

After placing components on the breadboard and coarsely aligning them, we optically aligned the imagers (which includes making sure the sensors are on-axis with the display screen) and acquired calibration PSFs.

For the lensed camera, we displayed a test image and adjusted the focus ring until it was in focus with the surface of the screen. For the RML and Diffusercam, we placed a point source at the same depth as the display. Then, we adjusted the height of the point source such that the PSF was vertically centered on the sensor. Lastly, we adjusted the tilt of the point source such that it would produce the brightest PSF, which meant the point source is on-axis with the phase mask.

5. Correct for stray light

Before capturing data, we corrected for stray light as much as possible. We built an enclosure around the system using black cardboard and matte black foil to block ambient light. We added dividers between the display and the beamsplitter to prevent the lensed camera and Diffusercam from capturing light directly from the display instead of through the beamsplitter. We also built small enclosures around the lensless sensors to prevent the sensors from capturing ambient light.

Dividers between display and beamsplitter to control for stray light.

Dividers between display and beamsplitter to control for stray light.

Full hardware set up with images being displayed.

Full hardware set up with images being displayed.