1 | initial version |
maybe use opencv's builtin FileStorage parser, not a 3rd party lib (we can't help you with that, anyway)
something like this:
f = cv2.FileStorage("new.xml", 0)
L = f.getNode("opencv_lbphfaces")
h = L.getNode("histograms") # a sequence of histogram mat's
hist0 = h.at(0).mat()
2 | No.2 Revision |
maybe use opencv's builtin FileStorage parser, not a 3rd party lib (we can't help you with that, anyway)
something like this:
f = cv2.FileStorage("new.xml", 0)
L = f.getNode("opencv_lbphfaces")
h = L.getNode("histograms") # a sequence of histogram mat's
hist0 = h.at(0).mat()
h.at(0).mat()
# please check this too !
help(f)
help(L)
3 | No.3 Revision |
maybe use opencv's builtin FileStorage parser, not a 3rd party lib (we can't help you with that, anyway)
something like this:
f = cv2.FileStorage("new.xml", 0)
L = f.getNode("opencv_lbphfaces")
h = L.getNode("histograms") # a sequence of histogram mat's
hist0 = h.at(0).mat()
# please check this too !
help(f)
help( cv2.FileStorage)
help(L)
help( cv2.FileNode)