3D Renderer and Cutting Simulator >
What Do You Need for Real-Time Structured Light Scanning:
Any kind of camera could be used for capturing. There is no need to worry about fps of the camera.
Any kind of projector could be used for projecting the fringe patterns. Because both camera and projector is perfectly synchronized in coding, so whatever the speed of both devices is, there will not be any effect on scanning.
It will be better if the object has a dark background. Place something in dark black color behind the object.
System Setup for Real-Time Structured Light Scanning:
- Do generate sinusoidal patterns first. For this, go to Menu => 3D Scanning => Sinusoidal Fringe Pattern Generation.
- Select phase-shifting method, it could be 3-step, 4-step or 5-step.
- Pattern width and height should be large enough in order to cover the object dimensions.
- Put the pitch value and press
“Apply”. If you want to see generated pattern, press “Display Pattern”, otherwise press “Save Patterns”and select the path where you want to save the patterns.
Note: Pattern names must be in incremental order, for example, 0.jpg, 1.jpg, 2.jpg, ...
“Enable RTS”(Real-time Scanning).
“Without Ref”method. There will be no need of the reference plane with this method.
“Open Camera”. Camera Module will be opened.
“CAM Argument”number. It is important because if you have two cameras attached to the computer, then which camera you want to use for the real-time scanning. Select 0, then 1, 2 and so on...
- Put ROI (Region of Interest) width and height. It will be scanning resolution of the model. If you are working on a slow computer, then put small dimensions, for example Width=400 and Height=400. It will depend on your choice and computer performance of course.
- ROI-X and ROI-Y will be starting pixel of the new resolution. If we don’t want to capture some part of the screen, then we can adjust scanning screen with these parameters.
- We can test both resolutions by switching Gray or Color mode. We can also save images and record videos, as well.
- Now press
“Initialize Camera”button. We will see a gray color window with the selected resolution.
“Open Patterns”button from the 3D Scanning module window.
“Run Patterns”button and select the generated fringe patterns. Patterns with phase-shifting can be seen after that.
- We can select small value of delay between patterns. It will increase the scanning speed. The camera should be fast enough if we want to speed up the patterns delay.
“Start Point Cloud Rendering”button from the left side section of 3D Scanning module.
- If vertical fringe patterns are used then press
"Yes", otherwise "No".
- Just after pressing Yes, the scanned point cloud on the display window can be seen.
- Adjust the
“Skew”and “Scale”factors until the model looks similar to the original object.
- We can adjust
“Render”, if we feel too much dense point cloud.
- If there is some part missing in the scanned model, we can check and analyze the unwrapped phase map of the scanned model. Then the value of the
“Range”parameter can be adjusted. Increasing the “Range”value, ignoring the background and Vice Versa.
- We can stop patterns, camera, and rendering anytime, and all processes can be ran again at any time during the real-time scanning.
- When done, export the scanned Point Cloud or Triangular model to the disk.
If I couldn’t write this tutorial briefly, then I would suggest you to go to Videos and watch this video (Realtime 3D Reconstruction).
If you have any questions, please dont hesitate to contact me.