diff --git a/redaction-service-v1/redaction-service-server-v1/src/main/java/com/iqser/red/service/redaction/v1/server/classification/model/TextBlock.java b/redaction-service-v1/redaction-service-server-v1/src/main/java/com/iqser/red/service/redaction/v1/server/classification/model/TextBlock.java index 6bbb2251..a187f747 100644 --- a/redaction-service-v1/redaction-service-server-v1/src/main/java/com/iqser/red/service/redaction/v1/server/classification/model/TextBlock.java +++ b/redaction-service-v1/redaction-service-server-v1/src/main/java/com/iqser/red/service/redaction/v1/server/classification/model/TextBlock.java @@ -23,16 +23,30 @@ public class TextBlock extends AbstractTextContainer { @Builder.Default private List sequences = new ArrayList<>(); + + @JsonIgnore private int rotation; + @JsonIgnore private String mostPopularWordFont; + + @JsonIgnore private String mostPopularWordStyle; + + @JsonIgnore private float mostPopularWordFontSize; + + @JsonIgnore private float mostPopularWordHeight; + + @JsonIgnore private float mostPopularWordSpaceWidth; + @JsonIgnore private float highestFontSize; + + @JsonIgnore private String classification; diff --git a/redaction-service-v1/redaction-service-server-v1/src/main/java/com/iqser/red/service/redaction/v1/server/tableextraction/model/AbstractTextContainer.java b/redaction-service-v1/redaction-service-server-v1/src/main/java/com/iqser/red/service/redaction/v1/server/tableextraction/model/AbstractTextContainer.java index cf608064..ef01eb63 100644 --- a/redaction-service-v1/redaction-service-server-v1/src/main/java/com/iqser/red/service/redaction/v1/server/tableextraction/model/AbstractTextContainer.java +++ b/redaction-service-v1/redaction-service-server-v1/src/main/java/com/iqser/red/service/redaction/v1/server/tableextraction/model/AbstractTextContainer.java @@ -13,13 +13,20 @@ import lombok.NoArgsConstructor; @NoArgsConstructor public abstract class AbstractTextContainer { + @JsonIgnore protected float minX; + @JsonIgnore protected float maxX; + @JsonIgnore protected float minY; + @JsonIgnore protected float maxY; + @JsonIgnore protected String classification; + @JsonIgnore protected int page; + @JsonIgnore private Orientation orientation = Orientation.NONE; public abstract String getText();