Table of contents

EnumGrayscaleTransformationMode

EnumGrayscaleTransformationMode is an enumeration that determines which grayscale enhancement modes the library will apply before the detection process to improve the read rate of the barcodes in a given image or frame.

Definition

Assembly: dynamsoft_capture_vision_flutter

enum EnumGrayscaleTransformationMode {
  skip(0),
  inverted(1 << 0),
  original(1 << 1),
  auto(1 << 2),
  end(-1);
}

Members

Member Description
skip Bypasses grayscale transformation, leaving the image in its current state without any modification to its grayscale values. This mode is selected when no alteration of the grayscale data is desired, passing the image through to subsequent operations without modification.
inverted Applies an inversion to the grayscale values of the image, effectively transforming light elements to dark and vice versa. This mode is particularly useful for images with light text on dark backgrounds, enhancing visibility for further processing.
original Maintains the original grayscale values of the image without any transformation. This mode is suited for images with dark elements on light backgrounds, ensuring the natural contrast and detail are preserved for subsequent analysis.
auto Delegates the choice of grayscale transformation to the library’s algorithm, which automatically determines the most suitable transformation based on the image’s characteristics. This mode is beneficial when the optimal transformation is not known in advance or varies across different images.
end Placeholder value with no functional meaning.

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article: