mirror of
https://github.com/opencv/opencv.git
synced 2026-11-24 10:18:08 -06:00
core: FileStorage - add support for writing vector<String> with bindings (#11883)
* core: FileStorage - add support for writing vector<String> with bindings * python: extend persistence test for string sequences
This commit is contained in:
committed by
Vadim Pisarevsky
parent
5e31c82b5b
commit
3f65924c45
@@ -194,9 +194,14 @@ void FileStorage::write( const String& name, const String& val )
|
||||
*this << name << val;
|
||||
}
|
||||
|
||||
void FileStorage::write( const String& name, InputArray val )
|
||||
void FileStorage::write( const String& name, const Mat& val )
|
||||
{
|
||||
*this << name << val.getMat();
|
||||
*this << name << val;
|
||||
}
|
||||
|
||||
void FileStorage::write( const String& name, const std::vector<String>& val )
|
||||
{
|
||||
*this << name << val;
|
||||
}
|
||||
|
||||
void FileStorage::writeComment( const String& comment, bool append )
|
||||
|
||||
Reference in New Issue
Block a user