public class HaarCascade extends AbstractObjectDetector implements TechnicalInformationHandler
@inproceedings{Viola2001, author = {Viola, P. and Jones, M.}, booktitle = {Computer Vision and Pattern Recognition, 2001. CVPR 2001. Proceedings of the 2001 IEEE Computer Society Conference on}, pages = {I, 511, I, 518 vol.1}, title = {Rapid object detection using a boosted cascade of simple features}, volume = {1}, year = {2001} }
-logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> (property: loggingLevel) The logging level for outputting errors and debugging output. default: WARNING
-cascade <adams.core.io.PlaceholderFile> (property: cascade) The cascade to use. default: ${CWD}
-min-size <int> (property: minSize) The minimum search window size. default: -1 minimum: -1
Modifier and Type | Field and Description |
---|---|
protected PlaceholderFile |
m_Cascade
the cascade to load (uses built-in if pointing to directory).
|
protected int |
m_MinSize
the minimum search window size.
|
m_ActualDetector
m_OptionManager
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
Constructor and Description |
---|
HaarCascade() |
Modifier and Type | Method and Description |
---|---|
String |
cascadeTipText()
Returns the tip text for this property.
|
protected org.openimaj.image.Image |
convert(AbstractImageContainer cont)
Converts the image container into the required image type for the detector.
|
void |
defineOptions()
Adds options to the internal list of options.
|
PlaceholderFile |
getCascade()
Returns the cascade to use.
|
int |
getMinSize()
Returns the minimum search window size.
|
TechnicalInformation |
getTechnicalInformation()
Returns an instance of a TechnicalInformation object, containing
detailed information about the technical background of this class,
e.g., paper reference or book this class is based on.
|
String |
globalInfo()
Returns a string describing the object.
|
String |
minSizeTipText()
Returns the tip text for this property.
|
protected org.openimaj.image.objectdetection.ObjectDetector |
newInstance()
Creates a new instance of the detector.
|
void |
setCascade(PlaceholderFile value)
Sets the cascade to use.
|
void |
setMinSize(int value)
Sets the minimum search window size.
|
detect, reset
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, initialize, loggingLevelTipText, newOptionManager, setLoggingLevel, toCommandLine, toString
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getLoggingLevel
protected PlaceholderFile m_Cascade
protected int m_MinSize
public String globalInfo()
globalInfo
in interface GlobalInfoSupporter
globalInfo
in class AbstractOptionHandler
public TechnicalInformation getTechnicalInformation()
getTechnicalInformation
in interface TechnicalInformationHandler
public void defineOptions()
defineOptions
in interface OptionHandler
defineOptions
in class AbstractOptionHandler
public void setCascade(PlaceholderFile value)
value
- the filepublic PlaceholderFile getCascade()
public String cascadeTipText()
public void setMinSize(int value)
value
- the sizepublic int getMinSize()
public String minSizeTipText()
protected org.openimaj.image.objectdetection.ObjectDetector newInstance()
newInstance
in class AbstractObjectDetector
protected org.openimaj.image.Image convert(AbstractImageContainer cont)
convert
in class AbstractObjectDetector
cont
- the container to convertCopyright © 2021 University of Waikato, Hamilton, NZ. All Rights Reserved.