Release v.0.9.3 is ...
 
Notifications
Clear all

Release v.0.9.3 is available.

23 Posts
5 Users
2 Reactions
1,691 Views
mario
Posts: 570
Admin
Topic starter
(@mario)
Honorable Member
Joined: 6 years ago

Hello, 

after a couple of month since the last release, which came with a couple of new bugs, i finally managed to find and fix all those bugs. It took a couple of month because there were a lot of bugs which were hard to solve. The new release v.0.9.3 is now available for download

What changed?

Due this is a bugfix release, there are no new features available. The most important thing is getting the software stable now.

Fixes:

  • fixes ply file saving bug, bug which came with the last release
  • fixed texture scanning bug (scanner hangs after several minutes)
  • fixed camera thread cleanup, no dead camera threads
  • fixed mjpeg stream bug, no dead threads anymore
  • fixed memory leak
  • fixed serial startup bug.

Refactorings:

  • changed number of texture scan processors for speed increase
  • switched to more memory friendly logging

How to install it?

It should be possible to just upgrade with 

sudo apt-get update && sudo apt-get dist-upgrade

ATTENTION:

If you are using the testing branch you need to switch back to stable. Of course there is also a new image available. When you are not sure how to get started with the new version just use this new image.

I appreciate your feedback.

- Mario

Reply
22 Replies
Danilo0702
Posts: 394
(@danilo0702)
Reputable Member
Joined: 6 years ago

I have now made 4 scans with the new release without restarting. Everything looks stable and everything works without any problems.
The speed is impressive.
The calibration was finished after 5 minutes. The image in the browser now also looks super sharp, despite that I haven't changed anything.
I'm using Chrome or the Edge browser. Firefox doesn't work for me at all.
In any case, this release is awesome.
thanks for that

Reply
F_Schmidt
Posts: 10
(@f_schmidt)
Active Member
Joined: 4 years ago

English:

Hello,

since version 0.9.3 Fabscan-Server the preview in the browser does not work anymore. No matter how long I stay in the tab and wait for an image, it always remains black, no matter what. The resolution is set to 800x600px in the configuration file. My internet-connection can handle the amount of data sent easily.

Browser used: Firefox Developer Edition (latest build) and Safari

Kind regards!

 

 

Deutsch

 

Hallo,

seit dem Update 0.9.3 lädt die Preview bei mir nicht mehr rein. Egal wie lange ich den Tab offen habe und warte, es bleibt immer nur ein schwarzes Bild mit dem "Sanduhr-Warte"-Symbol.

Die Einstellungen in meiner Konfigurationsdatei ist auf einer Auflösung von 800x600px. Die Internetverbindung ist dafür locker ausreichend.

Verwendeter Browser: Firefox Developer Edition (neueste Version) und Safari

Viele Grüße

F_Schmidt

Reply
mario
Posts: 570
Admin
Topic starter
(@mario)
Honorable Member
Joined: 6 years ago
Posted by: @f_schmidt

My internet-connection can handle the amount of data sent easily.

 

Internet connection is not relevant for showing up the live stream. The internet connection is only used for update notifications and fabscan discovery service. 

Posted by: @f_schmidt

since version 0.9.3 Fabscan-Server the preview in the browser does not work anymore

Which browser do you use?

Reply
F_Schmidt
(@f_schmidt)
Joined: 4 years ago

Active Member
Posts: 10

@mario

The two that I have written: Firefox Dev Edition (latest build) and also Safari. Neither of them worked.

Reply
mario
Posts: 570
Admin
Topic starter
(@mario)
Honorable Member
Joined: 6 years ago
Posted by: @f_schmidt

The two that I have written: Firefox Dev Edition (latest build) and also Safari. Neither of them worked.

Sorry i must be blind :)

Reply
Danilo0702
Posts: 394
(@danilo0702)
Reputable Member
Joined: 6 years ago

maybye you try Chrome. Firefox have a problem with RAM. But i think you have a mac and not windows or linux.

