How it works...

NumPy's savetxt and loadtxt functions let you store and load any matrices. They use text format, so you can view the content of the file in a text editor.

Get OpenCV 3 Computer Vision with Python Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.