mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 15:23:05 +04:00
Fix missing format when writing Algorithm-based objects
Added a writeFormat() method to Algorithm which must be called by the write() method of derived classes.
This commit is contained in:
@@ -2037,6 +2037,7 @@ public:
|
||||
if( !isTrained() )
|
||||
CV_Error( CV_StsParseError, "SVM model data is invalid, check sv_count, var_* and class_count tags" );
|
||||
|
||||
writeFormat(fs);
|
||||
write_params( fs );
|
||||
|
||||
fs << "var_count" << var_count;
|
||||
|
||||
Reference in New Issue
Block a user