Resource Base
Table of contents

Thanks for downloading Dynamsoft Barcode Reader Package!

Your download will start shortly. If your download does not begin, click here to retry.

ImageParameter Object | Others

Parameter Name Description
ImageParameter.DeblurLevel Sets the degree of blurriness of the barcode.
ImageParameter.Pages Sets the specific pages or the range of pages of a file (.tiff or .pdf) for barcode searching.
ImageParameter.PDFRasterDPI Sets the output image resolution.
ImageParameter.PDFReadingMode Sets the way to detect barcodes from a PDF file when using the DecodeFile method.
ImageParameter.ScaleDownThreshold Sets the threshold for the image shrinking.

DeblurLevel

Sets the degree of blurriness of the barcode.

Remarks
If you have a blurry image, you can set this property to a larger value. The higher value set, the more effort the library will spend to decode images, but it may also slow down the recognition process.
DeblurLevel is now deprecated. It still works in this version but could be removed in the near future. We recommend using DeblurModes instead.

As Json Parameter

Json Object Json Parameter Name Value Type Value Range Default Value
ImageParameter DeblurLevel int [0, 9] 9

Json Parameter Example

{
    "DeblurLevel":9
}

As PublicRuntimeSettings Member

Struct Struct Member Name Value Type Value Range Default Value
PublicRuntimeSettings deblurLevel int [0, 9] 9

See Also

 

Pages

Sets the specific pages or the range of pages of a file (.tiff or .pdf) for barcode searching.

Remarks

  1. The value is 0-based;
  2. ”” represents all pages.

As Json Parameter

Json Object Json Parameter Name Value Type Value Range Default Value
ImageParameter Pages string A string of one or more of the following data,separated by commas:
1. One int value which represents a specified page index;
2. One Expression, start index and stop index connected with “”-“”, which represents a specified page index range;
””

Json Parameter Example

{
    "Pages": "0,3,5,7-10"
}

 

PDFRasterDPI

Sets the output image resolution.

Remarks
When you are trying to decode a PDF file using DecodeFile method, the library will convert the pdf file to image(s) first, then perform barcode recognition.
To ensure your barcodes in the PDF files are readable, please set the resolution to at least 300 dpi.

As Json Parameter

Json Object Json Parameter Name Value Type Value Range Default Value
ImageParameter PDFRasterDPI *int * [100, 600] 300

Json Parameter Example

{
    "PDFRasterDPI":300
}

As PublicRuntimeSettings Member

Struct Struct Member Name Value Type Value Range Default Value
PublicRuntimeSettings pdfRasterDPI int [100, 600] 300

See Also

 

PDFReadingMode

Sets how to detect barcodes from a PDF file when using DecodeFile method.

As Json Parameter

Json Object Json Parameter Name Value Type Value Range Default Value
ImageParameter PDFReadingMode string Any one of the PDFReadingMode Enumeration items. “PDFRM_AUTO”

Json Parameter Example

{
 "PDFReadingMode":"PDFRM_VECTOR",
}

As PublicRuntimeSettings Member

Struct Struct Member Name Value Type Value Range Default Value
PublicRuntimeSettings pdfReadingMode int Any one of the PDFReadingMode Enumeration items. PDFRM_AUTO

See Also

 

ScaleDownThreshold

Sets the threshold for the image shrinking.

Remarks
If the shorter edge size is larger than the given value, the library will calculate the required height and width of the barcode image and shrink the image to that size before localization. Otherwise, it will perform barcode localization on the original image.
If you have an image whose shorter edge size is larger than the given value and the barcode is a small part on it, you can set this value to be larger than the shorter edge of this image.
If you have an image whose shorter edge size is larger than the given value and the barcode is clear and big, you can set this value to a smaller one than the default value.

As Json Parameter

Json Object Json Parameter Name Value Type Value Range Default Value
ImageParameter ScaleDownThreshold int [512, 0x7fffffff] 2300

Json Parameter Example

{
    "ScaleDownThreshold":2300
}

As PublicRuntimeSettings Member

Struct Struct Member Name Value Type Value Range Default Value
PublicRuntimeSettings scaleDownThreshold int [512, 0x7fffffff] 2300

See Also

 

This page is compatible for:

Version 7.5

Is this page helpful?

YesYes NoNo

In this article:

latest version

    • Latest Version
    • version 8.2.5
    • version 8.2
    • version 8.1.2
    • version 8.0
    • version 7.6
    • version 7.5
    Change +
    © 2003–2021 Dynamsoft. All rights reserved.
    Privacy Statement / Site Map / Home / Purchase / Support