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:
commit
467a242a3d
@ -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);
|
||||
}
|
||||
|
||||
|
||||
@ -14,7 +14,7 @@ public class RedactionServiceSettings {
|
||||
|
||||
private boolean enableImageClassification = true;
|
||||
|
||||
private boolean cvServiceEnabled = true;
|
||||
private boolean cvTableParsingEnabled = true;
|
||||
|
||||
private float maxImageCropboxRatio = 0.9f;
|
||||
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user