mirror of
https://github.com/opencv/opencv_contrib.git
synced 2025-10-19 11:21:39 +08:00
Added python aliases for face predict overloaded functions
This commit is contained in:
@@ -256,7 +256,7 @@ public:
|
||||
CV_WRAP virtual void update(InputArrayOfArrays src, InputArray labels);
|
||||
|
||||
/** @overload */
|
||||
CV_WRAP int predict(InputArray src) const;
|
||||
CV_WRAP_AS(predict_label) int predict(InputArray src) const;
|
||||
|
||||
|
||||
/** @brief Predicts a label and associated confidence (e.g. distance) for a given input image.
|
||||
@@ -300,12 +300,11 @@ public:
|
||||
/** @brief - if implemented - send all result of prediction to collector that can be used for somehow custom result handling
|
||||
@param src Sample image to get a prediction from.
|
||||
@param collector User-defined collector object that accepts all results
|
||||
@param state - optional user-defined state token that should be passed back from FaceRecognizer implementation
|
||||
|
||||
To implement this method u just have to do same internal cycle as in predict(InputArray src, CV_OUT int &label, CV_OUT double &confidence) but
|
||||
not try to get "best@ result, just resend it to caller side with given collector
|
||||
*/
|
||||
CV_WRAP virtual void predict(InputArray src, Ptr<PredictCollector> collector, const int state = 0) const = 0;
|
||||
CV_WRAP_AS(predict_collect) virtual void predict(InputArray src, Ptr<PredictCollector> collector) const = 0;
|
||||
|
||||
/** @brief Saves a FaceRecognizer and its model state.
|
||||
|
||||
|
Reference in New Issue
Block a user