Skip to content
Snippets Groups Projects
Commit e806cf1d authored by Cribellier, Antoine's avatar Cribellier, Antoine
Browse files

Added assert and error message

parent 53a7266a
No related branches found
No related tags found
1 merge request!7Improved architecture, documentation and flexibility, added working tests for preprocessing of images
......@@ -79,9 +79,7 @@ class Tracker2D:
"""
if len(self.images) is 0:
print("WARN: you need to load images first")
return
assert len(self.images) != 0, "Images need to be loaded first"
[self.back_subtractor.apply(image, learningRate=-1) for image in self.images[:-6]]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment