diff --git a/modules/java/src/java/features2d+KeyPoint.java b/modules/java/src/java/features2d+KeyPoint.java index 9f3da1afd2..373a57f858 100644 --- a/modules/java/src/java/features2d+KeyPoint.java +++ b/modules/java/src/java/features2d+KeyPoint.java @@ -58,4 +58,12 @@ public class KeyPoint { { this(x, y, _size, -1, 0, 0, -1); } + + @Override + public String toString() { + return "KeyPoint [pt=" + pt + ", size=" + size + ", angle=" + angle + + ", response=" + response + ", octave=" + octave + + ", class_id=" + class_id + "]"; + } + }