Spaces:
Sleeping
Sleeping
pawandev
commited on
Commit
·
0b1d1c8
1
Parent(s):
dcd0c72
decreased threshould
Browse files
app/services/panServices/panOcr.py
CHANGED
@@ -6,7 +6,7 @@ from collections import defaultdict
|
|
6 |
|
7 |
def process_results(results, img):
|
8 |
label_indices = {"pan_num": 0, "name": 1, "father": 2, "dob": 3}
|
9 |
-
confidence_threshold = 0.
|
10 |
input_image_format = img.format if img.format else "PNG"
|
11 |
valid_formats = ["JPEG", "PNG", "BMP", "GIF", "TIFF"]
|
12 |
input_image_format = input_image_format if input_image_format in valid_formats else "PNG"
|
|
|
6 |
|
7 |
def process_results(results, img):
|
8 |
label_indices = {"pan_num": 0, "name": 1, "father": 2, "dob": 3}
|
9 |
+
confidence_threshold = 0.3
|
10 |
input_image_format = img.format if img.format else "PNG"
|
11 |
valid_formats = ["JPEG", "PNG", "BMP", "GIF", "TIFF"]
|
12 |
input_image_format = input_image_format if input_image_format in valid_formats else "PNG"
|