structocr 1.2.0__tar.gz → 1.3.0__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.2.0 → structocr-1.3.0}/PKG-INFO +7 -9
- {structocr-1.2.0 → structocr-1.3.0}/README.md +5 -7
- {structocr-1.2.0 → structocr-1.3.0}/setup.py +2 -2
- {structocr-1.2.0 → structocr-1.3.0}/structocr/client.py +2 -1
- {structocr-1.2.0 → structocr-1.3.0}/structocr.egg-info/PKG-INFO +7 -9
- {structocr-1.2.0 → structocr-1.3.0}/setup.cfg +0 -0
- {structocr-1.2.0 → structocr-1.3.0}/structocr/__init__.py +0 -0
- {structocr-1.2.0 → structocr-1.3.0}/structocr.egg-info/SOURCES.txt +0 -0
- {structocr-1.2.0 → structocr-1.3.0}/structocr.egg-info/dependency_links.txt +0 -0
- {structocr-1.2.0 → structocr-1.3.0}/structocr.egg-info/requires.txt +0 -0
- {structocr-1.2.0 → structocr-1.3.0}/structocr.egg-info/top_level.txt +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: structocr
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.3.0
|
|
4
4
|
Summary: The official Python SDK for StructOCR API - Passport, ID card, Driver License OCR, Invoice, Receipts, VIN, HIN and Container OCR.
|
|
5
5
|
Home-page: https://structocr.com
|
|
6
6
|
Author: StructOCR Team
|
|
7
7
|
Author-email: support@structocr.com
|
|
8
8
|
Project-URL: Homepage, https://structocr.com
|
|
9
|
-
Project-URL: Documentation, https://
|
|
9
|
+
Project-URL: Documentation, https://structocr.com/developers
|
|
10
10
|
Project-URL: Source, https://github.com/structocr/structocr-python
|
|
11
11
|
Project-URL: Tracker, https://github.com/structocr/structocr-python/issues
|
|
12
12
|
Classifier: Programming Language :: Python :: 3
|
|
@@ -40,13 +40,11 @@ StructOCR is a powerful API tailored for developers to extract structured data f
|
|
|
40
40
|
|
|
41
41
|
-----
|
|
42
42
|
|
|
43
|
-
## 🚀 What's New in 1.
|
|
43
|
+
## 🚀 What's New in 1.3.0
|
|
44
44
|
|
|
45
|
-
We've massively
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
* **HIN OCR**: Extract, parse, and validate Hull Identification Numbers from boats and watercraft.
|
|
49
|
-
* *Previous 1.1.6 additions (Container OCR, VIN OCR, Invoice OCR) remain fully supported.*
|
|
45
|
+
We've massively upgraded our Identity Verification engine!
|
|
46
|
+
* **Hybrid VIZ + MRZ AI for National IDs**: The SDK now automatically cross-validates unstructured Visual Zone (VIZ) data against cryptographic Machine Readable Zone (MRZ) checksums (TD1/TD2) for zero hallucination. Raw MRZ lines are now accessible via `additional_fields`.
|
|
47
|
+
* *Previous marine & expense additions (Receipt OCR, HIN OCR, Container OCR) remain fully supported.*
|
|
50
48
|
|
|
51
49
|
Check out the [Quick Start](#quick-start) below to see how easy it is to use them!
|
|
52
50
|
|
|
@@ -55,7 +53,7 @@ Check out the [Quick Start](#quick-start) below to see how easy it is to use the
|
|
|
55
53
|
## Features
|
|
56
54
|
|
|
57
55
|
- **Passport OCR API**: Instantly extract MRZ, name, DOB, and expiry date from passports of 200+ countries.
|
|
58
|
-
- **National ID OCR**:
|
|
56
|
+
- **National ID OCR**: Extract regional specific fields (CNP, CPF, NIN) and raw ICAO 9303 MRZ lines with hybrid validation.
|
|
59
57
|
- **Driver License OCR**: Extract vehicle class, license number, and personal details.
|
|
60
58
|
- **Invoice OCR**: Extract invoice number, currency, merchant, customer, and financial totals.
|
|
61
59
|
- **Receipt OCR**: Extract merchants, dates, line items, taxes, and totals for expense management.
|
|
@@ -11,13 +11,11 @@ StructOCR is a powerful API tailored for developers to extract structured data f
|
|
|
11
11
|
|
|
12
12
|
-----
|
|
13
13
|
|
|
14
|
-
## 🚀 What's New in 1.
|
|
14
|
+
## 🚀 What's New in 1.3.0
|
|
15
15
|
|
|
16
|
-
We've massively
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
* **HIN OCR**: Extract, parse, and validate Hull Identification Numbers from boats and watercraft.
|
|
20
|
-
* *Previous 1.1.6 additions (Container OCR, VIN OCR, Invoice OCR) remain fully supported.*
|
|
16
|
+
We've massively upgraded our Identity Verification engine!
|
|
17
|
+
* **Hybrid VIZ + MRZ AI for National IDs**: The SDK now automatically cross-validates unstructured Visual Zone (VIZ) data against cryptographic Machine Readable Zone (MRZ) checksums (TD1/TD2) for zero hallucination. Raw MRZ lines are now accessible via `additional_fields`.
|
|
18
|
+
* *Previous marine & expense additions (Receipt OCR, HIN OCR, Container OCR) remain fully supported.*
|
|
21
19
|
|
|
22
20
|
Check out the [Quick Start](#quick-start) below to see how easy it is to use them!
|
|
23
21
|
|
|
@@ -26,7 +24,7 @@ Check out the [Quick Start](#quick-start) below to see how easy it is to use the
|
|
|
26
24
|
## Features
|
|
27
25
|
|
|
28
26
|
- **Passport OCR API**: Instantly extract MRZ, name, DOB, and expiry date from passports of 200+ countries.
|
|
29
|
-
- **National ID OCR**:
|
|
27
|
+
- **National ID OCR**: Extract regional specific fields (CNP, CPF, NIN) and raw ICAO 9303 MRZ lines with hybrid validation.
|
|
30
28
|
- **Driver License OCR**: Extract vehicle class, license number, and personal details.
|
|
31
29
|
- **Invoice OCR**: Extract invoice number, currency, merchant, customer, and financial totals.
|
|
32
30
|
- **Receipt OCR**: Extract merchants, dates, line items, taxes, and totals for expense management.
|
|
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
|
|
|
2
2
|
|
|
3
3
|
setup(
|
|
4
4
|
name="structocr",
|
|
5
|
-
version="1.
|
|
5
|
+
version="1.3.0",
|
|
6
6
|
description="The official Python SDK for StructOCR API - Passport, ID card, Driver License OCR, Invoice, Receipts, VIN, HIN and Container OCR.",
|
|
7
7
|
long_description=open("README.md").read(),
|
|
8
8
|
long_description_content_type="text/markdown",
|
|
@@ -16,7 +16,7 @@ setup(
|
|
|
16
16
|
# 2. 这里定义侧边栏的具体链接 (Homepage, Documentation, Source 等)
|
|
17
17
|
project_urls={
|
|
18
18
|
"Homepage": "https://structocr.com",
|
|
19
|
-
"Documentation": "https://
|
|
19
|
+
"Documentation": "https://structocr.com/developers", # 假设你的文档在这里
|
|
20
20
|
"Source": "https://github.com/structocr/structocr-python",
|
|
21
21
|
"Tracker": "https://github.com/structocr/structocr-python/issues", # 问题追踪
|
|
22
22
|
},
|
|
@@ -21,7 +21,7 @@ class StructOCR:
|
|
|
21
21
|
self.session.headers.update({
|
|
22
22
|
"x-api-key": self.api_key,
|
|
23
23
|
"Content-Type": "application/json",
|
|
24
|
-
"User-Agent": "StructOCR-Python/1.
|
|
24
|
+
"User-Agent": "StructOCR-Python/1.3.0"
|
|
25
25
|
})
|
|
26
26
|
|
|
27
27
|
def _post_image(self, endpoint, file_path):
|
|
@@ -69,6 +69,7 @@ class StructOCR:
|
|
|
69
69
|
Scan a National ID card.
|
|
70
70
|
path: Path to the ID card image file.
|
|
71
71
|
Returns: Structured JSON data.
|
|
72
|
+
Note: MRZ lines (if present) are located inside the 'additional_fields' object.
|
|
72
73
|
"""
|
|
73
74
|
# Endpoint: /v1/national-id
|
|
74
75
|
return self._post_image('national-id', file_path)
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: structocr
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.3.0
|
|
4
4
|
Summary: The official Python SDK for StructOCR API - Passport, ID card, Driver License OCR, Invoice, Receipts, VIN, HIN and Container OCR.
|
|
5
5
|
Home-page: https://structocr.com
|
|
6
6
|
Author: StructOCR Team
|
|
7
7
|
Author-email: support@structocr.com
|
|
8
8
|
Project-URL: Homepage, https://structocr.com
|
|
9
|
-
Project-URL: Documentation, https://
|
|
9
|
+
Project-URL: Documentation, https://structocr.com/developers
|
|
10
10
|
Project-URL: Source, https://github.com/structocr/structocr-python
|
|
11
11
|
Project-URL: Tracker, https://github.com/structocr/structocr-python/issues
|
|
12
12
|
Classifier: Programming Language :: Python :: 3
|
|
@@ -40,13 +40,11 @@ StructOCR is a powerful API tailored for developers to extract structured data f
|
|
|
40
40
|
|
|
41
41
|
-----
|
|
42
42
|
|
|
43
|
-
## 🚀 What's New in 1.
|
|
43
|
+
## 🚀 What's New in 1.3.0
|
|
44
44
|
|
|
45
|
-
We've massively
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
* **HIN OCR**: Extract, parse, and validate Hull Identification Numbers from boats and watercraft.
|
|
49
|
-
* *Previous 1.1.6 additions (Container OCR, VIN OCR, Invoice OCR) remain fully supported.*
|
|
45
|
+
We've massively upgraded our Identity Verification engine!
|
|
46
|
+
* **Hybrid VIZ + MRZ AI for National IDs**: The SDK now automatically cross-validates unstructured Visual Zone (VIZ) data against cryptographic Machine Readable Zone (MRZ) checksums (TD1/TD2) for zero hallucination. Raw MRZ lines are now accessible via `additional_fields`.
|
|
47
|
+
* *Previous marine & expense additions (Receipt OCR, HIN OCR, Container OCR) remain fully supported.*
|
|
50
48
|
|
|
51
49
|
Check out the [Quick Start](#quick-start) below to see how easy it is to use them!
|
|
52
50
|
|
|
@@ -55,7 +53,7 @@ Check out the [Quick Start](#quick-start) below to see how easy it is to use the
|
|
|
55
53
|
## Features
|
|
56
54
|
|
|
57
55
|
- **Passport OCR API**: Instantly extract MRZ, name, DOB, and expiry date from passports of 200+ countries.
|
|
58
|
-
- **National ID OCR**:
|
|
56
|
+
- **National ID OCR**: Extract regional specific fields (CNP, CPF, NIN) and raw ICAO 9303 MRZ lines with hybrid validation.
|
|
59
57
|
- **Driver License OCR**: Extract vehicle class, license number, and personal details.
|
|
60
58
|
- **Invoice OCR**: Extract invoice number, currency, merchant, customer, and financial totals.
|
|
61
59
|
- **Receipt OCR**: Extract merchants, dates, line items, taxes, and totals for expense management.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|