Table of contents

MultiFrameResultCrossFilter

The MultiFrameResultCrossFilter class is responsible for filtering captured results. As a default implementation of CapturedResultFilter, it provides results verification and duplicate results filtering features.

Definition

Namespace: Dynamsoft.Utility

Assembly: Dynamsoft.Utility.dll

Inheritance: CapturedResultFilter -> MultiFrameResultCrossFilter

public class MultiFrameResultCrossFilter : CapturedResultFilter

Methods

Method Description
MultiFrameResultCrossFilter Default constructor of a MultiFrameResultCrossFilter object.
EnableResultCrossVerification Enable result cross verification feature to improve the accuracy of video streaming recognition results.
IsResultCrossVerificationEnabled Determines whether the result cross verification feature is enabled for the specific captured result item type.
EnableResultDeduplication Enable result deduplication feature to filter out the duplicate results in the period of duplicateForgetTime for video streaming recognition.
IsResultDeduplicationEnabled Determines whether the result deduplication 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.
SetMaxOverlappingFrames Sets the max referencing frames count for the to-the-latest overlapping feature.
GetMaxOverlappingFrames Gets the max referencing frames count for the to-the-latest overlapping feature.
EnableLatestOverlapping Enables the to-the-latest overlapping feature. The output captured result will become a combination of the recent results if the latest frame is proved to be similar with the previous.
IsLatestOverlappingEnabled Determines whether the to-the-latest overlapping feature is enabled for the specific result item type.
Dispose Releases all resources used by current object.

MultiFrameResultCrossFilter

Default constructor of a MultiFrameResultCrossFilter object.

MultiFrameResultCrossFilter()

EnableResultCrossVerification

Enable result cross verification feature to improve the accuracy of video streaming recognition results.

void EnableResultCrossVerification(int resultItemTypes, bool enabled)

Parameters

[in] resultItemTypes The or value of the captured result item types.
[in] enabled Set whether to enable result verification.

See Also

EnumCapturedResultItemType

IsResultCrossVerificationEnabled

Determines whether the result cross verification feature is enabled for the specific captured result item type.

bool IsResultCrossVerificationEnabled(EnumCapturedResultItemType 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.

See Also

EnumCapturedResultItemType

EnableResultDeduplication

Enable result deduplication 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 EnableResultDeduplication(int resultItemTypes, bool enabled)

Parameters

[in] resultItemTypes The or value of the captured result item types.
[in] enabled Set whether to enable result result deduplication.

See Also

EnumCapturedResultItemType

IsResultDeduplicationEnabled

Determines whether the result deduplication feature is enabled for the specific result item type.

bool IsResultDeduplicationEnabled(EnumCapturedResultItemType type)

Parameters

[in] type The specific captured result item type.

Return Value

Returns a bool value indicating whether result deduplication is enabled for the specific result item type.

See Also

EnumCapturedResultItemType

SetDuplicateForgetTime

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. The value rang is [1, 180000].

See Also

EnumCapturedResultItemType

GetDuplicateForgetTime

Gets the duplicate forget time for a specific captured result item type.

int GetDuplicateForgetTime(EnumCapturedResultItemType type)

Parameters

[in] type The specific captured result item type.

Return Value

Returns the duplicate forget time for the specific captured result item type.

See Also

EnumCapturedResultItemType

SetMaxOverlappingFrames

Sets the max referencing frames count for the to-the-latest overlapping feature.

void SetMaxOverlappingFrames(int resultItemTypes, int maxOverlappingFrames);

Parameters

[in] resultItemTypes The or value of the captured result item types.

[in] maxOverlappingFrames The max referencing frames count for the to-the-latest overlapping feature.

See Also

EnumCapturedResultItemType

GetMaxOverlappingFrames

Gets the max referencing frames count for the to-the-latest overlapping feature.

int GetMaxOverlappingFrames(EnumCapturedResultItemType resultItemType)

Parameters

[in] resultItemType Specifies a specific result item type, which can be defined using EnumCapturedResultItemType.

Return value

Returns the max referencing frames count for the to-the-latest overlapping feature.

See Also

EnumCapturedResultItemType

EnableLatestOverlapping

Enables the to-the-latest overlapping feature. The output captured result will become a combination of the recent results if the latest frame is proved to be similar with the previous.

void EnableLatestOverlapping(int resultItemTypes, bool enabled);

Parameters

[in] resultItemTypes The or value of the captured result item types.
[in] enabled Sets whether to enable the to-the-latest overlapping feature.

See Also

EnumCapturedResultItemType

IsLatestOverlappingEnabled

Determines whether the to-the-latest overlapping feature is enabled for the specific result item type.

bool IsLatestOverlappingEnabled(EnumCapturedResultItemType type)

Parameters

[in] type The specific captured result item type.

Return value

Returns a bool value indicating whether the to-the-latest overlapping feature is enabled for the specific result item type.

See Also

EnumCapturedResultItemType

Dispose

Releases all resources used by current object.

override void Dispose()

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article: