I know that is not really the point of the script, but since I used it modified for a real-time application I wanted to share this:
In lines 67 and 68, you find the minimum/maximum using python's build-in version. using np.min() and np.max significantly improves runtime.
I know that is not really the point of the script, but since I used it modified for a real-time application I wanted to share this: In lines 67 and 68, you find the minimum/maximum using python's build-in version. using np.min() and np.max significantly improves runtime.