-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Tomek Roszczynialski edited this page Nov 18, 2017
·
15 revisions
- OpenCV and Python K-Means Color Clustering
- Youtube:
- ffmpeg ? HD ?
- youtube API
-
python upload_video.py --file="out2.mpg" --title="pretty time lapse wow" --privacyStatus="unlisted" --noauth_local_webserver
-
-
Use scale filter to change resolution.
-
To use matplotlib without running the x server (pi cli haxor style) do:
import matplotlib as mpl mpl.use('Agg') import matplotlib.pyplot as plt fig = plt.figure() ax = fig.add_subplot(111) ax.plot(range(10)) fig.savefig('temp.png')
-
Facebook tokens & python, publish_pages permission is neeeded as well, not mentioned on this page
-
Facebook-SDK api reference
- Add album:
api.put_object(parent_object='me', connection_name='albums', message='description', name='album name')
-- returns dict with album id - Add photo to album:
api.put_photo(image=img, album_path = id " + "/photos")
works alright, but infacebook.GraphAPI
instantiation You have to specify version (2.4 worked here)
- Add album:
-
Autoreload modules inside ipython
-
Place Humor-Sans.ttf in the
$HOME/.fonts
directory,rm ~/.cache/matplotlib/fontList.*