AlowaSawsan
commited on
Commit
•
789abd5
1
Parent(s):
8c9f99c
Update app.py
Browse files
app.py
CHANGED
@@ -41,13 +41,12 @@ with col3:
|
|
41 |
image_file=examples[2]
|
42 |
|
43 |
#main--------------------------------------------------------------------
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
kernel_sharpening = np.array([[-1,-1,-1],
|
51 |
[-1,9,-1],
|
52 |
[-1,-1,-1]])#
|
53 |
|
|
|
41 |
image_file=examples[2]
|
42 |
|
43 |
#main--------------------------------------------------------------------
|
44 |
+
def midpoint(ptA, ptB):
|
45 |
+
return ((ptA[0] + ptB[0]) /2 , (ptA[1] + ptB[1]) /2)
|
46 |
+
|
47 |
+
def draw_dimensions(orig_image,predict_image,erode_iteration,open_iteration):
|
48 |
+
kernel1 =( np.ones((5,5), dtype=np.float32))#
|
49 |
+
kernel_sharpening = np.array([[-1,-1,-1],
|
|
|
50 |
[-1,9,-1],
|
51 |
[-1,-1,-1]])#
|
52 |
|