wide camera calibration
@ -48,6 +48,9 @@ if args.high_res:
|
||||
2.29608398e+00]])
|
||||
camera_res = (1088, 720)
|
||||
|
||||
if args.wide_low:
|
||||
FOCAL_LEN_PIXELS
|
||||
|
||||
b=6.5
|
||||
# 3d object array. The points of the 3d april tag that coresponds to tag_points which we detect
|
||||
objp = np.array([[0,0,0], [-b/2, b/2, 0], [b/2, b/2, 0], [b/2, -b/2, 0], [-b/2, -b/2, 0]], dtype=np.float32)
|
||||
|
BIN
FRC_Fiducial_Tracking/Calibration_Pics_Wide_640x480/0.jpg
Normal file
After Width: | Height: | Size: 79 KiB |
BIN
FRC_Fiducial_Tracking/Calibration_Pics_Wide_640x480/1.jpg
Normal file
After Width: | Height: | Size: 76 KiB |
BIN
FRC_Fiducial_Tracking/Calibration_Pics_Wide_640x480/10.jpg
Normal file
After Width: | Height: | Size: 72 KiB |
BIN
FRC_Fiducial_Tracking/Calibration_Pics_Wide_640x480/11.jpg
Normal file
After Width: | Height: | Size: 75 KiB |
BIN
FRC_Fiducial_Tracking/Calibration_Pics_Wide_640x480/12.jpg
Normal file
After Width: | Height: | Size: 77 KiB |
BIN
FRC_Fiducial_Tracking/Calibration_Pics_Wide_640x480/13.jpg
Normal file
After Width: | Height: | Size: 74 KiB |
BIN
FRC_Fiducial_Tracking/Calibration_Pics_Wide_640x480/14.jpg
Normal file
After Width: | Height: | Size: 73 KiB |
BIN
FRC_Fiducial_Tracking/Calibration_Pics_Wide_640x480/15.jpg
Normal file
After Width: | Height: | Size: 74 KiB |
BIN
FRC_Fiducial_Tracking/Calibration_Pics_Wide_640x480/16.jpg
Normal file
After Width: | Height: | Size: 76 KiB |
BIN
FRC_Fiducial_Tracking/Calibration_Pics_Wide_640x480/17.jpg
Normal file
After Width: | Height: | Size: 76 KiB |
BIN
FRC_Fiducial_Tracking/Calibration_Pics_Wide_640x480/18.jpg
Normal file
After Width: | Height: | Size: 79 KiB |
BIN
FRC_Fiducial_Tracking/Calibration_Pics_Wide_640x480/19.jpg
Normal file
After Width: | Height: | Size: 77 KiB |
BIN
FRC_Fiducial_Tracking/Calibration_Pics_Wide_640x480/2.jpg
Normal file
After Width: | Height: | Size: 80 KiB |
BIN
FRC_Fiducial_Tracking/Calibration_Pics_Wide_640x480/3.jpg
Normal file
After Width: | Height: | Size: 72 KiB |
BIN
FRC_Fiducial_Tracking/Calibration_Pics_Wide_640x480/4.jpg
Normal file
After Width: | Height: | Size: 78 KiB |
BIN
FRC_Fiducial_Tracking/Calibration_Pics_Wide_640x480/5.jpg
Normal file
After Width: | Height: | Size: 74 KiB |
BIN
FRC_Fiducial_Tracking/Calibration_Pics_Wide_640x480/6.jpg
Normal file
After Width: | Height: | Size: 79 KiB |
BIN
FRC_Fiducial_Tracking/Calibration_Pics_Wide_640x480/7.jpg
Normal file
After Width: | Height: | Size: 78 KiB |
BIN
FRC_Fiducial_Tracking/Calibration_Pics_Wide_640x480/8.jpg
Normal file
After Width: | Height: | Size: 77 KiB |
BIN
FRC_Fiducial_Tracking/Calibration_Pics_Wide_640x480/9.jpg
Normal file
After 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/pi/Desktop/apriltag-pose-frc/FRC_Fiducial_Tracking/Calibration_Pics_640x480/*.jpg')
|
||||
images = glob.glob('/home/tyler/Desktop/FRC-Apriltag-Pose-Detection/FRC_Fiducial_Tracking/Calibration_Pics_Wide_640x480/*.jpg')
|
||||
for fname in images:
|
||||
img = cv2.imread(fname)
|
||||
gray = cv2.cvtColor(img,cv2.COLOR_BGR2GRAY)
|
||||
|
@ -4,13 +4,13 @@ import os
|
||||
|
||||
stream = Picam2Vid((640, 480))
|
||||
|
||||
path = "/home/pi/desktop/FRC-Apriltag-Pose-Detection/FRC_Fiducial_Tracking/Calibration_Pics_Wide_640x480"
|
||||
path = "/home/tyler/Desktop/FRC-Apriltag-Pose-Detection/FRC_Fiducial_Tracking/Calibration_Pics_Wide_640x480/"
|
||||
|
||||
frame = stream.read()
|
||||
cv2.imshow("frame", frame)
|
||||
cv2.waitKey(1)
|
||||
confirmation = input("keep Y or N")
|
||||
if confirmation == "Y":
|
||||
confirmation = input("keep y or n: ")
|
||||
if confirmation == "y":
|
||||
file_order = len(os.listdir(path))
|
||||
cv2.imwrite(str(file_order)+".jpg", frame)
|
||||
cv2.imwrite(path+str(file_order)+".jpg", frame)
|
||||
stream.stop()
|
||||
|
6
FRC_Fiducial_Tracking/Wide_Cam_Calibration.txt
Normal file
@ -0,0 +1,6 @@
|
||||
[[550.16284916 0. 323.59646261]
|
||||
[ 0. 550.72383406 229.56706391]
|
||||
[ 0. 0. 1. ]]
|
||||
dist :
|
||||
|
||||
[[-0.02760058 -0.01336192 -0.00662915 0.00432453 0.23444395]]
|