This commit is contained in:
Alex Bezdieniezhnykh
2025-05-29 00:36:40 +03:00
parent d842466594
commit d87ddb5f6a
+1 -1
View File
@@ -216,7 +216,7 @@ public class AnnotationService : IAnnotationService
image = Image.FromStream(stream);
if (File.Exists(annotation.ImagePath))
ResilienceExt.WithRetry(() => File.Delete(annotation.ImagePath));
image.Save(annotation.ImagePath, ImageFormat.Jpeg); //todo: check png images coming from queue
image.Save(annotation.ImagePath, ImageFormat.Jpeg);
}
await YoloLabel.WriteToFile(detections, annotation.LabelPath, token);