File tree 2 files changed +5
-2
lines changed
src/main/kotlin/ch/bildspur/annotator
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ class Main : Application() {
33
33
}
34
34
35
35
companion object {
36
- const val VERSION = " 0.1 "
36
+ const val VERSION = " 0.2 "
37
37
38
38
@JvmStatic
39
39
fun main (args : Array <String >) {
Original file line number Diff line number Diff line change @@ -115,9 +115,12 @@ class MainViewController {
115
115
fun saveAndClose () {
116
116
savePolygonsAsText()
117
117
118
+ // sum up
119
+ val totalSamples = annotationImages.sumBy { it.polygons.size }
120
+
118
121
val alert = Alert (Alert .AlertType .INFORMATION )
119
122
alert.title = " OpenCV Sample Annotator"
120
- alert.headerText = " All images annotated!"
123
+ alert.headerText = " All images annotated ( $totalSamples found) !"
121
124
alert.contentText = " The data has been saved to: ${positivesFile.name} "
122
125
123
126
alert.showAndWait()
You can’t perform that action at this time.
0 commit comments