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 cv2 | |
from pathlib import Path | |
from PIL import Image | |
FILE = Path("test/vid_1_short.mp4") | |
""" | |
To try this, place it in the folder of surgtoolloc2022-category-1 or 2 and run the script. | |
Note to compare frames 0 to 60 and 1 to 61. They are identical !!! | |
(You can either check the video frame images that are written or the mean values of the images.) |
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 Tkinter as tk | |
class App: | |
def __init__(self): | |
self.root = tk.Tk() | |
self.root.title("progress bar") | |
self.bar1 = " " | |
self.bar2 = " " | |
self.bar3 = " " | |
self.bar4 = " " |
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 Tkinter as tk | |
import ttk | |
class App(tk.Tk): | |
def __init__(self): | |
# Note that now the App object itself is the tkinter root object | |
tk.Tk.__init__(self) | |
self.title("actual progress bar") | |