Spaces:
Running
Running
Update simulation_modules.py
Browse files- simulation_modules.py +1 -1
simulation_modules.py
CHANGED
@@ -39,7 +39,7 @@ def find_peak_box_and_classify(data):
|
|
39 |
for j in range(1, W + 1):
|
40 |
confidence = det_data[i, j, 0]
|
41 |
# تم رفع حد الثقة قليلاً لتقليل الاكتشافات الخاطئة
|
42 |
-
if confidence > 0.
|
43 |
# البحث عن القمة المحلية
|
44 |
if (confidence >= det_data[i,j-1,0] and confidence >= det_data[i,j+1,0] and
|
45 |
confidence >= det_data[i-1,j,0] and confidence >= det_data[i+1,j,0]):
|
|
|
39 |
for j in range(1, W + 1):
|
40 |
confidence = det_data[i, j, 0]
|
41 |
# تم رفع حد الثقة قليلاً لتقليل الاكتشافات الخاطئة
|
42 |
+
if confidence > 0.12:
|
43 |
# البحث عن القمة المحلية
|
44 |
if (confidence >= det_data[i,j-1,0] and confidence >= det_data[i,j+1,0] and
|
45 |
confidence >= det_data[i-1,j,0] and confidence >= det_data[i+1,j,0]):
|