This file contains 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 json | |
import tkinter | |
from gphotospy import authorize | |
from gphotospy.media import * | |
# the following file is available as a gist here: | |
# https://gist.github.com/davidedelpapa/2c9a0d2a3e0eada5782aeda93a90c0fa | |
from video_show import ImgVideoCapture, VideoApp | |
# Select secrets file | |
CLIENT_SECRET_FILE = "gphoto_oauth.json" |
This file contains 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 PIL.ImageTk | |
import PIL.Image | |
import time | |
import cv2 | |
import tkinter | |
class ImgVideoCapture: | |
def __init__(self, video_url): | |
# gets the video from the url as a VideoCapture wrapper |
This file contains 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 io | |
import base64 | |
from tkinter import * | |
from urllib.request import urlopen | |
from gphotospy import authorize | |
from gphotospy.media import * | |
from gphotospy.album import * | |
from PIL import ImageTk, Image | |
# Select secrets file |