@Namespace(value="cv::face") @NoOffset @Properties(inherit=opencv_face.class) public class StandardCollector extends PredictCollector
Trace minimal distance with treshhold checking (that is default behavior for most predict logic)
Modifier and Type | Class and Description |
---|---|
static class |
StandardCollector.PredictResult |
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
StandardCollector() |
StandardCollector(double threshold_)
\brief Constructor
|
StandardCollector(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
collect(int label,
double dist)
\brief overloaded interface method
|
static StandardCollector |
create() |
static StandardCollector |
create(double threshold)
\brief Static constructor
|
double |
getMinDist()
\brief Returns minimal distance value
|
int |
getMinLabel()
\brief Returns label with minimal distance
|
IntDoublePairVector |
getResults() |
IntDoublePairVector |
getResults(boolean sorted)
\brief Return results as vector
|
IntDoubleMap |
getResultsMap()
\brief Return results as map
Labels are keys, values are minimal distances
|
void |
init(long size)
\brief overloaded interface method
|
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zero
public StandardCollector(Pointer p)
Pointer.Pointer(Pointer)
.public StandardCollector(double threshold_)
threshold_
- set thresholdpublic StandardCollector()
public void init(@Cast(value="size_t") long size)
init
in class PredictCollector
size
- total size of prediction evaluation that recognizer could perform@Cast(value="bool") public boolean collect(int label, double dist)
collect
in class PredictCollector
label
- current prediction labeldist
- current prediction distance (confidence)public int getMinLabel()
public double getMinDist()
@ByVal public IntDoublePairVector getResults(@Cast(value="bool") boolean sorted)
sorted
- If set, results will be sorted by distance
Each values is a pair of label and distance.@ByVal public IntDoublePairVector getResults()
@ByVal public IntDoubleMap getResultsMap()
@opencv_core.Ptr public static StandardCollector create(double threshold)
threshold
- set threshold@opencv_core.Ptr public static StandardCollector create()
Copyright © 2020. All rights reserved.