CS 194-26: Image Manipulation and Computational Photography

Project 2: Building a Pinhole Camera

Denis Li (cs194-26-aem), Justin Lu (cs194-26-acb), Daniel Shi (cs194-26-abl)

Abstract

We took pictures using a 1mm, 3mm, and 5mm lens. We picked 1mm because thats what we calculated to be the optimal given the size of our box using the equation 1.9 * sqrt(f * lambda). In general, the images that we took with the 1mm lens appeared the best. As we increased the aperture, our photos became brighter but also lost focus and became blurry as a result of letting in too much light. As such, we found that the 1mm lens provided the best photos. We compensated for the darker images the 1mm lens created by increasing the exposure time. This resulted in relatively crisp images that were clearly visible and not washed out by the brightness.


We also coated the inside of our box with black cloth instead of black paper, which might have resulted in unintended lighting issues.

1 mm

East Asian Library through a 1mm lens.

Evans Hall through a 1mm lens.

3 mm

East Asian Library through a 3mm lens.

Evans Hall through a 3mm lens.

5 mm

East Asian Library through a 5mm lens.

Evans Hall through a 5mm lens.

Extra images

Stress arm through a 1mm lens.

Rubik's Cube through a 1mm lens.

NMDs through a 1mm lens.

Tractor through a 1mm lens.

Camera box

We choose one side as the screen and covered it with white paper and the rest of the sides with black cloth.

Opposite to the screen side, we cut one hole for the pinhole and one hole for the camera.

We then covered the outside of the box with black paper to prevent any light from entering from locations other than the pinhole.

We used separate cardboard cutouts for the pinhole so that we could have different sized pinholes that we can easily interchange.