Simple 3D Laser Scanner

in technology •  7 years ago 
The process :)

On my first post, I would like to share a previous project I've been working on: how to make a simple 3D Laser Scanner. All you need is a laser pointer (any colour you like), a glass of wine, a video camera (phone or webcam also work) and a rotating platform.

The Set Up

First of all, you'll have to put the object in the rotating platform (in my case, I was using a beam over a stepper motor). Make sure it's in the very middle of it.
Then you'll have to position the camera, laser and cylindrical lens (in this case the stem of the glass). It's important you take note of the angle between the laser and the camera, you'll need it for the calculation.
Make sure the lens is clean, since the laser is passing through and any imperfection can distort the shape of the beam, we want a beautiful vertical narrow and clear line impacting over our object.


Note: if you're working on a lab and can have access to optical lenses, then use them!!


This is how the beam should look like, share yours ;)


Bumblebee is ready

Recording!

Turn the laser on, lights off (make sure you can only see the object and maybe the platform) and the camera is on. Remember white light contains all colours, it's nice for the world we live in, but not for our image filters.

Here is how it should look like:

Lights, camera, action!

The Results

Here you can see the calibration. If the video was not in a correct angle, you can change that. You also have to tell the program which is the center of the rotating platform and the ROI (Region Of Interest), so the program knows where it has to pay attention to and will ignore all the other parts of the images when processing.

Making the calibration 

It will analyze every image that is part of your video and calculate a line where it can find the maximum intensity of the laser beam. If it cannot find anything (we are using some filters in between), it will use interpolation between the nearest points.

It's alive!! Calculating the max intensity of the laser beam


 This is the resulting 3D model...

And magic!!

Code & More Info

You can find the code >>here<< (only for MATLAB)

If you want more information on Laser Triangulation Methods, >>this<< document might help


 Note 1: MATLAB is a proprietary software. If anyone is able to translate the code into an open source platform, I'd love to share it too.

Note 2: the quality of the 3D-model is directly correlated to the quality of the video, laser and lenses and the setup. This is a simple example but this method can achieve great results with some proper investment.

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  
  ·  7 years ago Reveal Comment

Congratulations @matiascec! You received a personal award!

1 Year on Steemit

Click here to view your Board of Honor

Do not miss the last post from @steemitboard:

Saint Nicholas challenge for good boys and girls

Support SteemitBoard's project! Vote for its witness and get one more award!

Congratulations @matiascec! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 2 years!

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Vote for @Steemitboard as a witness to get one more award and increased upvotes!

Congratulations @matiascec! You received a personal award!

Thank you for the witness votes you made to support your Steem community and for keeping the Steem blockchain decentralized

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Do not miss the last post from @steemitboard:

Use your witness votes and get the Community Badge
Vote for @Steemitboard as a witness to get one more award and increased upvotes!