Ask Your Question

Revision history [back]

click to hide/show revision 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()

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)

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)