From 53bbb4d083611e5f83f14949579b12925e35cfff Mon Sep 17 00:00:00 2001 From: Zpadger <31385823+Zpadger@users.noreply.github.com> Date: Sun, 8 Dec 2019 18:19:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86=E4=B8=80=E4=B8=AAbu?= =?UTF-8?q?g?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Traceback (most recent call last): File "/home/zpj/PycharmProjects/ObjectDetection/Question_100/Q29_Afine2.py", line 44, in out = affine(img, a=1.3, b=0, c=0, d=0.8, tx=30, ty=-30) NameError: name 'img' is not defined --- Question_21_30/answers_py/answer_29.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Question_21_30/answers_py/answer_29.py b/Question_21_30/answers_py/answer_29.py index 07404c70..0de73789 100644 --- a/Question_21_30/answers_py/answer_29.py +++ b/Question_21_30/answers_py/answer_29.py @@ -41,7 +41,7 @@ def affine(img, a, b, c, d, tx, ty): _img = cv2.imread("imori.jpg").astype(np.float32) # Affine -out = affine(img, a=1.3, b=0, c=0, d=0.8, tx=30, ty=-30) +out = affine(_img, a=1.3, b=0, c=0, d=0.8, tx=30, ty=-30) # Save result