pycvcam.write_transform#
- write_transform(file_path, transform)[source]#
Writes the Transform object to a JSON file.
from pycvcam import Cv2Distortion from pycvcam import write_transform distortion = Cv2Distortion(...) write_transform("transform.json", distortion)
The content of the JSON file will be similar to:
{ "type": "Cv2Distortion", "version": "1.3.0", "date": "2023-01-01T00:00:00", "parameters": [0.1, 0.2, 0.3, 0.01, 0.5], "constants": null }
See also
pycvcam.read_transform()for the corresponding read function.