mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 15:23:05 +04:00
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
This commit is contained in:
@@ -505,6 +505,14 @@ public:
|
||||
The static method creates empty %KNearest classifier. It should be then trained using StatModel::train method.
|
||||
*/
|
||||
CV_WRAP static Ptr<KNearest> create();
|
||||
/** @brief Loads and creates a serialized knearest from a file
|
||||
*
|
||||
* Use KNearest::save to serialize and store an KNearest to disk.
|
||||
* Load the KNearest from this file again, by calling this function with the path to the file.
|
||||
*
|
||||
* @param filepath path to serialized KNearest
|
||||
*/
|
||||
CV_WRAP static Ptr<KNearest> load(const String& filepath);
|
||||
};
|
||||
|
||||
/****************************************************************************************\
|
||||
|
||||
Reference in New Issue
Block a user