StandardCollector (OpenCV 4.13.0 Java documentation)
Примеры с cv2.imshow требуют сборки OpenCV с GUI. В ноутбуке с headless-версией используйте вывод изображений через Matplotlib.
Package org.opencv.face
Class StandardCollector
- java.lang.Object
-
- org.opencv.face.PredictCollector
-
- org.opencv.face.StandardCollector
-
public class StandardCollector extends PredictCollectorDefault predict collector Trace minimal distance with treshhold checking (that is default behavior for most predict logic)
-
-
Field Summary
-
Fields inherited from class org.opencv.face.PredictCollector
nativeObj
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedStandardCollector(long addr)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StandardCollector__fromPtr__(long addr)static StandardCollectorcreate()Static constructorstatic StandardCollectorcreate(double threshold)Static constructordoublegetMinDist()Returns minimal distance valueintgetMinLabel()Returns label with minimal distance-
Methods inherited from class org.opencv.face.PredictCollector
getNativeObjAddr
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Constructor Detail
-
StandardCollector
protected StandardCollector(long addr)
-
-
Method Detail
-
__fromPtr__
public static StandardCollector __fromPtr__(long addr)
-
getMinLabel
public int getMinLabel()Returns label with minimal distance- Returns:
- automatically generated
-
getMinDist
public double getMinDist()Returns minimal distance value- Returns:
- automatically generated
-
create
public static StandardCollector create(double threshold)Static constructor- Parameters:
threshold- set threshold- Returns:
- automatically generated
-
create
public static StandardCollector create()Static constructor- Returns:
- automatically generated
-
-