MCPcopy Create free account
hub / github.com/devilsen/CZXing / loadFromString

Function loadFromString

czxing/src/main/cpp/include/opencv2/core.hpp:3211–3218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3209 @endcode
3210 */
3211 template<typename _Tp> static Ptr<_Tp> loadFromString(const String& strModel, const String& objname=String())
3212 {
3213 FileStorage fs(strModel, FileStorage::READ + FileStorage::MEMORY);
3214 FileNode fn = objname.empty() ? fs.getFirstTopLevelNode() : fs[objname];
3215 Ptr<_Tp> obj = _Tp::create();
3216 obj->read(fn);
3217 return !obj->empty() ? obj : Ptr<_Tp>();
3218 }
3219
3220 /** Saves the algorithm to a file.
3221 In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs). */

Callers

nothing calls this directly

Calls 3

createFunction · 0.50
emptyMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected