changed active res on cam
@ -51,13 +51,13 @@ if args.high_res:
|
||||
camera_res = (1088, 720)
|
||||
|
||||
if args.wide_low:
|
||||
FOCAL_LEN_PIXELS = (2.75/(6.45/640))
|
||||
camera_matrix = np.array([[FOCAL_LEN_PIXELS, 0., 323.59646261],
|
||||
[ 0., FOCAL_LEN_PIXELS, 229.56706391],
|
||||
FOCAL_LEN_PIXELS = 976.16482142
|
||||
camera_matrix = np.array([[FOCAL_LEN_PIXELS, 0., 771.05155174],
|
||||
[ 0., FOCAL_LEN_PIXELS, 408.52081949],
|
||||
[ 0., 0., 1. ]])
|
||||
|
||||
dist = np.array([[-0.02760058, -0.01336192, -0.00662915, 0.00432453, 0.23444395]])
|
||||
camera_res = (640, 480)
|
||||
dist = np.array([[-0.04790604, 0.08489533, -0.00387366, 0.00616192, -0.03875398]])
|
||||
camera_res = (1536, 864)
|
||||
|
||||
b=6.5
|
||||
# 3d object array. The points of the 3d april tag that coresponds to tag_points which we detect
|
||||
|
BIN
FRC_Fiducial_Tracking/Calibration_Pics_Wide_1536x864/0.jpg
Normal file
After Width: | Height: | Size: 263 KiB |
BIN
FRC_Fiducial_Tracking/Calibration_Pics_Wide_1536x864/1.jpg
Normal file
After Width: | Height: | Size: 260 KiB |
BIN
FRC_Fiducial_Tracking/Calibration_Pics_Wide_1536x864/10.jpg
Normal file
After Width: | Height: | Size: 271 KiB |
BIN
FRC_Fiducial_Tracking/Calibration_Pics_Wide_1536x864/11.jpg
Normal file
After Width: | Height: | Size: 267 KiB |
BIN
FRC_Fiducial_Tracking/Calibration_Pics_Wide_1536x864/12.jpg
Normal file
After Width: | Height: | Size: 268 KiB |
BIN
FRC_Fiducial_Tracking/Calibration_Pics_Wide_1536x864/13.jpg
Normal file
After Width: | Height: | Size: 267 KiB |
BIN
FRC_Fiducial_Tracking/Calibration_Pics_Wide_1536x864/14.jpg
Normal file
After Width: | Height: | Size: 270 KiB |
BIN
FRC_Fiducial_Tracking/Calibration_Pics_Wide_1536x864/15.jpg
Normal file
After Width: | Height: | Size: 269 KiB |
BIN
FRC_Fiducial_Tracking/Calibration_Pics_Wide_1536x864/16.jpg
Normal file
After Width: | Height: | Size: 267 KiB |
BIN
FRC_Fiducial_Tracking/Calibration_Pics_Wide_1536x864/17.jpg
Normal file
After Width: | Height: | Size: 272 KiB |
BIN
FRC_Fiducial_Tracking/Calibration_Pics_Wide_1536x864/18.jpg
Normal file
After Width: | Height: | Size: 261 KiB |
BIN
FRC_Fiducial_Tracking/Calibration_Pics_Wide_1536x864/2.jpg
Normal file
After Width: | Height: | Size: 267 KiB |
BIN
FRC_Fiducial_Tracking/Calibration_Pics_Wide_1536x864/3.jpg
Normal file
After Width: | Height: | Size: 267 KiB |
BIN
FRC_Fiducial_Tracking/Calibration_Pics_Wide_1536x864/4.jpg
Normal file
After Width: | Height: | Size: 270 KiB |
BIN
FRC_Fiducial_Tracking/Calibration_Pics_Wide_1536x864/5.jpg
Normal file
After Width: | Height: | Size: 277 KiB |
BIN
FRC_Fiducial_Tracking/Calibration_Pics_Wide_1536x864/6.jpg
Normal file
After Width: | Height: | Size: 263 KiB |
BIN
FRC_Fiducial_Tracking/Calibration_Pics_Wide_1536x864/7.jpg
Normal file
After Width: | Height: | Size: 279 KiB |
BIN
FRC_Fiducial_Tracking/Calibration_Pics_Wide_1536x864/8.jpg
Normal file
After Width: | Height: | Size: 279 KiB |
BIN
FRC_Fiducial_Tracking/Calibration_Pics_Wide_1536x864/9.jpg
Normal file
After Width: | Height: | Size: 273 KiB |
Before Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 76 KiB |
Before Width: | Height: | Size: 72 KiB |
Before Width: | Height: | Size: 75 KiB |
Before Width: | Height: | Size: 77 KiB |
Before Width: | Height: | Size: 74 KiB |
Before Width: | Height: | Size: 73 KiB |
Before Width: | Height: | Size: 74 KiB |
Before Width: | Height: | Size: 76 KiB |
Before Width: | Height: | Size: 76 KiB |
Before Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 77 KiB |
Before Width: | Height: | Size: 80 KiB |
Before Width: | Height: | Size: 72 KiB |
Before Width: | Height: | Size: 78 KiB |
Before Width: | Height: | Size: 74 KiB |
Before Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 78 KiB |
Before Width: | Height: | Size: 77 KiB |
Before Width: | Height: | Size: 75 KiB |
@ -21,7 +21,7 @@ objp[0,:,:2] = np.mgrid[0:CHECKERBOARD[0], 0:CHECKERBOARD[1]].T.reshape(-1, 2)
|
||||
prev_img_shape = None
|
||||
|
||||
# Extracting path of individual image stored in a given directory
|
||||
images = glob.glob('/home/tyler/Desktop/FRC-Apriltag-Pose-Detection/FRC_Fiducial_Tracking/Calibration_Pics_Wide_640x480/*.jpg')
|
||||
images = glob.glob('/home/tyler/Desktop/FRC-Apriltag-Pose-Detection/FRC_Fiducial_Tracking/Calibration_Pics_Wide_1536x864/*.jpg')
|
||||
for fname in images:
|
||||
img = cv2.imread(fname)
|
||||
gray = cv2.cvtColor(img,cv2.COLOR_BGR2GRAY)
|
||||
|
@ -2,14 +2,14 @@ from Picam2Vid import Picam2Vid
|
||||
import cv2
|
||||
import os
|
||||
|
||||
stream = Picam2Vid((640, 480))
|
||||
stream = Picam2Vid((1536, 864))
|
||||
|
||||
path = "/home/tyler/Desktop/FRC-Apriltag-Pose-Detection/FRC_Fiducial_Tracking/Static_Tag_Pics/"
|
||||
path = "/home/tyler/Desktop/FRC-Apriltag-Pose-Detection/FRC_Fiducial_Tracking/Calibration_Pics_Wide_1536x864/"
|
||||
|
||||
stream.update()
|
||||
frame = stream.read()
|
||||
cv2.imshow("frame", frame)
|
||||
cv2.waitKey(1)
|
||||
cv2.waitKey(2)
|
||||
confirmation = input("keep y or n: ")
|
||||
if confirmation == "y":
|
||||
file_order = len(os.listdir(path))
|
||||
|