- OpenCV 3 Computer Vision with Python Cookbook
- Alexey Spizhevoy Aleksandr Rybnikov
- 52字
- 2021-08-27 19:47:39
Non-image data persistence using NumPy
Previously, we've saved and loaded only images with OpenCV's cv2.imwrite and cv2.imread functions, respectively. But it's possible to save any matrix (not only with image content) of any type and shape with NumPy's data persistence. In this recipe, we will review how to do it.