mirror of
https://github.com/opencv/opencv.git
synced 2026-07-31 00:03:03 +04:00
RTrees: Add wrapper for RTrees_load method to enable loading trained RTrees
This commit is contained in:
@@ -1169,6 +1169,17 @@ public:
|
||||
Algorithm::load to load the pre-trained model.
|
||||
*/
|
||||
CV_WRAP static Ptr<RTrees> create();
|
||||
|
||||
/** @brief Loads and creates a serialized RTree from a file
|
||||
*
|
||||
* Use RTree::save to serialize and store an RTree to disk.
|
||||
* Load the RTree from this file again, by calling this function with the path to the file.
|
||||
* Optionally specify the node for the file containing the classifier
|
||||
*
|
||||
* @param filepath path to serialized RTree
|
||||
* @param nodeName name of node containing the classifier
|
||||
*/
|
||||
CV_WRAP static Ptr<RTrees> load(const String& filepath , const String& nodeName = String());
|
||||
};
|
||||
|
||||
/****************************************************************************************\
|
||||
|
||||
Reference in New Issue
Block a user