Package com.digimarc.dms.readers
Enum Class BaseReader.ImageDetectionType
java.lang.Object
java.lang.Enum<BaseReader.ImageDetectionType>
com.digimarc.dms.readers.BaseReader.ImageDetectionType
- All Implemented Interfaces:
Serializable
,Comparable<BaseReader.ImageDetectionType>
,Constable
- Enclosing class:
- BaseReader
ImageDetectionType is used by the
ImageReader
and VideoCaptureReader
to specify
how intensively the reader examines each image. Detection type must be specified when creating
using the ImageReader
class but it is an optional operation on the VideoCaptureReader
.
In most cases we recommend using ImageDetectionType.Default
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final BaseReader.ImageDetectionType
ImageDetectionType.Default
should be used for most situations. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static BaseReader.ImageDetectionType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Quick
Quick detection is intended for use on camera frames. Detection operations are performed primarily near the center of the image, with some detections being performed on random areas scattered around the image. This detection type balances detection robustness against device performance (CPU and battery usage). -
Intensive
Intensive detection is intended for use on bitmaps or in cases where a deeper search is required. Detection operations are performed across the entire image, with many of the detection regions overlapping each other. The performance cost is high enough that this is not recommended for use with camera frames.
-
-
Field Details
-
Default
ImageDetectionType.Default
should be used for most situations. Currently Default is equivalent to Quick, but as device performance improves we may add more intensive detection techniques for greater robustness in future SDK updates. Using Default in your application will give you the advantages of these improvements without requiring code changes on your part.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-