Skip to content

Instantly share code, notes, and snippets.

@awesomebytes
Created May 1, 2019 09:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save awesomebytes/1fc8dea8057d5d2ccc3eb258e6c18331 to your computer and use it in GitHub Desktop.
Save awesomebytes/1fc8dea8057d5d2ccc3eb258e6c18331 to your computer and use it in GitHub Desktop.
test
import cPickle
import numpy as np
height = 100
width = 100
blank_image = np.zeros((height, width, 3), np.uint8)
my_python_data = {
'list_of_stuff': [1, 2, 3, 4, 5],
'complicated_object': blank_image
}
cPickle.dump(my_python_data, open("python_stuff.pickle", 'w'))
my_python_data = cPickle.load(open("python_stuff.pickle", 'r'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment