hairu / freelss

FreeLSS is a laser scanning program for the Raspberry Pi. It allows a Raspberry Pi to function as the core to a complete turn table laser scanning system.
GNU General Public License v3.0
279 stars 133 forks source link

Feature Request: Support horizontal/vertical cam orientation AND cam with lens #6

Open mrcg opened 9 years ago

mrcg commented 9 years ago

The original raspberry cam (pin hole lens) has two main disadvantages.

  1. minimum distance (high sharpness) is about 80cm
  2. object can not be zoomed to capure as much as possible pixels for the object (high resolution)

To improve this two factors it would be good to support also other raspberry cams with lens (as available on eBay). With this cam's it is possible to have closer focus to the object and also very sharp pictures for objects very close to the lens. Then it would also make sense to change the orientation of the cam from horizontal to vertical.

Would be good to have also custom configurable parameters in order to allow the usage of other cam/lens. Beside this it would be also good beeing able to change the parameter for the distange to the turntable in order to adjust for smaller or larger (higher) objects.

hairu commented 9 years ago

Can you provide a link to the camera's that you're referring to? Are they USB or CSI?

mrcg commented 9 years ago

Cams are CSI. Hope link to ebay is ok.

Cam with M12x0.5 lens: http://www.ebay.de/itm/Raspberry-Pi-Camera-Board-w-M12x0-5-mount-Lens-/281579502193?pt=LH_DefaultDomain_77&hash=item418f723a71

Cam with CS lens: http://www.ebay.de/itm/Raspberry-Pi-Camera-Board-w-CS-mount-Lens-fully-compatible-with-official-module-/271756477700?pt=LH_DefaultDomain_77&hash=item3f45f2c504

Both cams are compatible with the original pinhole cam. But with the lens you get pretty sharp pictures even with very close distances. With default delivered lens the objects will also fill the whole picture which will lead to higher resolution.

Another good page which shows raspberry cameras with different lenses: http://www.arducam.com/sample-photos-lens-option-raspberry-pi-camera/

owens-bill commented 9 years ago

For what it's worth, although the original lens cannot be zoomed, it can be focused. There are instructions in a couple of places on the web, but the gist is that you need to scrape away the three small spots of glue that hold the lens in place, and then it can be twisted to focus.

StepMan91 commented 9 years ago

good tips :)

electronlove commented 7 years ago

I swapped out the Pi camera lens with a lens mount (PT-LH020RPM) from m12lenses and a 2.8-12mm varifocal zoom lens from Amazon (http://a.co/0MlhmyX) . Turned out that after all said and done, the table was a bit too close for the lens that I used. Maybe another lens would work much better -or- I just change the distance. I did notice that having the manual focus lens makes for more fuss in the end.