Skip to content
Snippets Groups Projects
Commit 93dfbedd authored by Hussain Kanafani's avatar Hussain Kanafani
Browse files

typo fixed

parent 3af92d8b
No related branches found
No related tags found
No related merge requests found
...@@ -4,8 +4,8 @@ import subprocess ...@@ -4,8 +4,8 @@ import subprocess
import argparse import argparse
def resize_(img_path, width, height): def resize_image(img_path, width, height):
img = cv2.imread('/home/img/python.png', cv2.IMREAD_UNCHANGED) img = cv2.imread(img_path, cv2.IMREAD_UNCHANGED)
dim = (width, height) dim = (width, height)
resized = cv2.resize(img, dim, interpolation=cv2.INTER_AREA) resized = cv2.resize(img, dim, interpolation=cv2.INTER_AREA)
return resized return resized
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment