Notifications
Clear all

Camera position

14 Posts
5 Users
3 Reactions
7,920 Views
smassard
Posts: 2
Topic starter
(@smassard)
New Member
Joined: 6 years ago

Hi,

After building the Fabscan i realized the camera position isnt centred to the turntable:

As a result i cant see the whole turntable and the center of the turntable is not in the center of the preview image (crossed lignes). 

Is this a problem?

Regards

M.S.

Reply
13 Replies
ErikVdbroeck
Posts: 10
(@erikvdbroeck)
Active Member
Joined: 6 years ago

Related question here...

- No problem to align the laser vertically against the backplate and going through the center of the turntable,

but I'm reading contradictory comments so can't figure out:

* if both lines of the green crosshair have to go through the center point C of the turntable ?

* Or if only the vertical green crosshair line has to cross the center of the turntable and the horizontal one is covering the line T where the bottom plate is touching the back plate ?

- I had mounted the camera/ledring plate in the predrilled holes, but then the crosshair is way above the C-point and also way above the T-line.

I tried to use an adjustable spring system, but that makes me incline the camera plate about 25 degrees down, so not even half of the calibration sheet was shown on the cam image. 

Should I bring the camera plate 4,5 cm down ?? This would mean the bottom of the camera/ledring-plate will almost be touching the floor of the cube. Any ideas about this please ?

Reply
rene
 rene
Admin
(@rene)
Joined: 6 years ago

Active Member
Posts: 14

We will write a detailed tutorial about the calibration process. Some things need better documentation, but maybe there are also some bugs. We need to take some time for further investigation. If things are obvious bugs, please create a github issue.

Reply
ErikVdbroeck
Posts: 10
(@erikvdbroeck)
Active Member
Joined: 6 years ago

Looking forward to the tuto!

But maybe you could give us a quick hint, there, about where to point the camera crosshair ??

I only get uncoherent scan results.

06 results still bad
Reply
ErikVdbroeck
Posts: 10
(@erikvdbroeck)
Active Member
Joined: 6 years ago

(continued)

I only get uncoherent scan results.

See pics of  vertical aligned laser going through center of turntable, spring-adjustable cam-module from standard predrilled holes position so that vertical green crosshair line is cutting laser line in center of turntable, horizontal green line projected towards back plate, calibration using 3d printed calibration stand and the cal-board and waited until I got the message 'calibration finished'.

I also tried to point the camera more downward, to make the crosshair cover the line where the bottom plate is touching the back plate, but then only 2.5 lines of calibration squares are visible and the lower half of the cam image shows the empty bottom zone in front of the turntable: no positive result either.

I even tried a 3rd camera positioning so that the crosshair is in the middle of the white center square on the cal board and recalibrated.

Still lousy scan result afterwards.

tryouts1 2 3 4 5
Reply
ErikVdbroeck
Posts: 10
(@erikvdbroeck)
Active Member
Joined: 6 years ago

(continued II)

The calibration log file looks Ok and so does the default.config.json file with the calibration values. I include them here !

{
"folders": {
"www": "/usr/share/fabscanpi/",
"scans": "/home/pi/scans/"
},
"laser": {
"numbers": 1
},
"scanner_type": "laserscanner",
"calibration": {
"weight_matrix": [],
"dist_camera_matrix": [],
"pattern": {
"square_size": 11,
"rows": 6,
"columns": 8,
"origin_distance": 37.2
},
"camera_matrix": [
[
1326.592,
0.0,
637.799
],
[
0.0,
1319.824,
843.751
],
[
0.0,
0.0,
1.0
]
],
"distortion_vector": [
0.284,
-2.132,
0.002,
-0.002,
8.442
],
"laser_planes": [
{
"deviation": 0.05261286110996645,
"distance": 88.15394578052423,
"normal": [
0.8271677915811131,
-0.004239319279079676,
0.5619390293820804
]
}
],
"platform_translation": [
-1.006600040698955,
61.116599267151074,
159.2657002048133
],
"platform_rotation": [
[
0.0,
0.9997605399160551,
-0.021882934601150067
],
[
0.01914342610107397,
-0.021878924505851983,
-0.9995773316255127
],
[
-0.9998167478278771,
-0.0004189143414117509,
-0.019138842014652813
]
]
},
"keep_raw_images": "True",
"meshlab": {
"path": "/usr/bin/"
},
"process_numbers": 4,
"turntable": {
"steps": 6400,
"radius": 70
},
"camera": {
"rotate": "True",
"type": "PICAM",
"vflip": "False",
"preview_resolution": {
"width": 800,
"height": 600
},
"hflip": "True",
"resolution": {
"width": 1640,
"height": 1232
}
},
"discoverable": "True",
"serial": {
"plattform_type": "fabscanpi",
"baudrate": 57600,
"autoflash": "True",
"port": "/dev/ttyAMA0"
},
"texture_illumination": 40
}

 

