@Namespace(value="cv::face") @NoOffset public static class opencv_face.StandardCollector extends opencv_face.PredictCollector
Trace minimal distance with treshhold checking (that is default behavior for most predict logic)
| Modifier and Type | Class and Description |
|---|---|
static class |
opencv_face.StandardCollector.PredictResult |
| Constructor and Description |
|---|
StandardCollector() |
StandardCollector(double threshold_)
\brief Constructor
|
StandardCollector(long size)
Native array allocator.
|
StandardCollector(org.bytedeco.javacpp.Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
collect(int label,
double dist)
\brief overloaded interface method
|
static opencv_face.StandardCollector |
create() |
static opencv_face.StandardCollector |
create(double threshold)
\brief Static constructor
|
double |
getMinDist()
\brief Returns minimal distance value
|
int |
getMinLabel()
\brief Returns label with minimal distance
|
opencv_core.IntDoublePairVector |
getResults() |
opencv_core.IntDoublePairVector |
getResults(boolean sorted)
\brief Return results as vector
|
opencv_core.IntDoubleMap |
getResultsMap()
\brief Return results as map
Labels are keys, values are minimal distances
|
void |
init(long size)
\brief overloaded interface method
|
opencv_face.StandardCollector |
position(long position) |
address, 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 StandardCollector(org.bytedeco.javacpp.Pointer p)
Pointer.Pointer(Pointer).public StandardCollector(long size)
Pointer.position(long).public StandardCollector(double threshold_)
threshold_ - set thresholdpublic StandardCollector()
public opencv_face.StandardCollector position(long position)
position in class org.bytedeco.javacpp.Pointerpublic void init(@Cast(value="size_t")
long size)
init in class opencv_face.PredictCollectorsize - total size of prediction evaluation that recognizer could perform@Cast(value="bool")
public boolean collect(int label,
double dist)
collect in class opencv_face.PredictCollectorlabel - current prediction labeldist - current prediction distance (confidence)public int getMinLabel()
public double getMinDist()
@ByVal public opencv_core.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 opencv_core.IntDoublePairVector getResults()
@ByVal public opencv_core.IntDoubleMap getResultsMap()
@opencv_core.Ptr public static opencv_face.StandardCollector create(double threshold)
threshold - set threshold@opencv_core.Ptr public static opencv_face.StandardCollector create()
Copyright © 2018. All rights reserved.