Added tool for video resolution

This commit is contained in:
2021-03-23 09:30:47 -04:00
parent 38d86cab1c
commit 3969d68545
2 changed files with 51 additions and 0 deletions

9
gps_tool/TODO Normal file
View File

@ -0,0 +1,9 @@
gps_tool TODO
Theta labels wind up inside track, not outside.
Use N, NE, E, SE, S, SW, W, NW labels
Error running on Raspberry Pi (shiboken2 is broken shit)
Click on point for more info

42
vid_tool/vid_resol.py Executable file
View File

@ -0,0 +1,42 @@
#!/usr/bin/env python3
import math
import sys
import socket
import time
import os.path
from sys import platform as _platform
from time import sleep
from glob import glob
from socket import *
from struct import *
#print(socket.gethostname())
# pillow, thread
if sys.version_info[0] == 3:
print("Python3")
from tkinter import *
from PIL import Image, ImageTk
try:
import _thread
except ImportError:
import _dummy_thread as _thread
else:
print("Python2")
from Tkinter import *
from PIL import Image
try:
import thread as _thread
except ImportError:
import dummy_thread as _thread
a_lock = _thread.allocate_lock()
# tkinter root
root = Tk()
root.title('V2V DVI Display')
w, h = root.winfo_screenwidth(), root.winfo_screenheight()
print("Display resolution = ", w, "x", h)