kargaranamir commited on
Commit
1f644ab
1 Parent(s): 46f83dd
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -5,8 +5,8 @@ import numpy as np
5
  import matplotlib.pyplot as plt
6
  import io
7
 
8
- def inference(img, template, angle):
9
- color_image = cv2.imread(img.name, cv2.IMREAD_COLOR)
10
 
11
  HSV_image = cv2.cvtColor(color_image, cv2.COLOR_BGR2HSV)
12
  selected_harmomic_scheme = HarmonicScheme(str(template), int(angle))
 
5
  import matplotlib.pyplot as plt
6
  import io
7
 
8
+ def inference(img_path, template, angle):
9
+ color_image = cv2.imread(img_path, cv2.IMREAD_COLOR)
10
 
11
  HSV_image = cv2.cvtColor(color_image, cv2.COLOR_BGR2HSV)
12
  selected_harmomic_scheme = HarmonicScheme(str(template), int(angle))