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: com.dynamsoft.utility

Inheritance: CapturedResultFilter -> MultiFrameResultCrossFilter

public final class MultiFrameResultCrossFilter extends CapturedResultFilter

Methods

Method Description
MultiFrameResultCrossFilter Initializes a new instance of the MultiFrameResultCrossFilter class.
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.

MultiFrameResultCrossFilter

Initializes a new instance of the MultiFrameResultCrossFilter class.

MultiFrameResultCrossFilter()
MultiFrameResultCrossFilter(CaptureVisionRouter router)

Parameters

router A CaptureVisionRouter object.

See Also

CaptureVisionRouter

enableResultCrossVerification

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

void enableResultCrossVerification(int resultItemTypes, boolean enabled)

Parameters

resultItemTypes A bitwise OR combination of one or more values from the EnumCapturedResultItemType enumeration.

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.

boolean isResultCrossVerificationEnabled(@EnumCapturedResultItemType int type)

Parameters

type The specific captured result item type. It is a value from the EnumCapturedResultItemType enumeration.

Return Value

Returns a boolean 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.

void enableResultDeduplication(int resultItemTypes, boolean enabled)

Parameters

resultItemTypes A bitwise OR combination of one or more values from the EnumCapturedResultItemType enumeration.

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.

boolean isResultDeduplicationEnabled(@EnumCapturedResultItemType int type)

Parameters

type The specific captured result item type. It is a value from the EnumCapturedResultItemType enumeration.

Return Value

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

See Also

EnumCapturedResultItemType

setDuplicateForgetTime

Sets the duplicate forget time for the specific captured result item types.

void setDuplicateForgetTime(int resultItemTypes, int time)

Parameters

resultItemTypes A bitwise OR combination of one or more values from the EnumCapturedResultItemType enumeration.

time The duplicate forget time in milliseconds.

See Also

EnumCapturedResultItemType

getDuplicateForgetTime

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

int getDuplicateForgetTime(@EnumCapturedResultItemType int resultItemTypes)

Parameters

resultItemTypes The specific captured result item type. It is a value from the EnumCapturedResultItemType enumeration.

Return Value

Returns the duplicate forget time in milliseconds 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

resultItemTypes A bitwise OR combination of one or more values from the EnumCapturedResultItemType enumeration.

maxOverlappingFrames The max referencing frames count.

See Also

EnumCapturedResultItemType

getMaxOverlappingFrames

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

int getMaxOverlappingFrames(@EnumCapturedResultItemType int resultItemType)

Parameters

resultItemType The specific captured result item type. It is a value from the EnumCapturedResultItemType enumeration.

Return Value

Returns the max referencing frames count for the specific captured result item type.

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, boolean enabled)

Parameters

resultItemTypes A bitwise OR combination of one or more values from the EnumCapturedResultItemType enumeration.

enabled Set whether to enable the to-the-latest overlapping feature.

See Also

EnumCapturedResultItemType

EnumCapturedResultItemType

is_result_deduplication_enabled

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

def is_result_deduplication_enabled(self, type: int) -> bool:

Parameters

type The specific captured result item type. It is a value from the EnumCapturedResultItemType enumeration.

Return Value

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

See Also

EnumCapturedResultItemType

set_duplicate_forget_time

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 if deduplication feature is enabled. The default value is 3000ms.

def set_duplicate_forget_time(self, result_item_types: int, time: int) -> None:

Parameters

result_item_types A bitwise OR combination of one or more values from the EnumCapturedResultItemType enumeration.

time The duplicate forget time measured in milliseconds. The value rang is [1, 180000].

See Also

EnumCapturedResultItemType

get_duplicate_forget_time

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

def get_duplicate_forget_time(self, type: int) -> int:

Parameters

type The specific captured result item type. It is a value from the EnumCapturedResultItemType enumeration.

Return Value

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

See Also

EnumCapturedResultItemType

set_max_overlapping_frames

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

def set_max_overlapping_frames(self, result_item_types: int, max_overlapping_frames: int) -> None:

Parameters

result_item_types The or value of the captured result item types.

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

See Also

EnumCapturedResultItemType

get_max_overlapping_frames

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

def get_max_overlapping_frames(self, type: int) -> int:

Parameters

type 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

enable_latest_overlapping

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.

def enable_latest_overlapping(self, result_item_types: int, enabled: bool) -> None:

Parameters

result_item_types The or value of the captured result item types.
enabled Sets whether to enable the to-the-latest overlapping feature.

See Also

EnumCapturedResultItemType

is_latest_overlapping_enabled

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

def is_latest_overlapping_enabled(self, type: int) -> bool:

Parameters

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

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article: