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 as cv | |
import glob | |
img_src = "screenshots" | |
img_dst = "raw_data" | |
img_paths = glob.glob(img_src + "/*.jpg") | |
index = 0 | |
for img_path in img_paths: |
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
from time import time | |
import mss | |
import cv2 as cv | |
import numpy as np | |
from win32gui import FindWindow, GetWindowRect, SetForegroundWindow | |
window_handle = FindWindow(None, "Albion Online Client") | |
window_rect = GetWindowRect(window_handle) | |
SetForegroundWindow(window_handle) |
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
from imutils.video import VideoStream | |
import argparse | |
import imutils | |
import time | |
import cv2 | |
import sys | |
import json | |
import numpy as np | |
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 argparse | |
import cv2 | |
import sys | |
import numpy as np | |
ap = argparse.ArgumentParser() | |
ap.add_argument("-o", "--output", required=True, help="path to output image containing ArUCo tag") | |
ap.add_argument("-i", "--id", type=int, required=True, help="ID of first ArUCo tag to generate") | |
ap.add_argument("-t", "--type", type=str, default="DICT_ARUCO_ORIGINAL", help="type of ArUCo tag to generate") | |
ap.add_argument("-d", "--dpi", type=str, default="72", help="the DPI of the output print") |
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 numpy as np | |
import cv2 as cv | |
import glob | |
import json | |
from datetime import datetime | |
with open('camera.json', 'r') as json_file: | |
camera_data = json.load(json_file) | |
dist = np.array(camera_data["dist"]) |
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 numpy as np | |
import cv2 as cv | |
import glob | |
import json | |
from datetime import datetime | |
criteria = (cv.TERM_CRITERIA_EPS + cv.TERM_CRITERIA_MAX_ITER, 30, 0.001) | |
rows = 5 | |
columns = 7 |
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 datetime import datetime | |
from imutils.video import VideoStream | |
import time | |
vs = VideoStream(src=0).start() | |
time.sleep(2.0) | |
while(True): | |
frame = vs.read() |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css"> | |
<link rel="stylesheet" href="css/style.css"> | |
<script src="js/script.js" defer></script> | |
</head> |
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
#include "./include/cinatra.hpp" | |
#include "./include/ginger.h" | |
#include <iostream> | |
#include <sstream> | |
#include <vector> | |
#include <fstream> | |
#include <map> | |
#include <string> |
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
package main | |
import ( | |
"fmt" | |
"image" | |
"image/draw" | |
"image/png" | |
"os" | |
"time" |