pt: don't crash since hysteresis support

Reported-by: runningman84
GitHub: issue #15
aruco: adjust coefficients basing on resolution

Signed-off-by: Stanislaw Halik <sthalik@misaki.pl>