structocr 1.0.1__tar.gz → 1.1.2__tar.gz
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.
- {structocr-1.0.1 → structocr-1.1.2}/PKG-INFO +4 -15
- {structocr-1.0.1 → structocr-1.1.2}/README.md +1 -1
- {structocr-1.0.1 → structocr-1.1.2}/setup.py +2 -2
- {structocr-1.0.1 → structocr-1.1.2}/structocr/client.py +12 -3
- {structocr-1.0.1 → structocr-1.1.2}/structocr.egg-info/PKG-INFO +4 -15
- {structocr-1.0.1 → structocr-1.1.2}/setup.cfg +0 -0
- {structocr-1.0.1 → structocr-1.1.2}/structocr/__init__.py +0 -0
- {structocr-1.0.1 → structocr-1.1.2}/structocr.egg-info/SOURCES.txt +0 -0
- {structocr-1.0.1 → structocr-1.1.2}/structocr.egg-info/dependency_links.txt +0 -0
- {structocr-1.0.1 → structocr-1.1.2}/structocr.egg-info/requires.txt +0 -0
- {structocr-1.0.1 → structocr-1.1.2}/structocr.egg-info/top_level.txt +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
2
|
Name: structocr
|
|
3
|
-
Version: 1.
|
|
4
|
-
Summary: The official Python SDK for StructOCR API - Passport, ID,
|
|
3
|
+
Version: 1.1.2
|
|
4
|
+
Summary: The official Python SDK for StructOCR API - Passport, ID card, Driver License OCR, and Invoice.
|
|
5
5
|
Home-page: https://structocr.com
|
|
6
6
|
Author: StructOCR Team
|
|
7
7
|
Author-email: support@structocr.com
|
|
@@ -15,17 +15,6 @@ Classifier: Operating System :: OS Independent
|
|
|
15
15
|
Classifier: Topic :: Scientific/Engineering :: Image Recognition
|
|
16
16
|
Requires-Python: >=3.6
|
|
17
17
|
Description-Content-Type: text/markdown
|
|
18
|
-
Requires-Dist: requests>=2.25.0
|
|
19
|
-
Dynamic: author
|
|
20
|
-
Dynamic: author-email
|
|
21
|
-
Dynamic: classifier
|
|
22
|
-
Dynamic: description
|
|
23
|
-
Dynamic: description-content-type
|
|
24
|
-
Dynamic: home-page
|
|
25
|
-
Dynamic: project-url
|
|
26
|
-
Dynamic: requires-dist
|
|
27
|
-
Dynamic: requires-python
|
|
28
|
-
Dynamic: summary
|
|
29
18
|
|
|
30
19
|
# StructOCR Python SDK
|
|
31
20
|
|
|
@@ -99,4 +88,4 @@ For full API documentation, response examples, and error codes, please visit the
|
|
|
99
88
|
|
|
100
89
|
## License
|
|
101
90
|
|
|
102
|
-
MIT License. See [LICENSE](https://www.google.com/search?q=LICENSE) for details.
|
|
91
|
+
MIT License. See [LICENSE](https://www.google.com/search?q=LICENSE) for details.cd
|
|
@@ -70,4 +70,4 @@ For full API documentation, response examples, and error codes, please visit the
|
|
|
70
70
|
|
|
71
71
|
## License
|
|
72
72
|
|
|
73
|
-
MIT License. See [LICENSE](https://www.google.com/search?q=LICENSE) for details.
|
|
73
|
+
MIT License. See [LICENSE](https://www.google.com/search?q=LICENSE) for details.cd
|
|
@@ -2,8 +2,8 @@ from setuptools import setup, find_packages
|
|
|
2
2
|
|
|
3
3
|
setup(
|
|
4
4
|
name="structocr",
|
|
5
|
-
version="1.
|
|
6
|
-
description="The official Python SDK for StructOCR API - Passport, ID,
|
|
5
|
+
version="1.1.2",
|
|
6
|
+
description="The official Python SDK for StructOCR API - Passport, ID card, Driver License OCR, and Invoice.",
|
|
7
7
|
long_description=open("README.md").read(),
|
|
8
8
|
long_description_content_type="text/markdown",
|
|
9
9
|
|
|
@@ -70,7 +70,7 @@ class StructOCR:
|
|
|
70
70
|
path: Path to the ID card image file.
|
|
71
71
|
Returns: Structured JSON data.
|
|
72
72
|
"""
|
|
73
|
-
# Endpoint: /v1/national-id
|
|
73
|
+
# Endpoint: /v1/national-id
|
|
74
74
|
return self._post_image('national-id', file_path)
|
|
75
75
|
|
|
76
76
|
def scan_driver_license(self, file_path):
|
|
@@ -79,5 +79,14 @@ class StructOCR:
|
|
|
79
79
|
path: Path to the driver license image file.
|
|
80
80
|
Returns: Structured JSON data.
|
|
81
81
|
"""
|
|
82
|
-
# Endpoint: /v1/driver-license
|
|
83
|
-
return self._post_image('driver-license', file_path)
|
|
82
|
+
# Endpoint: /v1/driver-license
|
|
83
|
+
return self._post_image('driver-license', file_path)
|
|
84
|
+
|
|
85
|
+
def scan_invoice(self, file_path):
|
|
86
|
+
"""
|
|
87
|
+
Scan a Invoice.
|
|
88
|
+
path: Path to the invoice image file.
|
|
89
|
+
Returns: Structured JSON data.
|
|
90
|
+
"""
|
|
91
|
+
# Endpoint: /v1/invoice
|
|
92
|
+
return self._post_image('invoice', file_path)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
2
|
Name: structocr
|
|
3
|
-
Version: 1.
|
|
4
|
-
Summary: The official Python SDK for StructOCR API - Passport, ID,
|
|
3
|
+
Version: 1.1.2
|
|
4
|
+
Summary: The official Python SDK for StructOCR API - Passport, ID card, Driver License OCR, and Invoice.
|
|
5
5
|
Home-page: https://structocr.com
|
|
6
6
|
Author: StructOCR Team
|
|
7
7
|
Author-email: support@structocr.com
|
|
@@ -15,17 +15,6 @@ Classifier: Operating System :: OS Independent
|
|
|
15
15
|
Classifier: Topic :: Scientific/Engineering :: Image Recognition
|
|
16
16
|
Requires-Python: >=3.6
|
|
17
17
|
Description-Content-Type: text/markdown
|
|
18
|
-
Requires-Dist: requests>=2.25.0
|
|
19
|
-
Dynamic: author
|
|
20
|
-
Dynamic: author-email
|
|
21
|
-
Dynamic: classifier
|
|
22
|
-
Dynamic: description
|
|
23
|
-
Dynamic: description-content-type
|
|
24
|
-
Dynamic: home-page
|
|
25
|
-
Dynamic: project-url
|
|
26
|
-
Dynamic: requires-dist
|
|
27
|
-
Dynamic: requires-python
|
|
28
|
-
Dynamic: summary
|
|
29
18
|
|
|
30
19
|
# StructOCR Python SDK
|
|
31
20
|
|
|
@@ -99,4 +88,4 @@ For full API documentation, response examples, and error codes, please visit the
|
|
|
99
88
|
|
|
100
89
|
## License
|
|
101
90
|
|
|
102
|
-
MIT License. See [LICENSE](https://www.google.com/search?q=LICENSE) for details.
|
|
91
|
+
MIT License. See [LICENSE](https://www.google.com/search?q=LICENSE) for details.cd
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|