diff options
author | jonas <schmid@stettbacher.ch> | 2020-10-13 17:19:47 +0200 |
---|---|---|
committer | jonas <schmid@stettbacher.ch> | 2020-10-13 17:19:47 +0200 |
commit | 45dc81dd5016f0f3825fec8aaf9c7dc16fdaea11 (patch) | |
tree | 2f2779ac16f79c6d083fcd762df3cdb7bb70b112 | |
parent | Add further persons/workers to the selection list. (diff) | |
download | o3000-python-binding-45dc81dd5016f0f3825fec8aaf9c7dc16fdaea11.tar.gz o3000-python-binding-45dc81dd5016f0f3825fec8aaf9c7dc16fdaea11.zip |
Add operator / linux username to the annotation file.
Diffstat (limited to '')
-rw-r--r-- | image-record-annotate.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/image-record-annotate.py b/image-record-annotate.py index 341cfe4..7ea1c01 100644 --- a/image-record-annotate.py +++ b/image-record-annotate.py @@ -18,6 +18,9 @@ import code # entering the interactive mode at a certain point: code.interact(lo IMAGE_WIDTH = 1280 IMAGE_HEIGHT = 960 +import getpass +OPERATOR = getpass.getuser() + class ImageLabel(tk.Label): def __init__(self, *args, **kwargs): @@ -230,12 +233,13 @@ def annotation_text(filenames, annotation_panel, cam_control_panel): _str += 'camera: O-3020 (color, rolling shutter, serial no.: 10030)\n' _str += 'lense: C-Mount 6mm 1/2.7" IR MP, with IR cutoff filter\n' _str += 'exposure time: {:f}s\n'.format(cam_control_panel.exposure_time.value) - _str += 'sensitivity: {:f}%'.format(cam_control_panel.sensitivity.value) + _str += 'sensitivity: {:f}%\n'.format(cam_control_panel.sensitivity.value) _str += '\n' _str += 'date: {:s}\n'.format(ap.date) _str += 'time: {:s}\n'.format(ap.time) + _str += 'operator: {:s}\n'.format(OPERATOR) _str += '\n' |