Participating in this forum is undoubtedly an enriching experience.
I have had access to knowledge on aspects previously unknown to me.
@dgalland has suggested to me to use the pigpio library on the server. The use of this library supposes a more regular and stable control of the motor and a higher speed.
@dgalland also pointed out to me the possibility of using a function that calculates a numerical index of focus quality. In the preview images now appears such an index that gives us objective data on the focus of the captured images.
@cpixip has suggested a function for the normalization of the HDR images obtained using the Mertens algorithm, which produces final images with better contrast.
I have incorporated these contributions with notable success into this new version of the software. Thank you both for your contributions.
For my part, I had observed that during long scanning sessions, exceptions of the type PiCameraRuntimeError (‘Timed out waiting for capture to end’) were thrown.
These exceptions meant the interruption of the work and the restart of the software.
I have not been able to determine the exact cause of the problem, so I have decided to catch the exceptions in the server software, so that it recovers automatically and continues with the work as if nothing had happened.
I have to tell potential interested parties to read the new instructions carefully. Especially the setup of the server has changed a lot.
Greetings to all members of the forum.