idvpackage 3.0.8__py3-none-any.whl → 3.0.9__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/liveness_spoofing_v2.py +21 -21
- {idvpackage-3.0.8.dist-info → idvpackage-3.0.9.dist-info}/METADATA +1 -1
- {idvpackage-3.0.8.dist-info → idvpackage-3.0.9.dist-info}/RECORD +6 -6
- {idvpackage-3.0.8.dist-info → idvpackage-3.0.9.dist-info}/WHEEL +0 -0
- {idvpackage-3.0.8.dist-info → idvpackage-3.0.9.dist-info}/licenses/LICENSE +0 -0
- {idvpackage-3.0.8.dist-info → idvpackage-3.0.9.dist-info}/top_level.txt +0 -0
|
@@ -236,27 +236,15 @@ def test(video_path):
|
|
|
236
236
|
|
|
237
237
|
else:
|
|
238
238
|
all_predictions = []
|
|
239
|
-
with ThreadPoolExecutor() as executor:
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
if all_predictions.count("SPOOF") >= 3:
|
|
250
|
-
# print('\n##################\nConsider\n##################\n')
|
|
251
|
-
return "consider"
|
|
252
|
-
|
|
253
|
-
# print('\n##################\nClear\n##################\n')
|
|
254
|
-
return "clear"
|
|
255
|
-
|
|
256
|
-
# for frame in frames_to_process:
|
|
257
|
-
# result = process_frame(frame, models, image_cropper)
|
|
258
|
-
# if result:
|
|
259
|
-
# all_predictions.append(result)
|
|
239
|
+
# with ThreadPoolExecutor() as executor:
|
|
240
|
+
# futures = [
|
|
241
|
+
# executor.submit(process_frame, frame, models, image_cropper)
|
|
242
|
+
# for frame in frames_to_process
|
|
243
|
+
# ]
|
|
244
|
+
# for future in futures:
|
|
245
|
+
# result = future.result()
|
|
246
|
+
# if result:
|
|
247
|
+
# all_predictions.append(result)
|
|
260
248
|
|
|
261
249
|
# if all_predictions.count("SPOOF") >= 3:
|
|
262
250
|
# # print('\n##################\nConsider\n##################\n')
|
|
@@ -264,3 +252,15 @@ def test(video_path):
|
|
|
264
252
|
|
|
265
253
|
# # print('\n##################\nClear\n##################\n')
|
|
266
254
|
# return "clear"
|
|
255
|
+
|
|
256
|
+
for frame in frames_to_process:
|
|
257
|
+
result = process_frame(frame, models, image_cropper)
|
|
258
|
+
if result:
|
|
259
|
+
all_predictions.append(result)
|
|
260
|
+
|
|
261
|
+
if all_predictions.count("SPOOF") >= 3:
|
|
262
|
+
# print('\n##################\nConsider\n##################\n')
|
|
263
|
+
return "consider"
|
|
264
|
+
|
|
265
|
+
# print('\n##################\nClear\n##################\n')
|
|
266
|
+
return "clear"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: idvpackage
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.9
|
|
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
|
|
@@ -11,7 +11,7 @@ idvpackage/jor_passport_extraction.py,sha256=xilIDGKxfhaivwWjADLgkLa2szAsNMlutFC
|
|
|
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=
|
|
14
|
+
idvpackage/liveness_spoofing_v2.py,sha256=6rp7R4n66ogiiQO7d0ZQzUQ7dIKGXWfD6OjXxq_DSg8,8822
|
|
15
15
|
idvpackage/ocr.py,sha256=9WYMpyDA0FIKgeJr9xsqrFEhj6oIBtFQzVrWGOkg0BA,221004
|
|
16
16
|
idvpackage/ocr_utils.py,sha256=8-RlZ1yawMUY-z5T5axVAzYal6l8jB8afdqlCApDO1I,89715
|
|
17
17
|
idvpackage/pse_passport_extraction.py,sha256=pI5eG9yxeh_q88IISP1QkEj8BqcsXmhCa48VS0N7El8,20369
|
|
@@ -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.9.dist-info/licenses/LICENSE,sha256=JTmNGOPPvG2XBgkW2R2xwzJeR_OEjaFKeePN1jGYVt8,1068
|
|
39
|
+
idvpackage-3.0.9.dist-info/METADATA,sha256=5pteh6LASx_TlJ6gopBcGHPKt-wlK3dPjVqVYCZcKkA,4799
|
|
40
|
+
idvpackage-3.0.9.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
41
|
+
idvpackage-3.0.9.dist-info/top_level.txt,sha256=8jL1PsYvKBIWWLGe8jEm7kU5yZ5sld_OCaz0Dzvi6qY,11
|
|
42
|
+
idvpackage-3.0.9.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|