diff --git a/readers/Reader.java b/readers/Reader.java index 36bd478..f19a333 100644 --- a/readers/Reader.java +++ b/readers/Reader.java @@ -33,7 +33,7 @@ public abstract class Reader{ } } protected void init() { - sig_data = new String[sig_data_size]; + sig_data = new String[readRegions.size()]; } String readAllBoxes(Path img) { try { @@ -58,7 +58,7 @@ public abstract class Reader{ } return ""; } - String interpretOutput(String[] jp_data,String[] en_data) { + String interpretOutput(String[] jp_data,String[] en_data,String[] sig_data) { //[6, 0, 218, 0, 218, 48, 6, 48, 32 5 4 1 5, 0.9670235803680689] //For each data point we want to first see if it's within the correct rectangular bounds and from there parse it as such. double[] accuracy = new double[readRegions.size()]; @@ -115,6 +115,11 @@ public abstract class Reader{ spacing+=readRegions.get(j).h+REGION_PADDING; } } + for (int i=0;i