title: How to read/write a matrix from a persistent XML/YAML file in OpenCV 3 with python?
body: <p>I've been trying to read and write matrices to persistent file storage (eg. XML) with anaconda's current <code>cv2</code> (which I believe is actually OpenCV 3.x).  I looked at the solutions online for this, and people reference something done like this:</p>
  
  <pre><code>object = cv2.cv.Load(file)
  object = cv2.cv.Save(file)
  </code></pre>
  
  <p><a href="http://answers.opencv.org/question/1690/python-load-opencv-filestorage/" rel="noreferrer">source</a>.  This does not work on the current anaconda python <code>cv2</code>.  People propose solutions like <a href="http://www.morethantechnical.com/2016/03/02/opencv-python-yaml-persistance/" rel="noreferrer">this yaml example</a>, but I'm confused why so much boiler plate code is needed for this simple functionality, I don't find this an acceptable solution. I want something that is as simple as the old solution. </p>