Reply
HeinzSchmitz
Posts: 3
(@heinzschmitz)
New Member
Joined: 4 years ago

Schade. Mit der Version 0.9.3 kann ich nicht Kalibrieren. Mit Chrome sit die Verschau sichtber und die Kalibrierung läuft und endet mit der Erfolgsmeldung. Beim Versuch zu Scannen meldet der Scanner, keine Kalibrierung vorgenommen, Scan abgebrochen.

Nach Installation der alten Version 0.9.2 läuft es wieder.

In beiden Konfig Dateien habe ich die gleichen Änderungen vorgenommen.

Was mache ich falsch?

Reply
mario
Posts: 570
Admin
Topic starter
(@mario)
Honorable Member
Joined: 6 years ago
Posted by: @heinzschmitz

In beiden Konfig Dateien habe ich die gleichen Änderungen vorgenommen.

 

Welche Anpassungen hast du gemacht? Meist scheitert die Kalibrierung weil die Anzahl der Reihen und Spalten des Aufstellers nicht passen. Das Zählen ist etwas Kontra-Intuitiv wird aber von der verwendeten Software Library vorgegeben. 

Schau mal hier (zweite Abbildung):

https://fabscanpi-server.readthedocs.io/en/latest/software_configuration.html#calibration-values

Ansonsten gibt es hier noch ein paar wichtige Tipps zur Kalibrierung:

https://fabscanpi-server.readthedocs.io/en/latest/scanner_calibration.html

Posted by: @heinzschmitz

Nach Installation der alten Version 0.9.2 läuft es wieder.

Warum es mit dieser Version Läuft und mit der anderen nicht ist mir nicht ganz klar. Kannst du mal nachschauen ob nach der Kalibrierung mit Version 0.9.3 Werte für die Kalibrierung in der Datei default.config.json eingetragen sind?

Spoiler
Erwartete Werte sollten in den mit Pfeil markierten Zeilen stehen.
"calibration": {
"weight_matrix": [],
"dist_camera_matrix": [],
"pattern": {
"square_size": 10,
"rows": 6,
"columns": 8,
"origin_distance": 37.2
},
"camera_matrix": [], <---
"distortion_vector": [], <---
"laser_planes": [
{
"deviation": 0,<---
"distance": 0,<---
"normal": [] <----
},
{
"deviation": 0,<----
"distance": 0,<----
"normal": [] <---
}
],
"platform_translation": [],<---
"platform_rotation": []<---
},

Hast du das Update via apt-get installiert oder das neue Image verwendet?

Reply
HeinzSchmitz
(@heinzschmitz)
Joined: 4 years ago

New Member
Posts: 3

@mario Hallo Mario,

 

die Installtion habe ich auf beiden Wegen versucht. Also per Update und mit einem neuen Image. Die Einstallungen im Config-File sind so wie bei der Version 0.9.2.

Das Config-File (nach der Kalibrierung) im Spoiler :-)

Spoiler
Config

{
"folders": {
"www": "/usr/share/fabscanpi/",
"scans": "/home/pi/scans/"
},
"laser": {
"interleaved": "False",
"numbers": 2,
"color": "R (RGB)"
},
"scanner_type": "laserscanner",
"calibration": {
"weight_matrix": [],
"dist_camera_matrix": [],
"pattern": {
"square_size": 11,
"rows": 6,
"columns": 8,
"origin_distance": 37.2
},
"camera_matrix": [
[
1333.19,
0.0,
623.374
],
[
0.0,
1331.718,
808.204
],
[
0.0,
0.0,
1.0
]
],
"distortion_vector": [
0.12,
0.441,
0.001,
0.001,
-2.703
],
"laser_planes": [
{
"distance": 95.46905758525654,
"normal": [
0.8140181605421452,
-0.009448696649648123,
0.580762564598654
],
"deviation": 0.020522184997417533
}
],
"platform_translation": [
-1.7444463851292613,
49.387128825303705,
166.48947936597864
],
"platform_rotation": [
[
0.0,
0.9999672187897082,
-0.008096996108192133
],
[
0.01436756320382942,
-0.008096160346267688,
-0.9998640034100795
],
[
-0.9998967812367354,
-0.00011633410334561131,
-0.014367092217718654
]
]
},
"meshlab": {
"path": "/usr/bin/"
},
"process_numbers": 3,
"turntable": {
"steps": 3200,
"radius": 70,
"height": 155
},
"camera": {
"resolution": {
"width": 1640,
"height": 1232
},
"preview_resolution": {
"width": 800,
"height": 600
},
"rotate": "True",
"hflip": "True",
"vflip": "False",
"type": "PICAM",
"undistort": "False"
},
"serial": {
"plattform_type": "fabscanpi",
"baudrate": 115200,
"autoflash": "True",
"port": "/dev/ttyAMA0",
"flash_baudrate": 115200
},
"texture_illumination": 160,
"keep_raw_images": "True",
"discoverable": "True",
"online_lookup_ip": "8.8.8.8"
}

Aber, mach Dir keinen Stress und schöne Grüße

Heinz

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

Honorable Member
Posts: 570

@heinzschmitz könntest du mir noch das Log file anhängen? Es liegt in /var/log/fabscanpi/fabscabpi.log

 

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

Danke erst mal für die ganzen Informationen. Das hilft mir natürlich beim Auffinden des Fehlers. Ich habe in v.0.9.3 tatsächlich etwas an der Routine geändert die überprüft ob der Scanner kalibriert ist. Bei mir läuft das seltsamerweise ohne Probleme. 

Posted by: @heinzschmitz

Aber, mach Dir keinen Stress und schöne Grüße

Passt schon. Ich habe natürlich ein Interesse daran den Fehler zu beheben.

Reply
mario
Posts: 570
Admin
Topic starter
(@mario)
Honorable Member
Joined: 6 years ago
Posted by: @f_schmidt

e preview in the browser does not work anymore.

Can you try it by using a privacy window?

Reply
F_Schmidt
(@f_schmidt)
Joined: 4 years ago

Active Member
Posts: 10

@mario same result: It is loading, but not working. No image displays.

Reply
Danilo0702
Posts: 394
(@danilo0702)
Reputable Member
Joined: 6 years ago
Posted by: @heinzschmitz

Schade. Mit der Version 0.9.3 kann ich nicht Kalibrieren. Mit Chrome sit die Verschau sichtber und die Kalibrierung läuft und endet mit der Erfolgsmeldung. Beim Versuch zu Scannen meldet der Scanner, keine Kalibrierung vorgenommen, Scan abgebrochen.

Hei @heinzschmitz,  kannst du mal ein Bild von deinem Kalibrierungssheet hier reinstellen ((und vielleicht die Config Datei--- ein Screen von dem Dateiteil, wo man die Angaben zum Sheet sieht, reicht aus)).

Reply
HeinzSchmitz
(@heinzschmitz)
Joined: 4 years ago

New Member
Posts: 3

@danilo0702

Danke für die Rückmeldung.

Es ist das Standard 6x8 Sheet mit 11mm breiten Quadraten. Die Distance ist 37,2 mm vom Drehteller. Hier die Config Datei (hatte ich Mario auch schon geschickt):

