Link Search Menu Expand Document

« return to view all profiles categories


Barcode Reader: Read barcodes from negative and Rotated faxes

By default Barcode reader scan for horizontal barcodes. Use following profile to enable decoding of vertically oriented barcodes.

{ "Orientation": "HorizontalAndVertical" }

In some scenarios it is possible that when barcode rotated, it’s returning duplicate values due to same code is decoded with different values when rotated. The only way to get rid of this behaviour is set limit with MaxNumberOfBarcodesPerPage.

{ "Orientation": "HorizontalAndVertical', 'MaxNumberOfBarcodesPerPage": 1 }

Applies To:

  • /barcode/read/from/url

Barcode Reader: Reading barcode - not decoding due to abnormal distances between bars

In some scenarios barcode has abnormal distances between some bars making it not decodable. “Heuristic Mode” decoding option can help here.

{ "HeuristicMode": true }

Applies To:

  • /barcode/read/from/url

Barcode Reader: fixing reading issues due to variying lighting condition or image size

Certain input files for barcode reading can have varying lighting condition or image size. So we need to bring them to approximately the same state.

{ "ImagePreprocessingFilters.AddScale()": [1500, 'true', 'HighQualityBicubic'] , 'ImagePreprocessingFilters.AddGamma()": [1.4] }

Applies To:

  • /barcode/read/from/url

AddScale filter will auto-scale input images to the same size (1500 pixels).

AddGamma filter will increase the color intensity for better recognition.

Please Note: This does not guarantee that all similar images will be decoded, but it should work with most of them.

Barcode Reader: increase PDF rendering resolution for higher quality results

{'PDFRenderingResolution': 300}

« return to view all profiles categories