cv2 gui has problems on linux, rework live preview into Tkinter instead.