Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

This code save an img as xml but should be similar in your case:

import cv2
import numpy as np

img = cv2.cv.LoadImage('0.jpg',0)
cv2.cv.Save('sof.xml',img)
e=cv2.cv.Load("sof.xml")

print e