@Namespace(value="cv::text") public static class opencv_text.ERFilter extends opencv_core.Algorithm
Extracts the component tree (if needed) and filter the extremal regions (ER's) by using a given classifier.
| Modifier and Type | Class and Description |
|---|---|
static class |
opencv_text.ERFilter.Callback
\brief Callback with the classifier is made a class.
|
| Constructor and Description |
|---|
ERFilter(org.bytedeco.javacpp.Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getNumRejected() |
void |
run(opencv_core.GpuMat image,
opencv_text.ERStatVector regions) |
void |
run(opencv_core.Mat image,
opencv_text.ERStatVector regions)
\brief The key method of ERFilter algorithm.
|
void |
run(opencv_core.UMat image,
opencv_text.ERStatVector regions) |
void |
setCallback(opencv_text.ERFilter.Callback cb)
set/get methods to set the algorithm properties,
|
void |
setMaxArea(float maxArea) |
void |
setMinArea(float minArea) |
void |
setMinProbability(float minProbability) |
void |
setMinProbabilityDiff(float minProbabilityDiff) |
void |
setNonMaxSuppression(boolean nonMaxSuppression) |
void |
setThresholdDelta(int thresholdDelta) |
clear, empty, getDefaultName, position, read, save, save, write, write, writeaddress, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, put, realloc, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zeropublic ERFilter(org.bytedeco.javacpp.Pointer p)
Pointer.Pointer(Pointer).public void run(@ByVal
opencv_core.Mat image,
@ByRef
opencv_text.ERStatVector regions)
Takes image on input and returns the selected regions in a vector of ERStat only distinctive ERs which correspond to characters are selected by a sequential classifier
image - Single channel image CV_8UC1
regions - Output for the 1st stage and Input/Output for the 2nd. The selected Extremal Regions
are stored here.
Extracts the component tree (if needed) and filter the extremal regions (ER's) by using a given classifier.
public void run(@ByVal
opencv_core.UMat image,
@ByRef
opencv_text.ERStatVector regions)
public void run(@ByVal
opencv_core.GpuMat image,
@ByRef
opencv_text.ERStatVector regions)
public void setCallback(@opencv_core.Ptr opencv_text.ERFilter.Callback cb)
public void setThresholdDelta(int thresholdDelta)
public void setMinArea(float minArea)
public void setMaxArea(float maxArea)
public void setMinProbability(float minProbability)
public void setMinProbabilityDiff(float minProbabilityDiff)
public void setNonMaxSuppression(@Cast(value="bool")
boolean nonMaxSuppression)
public int getNumRejected()
Copyright © 2018. All rights reserved.