structocr 1.1.3__tar.gz → 1.1.4__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.
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: structocr
3
- Version: 1.1.3
4
- Summary: The official Python SDK for StructOCR API - Passport, ID card, Driver License OCR, and Invoice.
3
+ Version: 1.1.4
4
+ Summary: The official Python SDK for StructOCR API - Passport, ID card, Driver License OCR, Invoice and VIN OCR.
5
5
  Home-page: https://structocr.com
6
6
  Author: StructOCR Team
7
7
  Author-email: support@structocr.com
@@ -23,7 +23,7 @@ Description-Content-Type: text/markdown
23
23
 
24
24
  **The official Python client for [StructOCR](https://structocr.com).**
25
25
 
26
- StructOCR is a powerful API tailored for developers to extract structured data from identity documents with high accuracy. This SDK helps you integrate **Passport OCR**, **National ID OCR**, **Driver License OCR** and **Invoice OCR** into your Python applications in minutes.
26
+ StructOCR is a powerful API tailored for developers to extract structured data from identity documents with high accuracy. This SDK helps you integrate **Passport OCR**, **National ID OCR**, **Driver License OCR**, **Invoice OCR** and **VIN OCR** into your Python applications in minutes.
27
27
 
28
28
  👉 **[Get your Free API Key here](https://structocr.com)**
29
29
 
@@ -33,6 +33,7 @@ StructOCR is a powerful API tailored for developers to extract structured data f
33
33
  - **National ID OCR**: Support for ID cards with automatic field mapping.
34
34
  - **Driver License OCR**: Extract vehicle class, license number, and personal details.
35
35
  - **Invoice OCR**: Extract invoice number, currency, merchant, customer.
36
+ - **VIN OCR**: Extract VIN (Vehicle Identification Number) from windshield or engine bay images.
36
37
  - **Secure & Fast**: Enterprise-grade encryption and sub-second response times.
37
38
 
38
39
  ## Installation
@@ -67,7 +68,7 @@ print(f"Passport Number: {result['data']['document_number']}")
67
68
 
68
69
  ```
69
70
 
70
- ### 3. Scan a National ID or Driver License or Invoice
71
+ ### 3. Scan a National ID, Driver License, Invoice or VIN
71
72
 
72
73
  ```python
73
74
  # National ID OCR
@@ -77,7 +78,10 @@ id_data = client.scan_national_id('./docs/id_card.png')
77
78
  license_data = client.scan_driver_license('./docs/license.jpg')
78
79
 
79
80
  # Invoice OCR
80
- license_data = client.scan_invoice('./docs/invoice.jpg')
81
+ invoice_data = client.scan_invoice('./docs/invoice.jpg')
82
+
83
+ # VIN OCR
84
+ vin_data = client.scan_vin('./docs/vin.jpg')
81
85
 
82
86
  ```
83
87
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  **The official Python client for [StructOCR](https://structocr.com).**
7
7
 
8
- StructOCR is a powerful API tailored for developers to extract structured data from identity documents with high accuracy. This SDK helps you integrate **Passport OCR**, **National ID OCR**, **Driver License OCR** and **Invoice OCR** into your Python applications in minutes.
8
+ StructOCR is a powerful API tailored for developers to extract structured data from identity documents with high accuracy. This SDK helps you integrate **Passport OCR**, **National ID OCR**, **Driver License OCR**, **Invoice OCR** and **VIN OCR** into your Python applications in minutes.
9
9
 
10
10
  👉 **[Get your Free API Key here](https://structocr.com)**
11
11
 
@@ -15,6 +15,7 @@ StructOCR is a powerful API tailored for developers to extract structured data f
15
15
  - **National ID OCR**: Support for ID cards with automatic field mapping.
16
16
  - **Driver License OCR**: Extract vehicle class, license number, and personal details.
17
17
  - **Invoice OCR**: Extract invoice number, currency, merchant, customer.
18
+ - **VIN OCR**: Extract VIN (Vehicle Identification Number) from windshield or engine bay images.
18
19
  - **Secure & Fast**: Enterprise-grade encryption and sub-second response times.
19
20
 
20
21
  ## Installation
@@ -49,7 +50,7 @@ print(f"Passport Number: {result['data']['document_number']}")
49
50
 
50
51
  ```
51
52
 
52
- ### 3. Scan a National ID or Driver License or Invoice
53
+ ### 3. Scan a National ID, Driver License, Invoice or VIN
53
54
 
54
55
  ```python
55
56
  # National ID OCR
@@ -59,7 +60,10 @@ id_data = client.scan_national_id('./docs/id_card.png')
59
60
  license_data = client.scan_driver_license('./docs/license.jpg')
60
61
 
61
62
  # Invoice OCR
62
- license_data = client.scan_invoice('./docs/invoice.jpg')
63
+ invoice_data = client.scan_invoice('./docs/invoice.jpg')
64
+
65
+ # VIN OCR
66
+ vin_data = client.scan_vin('./docs/vin.jpg')
63
67
 
64
68
  ```
65
69
 
@@ -2,8 +2,8 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name="structocr",
5
- version="1.1.3",
6
- description="The official Python SDK for StructOCR API - Passport, ID card, Driver License OCR, and Invoice.",
5
+ version="1.1.4",
6
+ description="The official Python SDK for StructOCR API - Passport, ID card, Driver License OCR, Invoice and VIN OCR.",
7
7
  long_description=open("README.md").read(),
8
8
  long_description_content_type="text/markdown",
9
9
 
@@ -89,4 +89,13 @@ class StructOCR:
89
89
  Returns: Structured JSON data.
90
90
  """
91
91
  # Endpoint: /v1/invoice
92
- return self._post_image('invoice', file_path)
92
+ return self._post_image('invoice', file_path)
93
+
94
+ def scan_vin(self, file_path):
95
+ """
96
+ Scan a VIN (Vehicle Identification Number).
97
+ path: Path to the VIN image file.
98
+ Returns: Structured JSON data.
99
+ """
100
+ # Endpoint: /v1/vin
101
+ return self._post_image('vin', file_path)
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: structocr
3
- Version: 1.1.3
4
- Summary: The official Python SDK for StructOCR API - Passport, ID card, Driver License OCR, and Invoice.
3
+ Version: 1.1.4
4
+ Summary: The official Python SDK for StructOCR API - Passport, ID card, Driver License OCR, Invoice and VIN OCR.
5
5
  Home-page: https://structocr.com
6
6
  Author: StructOCR Team
7
7
  Author-email: support@structocr.com
@@ -23,7 +23,7 @@ Description-Content-Type: text/markdown
23
23
 
24
24
  **The official Python client for [StructOCR](https://structocr.com).**
25
25
 
26
- StructOCR is a powerful API tailored for developers to extract structured data from identity documents with high accuracy. This SDK helps you integrate **Passport OCR**, **National ID OCR**, **Driver License OCR** and **Invoice OCR** into your Python applications in minutes.
26
+ StructOCR is a powerful API tailored for developers to extract structured data from identity documents with high accuracy. This SDK helps you integrate **Passport OCR**, **National ID OCR**, **Driver License OCR**, **Invoice OCR** and **VIN OCR** into your Python applications in minutes.
27
27
 
28
28
  👉 **[Get your Free API Key here](https://structocr.com)**
29
29
 
@@ -33,6 +33,7 @@ StructOCR is a powerful API tailored for developers to extract structured data f
33
33
  - **National ID OCR**: Support for ID cards with automatic field mapping.
34
34
  - **Driver License OCR**: Extract vehicle class, license number, and personal details.
35
35
  - **Invoice OCR**: Extract invoice number, currency, merchant, customer.
36
+ - **VIN OCR**: Extract VIN (Vehicle Identification Number) from windshield or engine bay images.
36
37
  - **Secure & Fast**: Enterprise-grade encryption and sub-second response times.
37
38
 
38
39
  ## Installation
@@ -67,7 +68,7 @@ print(f"Passport Number: {result['data']['document_number']}")
67
68
 
68
69
  ```
69
70
 
70
- ### 3. Scan a National ID or Driver License or Invoice
71
+ ### 3. Scan a National ID, Driver License, Invoice or VIN
71
72
 
72
73
  ```python
73
74
  # National ID OCR
@@ -77,7 +78,10 @@ id_data = client.scan_national_id('./docs/id_card.png')
77
78
  license_data = client.scan_driver_license('./docs/license.jpg')
78
79
 
79
80
  # Invoice OCR
80
- license_data = client.scan_invoice('./docs/invoice.jpg')
81
+ invoice_data = client.scan_invoice('./docs/invoice.jpg')
82
+
83
+ # VIN OCR
84
+ vin_data = client.scan_vin('./docs/vin.jpg')
81
85
 
82
86
  ```
83
87
 
File without changes