First time here? Check out the FAQ!
answered 2017-05-23 05:09:05 -0600
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