layout | title | description | keywords | needAutoGenerateSidebar | needGenerateH3Content | breadcrumbText |
---|---|---|---|---|---|---|
default-layout |
class CMultiFrameResultCrossFilter - Dynamsoft Capture Vision C++ Edition API Reference |
This page shows the C++ edition of the class CMultiFrameResultCrossFilter in Utility Module. |
multiple frame result cross filter, c++ |
true |
true |
C++ CMultiFrameResultCrossFilter Class |
The CMultiFrameResultCrossFilter
class is responsible for filtering captured results. As a default implementation of CCapturedResultFilter
, it provides results verification and duplicate results filtering features.
Namespace: dynamsoft::utility
Assembly: DynamsoftUtility
class CMultiFrameResultCrossFilter: public CCapturedResultFilter
Method | Description |
---|---|
EnableResultVerification |
Enable result verification feature to improve the accuracy of video streaming recognition results. |
IsResultVerificationEnabled |
Determines whether the result verification feature is enabled for the specific captured result item type. |
EnableDuplicateFilter |
Enable duplicate filter feature to filter out the duplicate results in the period of duplicateForgetTime for video streaming recognition. |
IsDuplicateFilterEnabled |
Determines whether the duplicate filter feature is enabled for the specific result item type. |
SetDuplicateForgetTime |
Sets the duplicate forget time for the specific captured result item types. |
GetDuplicateForgetTime |
Gets the duplicate forget time for a specific captured result item type. |
Enable result verification feature to improve the accuracy of video streaming recognition results.
void EnableResultVerification(int resultItemTypes, bool enable);
Parameters
[in] resultItemTypes
The or value of the captured result item types.
[in] enable
Set whether to enable result verification.
Determines whether the result verification feature is enabled for the specific captured result item type.
bool IsResultVerificationEnabled(CapturedResultItemType type);
Parameters
[in] type
The specific captured result item type.
Return value
Returns a bool value indicating whether result verification is enabled for the specific captured result item type.
Enable duplicate filter feature to filter out the duplicate results in the period of duplicateForgetTime
for video streaming recognition. The default value of duplicateForgetTime
is 3000ms.
- CRIT_BARCODE: When the text and format are identical, it is considered as the same barcode.
- CRIT_TEXT_LINE: When the text is exactly the same, it is considered as the same text line.
- CRIT_DETECTED_QUAD: When the quadrilateral is approximately the same, it is considered as the same quadrilateral.
void EnableDuplicateFilter(int resultItemTypes, bool enable);
Parameters
[in] resultItemTypes
The or value of the captured result item types.
[in] enable
Set whether to enable result duplicate filter.
Determines whether the duplicate filter feature is enabled for the specific result item type.
bool IsDuplicateFilterEnabled(CapturedResultItemType type);
Parameters
[in] type
The specific captured result item type.
Return value
Returns a bool value indicating whether duplicate filter is enabled for the specific result item type.
Sets the duplicate forget time for the specific captured result item types. The same captured result item will be returned only once during the period.
- CRIT_BARCODE: When the text and format are identical, it is considered as the same barcode.
- CRIT_TEXT_LINE: When the text is exactly the same, it is considered as the same text line.
- CRIT_DETECTED_QUAD: When the quadrilateral is approximately the same, it is considered as the same quadrilateral.
void SetDuplicateForgetTime(int resultItemTypes, int time);
Parameters
[in] resultItemTypes
The or value of the captured result item types.
[in] time
The duplicate forget time measured in milliseconds.
Gets the duplicate forget time for a specific captured result item type.
int GetDuplicateForgetTime(CapturedResultItemType type);
Parameters
[in] type
The specific captured result item type.
Return value
Returns the duplicate forget time for the specific captured result item type.