Spoiler
Config Datei
{
"folders": {
"www": "/usr/share/fabscanpi/",
"scans": "/home/pi/scans/"
},
"laser": {
"interleaved": "False",
"numbers": 2,
"color": "R (RGB)"
},
"scanner_type": "laserscanner",
"calibration": {
"weight_matrix": [],
"dist_camera_matrix": [],
"pattern": {
"square_size": 11,
"rows": 6,
"columns": 8,
"origin_distance": 37.2
},
"camera_matrix": [
[
1333.19,
0.0,
623.374
],
[
0.0,
1331.718,
808.204
],
[
0.0,
0.0,
1.0
]
],
"distortion_vector": [
0.12,
0.441,
0.001,
0.001,
-2.703
],
"laser_planes": [
{
"distance": 95.46905758525654,
"normal": [
0.8140181605421452,
-0.009448696649648123,
0.580762564598654
],
"deviation": 0.020522184997417533
}
],
"platform_translation": [
-1.7444463851292613,
49.387128825303705,
166.48947936597864
],
"platform_rotation": [
[
0.0,
0.9999672187897082,
-0.008096996108192133
],
[
0.01436756320382942,
-0.008096160346267688,
-0.9998640034100795
],
[
-0.9998967812367354,
-0.00011633410334561131,
-0.014367092217718654
]
]
},
"meshlab": {
"path": "/usr/bin/"
},
"process_numbers": 3,
"turntable": {
"steps": 3200,
"radius": 70,
"height": 155
},
"camera": {
"resolution": {
"width": 1640,
"height": 1232
},
"preview_resolution": {
"width": 800,
"height": 600
},
"rotate": "True",
"hflip": "True",
"vflip": "False",
"type": "PICAM",
"undistort": "False"
},
"serial": {
"plattform_type": "fabscanpi",
"baudrate": 115200,
"autoflash": "True",
"port": "/dev/ttyAMA0",
"flash_baudrate": 115200
},
"texture_illumination": 160,
"keep_raw_images": "True",
"discoverable": "True",
"online_lookup_ip": "8.8.8.8"
}

Danke und schöne Grüße

Heinz

 

 

 

Reply
olivers
Posts: 4
(@olivers)
New Member
Joined: 4 years ago

I've had a similar issue, upgraded to 0.9.3 last night and the preview window is always black.  I've only tried using Firefox. 

A configure seemed to work ok but didn't try a scan.

 

I downloaded the new image and burnt to a new card but haven't tried that yet as ran out of time.

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

Honorable Member
Posts: 570

@olivers i did some investigations on that issue. This seems to be a Firefox security feature issue. I don't know yet how to fix that. But i think i will find a fix. I will keep you up to date.

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

Can you attach the log file?

Reply
olivers
Posts: 4
(@olivers)
New Member
Joined: 4 years ago

Forgot to say am using a Pi4

using the new image I get the same preview window loading.

 

Which log are you after?  Here is the default.config.json for the upgraded 0.9.2 to 0.9.3.

 

Spoiler
default.config.json

{
"folders": {
"www": "/usr/share/fabscanpi/",
"scans": "/home/pi/scans/"
},
"laser": {
"interleaved": "False",
"numbers": 2,
"color": "R (RGB)"
},
"scanner_type": "laserscanner",
"calibration": {
"weight_matrix": [],
"dist_camera_matrix": [],
"pattern": {
"square_size": 10,
"rows": 6,
"columns": 8,
"origin_distance": 37.2
},
"camera_matrix": [
[
1344.124,
0.0,
595.74
],
[
0.0,
1344.63,
844.677
],
[
0.0,
0.0,
1.0
]
],
"distortion_vector": [
0.136,
-0.11,
0.004,
-0.005,
-1.162
],
"laser_planes": [
{
"distance": 88.13943565607174,
"normal": [
0.8217568930531491,
0.00400063424115768,
0.5698241866096093
],
"deviation": 0.044402170771283486
},
{
"distance": 86.34930915552876,
"normal": [
-0.8151976229836869,
0.02092854786707827,
0.578804657346433
],
"deviation": 0.03318012476994827
}
],
"platform_translation": [
2.6287643151965874,
55.966187612630286,
150.38940937819885
],
"platform_rotation": [
[
0.0,
0.999932696740308,
-0.011601809757755044
],
[
-0.031716970826233815,
-0.011595972774973502,
-0.9994296209223588
],
[
-0.9994968903211294,
0.00036797426161823155,
0.03171483617070965
]
]
},
"meshlab": {
"path": "/usr/bin/"
},
"process_numbers": 3,
"turntable": {
"steps": 6400,
"radius": 70,
"height": 155
},
"camera": {
"resolution": {
"width": 1640,
"height": 1232
},
"preview_resolution": {
"width": 800,
"height": 600
},
"rotate": "True",
"hflip": "True",
"vflip": "False",
"type": "PICAM",
"undistort": "False"
},
"serial": {
"plattform_type": "fabscanpi",
"baudrate": 115200,
"autoflash": "True",
"port": "/dev/ttyAMA0",
"flash_baudrate": 115200
},
"texture_illumination": 160,
"keep_raw_images": "True",
"discoverable": "True",
"online_lookup_ip": "8.8.8.8"
}

 

 

