How to read/write a matrix from a persistent XML/YAML file in OpenCV 3 with python?

Viewed 12906

I've been trying to read and write matrices to persistent file storage (eg. XML) with anaconda's current cv2 (which I believe is actually OpenCV 3.x). I looked at the solutions online for this, and people reference something done like this:

object = cv2.cv.Load(file)
object = cv2.cv.Save(file)

source. This does not work on the current anaconda python cv2. People propose solutions like this yaml example, 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.

1 Answers
Related