diff --git a/README.md b/README.md
index 3c4da5a..7ac9399 100644
--- a/README.md
+++ b/README.md
@@ -42,7 +42,7 @@ NewOCR is on Central, so it's insanely easy to get on both Maven and Gradle.
Gradle:
```Groovy
-compile 'com.uddernetworks.newocr:NewOCR:1.0.0'
+compile 'com.uddernetworks.newocr:NewOCR:1.0.1'
```
Maven:
@@ -50,7 +50,7 @@ Maven:
com.uddernetworks.newocr
NewOCR
- 1.0.0
+ 1.0.1
```
diff --git a/build.gradle b/build.gradle
index 3336527..4a630b7 100644
--- a/build.gradle
+++ b/build.gradle
@@ -16,7 +16,7 @@ apply plugin: 'io.codearte.nexus-staging'
group 'com.uddernetworks.newocr'
archivesBaseName = "NewOCR"
-version '1.0.0'
+version '1.0.1'
sourceCompatibility = 1.8
diff --git a/src/main/java/com/uddernetworks/newocr/ImageLetter.java b/src/main/java/com/uddernetworks/newocr/ImageLetter.java
index 6fc29d9..c7d2894 100644
--- a/src/main/java/com/uddernetworks/newocr/ImageLetter.java
+++ b/src/main/java/com/uddernetworks/newocr/ImageLetter.java
@@ -15,6 +15,7 @@ public class ImageLetter {
private int height;
private double ratio;
private List> segments;
+ private Object data;
/**
* Creates an ImageLetter from collected data.
@@ -140,4 +141,31 @@ public List> getSegments() {
public char getLetter() {
return this.databaseCharacter.getLetter();
}
+
+ /**
+ * Gets any data set to the {@link ImageLetter} object, useful for storing any needed data about the character to be
+ * used in the future.
+ * @return Data set to the character
+ */
+ public T getData(Class clazz) {
+ return clazz.isInstance(data) ? clazz.cast(data) : null;
+ }
+
+ /**
+ * Gets the raw data Object set to the {@link ImageLetter} object, useful for storing any needed data about the
+ * character to be used in the future.
+ * @return Data set to the character
+ */
+ public Object getData() {
+ return this.data;
+ }
+
+ /**
+ * Sets any data to the {@link ImageLetter} object, useful for storing any needed data about the character to be
+ * used in the future.
+ * @param data The data to be set
+ */
+ public void setData(Object data) {
+ this.data = data;
+ }
}