Windows compatibility

This commit is contained in:
2026-08-20 12:01:31 +02:00
parent 7c366a9ca4
commit ac4ab782b2
20 changed files with 634 additions and 134 deletions
+4
View File
@@ -13,6 +13,7 @@ matplotlib.use('Agg')
from PIL import Image, ImageDraw, ImageFont
import annotating
import utils
from annotating import MARGIN_LEFT, ANNOT_WIDTH
# Global lock for Matplotlib/Latex rendering to prevent race conditions
@@ -230,6 +231,9 @@ if __name__ == "__main__":
else:
root_dir = input_path
if os.path.exists(os.path.join(root_dir, "labels")):
utils.read_all_labels(root_dir)
if not args.refaire:
results = annotating.make_dictionary(root_dir)