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 PIL | |
| from PIL import Image,ImageTk | |
| import pytesseract | |
| import cv2 | |
| from tkinter import * | |
| width, height = 1920, 1080 | |
| cap = cv2.VideoCapture(0) | |
| cap.set(cv2.CAP_PROP_FRAME_WIDTH, width) | |
| cap.set(cv2.CAP_PROP_FRAME_HEIGHT, height) |
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
| function toDegrees (angle) { | |
| return angle * (180 / Math.PI); | |
| } | |
| function myAtan2(y, x) { | |
| if (x > 0) { | |
| return toDegrees(Math.atan(y/x)); | |
| } | |
| else if (x < 0) { | |
| return (180 + toDegrees(Math.atan(y/x))); |
