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://:7000 (if want change port number need modify ./etc/init.d/Shape_service)
[+Image home page....+]
In home page you can choose or start with new scan or see previous scan(new scan stay in button).
All scan are visible on line (need webgl browser) or download PLY file and open with Meshlab for Poisson Reconstruction. [+Images scans and online view.....+]

** New scan [+Image from option scan....+]
describe all option

LPWM = 12 laser power intesity
CROPH = 180 Set pixel need delete on from top for more clean output
QUALITY = 0 Set scan resolution 0 (512steps/photos) 1 (1024 steps/photos) 2(2048 steps/photos)
ROT = 0 set position of camera 0 orizontal 90 vertical
CAMERA_HFOV = 50.0 Set this to the camera lens angle that you worked out above.
CAMERA_DISTANCE = 0.30 The distance from the camera 'foot' to the center of the turntable.
LASER_OFFSET = 45.0 The angle between the centerline of the camera and the laser.
HORIZ_AVG = 2 The number of consecutive horizontal points to average together to smooth out the surface.
VERT_AVG = 2 The number of consecutive vertical points to average together to smooth out the surface.

** 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
POINT_SKIP = 1
RESW = 640 Set camera resolution
RESH = 480 Set camera resolution

Need edit start.htm if need change default value.

Clone this wiki locally