RED-5469 - Rename CVSERVICEENABLED to CVTABLEPARSINGENABLED

- renamed from cvServiceEnabled to cvTableParsingEnabled
This commit is contained in:
devplant 2022-11-17 14:23:06 +02:00
parent 8f56d50322
commit 87b11842a6
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);