Spaces:
Runtime error
Runtime error
Create test.py
Browse files
test.py
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from pyAAMED import pyAAMED
|
2 |
+
import cv2
|
3 |
+
|
4 |
+
imgC = cv2.imread('002_0038.jpg')
|
5 |
+
imgG = cv2.cvtColor(imgC, cv2.COLOR_BGR2GRAY)
|
6 |
+
|
7 |
+
aamed = pyAAMED(600, 600)
|
8 |
+
|
9 |
+
aamed.setParameters(3.1415926/3, 3.4, 0.77)
|
10 |
+
res = aamed.run_AAMED(imgG)
|
11 |
+
print(res)
|
12 |
+
# aamed.drawAAMED(imgG)
|
13 |
+
# cv2.waitKey()
|