Releases: DiamondLightSource/PuckBarcodeReader
Odd chars ignored
The codes which we use only contain letters, numbers, _, -.
Sometimes the decoding algorithms comes back with some other chars.
This change makes sure the wrongly decoded codes are ignored.
Use pylibdtmx to read barcodes
- The puck scanner now uses pylibdtmx library instead of a 'home brewed' reader to read the data codes. The 'home brewed' reader was not able to read the codes engraved on our newly ordered pucks (couldn't decipher '\n' which was, for some reason, added at the end of each code). Switching to pylibdtmx has additional benefits:
- pylibdtmx is much faster than the 'home brewed' code
- the puck scanner code becomes simple and easier to maintain
- Puck scanner runs on python 3.9 with most recent version of all but the following libraries (latest versions resulted in pyinstaller errors) :
- opencv-python 4.5.3.56 (latest 4.7.0.68)
- scipy 1.8.1 (latest 1.10.0)
Patch for an error caused by reading non existing image
The program was producing this error once the image it tried to read wasn't there:
AttributeError: 'NoneType' object has no attribute 'shape'
It is now going to use a blank image if the image it tries to read doesn't exist.
Puck orientation algorithm and logs
1.7.0 Release 1.7.0
Re-factorisation of scanner and capture workers
This release mainly focuses on re-factorisation of scanner and capture workers.
It also fixes several smaller issues:
- Improve the interface for setting the camera resolution
- Better behaviour if selected camera can't be accessed
- Simplify the calculations by fixing the camera position
- Add side camera preview to the gui
Imporved backup & progress bar
This release includes two changes:
- the backup functionality got changed - the whole store is now backed up before delating
- the scan progress is now displayed on a progress bar not as a countdown
PyQt upgrade
PyQt upgrade is the biggest change of this release.
Other changes include:
- adding logging - logs are passed to graylog
- adding a countdown window to the gui
- adding a backup functionality - the program will store the records which are deleted for a given number of weeks
User interface improvements
The release includes mainly user interface changes:
- result table got a new color for partially read pucks
- a new start/stop scan button was added
- the messages shown to the users have been revisited
Additionally the main window class has been refactored.
Puck orientation algorithm - improvement
Fixed camera settings button, improved performance of Travis build, improved puck orientation algorithm.
Allow duplicate records
Allows duplicate records. Puck barcode displayed in records table.
Icons now showing up. Added version number