Spaces:
Sleeping
Sleeping
pawandev
commited on
Commit
·
a269237
1
Parent(s):
4ec45cf
Added one more pre filter data in pan card ocr
Browse files
app/services/panServices/panDataExtractor.py
CHANGED
@@ -2,7 +2,7 @@ import re
|
|
2 |
|
3 |
def extract_panData(data):
|
4 |
unwanted_words = ["Name","/Name",'Permanent', 'Account', 'Number', 'Card', 'नाम', '/Name',
|
5 |
-
"पिता का नाम",'नाम / Name', "पिता का नाम/ Father's Name", 'नाम /Name',"पिता का नाम / Father's Name", 'जन्म का वाराज़', 'Date of Birth', 'Permanent Account Number Card', "Date of Birth", "/Date of Birth", "Permanent Account Number", "Father's Name", "14 /Name", "/Father's Name"]
|
6 |
|
7 |
# Clean the array by removing unwanted words and invalid entries
|
8 |
cleaned_data = []
|
|
|
2 |
|
3 |
def extract_panData(data):
|
4 |
unwanted_words = ["Name","/Name",'Permanent', 'Account', 'Number', 'Card', 'नाम', '/Name',
|
5 |
+
"पिता का नाम",'नाम / Name', "पिता का नाम/ Father's Name", "पिता का नाम/ Father's Nam", 'नाम /Name',"पिता का नाम / Father's Name", 'जन्म का वाराज़', 'Date of Birth', 'Permanent Account Number Card', "Date of Birth", "/Date of Birth", "Permanent Account Number", "Father's Name", "14 /Name", "/Father's Name"]
|
6 |
|
7 |
# Clean the array by removing unwanted words and invalid entries
|
8 |
cleaned_data = []
|