Created
June 24, 2021 00:21
-
-
Save spdin/8f48e651104ebb5add81b654cd9e32f4 to your computer and use it in GitHub Desktop.
save and load pickle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pickle | |
# Saving the objects: | |
with open('test1.pkl', 'wb') as f: # Python 3: open(..., 'wb') | |
pickle.dump([table_bbox, row_bbox, column_bbox], f) | |
# Getting back the objects: | |
with open('test1.pkl', 'rb') as f: # Python 3: open(..., 'rb') | |
table_bbox, row_bbox, column_bbox = pickle.load(f) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment