Package net.webpdf.wsclient.openapi
Class OperationDetectBarcode
- java.lang.Object
-
- net.webpdf.wsclient.openapi.OperationDetectBarcode
-
public class OperationDetectBarcode extends Object
This operation is used to define the barcode recognition parameters. The system will attempt to find barcodes inside the area defined with `<scanArea>`. The recognition process itself is controlled with `<selection>`.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOperationDetectBarcode.InputFormatEnumUsed to select the format of the file with the contents that will be scanned for barcodesstatic classOperationDetectBarcode.OutputFormatEnumUsed to select the format in which the recognition results should be returned
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_INPUT_FORMATstatic StringJSON_PROPERTY_OUTPUT_FORMATstatic StringJSON_PROPERTY_SELECTION
-
Constructor Summary
Constructors Constructor Description OperationDetectBarcode()
-
Method Summary
-
-
-
Field Detail
-
JSON_PROPERTY_INPUT_FORMAT
public static final String JSON_PROPERTY_INPUT_FORMAT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_OUTPUT_FORMAT
public static final String JSON_PROPERTY_OUTPUT_FORMAT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SELECTION
public static final String JSON_PROPERTY_SELECTION
- See Also:
- Constant Field Values
-
-
Method Detail
-
inputFormat
public OperationDetectBarcode inputFormat(OperationDetectBarcode.InputFormatEnum inputFormat)
-
getInputFormat
@Nullable public @Nullable OperationDetectBarcode.InputFormatEnum getInputFormat()
Used to select the format of the file with the contents that will be scanned for barcodes. * pdf = PDF document * img = Image document (JPG, PNG, TIF)- Returns:
- inputFormat
-
setInputFormat
public void setInputFormat(OperationDetectBarcode.InputFormatEnum inputFormat)
-
outputFormat
public OperationDetectBarcode outputFormat(OperationDetectBarcode.OutputFormatEnum outputFormat)
-
getOutputFormat
@Nullable public @Nullable OperationDetectBarcode.OutputFormatEnum getOutputFormat()
Used to select the format in which the recognition results should be returned. * json = JSON * xml = XML- Returns:
- outputFormat
-
setOutputFormat
public void setOutputFormat(OperationDetectBarcode.OutputFormatEnum outputFormat)
-
selection
public OperationDetectBarcode selection(List<OperationBarcodeSelection> selection)
-
addSelectionItem
public OperationDetectBarcode addSelectionItem(OperationBarcodeSelection selectionItem)
-
getSelection
@Nullable public @Nullable List<OperationBarcodeSelection> getSelection()
Get selection- Returns:
- selection
-
setSelection
public void setSelection(List<OperationBarcodeSelection> selection)
-
-