Skip to content

Latest commit

 

History

History
170 lines (139 loc) · 8.46 KB

README.md

File metadata and controls

170 lines (139 loc) · 8.46 KB

stereoscopic

adjective

relating to or denoting a process by which two photographs of the same object taken at slightly different angles are viewed together, creating an impression of depth and solidity.

Example

mini-love-statue.gif

Skip to Gallery

Goal

The stereoscopic project combines low-cost high-quality commercially available hardware and open source software enabling a point-and-shoot digital stereoscopic camera experience.

Think digital Nimslo 3D to animated gif!

Additionally, this rig could also be used for scanning books with some mounting modifications.

Finally, UV and IR light sources and possible camera hot mirror modifications could allow for capturing full spectrum photos.

Status

The stereoscopic project has currently been prototyped and initial results demonstrated.

Requirements

Category Requirement Bonus
Cost Between $150~$250 USD All new hardware
Sensors Two (2) Expandable to four (4) sensors
Baseline ~6cm Adjustable up to 30cm
Size 10MP per sensor 16 MP per sensor
Format JPG RAW (e.g. DNG)
Capture Synchronised external capture trigger dongle WiFi trigger
Wavelengths Standard RGB UV and IR full spectrum
Processing Offline via scripts Uploads finished images via WiFi

Hardware

Qty Component Description Price ea Total
2 Camera Canon Powershot A3300 IS ~$40 used ~$80
2 SD Card SDSDUNC-016G-GN6IN $9 $18
1 Battery Charger Kit Powerextra 2x NB-8L Battery and Charger $12 $12
2 USB Cables Type A Male - Mini Type B Male $5 $10
1 USB in-line switch JBtek Type A Male to Female $6 $6
1 USB Y Charge Splitter Onvian Male to 2x Female Type A $6 $6
1 USB Power Bank Bonai Dual USB Charger $11 $11
1 Tripod Amazon Basics 50" $13 $13
1 Mount Bracket Neewer 8" Dual Camera Tripod Mount Bracket $8 $8
1 L-Brackets Limo 2x L Shape Bracket $10 $10
1 Misc Hardware ??? ??? ???
1 Lighting ??? ??? ???
-- -- -- TOTAL <=~$175

Discussion

Sensors

For v1 I decided to go with the Canon Powershot A3300 IS plus CHDK firmware due to low cost, feature set, availability, and prior art using these cameras. For a higher budget version, I would opt for a DSLR camera fully supported by gphoto2 and a manual remote switch so no need to fuss around with used equipment and potential firmware compatibility issues.

Full Spectrum

It may be possible to extend into UV and IR ranges by:

  1. Remove camera Hot Filter and use neutral Full Spectrum glass
  2. Purchase some filters

Or for such a cheap camera it may be possible to:

  1. Use a dark room with long exposures
  2. Expose to UV or IR light sources

Filters

Still ideating and need to experiment here.

Lighting

Configure Cameras

To install CHDK on the Canon Powershot A3300 IS camera

Check original firmware version

  1. Mount SDcard in computer and create an empty file in the root i.e. touch /mnt/SDcard/ver.req.
  2. Insert SDcard, unplug USB cables, power on camera using Playback arrow button not the on/off switch.
  3. Push and hold Func Set and then simultenously Disp to show firmware version e.g. GM1.00C
  1. Download CHDK matching your model and firmware e.g. a3300-100c-1.4.1-4918-full.zip
  2. Make sure the SDcard is formatted FAT32 in unlock position and unzip the CHDK firmware and dirs into the root directory using computer.
  3. Insert SDcard, unplug USB cables, power on camera using Playback arrow button not the on/off switch.
  4. Menu->Playback->Firmware Update...->OK
  5. Now pres Play arrow button for like a quarter second, don't long press it, and you'll get the CHDK menu.
  6. From CHDK Menu go to Miscellaneous stuff->SD Card->Make Card Bootable instantly returning an OK message.
  7. Power off camera, remove SDcard, flip it to locked, and put it in again. CHDK ignores this and will write photos okay.

gphoto2

Reference of few useful commands:

gphoto2 --list-ports
gphoto2 --auto-detect
gphoto2 --summary
gphoto2 --list-config
gphoto2 --list-files
gphoto2 --get-all-files

Animating

A few useful bash one liners which can be used to script processing.

# raname left and right camera files
ls b-*.JPG | cat -n | while read n f; do mv $f $(printf "b-%04d.jpg" "$n"); done
# auto convert them
convert -loop 0 -delay 15 -auto-orient -auto-level -resize "360x480>" ../mix/left-0001.jpg ../mix/right-0001.jpg output.gif
# animate a sub section of original
convert -loop 0 -delay 15 -auto-orient -auto-level -crop 1280x1280+800+1000 +repage -resize "640x640>" left-0040.jpg right-0040.jpg test.gif

Results

~81 image pairs taken at 16MP ea created about ~737 MB of JPG data which convereted to ~23MB of animted GIFS at 360x480.

A mix of results both cropped and full frame all shot using this rig.

halal-cart.gif penn-truck-guy.gif tools.gif penn-benjamin.gif john-selfie.gif bikes.gif book-drop.gif penn-bricks.gif

Rig

rig-selfie.jpg

Conclusion

The stereoscopic part of this project has been demonstrated as shown above. A low cost rig can be constructed and modified with CHDK for under $175.

TODO

  • Address camera misalignment difficulties
  • DNG raw file camera calibrations (LCP & DCP profiles)
  • Book imaging configuration
  • UV and IR techniques for book imaging
  • CHDKPTP tethered control and automation

Documentation

References