Pull request #503: RED-5469 - Rename CVSERVICEENABLED to CVTABLEPARSINGENABLED

Merge in RED/redaction-service from RED-5469 to master

* commit '87b11842a6606cd24155b8e9b0a82932267512bb':
  RED-5469 - Rename CVSERVICEENABLED to CVTABLEPARSINGENABLED - renamed from cvServiceEnabled to cvTableParsingEnabled
This commit is contained in:
Corina Olariu 2022-11-18 11:25:10 +01:00
commit 467a242a3d
3 changed files with 4 additions and 4 deletions

View File

@ -73,7 +73,7 @@ public class PdfSegmentationService {
}
Map<Integer, List<PdfTableCell>> pdfTableCells = new HashMap<>();
if (redactionServiceSettings.isCvServiceEnabled()) {
if (redactionServiceSettings.isCvTableParsingEnabled()) {
pdfTableCells = tableService.convertTables(dossierId, fileId);
}

View File

@ -14,7 +14,7 @@ public class RedactionServiceSettings {
private boolean enableImageClassification = true;
private boolean cvServiceEnabled = true;
private boolean cvTableParsingEnabled = true;
private float maxImageCropboxRatio = 0.9f;

View File

@ -41,7 +41,7 @@ public class RulingCleaningService {
vrs.add(vr);
}
}
if (vrs.isEmpty() && redactionServiceSettings.isCvServiceEnabled()) {
if (vrs.isEmpty() && redactionServiceSettings.isCvTableParsingEnabled()) {
vrs.addAll(extractVerticalRulings(pdfTableCells));
}
List<Ruling> verticalRulingLines = collapseOrientedRulings(vrs);
@ -52,7 +52,7 @@ public class RulingCleaningService {
hrs.add(hr);
}
}
if (hrs.isEmpty() && redactionServiceSettings.isCvServiceEnabled()) {
if (hrs.isEmpty() && redactionServiceSettings.isCvTableParsingEnabled()) {
hrs.addAll(extractHorizontalRulings(pdfTableCells));
}
List<Ruling> horizontalRulingLines = collapseOrientedRulings(hrs);