From 90c817abaf9c75fd382e42e1b81fafa00769d3e1 Mon Sep 17 00:00:00 2001 From: zhaoliang <zhz03@g.ucla.edu> Date: Fri, 29 Oct 2021 00:15:37 -0700 Subject: [PATCH] fix the bug --- Code/Ball_Detection/PyTorch_with_ESPCAM/imageTread_AT.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Code/Ball_Detection/PyTorch_with_ESPCAM/imageTread_AT.py b/Code/Ball_Detection/PyTorch_with_ESPCAM/imageTread_AT.py index 7130fad..1a7e10c 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) -- GitLab