UNPKG

dynamsoft-barcode-reader-bundle

Version:

Dynamsoft Barcode Reader JS is a recognition SDK which enables you to embed barcode reading functionality in your web, desktop, and mobile applications. With a few lines of JavaScript code, you can develop a robust application to scan a linear barcode, QR

628 lines 15.1 kB
{ "CaptureVisionTemplates": [ { "Name": "ReadBarcodes_Default", "ImageROIProcessingNameArray": [ "roi-read-barcodes" ], "Timeout": 10000 }, { "Name": "ReadBarcodes_SpeedFirst", "ImageROIProcessingNameArray": [ "roi-read-barcodes-speed-first" ], "Timeout": 10000 }, { "Name": "ReadBarcodes_ReadRateFirst", "ImageROIProcessingNameArray": [ "roi-read-barcodes-read-rate" ], "Timeout": 100000 }, { "Name": "ReadSingleBarcode", "ImageROIProcessingNameArray": [ "roi-read-single-barcode" ], "Timeout": 10000 }, { "Name": "ReadBarcodes_Balance", "ImageROIProcessingNameArray": [ "roi-read-barcodes-balance" ], "Timeout": 100000 }, { "Name": "ReadDenseBarcodes", "ImageROIProcessingNameArray": [ "roi-read-barcodes-dense" ], "Timeout": 10000 }, { "Name": "ReadDistantBarcodes", "ImageROIProcessingNameArray": [ "roi-read-barcodes-distant" ], "Timeout": 10000 } ], "TargetROIDefOptions": [ { "Name": "roi-read-barcodes", "TaskSettingNameArray": [ "task-read-barcodes" ] }, { "Name": "roi-read-barcodes-speed-first", "TaskSettingNameArray": [ "task-read-barcodes-speed-first" ] }, { "Name": "roi-read-barcodes-read-rate", "TaskSettingNameArray": [ "task-read-barcodes-read-rate" ] }, { "Name": "roi-read-single-barcode", "TaskSettingNameArray": [ "task-read-single-barcode" ] }, { "Name": "roi-read-barcodes-balance", "TaskSettingNameArray": [ "task-read-barcodes-balance" ] }, { "Name": "roi-read-barcodes-dense", "TaskSettingNameArray": [ "task-read-barcodes-dense" ] }, { "Name": "roi-read-barcodes-distant", "TaskSettingNameArray": [ "task-read-barcodes-distant" ] } ], "BarcodeFormatSpecificationOptions": [ { "Name": "bfs1", "BarcodeFormatIds": [ "BF_PDF417", "BF_QR_CODE", "BF_DATAMATRIX", "BF_AZTEC", "BF_MICRO_QR", "BF_MICRO_PDF417", "BF_DOTCODE" ], "MirrorMode": "MM_BOTH" }, { "Name": "bfs2", "BarcodeFormatIds": [ "BF_ALL" ], "MirrorMode": "MM_NORMAL" }, { "Name": "bfs1-speed-first", "BaseBarcodeFormatSpecification": "bfs1" }, { "Name": "bfs2-speed-first", "BaseBarcodeFormatSpecification": "bfs2" }, { "Name": "bfs1-read-rate-first", "BaseBarcodeFormatSpecification": "bfs1" }, { "Name": "bfs2-read-rate-first", "BaseBarcodeFormatSpecification": "bfs2" }, { "Name": "bfs1-single-barcode", "BaseBarcodeFormatSpecification": "bfs1" }, { "Name": "bfs2-single-barcode", "BaseBarcodeFormatSpecification": "bfs2" }, { "Name": "bfs1-balance", "BaseBarcodeFormatSpecification": "bfs1" }, { "Name": "bfs2-balance", "BaseBarcodeFormatSpecification": "bfs2" }, { "Name": "bfs1-dense", "BaseBarcodeFormatSpecification": "bfs1" }, { "Name": "bfs2-dense", "BaseBarcodeFormatSpecification": "bfs2" }, { "Name": "bfs1-distant", "BaseBarcodeFormatSpecification": "bfs1" }, { "Name": "bfs2-distant", "BaseBarcodeFormatSpecification": "bfs2" } ], "BarcodeReaderTaskSettingOptions": [ { "Name": "task-read-barcodes", "ExpectedBarcodesCount": 0, "LocalizationModes": [ { "Mode": "LM_CONNECTED_BLOCKS" }, { "Mode": "LM_LINES" } ], "DeblurModes": [ { "Mode": "DM_BASED_ON_LOC_BIN" }, { "Mode": "DM_THRESHOLD_BINARIZATION" } ], "BarcodeFormatSpecificationNameArray": [ "bfs1", "bfs2" ], "SectionImageParameterArray": [ { "Section": "ST_REGION_PREDETECTION", "ImageParameterName": "ip-read-barcodes" }, { "Section": "ST_BARCODE_LOCALIZATION", "ImageParameterName": "ip-read-barcodes" }, { "Section": "ST_BARCODE_DECODING", "ImageParameterName": "ip-read-barcodes" } ] }, { "Name": "task-read-barcodes-speed-first", "ExpectedBarcodesCount": 0, "LocalizationModes": [ { "Mode": "LM_SCAN_DIRECTLY", "ScanDirection": 2 }, { "Mode": "LM_CONNECTED_BLOCKS" } ], "DeblurModes": [ { "Mode": "DM_BASED_ON_LOC_BIN" }, { "Mode": "DM_THRESHOLD_BINARIZATION" }, { "Mode": "DM_DEEP_ANALYSIS" } ], "BarcodeFormatSpecificationNameArray": [ "bfs1-speed-first", "bfs2-speed-first" ], "SectionImageParameterArray": [ { "Section": "ST_REGION_PREDETECTION", "ImageParameterName": "ip-read-barcodes-speed-first" }, { "Section": "ST_BARCODE_LOCALIZATION", "ImageParameterName": "ip-read-barcodes-speed-first" }, { "Section": "ST_BARCODE_DECODING", "ImageParameterName": "ip-read-barcodes-speed-first" } ] }, { "Name": "task-read-barcodes-read-rate", "ExpectedBarcodesCount": 999, "LocalizationModes": [ { "Mode": "LM_CONNECTED_BLOCKS" }, { "Mode": "LM_LINES" }, { "Mode": "LM_STATISTICS" } ], "DeblurModes": [ { "Mode": "DM_BASED_ON_LOC_BIN" }, { "Mode": "DM_THRESHOLD_BINARIZATION" }, { "Mode": "DM_DIRECT_BINARIZATION" }, { "Mode": "DM_SMOOTHING" } ], "BarcodeFormatSpecificationNameArray": [ "bfs1-read-rate-first", "bfs2-read-rate-first" ], "SectionImageParameterArray": [ { "Section": "ST_REGION_PREDETECTION", "ImageParameterName": "ip-read-barcodes-read-rate" }, { "Section": "ST_BARCODE_LOCALIZATION", "ImageParameterName": "ip-read-barcodes-read-rate" }, { "Section": "ST_BARCODE_DECODING", "ImageParameterName": "ip-read-barcodes-read-rate" } ] }, { "Name": "task-read-single-barcode", "ExpectedBarcodesCount": 1, "LocalizationModes": [ { "Mode": "LM_SCAN_DIRECTLY", "ScanDirection": 2 }, { "Mode": "LM_CONNECTED_BLOCKS" } ], "DeblurModes": [ { "Mode": "DM_BASED_ON_LOC_BIN" }, { "Mode": "DM_THRESHOLD_BINARIZATION" }, { "Mode": "DM_DEEP_ANALYSIS" } ], "BarcodeFormatSpecificationNameArray": [ "bfs1-single-barcode", "bfs2-single-barcode" ], "SectionImageParameterArray": [ { "Section": "ST_REGION_PREDETECTION", "ImageParameterName": "ip-read-single-barcode" }, { "Section": "ST_BARCODE_LOCALIZATION", "ImageParameterName": "ip-read-single-barcode" }, { "Section": "ST_BARCODE_DECODING", "ImageParameterName": "ip-read-single-barcode" } ] }, { "Name": "task-read-barcodes-balance", "ExpectedBarcodesCount": 999, "LocalizationModes": [ { "Mode": "LM_CONNECTED_BLOCKS" }, { "Mode": "LM_SCAN_DIRECTLY" } ], "DeblurModes": [ { "Mode": "DM_BASED_ON_LOC_BIN" }, { "Mode": "DM_THRESHOLD_BINARIZATION" }, { "Mode": "DM_DIRECT_BINARIZATION" } ], "BarcodeFormatSpecificationNameArray": [ "bfs1-balance", "bfs2-balance" ], "SectionImageParameterArray": [ { "Section": "ST_REGION_PREDETECTION", "ImageParameterName": "ip-read-barcodes-balance" }, { "Section": "ST_BARCODE_LOCALIZATION", "ImageParameterName": "ip-read-barcodes-balance" }, { "Section": "ST_BARCODE_DECODING", "ImageParameterName": "ip-read-barcodes-balance" } ] }, { "Name": "task-read-barcodes-dense", "ExpectedBarcodesCount": 0, "LocalizationModes": [ { "Mode": "LM_CONNECTED_BLOCKS" }, { "Mode": "LM_LINES" } ], "DeblurModes": [ { "Mode": "DM_BASED_ON_LOC_BIN" }, { "Mode": "DM_THRESHOLD_BINARIZATION" }, { "Mode": "DM_DIRECT_BINARIZATION" }, { "Mode": "DM_SMOOTHING" }, { "Mode": "DM_GRAY_EQUALIZATION" } ], "BarcodeFormatSpecificationNameArray": [ "bfs1-dense", "bfs2-dense" ], "SectionImageParameterArray": [ { "Section": "ST_REGION_PREDETECTION", "ImageParameterName": "ip-read-barcodes-dense" }, { "Section": "ST_BARCODE_LOCALIZATION", "ImageParameterName": "ip-read-barcodes-dense" }, { "Section": "ST_BARCODE_DECODING", "ImageParameterName": "ip-read-barcodes-dense" } ] }, { "Name": "task-read-barcodes-distant", "ExpectedBarcodesCount": 0, "LocalizationModes": [ { "Mode": "LM_CONNECTED_BLOCKS" }, { "Mode": "LM_LINES" } ], "DeblurModes": [ { "Mode": "DM_BASED_ON_LOC_BIN" }, { "Mode": "DM_THRESHOLD_BINARIZATION" }, { "Mode": "DM_DIRECT_BINARIZATION" } ], "BarcodeFormatSpecificationNameArray": [ "bfs1-distant", "bfs2-distant" ], "SectionImageParameterArray": [ { "Section": "ST_REGION_PREDETECTION", "ImageParameterName": "ip-read-barcodes-distant" }, { "Section": "ST_BARCODE_LOCALIZATION", "ImageParameterName": "ip-read-barcodes-distant" }, { "Section": "ST_BARCODE_DECODING", "ImageParameterName": "ip-read-barcodes-distant" } ] } ], "ImageParameterOptions": [ { "Name": "ip-read-barcodes", "TextDetectionMode": { "Mode": "TTDM_LINE", "Direction": "UNKNOWN", "Sensitivity": 3 }, "IfEraseTextZone": 1, "BinarizationModes": [ { "Mode": "BM_LOCAL_BLOCK", "BlockSizeX": 71, "BlockSizeY": 71, "EnableFillBinaryVacancy": 0 } ], "GrayscaleTransformationModes": [ { "Mode": "GTM_ORIGINAL" } ] }, { "Name": "ip-read-barcodes-speed-first", "TextDetectionMode": { "Mode": "TTDM_LINE", "Direction": "UNKNOWN", "Sensitivity": 3 }, "IfEraseTextZone": 1, "BinarizationModes": [ { "Mode": "BM_LOCAL_BLOCK", "BlockSizeX": 27, "BlockSizeY": 27, "EnableFillBinaryVacancy": 1 } ], "GrayscaleTransformationModes": [ { "Mode": "GTM_ORIGINAL" } ], "ScaleDownThreshold": 2300 }, { "Name": "ip-read-barcodes-read-rate", "TextDetectionMode": { "Mode": "TTDM_LINE", "Direction": "UNKNOWN", "Sensitivity": 3 }, "IfEraseTextZone": 1, "BinarizationModes": [ { "Mode": "BM_LOCAL_BLOCK", "BlockSizeX": 0, "BlockSizeY": 0, "EnableFillBinaryVacancy": 1 } ], "GrayscaleTransformationModes": [ { "Mode": "GTM_ORIGINAL" } ], "ScaleDownThreshold": 100000 }, { "Name": "ip-read-single-barcode", "TextDetectionMode": { "Mode": "TTDM_LINE", "Direction": "UNKNOWN", "Sensitivity": 3 }, "IfEraseTextZone": 1, "BinarizationModes": [ { "Mode": "BM_LOCAL_BLOCK", "BlockSizeX": 27, "BlockSizeY": 27, "EnableFillBinaryVacancy": 0 } ], "GrayscaleTransformationModes": [ { "Mode": "GTM_ORIGINAL" } ], "ScaleDownThreshold": 2300 }, { "Name": "ip-read-barcodes-balance", "TextDetectionMode": { "Mode": "TTDM_LINE", "Direction": "UNKNOWN", "Sensitivity": 3 }, "IfEraseTextZone": 1, "BinarizationModes": [ { "Mode": "BM_LOCAL_BLOCK", "BlockSizeX": 0, "BlockSizeY": 0, "EnableFillBinaryVacancy": 1 } ], "GrayscaleTransformationModes": [ { "Mode": "GTM_ORIGINAL" } ] }, { "Name": "ip-read-barcodes-dense", "TextDetectionMode": { "Mode": "TTDM_LINE", "Direction": "UNKNOWN", "Sensitivity": 3 }, "IfEraseTextZone": 1, "BinarizationModes": [ { "Mode": "BM_LOCAL_BLOCK", "BlockSizeX": 0, "BlockSizeY": 0, "EnableFillBinaryVacancy": 1 } ], "GrayscaleTransformationModes": [ { "Mode": "GTM_ORIGINAL" } ], "ScaleDownThreshold": 100000 }, { "Name": "ip-read-barcodes-distant", "TextDetectionMode": { "Mode": "TTDM_LINE", "Direction": "UNKNOWN", "Sensitivity": 3 }, "IfEraseTextZone": 1, "BinarizationModes": [ { "Mode": "BM_LOCAL_BLOCK", "BlockSizeX": 0, "BlockSizeY": 0, "EnableFillBinaryVacancy": 1 } ], "GrayscaleTransformationModes": [ { "Mode": "GTM_ORIGINAL" } ], "ScaleDownThreshold": 2300 } ] }