@Namespace(value="cv::face") public static class opencv_face.FacemarkKazemi extends opencv_face.Facemark
| Modifier and Type | Class and Description |
|---|---|
static class |
opencv_face.FacemarkKazemi.Params |
| Constructor and Description |
|---|
FacemarkKazemi(org.bytedeco.javacpp.Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static opencv_face.FacemarkKazemi |
create() |
static opencv_face.FacemarkKazemi |
create(opencv_face.FacemarkKazemi.Params parameters) |
boolean |
getFaces(opencv_core.Mat image,
opencv_core.RectVector faces)
get faces using the custom detector
|
boolean |
setFaceDetector(org.bytedeco.javacpp.Pointer f,
org.bytedeco.javacpp.Pointer userData)
set the custom face detector
|
boolean |
training(opencv_core.MatVector images,
opencv_core.Point2fVectorVector landmarks,
org.bytedeco.javacpp.BytePointer configfile,
opencv_core.Size scale) |
boolean |
training(opencv_core.MatVector images,
opencv_core.Point2fVectorVector landmarks,
org.bytedeco.javacpp.BytePointer configfile,
opencv_core.Size scale,
org.bytedeco.javacpp.BytePointer modelFilename)
\brief This function is used to train the model using gradient boosting to get a cascade of regressors
which can then be used to predict shape.
|
boolean |
training(opencv_core.MatVector images,
opencv_core.Point2fVectorVector landmarks,
String configfile,
opencv_core.Size scale) |
boolean |
training(opencv_core.MatVector images,
opencv_core.Point2fVectorVector landmarks,
String configfile,
opencv_core.Size scale,
String modelFilename) |
fit, loadModel, loadModelclear, 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 FacemarkKazemi(org.bytedeco.javacpp.Pointer p)
Pointer.Pointer(Pointer).@opencv_core.Ptr public static opencv_face.FacemarkKazemi create(@Const @ByRef(nullValue="cv::face::FacemarkKazemi::Params()") opencv_face.FacemarkKazemi.Params parameters)
@opencv_core.Ptr public static opencv_face.FacemarkKazemi create()
@Cast(value="bool")
public boolean training(@ByRef
opencv_core.MatVector images,
@ByRef
opencv_core.Point2fVectorVector landmarks,
@StdString
org.bytedeco.javacpp.BytePointer configfile,
@ByVal
opencv_core.Size scale,
@StdString
org.bytedeco.javacpp.BytePointer modelFilename)
images - A vector of type cv::Mat which stores the images which are used in training samples.landmarks - A vector of vectors of type cv::Point2f which stores the landmarks detected in a particular image.scale - A size of type cv::Size to which all images and landmarks have to be scaled to.configfile - A variable of type std::string which stores the name of the file storing parameters for training the model.modelFilename - A variable of type std::string which stores the name of the trained model file that has to be saved.@Cast(value="bool")
public boolean training(@ByRef
opencv_core.MatVector images,
@ByRef
opencv_core.Point2fVectorVector landmarks,
@StdString
org.bytedeco.javacpp.BytePointer configfile,
@ByVal
opencv_core.Size scale)
@Cast(value="bool")
public boolean training(@ByRef
opencv_core.MatVector images,
@ByRef
opencv_core.Point2fVectorVector landmarks,
@StdString
String configfile,
@ByVal
opencv_core.Size scale,
@StdString
String modelFilename)
@Cast(value="bool")
public boolean training(@ByRef
opencv_core.MatVector images,
@ByRef
opencv_core.Point2fVectorVector landmarks,
@StdString
String configfile,
@ByVal
opencv_core.Size scale)
@Cast(value="bool")
public boolean setFaceDetector(@Cast(value="bool (*)(cv::InputArray, cv::OutputArray, void*)")
org.bytedeco.javacpp.Pointer f,
org.bytedeco.javacpp.Pointer userData)
@Cast(value="bool")
public boolean getFaces(@ByVal
opencv_core.Mat image,
@ByRef
opencv_core.RectVector faces)
Copyright © 2018. All rights reserved.