idvpackage 3.0.8__py3-none-any.whl → 3.0.10__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- idvpackage/common.py +120 -140
- idvpackage/jor_passport_extraction.py +0 -257
- idvpackage/liveness_spoofing_v2.py +21 -21
- idvpackage/ocr.py +84 -456
- idvpackage/ocr_utils.py +2 -1
- {idvpackage-3.0.8.dist-info → idvpackage-3.0.10.dist-info}/METADATA +1 -1
- {idvpackage-3.0.8.dist-info → idvpackage-3.0.10.dist-info}/RECORD +10 -10
- {idvpackage-3.0.8.dist-info → idvpackage-3.0.10.dist-info}/WHEEL +0 -0
- {idvpackage-3.0.8.dist-info → idvpackage-3.0.10.dist-info}/licenses/LICENSE +0 -0
- {idvpackage-3.0.8.dist-info → idvpackage-3.0.10.dist-info}/top_level.txt +0 -0
idvpackage/ocr_utils.py
CHANGED
|
@@ -361,7 +361,7 @@ def identify_front_id(text):
|
|
|
361
361
|
from datetime import datetime
|
|
362
362
|
def normalize_date_generic(date_str, out_format="%Y-%m-%d"):
|
|
363
363
|
date_str = date_str.replace(".", "/").replace("-", "/") # unify separators
|
|
364
|
-
|
|
364
|
+
logging.info(f"Normalizing date: {date_str}")
|
|
365
365
|
formats = [
|
|
366
366
|
"%Y/%m/%d",
|
|
367
367
|
"%d/%m/%Y",
|
|
@@ -373,6 +373,7 @@ def normalize_date_generic(date_str, out_format="%Y-%m-%d"):
|
|
|
373
373
|
|
|
374
374
|
for fmt in formats:
|
|
375
375
|
try:
|
|
376
|
+
logging.info(f"Trying to parse date: {date_str} with format: {fmt}")
|
|
376
377
|
dt = datetime.strptime(date_str, fmt)
|
|
377
378
|
return dt.strftime(out_format)
|
|
378
379
|
except ValueError:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: idvpackage
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.10
|
|
4
4
|
Summary: This repository contains a Python program designed to execute Optical Character Recognition (OCR) and Facial Recognition on images.
|
|
5
5
|
Home-page: https://github.com/NymCard-Payments/project_idv_package
|
|
6
6
|
Classifier: Programming Language :: Python :: 3
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
idvpackage/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
2
|
idvpackage/blur_detection.py,sha256=CtLqTtg2azE4YCM8AT1jYJq6QxGoniMO0VkQYIcMtRI,1883
|
|
3
|
-
idvpackage/common.py,sha256=
|
|
3
|
+
idvpackage/common.py,sha256=4KEG5WIPc2ntI93RLqyuImMjl-v4JbHRsI3BpNCMG7Y,47018
|
|
4
4
|
idvpackage/constants.py,sha256=XvQy5ORGsXoQGcXcvUBC17vpFMzgzleS9S_mDN72G4c,7212
|
|
5
5
|
idvpackage/ekyc.py,sha256=I7J2NTerBBnlxzgKkq5KVwgNtlAuEBeL3u_KgA1p2V8,2986
|
|
6
6
|
idvpackage/genai_utils.py,sha256=u3n_dP53P6NJaCGu1d221S8DW1g9MoSq56SNh7VQeJQ,9273
|
|
7
7
|
idvpackage/iraq_id_extraction.py,sha256=tH8qIa_0WJIG1jCBKUPbbN9_GtSaaHH6Anm2rgsVanI,35698
|
|
8
8
|
idvpackage/iraq_id_extraction_withopenai.py,sha256=WGZkRHBvNF6135ptNpQ4rR3q8tZ3WwNKAnbgPLg0Iqs,47497
|
|
9
9
|
idvpackage/iraq_passport_extraction.py,sha256=dMbPWjTmuKjt2UZAFsrK0xRGXYWQ_S-U0ij_ssiiTzw,22674
|
|
10
|
-
idvpackage/jor_passport_extraction.py,sha256=
|
|
10
|
+
idvpackage/jor_passport_extraction.py,sha256=VfDL-hXfLGE7HmPNehMUvmK-2TjBn0VLKhfM81b7mHE,9434
|
|
11
11
|
idvpackage/lazy_imports.py,sha256=Bg5BPL2KYTztKu4gGgwt4-gFP9Mo2vZWs_UJ4zrL5Hw,1139
|
|
12
12
|
idvpackage/lebanon_id_extraction.py,sha256=eqWSpfb83RRk5TEhJNOuiPLt-wCLY5L4TvrpkOckSPs,21192
|
|
13
13
|
idvpackage/lebanon_passport_extraction.py,sha256=AEOMRcFx1vVRjI2MeFRWdPHVj-jXSC5WZdpYEsQwn7U,7057
|
|
14
|
-
idvpackage/liveness_spoofing_v2.py,sha256=
|
|
15
|
-
idvpackage/ocr.py,sha256
|
|
16
|
-
idvpackage/ocr_utils.py,sha256=
|
|
14
|
+
idvpackage/liveness_spoofing_v2.py,sha256=6rp7R4n66ogiiQO7d0ZQzUQ7dIKGXWfD6OjXxq_DSg8,8822
|
|
15
|
+
idvpackage/ocr.py,sha256=-1mRuEe3822oPRBkcfZUGtIMyQKq0xw8PZi5g-2k1L4,202435
|
|
16
|
+
idvpackage/ocr_utils.py,sha256=NmeGj7rhOzjg9sb_TSFcBBl8fJn4-INuHSvmijsLpiM,89845
|
|
17
17
|
idvpackage/pse_passport_extraction.py,sha256=pI5eG9yxeh_q88IISP1QkEj8BqcsXmhCa48VS0N7El8,20369
|
|
18
18
|
idvpackage/qatar_id_extraction.py,sha256=zIgKBLSTc-rKDy2b4CqM25JtLxQ9bvlyXeH-NZPh6_E,56718
|
|
19
19
|
idvpackage/sau_id_extraction.py,sha256=gJ0_X_sOdIxo7b8VTxfa4XSVfoQY_FGUIxo_kcF3zvg,9859
|
|
@@ -35,8 +35,8 @@ idvpackage/spoof_resources/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJ
|
|
|
35
35
|
idvpackage/spoof_resources/functional.py,sha256=164aGMvBDHU6HWRyDBr-2EUPeJ4rc4cXl10NJyGB7eE,20138
|
|
36
36
|
idvpackage/spoof_resources/generate_patches.py,sha256=ANvJ5rDl-SXARchS8JwOxuKLhUuabbxLwvz4zsYbADE,1722
|
|
37
37
|
idvpackage/spoof_resources/transform.py,sha256=3Ft9S6g6N0SU24f3feHXquh5qRc85JFt2gNKnCYQwjo,11311
|
|
38
|
-
idvpackage-3.0.
|
|
39
|
-
idvpackage-3.0.
|
|
40
|
-
idvpackage-3.0.
|
|
41
|
-
idvpackage-3.0.
|
|
42
|
-
idvpackage-3.0.
|
|
38
|
+
idvpackage-3.0.10.dist-info/licenses/LICENSE,sha256=JTmNGOPPvG2XBgkW2R2xwzJeR_OEjaFKeePN1jGYVt8,1068
|
|
39
|
+
idvpackage-3.0.10.dist-info/METADATA,sha256=wGIDz5v2JPoSMEVnA2gR5rWfFKKCnkfxX-vmGFkRHLA,4800
|
|
40
|
+
idvpackage-3.0.10.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
41
|
+
idvpackage-3.0.10.dist-info/top_level.txt,sha256=8jL1PsYvKBIWWLGe8jEm7kU5yZ5sld_OCaz0Dzvi6qY,11
|
|
42
|
+
idvpackage-3.0.10.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|