![]() Yaml.add_constructor(u'tag:,2002:opencv-matrix', meta_constructor)ĭata_loaded = yaml.load(stream, Loader=yaml. You must specify a constructor for the OpenCV data type that you are trying to load, because it doesn't exist by default in PyYAML: import yaml import yaml def metaconstructor(loader, node): return nstructmapping(node) yaml.addconstructor(u'tag:,2002:opencv-matrix', metaconstructor) with open(filename, 'r') as stream: dataloaded yaml.load(stream, Loaderyaml. ![]() This is first time I use yml files so I really don´t know what to do with it. In "flow_field/u00000.yml", line 3, column 7 ![]() I try parse it like this # Read YAML fileīut I am getting this error: : could not determine a constructor for the tag 'tag:,2002:opencv-matrix' ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |