Skip to content

Software setting : WEB Standalone

Mauro edited this page Jun 10, 2013 · 44 revisions

Step 1: Setup web server
Enter in Shapextractor folders and execute:

sudo cp Shape_service /etc/init.d/Shape_service
sudo chmod 755 /etc/init.d/Shape_service
sudo update-rc.d Shape_service defaults

Now on startup it open simple python cgi webserver on port 7000
If no want reboot rpi run it with this command:

./etc/init.d/Shape_service start

and same for stop it:

./etc/init.d/Shape_service stop

now you are ready to use it

Step2 : Use Shapextractor

Now you need open with browser (Chrome or Firefox) Shapextractor site:
http://RPi-ip address:7000 (if want change port number need modify ./etc/init.d/Shape_service)

![menu](https://lh5.googleusercontent.com/-KD97u2VOto8/UbXB8zko6II/AAAAAAAADJw/TlhWu_ZkfgA/s600/menu.jpg)
In home page you can choose or start with new scan or see previous scan(new scan place in button).
All scan are visible on line (need webgl browser) or download PLY file and open with Meshlab for Poisson Reconstruction. ![live](https://lh6.googleusercontent.com/-ghCTI5adp2A/UbXB87m5G9I/AAAAAAAADJo/RJE_uc_hAqE/s600/live.jpg)

New scan

![start](https://lh3.googleusercontent.com/-T5XXSYk_FmA/UbXCB9xiW6I/AAAAAAAADJ4/uUf4qsi9gag/s600/start.jpg)
Option:
LASER POWER        Laser power intesity
CROP               Set pixel need delete on from top for more clean output
QUALITY            Set scan resolution 0 (512steps/photos) 1 (1024 steps/photos) 2(2048 steps/photos)
ROT                Set position of camera 0 orizontal 90 vertical
CAMERA HFOV        Set this to the camera lens angle that you worked out above
CAMERA DISTANCE    The distance from the camera 'foot' to the center of the turntable
LASER OFFSET       The angle between the centerline of the camera and the laser
HORIZONTAL AVG.    The number of consecutive horizontal points to average together to smooth out the surface
VERTICAL AVG.      The number of consecutive vertical points to average together to smooth out the surface.

Other hidden value on html page

A = 9           GPIO RPi for 1 in uln2003 (stepper)
An = 25         GPIO RPi for 2 in uln2003 (stepper)
B = 11          GPIO RPi for 3 in uln2003 (stepper)
Bn = 8          GPIO RPi for 4 in uln2003 (stepper)
LASER = 18      GPIO RPi for 5 in uln2003 (laser line)
LIGHT = 7       GPIO RPi for 6-7 in ulm2003 (light)
DELAY = 0.002   Delay from stepper sequence
FRAME_SKIP = 1  Use every n'th frame for speed
POINT_SKIP = 1  Use every n'th scanline for speed
RESW = 640      Set camera resolution
RESH = 480      Set camera resolution

If want change default value need modify file start.htm After set value press start button and waiting when Shapextactor finish :)

Clone this wiki locally