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
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
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
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.
since version 0.9.3 Fabscan-Server the preview in the browser does not work anymore
Which browser do you use?
The two that I have written: Firefox Dev Edition (latest build) and also Safari. Neither of them worked.
Sorry i must be blind :)
maybye you try Chrome. Firefox have a problem with RAM. But i think you have a mac and not windows or linux.
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?
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
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?
"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?
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.
Aber, mach Dir keinen Stress und schöne Grüße
Passt schon. Ich habe natürlich ein Interesse daran den Fehler zu beheben.
e preview in the browser does not work anymore.
Can you try it by using a privacy window?
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)).
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.
Can you attach the log file?
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.
{
"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:
{
"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
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?
Here is a capture showing the issue