Interface ClassFilter
- All Superinterfaces:
android.os.Parcelable
public interface ClassFilter
extends android.os.Parcelable
Document filter that is used to determine which documents will be processed.
If the document is filtered out by this filter, its data cannot be returned as recognition result.
-
Nested Class Summary
-
Field Summary
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
Method Summary
Modifier and TypeMethodDescriptionboolean
classFilter
(ClassInfo classInfo) Determines whether document should be processed or it is filtered out.Methods inherited from interface android.os.Parcelable
describeContents, writeToParcel
-
Method Details
-
classFilter
Determines whether document should be processed or it is filtered out.- Parameters:
classInfo
-ClassInfo
for document currently being evaluated. This object cannot be used outside of this method, it will be invalidated as soon as this filter method finishes. Please don't keep reference to classInfo parameter outside of this method.- Returns:
true
if the document with the givenClassInfo
should be processed,false
if the document should be filtered out.
-