Thanks for downloading Dynamsoft Barcode Reader Package!
Your download will start shortly. If your download does not begin, click here to retry.
Defines a struct to configure the frame decoding Parameters.
class FrameDecodingParameters
Attribute | Type |
---|---|
max_queue_length |
int |
max_result_queue_length |
int |
width |
int |
height |
int |
stride |
int |
image_pixel_format |
ImagePixelFormat |
region_top |
int |
region_left |
int |
region_right |
int |
region_bottom |
int |
region_measured_by_percentage |
int |
threshold |
float |
fps |
int |
auto_filter |
int |
clarity_calculation_method |
ClarityCalculationMethod |
clarity_filter_mode |
ClarityFilterMode |
The maximum number of frames waiting for decoding.
FrameDecodingParameters.max_queue_length
Value Range
[0,0x7fffffff]
Default Value
3
The maximum number of frames waiting results (text result/localization result) will be kept for further reference.
FrameDecodingParameters.max_result_queue_length
Value Range
[0,0x7fffffff]
Default Value
10
The width of the frame image in pixels.
FrameDecodingParameters.width
Value Range
[0,0x7fffffff]
Default Value
0
The height of the frame image in pixels.
FrameDecodingParameters.height
Value Range
[0,0x7fffffff]
Default Value
0
The stride (or scan width) of the frame image.
FrameDecodingParameters.stride
Value Range
[0,0x7fffffff]
Default Value
0
The image pixel format used in the image byte array.
FrameDecodingParameters.image_pixel_format
Value Range
A value of ImagePixelFormat
Enumeration items.
Default Value
IPF_GRAYSCALED
See Also
ImagePixelFormat
The region definition of the frame to calculate the internal indicator.The top-most coordinate or percentage of the region.
FrameDecodingParameters.region_top
Value Range
- if region_measured_by_percentage = 0, [0,0x7fffffff]
- if region_measured_by_percentage = 1, [0,100]
The region definition of the frame to calculate the internal indicator.The left-most coordinate or percentage of the region.
FrameDecodingParameters.region_left
Value Range
- if region_measured_by_percentage = 0, [0,0x7fffffff]
- if region_measured_by_percentage = 1, [0,100]
The region definition of the frame to calculate the internal indicator.The right-most coordinate or percentage of the region.
FrameDecodingParameters.region_right
Value Range
- if region_measured_by_percentage = 0, [0,0x7fffffff]
- if region_measured_by_percentage = 1, [0,100]
The region definition of the frame to calculate the internal indicator.The bottom-most coordinate or percentage of the region.
FrameDecodingParameters.region_bottom
Value Range
- if region_measured_by_percentage = 0, [0,0x7fffffff]
- if region_measured_by_percentage = 1, [0,100]
Sets whether or not to use percentage to measure the region size.
FrameDecodingParameters.region_measured_by_percentage
Value Range
[0,1]
The region definition of the frame to calculate the internal indicator.The top-most coordinate or percentage of the region.
FrameDecodingParameters.region_top
Value Range
- if region_measured_by_percentage = 0, [0,0x7fffffff]
- if region_measured_by_percentage = 1, [0,100]
The threshold used for filtering frames.
FrameDecodingParameters.threshold
Value Range
[0, 1]
Default Value
0.01
Remarks
The SDK will calculate an inner indicator for each frame from append_video_frame
, 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.
The frequency of calling append_video_frame
per second.
FrameDecodingParameters.fps
Value Range
[0,0x7fffffff]
Default Value
0
Remarks
0 means the frequency will be calculated automatically by the SDK.
Sets whether to filter frames automatically.
FrameDecodingParameters.auto_filter
Value Range
[0,1]
Default Value
1
Remarks
0: Diable filtering frames automatically.
1: Enable filtering frames automatically.
Sets the method used for calculating the clarity of the frames.
FrameDecodingParameters.clarity_calculation_method
Value Range
Any one of the ClarityCalculationMethod
Enumeration items.
Default Value
ECCM_CONTRAST
See Also
ClarityCalculationMethod
Sets the mode used for filtering frames by calculated clarity.
FrameDecodingParameters.clarity_filter_mode
Value Range
Any one of the ClarityFilterMode
Enumeration items.
Default Value
CFM_GENERAL
See Also
ClarityFilterMode
latest version