Just noticed some of the settings have defaulted such as the square size and steps/rev.

 

On the new fresh build of 0.9.3 with the correct settings when I run calibrate I can see the images being captured in scans/calibration so images are being taken correctly as well as the calibration ply files at the end.  Here is the config file for that:

Spoiler
default.config.json

{
"folders": {
"www": "/usr/share/fabscanpi/",
"scans": "/home/pi/scans/"
},
"laser": {
"interleaved": "False",
"numbers": 2,
"color": "R (RGB)"
},
"scanner_type": "laserscanner",
"calibration": {
"weight_matrix": [],
"dist_camera_matrix": [],
"pattern": {
"square_size": 11,
"rows": 6,
"columns": 8,
"origin_distance": 37.2
},
"camera_matrix": [
[
1343.095,
0.0,
620.129
],
[
0.0,
1343.777,
824.68
],
[
0.0,
0.0,
1.0
]
],
"distortion_vector": [
0.108,
0.614,
0.0,
0.004,
-5.8
],
"laser_planes": [
{
"distance": 96.5979339168663,
"normal": [
0.8173013359162637,
0.0302808997357367,
0.575414279819927
],
"deviation": 0.044921076990690104
},
{
"distance": 91.22838937559398,
"normal": [
-0.8432449646142016,
0.0272618400667445,
0.5368377052042547
],
"deviation": 0.05002863301188214
}
],
"platform_translation": [
0.34324097145786997,
60.419997428746,
164.43332770943087
],
"platform_rotation": [
[
0.0,
0.9999704750870753,
-0.00768433172951953
],
[
-0.04700464890075516,
-0.007675838011849678,
-0.9988651783361621
],
[
-0.998894670614333,
0.00036119931498299816,
0.0470032610925893
]
]
},
"meshlab": {
"path": "/usr/bin/"
},
"process_numbers": 3,
"turntable": {
"steps": 3200,
"radius": 70,
"height": 155
},
"camera": {
"resolution": {
"width": 1640,
"height": 1232
},
"preview_resolution": {
"width": 800,
"height": 600
},
"rotate": "True",
"hflip": "True",
"vflip": "False",
"type": "PICAM",
"undistort": "False"
},
"serial": {
"plattform_type": "fabscanpi",
"baudrate": 115200,
"autoflash": "True",
"port": "/dev/ttyAMA0",
"flash_baudrate": 115200
},
"texture_illumination": 160,
"keep_raw_images": "True",
"discoverable": "True",
"online_lookup_ip": "8.8.8.8"
}

 

I started a scan with the new build and it appears to be working ok as I see the points/lines benig generated so appears to be an issue displaying the camera in the browser.  Tried Firefox and Internet explorer with the same issue

 

 

 

Reply
mario
Posts: 570
Admin
Topic starter
(@mario)
Honorable Member
Joined: 6 years ago
Posted by: @olivers

using the new image I get the same preview window loading.

So the preview is showing up for you with a plain installation from the latest  sd-card image?

Reply
olivers
(@olivers)
Joined: 4 years ago

New Member
Posts: 4

No, the preview windows is still showing as black/loading with both the upgraded and new build.  I'm doing a high res scan now as a test as it had issues hanging/crashing before.

I'll take a screenshot of the preview window later when I can.

 

Reply
olivers
Posts: 4
(@olivers)
New Member
Joined: 4 years ago

Here is a capture showing the issue

Capture

 

Reply
Share: