Table of contents

DynamsoftUtility Module

The Utility module is defined in the namespace Dynamsoft.Utility. At present, it consists of the classes UtilityModule, ImageManager and MultiFrameResultCrossFilter.

UtilityModule Class

This class defines common functionality in the Utility module. At present, it has only one method.

Name Description
static getVersion() Returns the version of the Utility module.

ImageDrawer Class

The ImageDrawer class provides APIs for for drawing shapes on images.

Name Description
drawOnImage() Draws various shapes on an image, and save it in PNG format.

ImageIO Class

The ImageIO class provides APIs for images reading and saving.

Name Description
saveToFile() Saves the specified image in either PNG or JPG format.
readFromFile() Reads an image from a file
saveToMemory() Saves an image to memory.
readFromMemory() Reads image data from memory using the specified ID.

ImageProcessor Class

The ImageProcessor class provides APIs for processing images.

Name Description
cropImage() Crops an image using a rectangle or quadrilateral.
adjustBrightness() Adjusts the brightness of the image.
adjustContrast() Adjusts the contrast of the image.
filterImage() Applies a specified image filter to an input image.
convertToGray() Converts a colour image to grayscale.
convertToBinaryGlobal() Converts a grayscale image to a binary image using a global threshold.
convertToBinaryLocal() Converts a grayscale image to a binary image using local (adaptive) binarization.

MultiFrameResultCrossFilter Class

The MultiFrameResultCrossFilter class provides APIs to configure the filtering of results from multiple images which have been processed consecutively. Usually these images are frames from a streaming video.

Name Description
enableLatestOverlapping() Enables or disables the to-the-latest overlapping feature of one or multiple specific result item types. This feature can increase the read-rate performance when decoding multiple barcodes under the video streaming.
isLatestOverlappingEnabled() Checks if to-the-latest overlapping is active for a given result item type.
enableResultCrossVerification() Enables or disables the verification of specific result item types.
isResultCrossVerificationEnabled() Checks if verification is active for a given result item type.
enableResultDeduplication() Enables or disables the deduplication process for specific result item types.
isResultDeduplicationEnabled() Checks if deduplication is active for a given result item type.
setDuplicateForgetTime() Sets the interval during which duplicates are disregarded for specific result item types.
getDuplicateForgetTime() Retrieves the interval during which duplicates are disregarded for a given result item type.
setMaxOverlappingFrames() Set the maximum overlapping frames count for a given result item type.
getMaxOverlappingFrames() Get the maximum overlapping frames count for a given result item type.

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article: