Skip to content

Commit b8b1d4f

Browse files
committed
fixed wrong output bug
now use relative paths
1 parent 9df819f commit b8b1d4f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/kotlin/ch/bildspur/annotator/ui/MainViewController.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,9 @@ class MainViewController {
130130
var sb = StringBuilder()
131131

132132
for (image in annotationImages) {
133-
sb.append("${image.file.absolutePath} ")
133+
val path = Paths.get(positivesFile.absolutePath).parent.relativize(Paths.get(image.file.absolutePath))
134+
135+
sb.append("$path ${image.polygons.size} ")
134136
for (polygon in image.polygons) {
135137
val rect = getRectData(polygon)
136138
sb.append("${rect.x} ${rect.y} ${rect.width} ${rect.height} ")

0 commit comments

Comments
 (0)