Spaces:
Running
Running
kargaranamir
commited on
Commit
•
1f644ab
1
Parent(s):
46f83dd
v3 to v4.
Browse files
app.py
CHANGED
@@ -5,8 +5,8 @@ import numpy as np
|
|
5 |
import matplotlib.pyplot as plt
|
6 |
import io
|
7 |
|
8 |
-
def inference(
|
9 |
-
color_image = cv2.imread(
|
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))
|