摘要: 从opencv3.4.9中摘取。 1 static void icvWriteMat( CvFileStorage* fs, const char* name, const void* struct_ptr, CvAttrList /*attr*/ ) 2 { 3 const CvMat* mat 阅读全文
posted @ 2020-06-11 17:40 巨鹿王十二 阅读(253) 评论(0) 推荐(0) 编辑
摘要: 从opencv3.4.9中摘取。 写svm的xml信息: 1 void write( FileStorage& fs ) const CV_OVERRIDE 2 { 3 int class_count = !class_labels.empty() ? (int)class_labels.total 阅读全文
posted @ 2020-06-11 17:31 巨鹿王十二 阅读(596) 评论(0) 推荐(0) 编辑
摘要: 使用开源的markup实现。(实在不喜欢被opencv绑架) 在使用markup保存xml文件时遇到一些问题。 xml.Save(filename.c_str()); vs属性中的Char set 从Use Unicode Character Set时这里的filename需要是wstring类型。 阅读全文
posted @ 2020-06-11 16:49 巨鹿王十二 阅读(192) 评论(0) 推荐(0) 编辑