FrameDecodingParameters
Defines a struct to configure the frame decoding Parameters.
public class FrameDecodingParameters
Attributes
Attribute | Type |
---|---|
MaxQueueLength |
int |
MaxResultQueueLength |
int |
Width |
int |
Height |
int |
Stride |
int |
ImagePixelFormat |
EnumImagePixelFormat |
Region |
RegionDefinition |
Threshold |
float |
FPS |
int |
AutoFilter |
int |
ClarityCalculationMethod |
EnumClarityCalculationMethod |
ClarityFilterMode |
EnumClarityFilterMode |
MaxQueueLength
The maximum number of frames waiting for decoding.
int Dynamsoft.Barcode.FrameDecodingParameters.MaxQueueLength
-
Value range
[0,0x7fffffff] -
Default value
3
MaxResultQueueLength
The maximum number of frames whose results (text result/localization result) will be kept for further reference.
int Dynamsoft.Barcode.FrameDecodingParameters.MaxResultQueueLength
-
Value range
[0,0x7fffffff] -
Default value
10
Width
The width of the frame image in pixels.
int Dynamsoft.Barcode.FrameDecodingParameters.Width
-
Value range
[0,0x7fffffff] -
Default value
0
Height
The height of the frame image in pixels.
int Dynamsoft.Barcode.FrameDecodingParameters.Height
-
Value range
[0,0x7fffffff] -
Default value
0
Stride
The stride (or scan width) of the frame image.
int Dynamsoft.Barcode.FrameDecodingParameters.Stride
-
Value range
[0,0x7fffffff] -
Default value
0
ImagePixelFormat
The image pixel format used in the image byte array.
EnumImagePixelFormat Dynamsoft.Barcode.FrameDecodingParameters.ImagePixelFormat
-
Value range
Any one value ofImagePixelFormat
Enumeration items. -
Default value
EnumImagePixelFormat.IPF_GRAYSCALED
Region
The region definition of the frame to calculate the internal indicator.
RegionDefinition Dynamsoft.Barcode.FrameDecodingParameters.Region
-
Default value
{ RegionLeft = 0, RegionRight = 100, RegionTop = 0, RegionBottom = 100, RegionMeasuredByPercentage = 1 }
-
See also
RegionDefinition
Threshold
The threshold used for filtering frames.
float Dynamsoft.Barcode.FrameDecodingParameters.Threshold
-
Value range
[0, 1] -
Default value
0.01 -
Remark
The SDK will calculate an inner indicator for each frame fromAppendFrame
, if the change rate of the indicators between the current frame and the history frames is larger than the given threshold, the current frame will not be added to the inner frame queue waiting for decoding.
FPS
The frequency of calling AppendFrame
per second.
int Dynamsoft.Barcode.FrameDecodingParameters.FPS
-
Value range
[0,0x7fffffff] -
Default value
0 -
Remark
0 means the frequency will be calculated automatically by the SDK.
AutoFilter
Sets whether to filter frames automatically.
int Dynamsoft.Barcode.FrameDecodingParameters.AutoFilter
-
Value range
[0,1] -
Default value
1 -
Remark
0: Diable filtering frames automatically.
1: Enable filtering frames automatically.
ClarityCalculationMethod
Sets the method used for calculating the clarity of the frames.
EnumClarityCalculationMethod Dynamsoft.Barcode.FrameDecodingParameters.ClarityCalculationMethod
-
Value range
Any one of theClarityCalculationMethod
Enumeration items. -
Default value
EnumClarityCalculationMethod.ECCM_CONTRAST
ClarityFilterMode
Sets the mode used for filtering frames by calculated clarity.
EnumClarityFilterMode Dynamsoft.Barcode.FrameDecodingParameters.ClarityFilterMode
-
Value range
Any one of theClarityFilterMode
Enumeration items. -
Default value
EnumClarityFilterMode.CFM_GENERAL