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

Package: 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.
isLatestOverlappingEnabled Determines whether the to-the-latest overlapping feature is enabled for the specific result item type.
setResultCrossVerificationCriteria Sets the cross-verification criteria for specified result item types.
getResultCrossVerificationCriteria Gets the cross-verification criteria for a specified result item type.

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

isLatestOverlappingEnabled

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

boolean isLatestOverlappingEnabled(@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 to-the-latest overlapping is enabled for the specific captured result item type.

See Also

EnumCapturedResultItemType

setResultCrossVerificationCriteria

Sets the cross-verification criteria for specified result item types. This method allows customization of the multi-frame verification parameters, controlling how many frames are analyzed and how many consistent results are required.

void setResultCrossVerificationCriteria(int resultItemTypes, int frameWindow, int minConsistentFrames)

Parameters

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

frameWindow The number of frames to consider for cross-verification.

minConsistentFrames The minimum number of frames that must contain consistent results for verification to succeed.

See Also

EnumCapturedResultItemType

Remarks

Introduced in Dynamsoft Barcode Reader SDK version 11.4.1000 and Dynamsoft Capture Vision version 3.4.1000.

getResultCrossVerificationCriteria

Gets the cross-verification criteria for a specified result item type.

int[] getResultCrossVerificationCriteria(@EnumCapturedResultItemType int resultItemType)

Parameters

resultItemType The result item type to query. It is a value from the EnumCapturedResultItemType enumeration.

Return value

Returns an int array where the first element is the frame window size and the second element is the minimum consistent frames count.

See Also

EnumCapturedResultItemType

Remarks

Introduced in Dynamsoft Barcode Reader SDK version 11.4.1000 and Dynamsoft Capture Vision version 3.4.1000.

This page is compatible for: