[App] Filter low confidence ceil
Browse files
app.py
CHANGED
@@ -45,7 +45,6 @@ def cv_to_PIL(cv_img):
|
|
45 |
|
46 |
async def pytess(cell_pil_img, threshold: float = 0.5):
|
47 |
text, prob = detector.predict(cell_pil_img, return_prob=True)
|
48 |
-
st.write(prob)
|
49 |
if prob < threshold:
|
50 |
return ""
|
51 |
return text.strip()
|
|
|
45 |
|
46 |
async def pytess(cell_pil_img, threshold: float = 0.5):
|
47 |
text, prob = detector.predict(cell_pil_img, return_prob=True)
|
|
|
48 |
if prob < threshold:
|
49 |
return ""
|
50 |
return text.strip()
|