COSIE.image_preprocessing.save_pickle

save_pickle(x, filename)[source]

Save a Python object to a .pkl file using the pickle module.

Parameters

xAny

The Python object to serialize (e.g., list, dict, NumPy array).

filenamestr

The full path to save the pickle file. If the parent directory does not exist, it will be created automatically.

Returns

None

The object is serialized and saved as a .pkl file.