Reply
mario
Admin
(@mario)
Joined: 6 years ago

Honorable Member
Posts: 570

Hello, 

the holes in the case are aligned in a way that the cam should exactly match the center of the table. One thing i realised in the last two years is that not all lenses are glued perfectly onto the pcb, this is generally regarded to the v2 module. Have a closer look to your camera module. Sometimes it helps to press the "lens module" gently into the right direction. I will try to add this as soon as possible to the documentation.

- Mario

Reply
ErikVdbroeck
Posts: 10
(@erikvdbroeck)
Active Member
Joined: 6 years ago

Thanks for the info, Mario. I've got a model 2 like this, but using the cam doesn't look towards the center of the table at all. Not a matter of a just a few degrees, as it's looking straight towards the middle of the opposite wall. So, following your description, I would have to point it about 30 degrees downwards...

Can't do any better than this: see attached pic (unless I completely misunderstand?)

A picture of the actual calibration crosshair would tell more than words, I guess. Looking forward to it

ScreenHunter  2019 03 0626
Reply
ErikVdbroeck
Posts: 10
(@erikvdbroeck)
Active Member
Joined: 6 years ago

...tried this way, no success: but as I mentioned in my first post, the cal-board comes on the screen for about 5 squares high, cal-process starts and announces 12 minutes left, but halfway (6 minutes left) it seems to choke as I hear stepping motor continues to be driven every like 10-15 secs, but screen does not refresh anymore and after 30-40 minutes the stepping motor is still doing the same.

calbord
Reply
mario
Posts: 570
Admin
(@mario)
Honorable Member
Joined: 6 years ago

Hi Erik, 

sorry but i think the crosshair is misunderstood. The important part is that the vertical line hits the center of the turntable. The horizontal line does not matter at all. I think i have to remove it in the next release. It only marks the horizontal center of the image. For the horizontal alignment it is more important to measure the origin point from the table to the top of the first square line on the calibration sheet (like it is described in the docs).

The camera should be aligned in a way that you can see the table at the bottom of the image and as much of the object as possible. And of course vertical center alignment as described above.

In the following video you can see how my cam is aligned. ( This video is older. The UI can differ from the current one.)

- Mario

Reply
Adam
Posts: 15
 Adam
(@adam)
Active Member
Joined: 5 years ago

Hello all, Mario,

No matter how much I do my best to have my settings for calibration as perfect as can be (like position of the checkerboard paper and more) the vertical green line never gets positioned over the center of the turntable. Would it be OK to use a few washers between the wall of the fabscancase and the ledring printed circuitboard?

By the way: My scans already look very nice. I am just missing the bottom 1 or 2 cm's. All of my scanned objects appear to be floating above the turntable.

Reply
mario
Admin
(@mario)
Joined: 6 years ago

Honorable Member
Posts: 570

Would it be OK to use a few washers between the wall of the fabscancase and the ledring printed circuitboard?

Sure.

By the way: My scans already look very nice. I am just missing the bottom 1 or 2 cm's. All of my scanned objects appear to be floating above the turntable.

Have you checked the origin point in the config file, it's described in the documentation.

Reply
Adam
Posts: 15
 Adam
(@adam)
Active Member
Joined: 5 years ago

I have been going through that and checking that numerous times. I even 3D printed a stand that fits inside the 'Calibration Mount' and has the top of the 'bottom checkerboard block' at exactly 37.2 mm above the turntable.

I wonder if maybe my turntable has been fitted to the steppermotor on a too high or too low position(?)...

Checkerboard
Reply
Adam
Posts: 15
 Adam
(@adam)
Active Member
Joined: 5 years ago

Today I moved my turntable to the highest possible spot on the steppermotor shaft. Bad scans were the results.

Then I moved it all the way down until the wooden part of the turntable rests on top of the shaft. Also made sure that the laserbeam reaches the front of the turntable and goes right over its center. In order to get the vertical green crosshair to hit the center of the turntable too I added 2 very thin washers to the frontmost standoffs of the ledring-pcb and gave it another try: Almost great results! In any case the best results I ever had! Will go play with the scanner again tomorrow and let you know in case something comes up.

Reply
Share: