diff --git a/Code/Ball_Detection/PyTorch_with_ESPCAM/imageTread_AT.py b/Code/Ball_Detection/PyTorch_with_ESPCAM/imageTread_AT.py index 7130fad4dfd7f0f8ea26f3f23f8ccaeeda05d550..1a7e10caef5a2a75ea58ef9e88869e1b2947efd5 100644 --- a/Code/Ball_Detection/PyTorch_with_ESPCAM/imageTread_AT.py +++ b/Code/Ball_Detection/PyTorch_with_ESPCAM/imageTread_AT.py @@ -19,8 +19,8 @@ if __name__ == "__main__": #IP shown in the Serial monitor of Arduino code # url='http://192.168.4.1/cam-hi.jpg' # url='http://192.168.1.107/cam-hi.jpg' - url='http://192.168.4.1/cam-mid.jpg' - url = 'http://192.168.1.118/cam-hi.jpg' + url='http://192.168.4.1/cam-hi.jpg' + # url = 'http://192.168.1.118/cam-hi.jpg' # cv2.namedWindow("live transmission", cv2.WINDOW_AUTOSIZE) @@ -57,8 +57,8 @@ if __name__ == "__main__": fx, fy, cx, cy are given in Pixels in Computer Vision ( and openCV) but e.g. in Photogrammetry you often use mm """ - fx = 600 - fy = 800 + fx = 800 + fy = 600 cx = 0 cy = 0 results = detector.detect(gray_image,estimate_tag_pose=True,camera_params=[fx, fy, cx, cy],tag_size=0.16)