version 0.7.11. add exception when having only 1 point

This commit is contained in:
q
2025-08-22 12:32:44 +03:00
parent e924b3fcea
commit 195bddc0dd
2 changed files with 2 additions and 5 deletions

View File

@@ -2,7 +2,7 @@ import argparse
from tsmark.video_annotator import Marker
VERSION = "0.7.10"
VERSION = "0.7.11"
class SmartFormatter(argparse.HelpFormatter):

View File

@@ -323,10 +323,7 @@ class Marker:
history = np.array(history, np.int32).reshape((-1, 1, 2))
cv2.polylines(frame, [history], False, COLOR_INTERP, 1)
except KeyError:
print(self.get_interpolated_point(), self.nr)
pass
except IndexError:
except (KeyError, IndexError, TypeError):
print(self.get_interpolated_point(), self.nr)
pass
try: