Aspose.OCR for Python is a powerful yet easy-to-use and cost-effective API for extracting text from scanned images, photos, screenshots, PDF documents, and other files.
Project description
Product Page | Documentation | Demos | Blog | API Reference | Search | Free Support | Temporary License
Try our Free Online Apps demonstrating some of the most popular Aspose.OCR functionality.
Aspose.OCR.Models.TextInWild for Python via .NET This extension to Aspose.OCR for Python via .NET adds a specialized recognition model and methods to accurately extract text from street photos, traffic camera images, ID cards, driver licenses, and other images with sparse text and noisy/colored backgrounds. This is useful for improving OCR accuracy in specific business cases:
- Segment and identify road signs and signboards within street images.
- Locate price tags and interpret the extracted text as prices.
- Find and aggregate regions of interest on food labels, such as nutritional information or ingredient lists.
- Identify and analyze car license plates.
- Extract text from menus and catalogs.
Check out the Landing Pages of Aspose.OCR for Python via .NET for a more detailed description of the features and possibilities of the library.
##Important considerations:
- This package requires Aspose.OCR for Python via.NET to function properly. It cannot be used separately from the core API.
- The model only works with Latin letters and numbers.
Get Started
Run pip install aspose-ocr-python-net
and pip install aspose-ocr-models-textinwild-python-net
to fetch the package. If you already have Aspose.OCR for Python via .NET and want to get the latest version, please run pip install --upgrade aspose-ocr-python-net
.
To learn more about Aspose.OCR for Python via .NET and explore the basic requirements and features of the library, check out the following Aspose.OCR for Python via .NET Documentation pages for other use cases.
Code snippet
Aspose.OCR for Python via .NET is extremely easy to use, regardless of the application's scale and complexity. Let's try to create a very simple application that can extract text from images and output it to the console.
- Install the latest version of the aspose-ocr package using pip.
- Import
aspose.ocr
module into the application. - Create an instance of
AsposeOcr
class. - Create an instance of
OcrInput
class and add one or more images to it. - Extract text from the street photo using
recognize_street_photo
method. - Output the extracted text to the console.
Full code:
import aspose.ocr as ocr
# Initialize OCR engine
api = AsposeOcr()
# Initialize OCR input
input = OcrInput(InputType.SINGLE_IMAGE)
input.add("1.png")
input.add("2.jpg")
# Recognize images
result = api.recognize_street_photo(input)
# Print result
print(result[0].recognition_text)
print(result[1].recognition_text)
Product Page | Documentation | Demos | Blog | API Reference | Search | Free Support | Temporary License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
File details
Details for the file aspose_ocr_models_textinwild_python_net-23.12.1-py3-none-win_amd64.whl
.
File metadata
- Download URL: aspose_ocr_models_textinwild_python_net-23.12.1-py3-none-win_amd64.whl
- Upload date:
- Size: 77.6 MB
- Tags: Python 3, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d0fed481a6583fbf99f3401c5c912b5ee134526ac96144b8ca0d8aa5e71049b |
|
MD5 | 61bf2b1e3490ba2391d50686dcf8a327 |
|
BLAKE2b-256 | a3e4e73e6bcfe98acffd44eeb76fe4ecc631e1f132cc0fff8fee89e61db6f789 |
File details
Details for the file aspose_ocr_models_textinwild_python_net-23.12.1-py3-none-win32.whl
.
File metadata
- Download URL: aspose_ocr_models_textinwild_python_net-23.12.1-py3-none-win32.whl
- Upload date:
- Size: 74.0 MB
- Tags: Python 3, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c64a8d8af05cc4494f29abb623bba14dff51d968c28f36c9cb292a40b3bd8fc4 |
|
MD5 | 9c45398cd056abf92501c55e871d2249 |
|
BLAKE2b-256 | dbd68ddb86683b7cee38b2237d6bc15e8c519cf464376dc907aba98f9baa4d22 |
File details
Details for the file aspose_ocr_models_textinwild_python_net-23.12.1-py3-none-manylinux1_x86_64.whl
.
File metadata
- Download URL: aspose_ocr_models_textinwild_python_net-23.12.1-py3-none-manylinux1_x86_64.whl
- Upload date:
- Size: 79.6 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6da8ca6d136d1274fb95f62bb66f4fb538e75843bf7cc5fbb7e32dc6f34add12 |
|
MD5 | 9269cd15b5263be1c3153005552bf9ec |
|
BLAKE2b-256 | 1388b4789501dd12233cd60760b4837ac45c2ef486cec89e6f5a682bb1263309 |
File details
Details for the file aspose_ocr_models_textinwild_python_net-23.12.1-py3-none-macosx_11_0_arm64.whl
.
File metadata
- Download URL: aspose_ocr_models_textinwild_python_net-23.12.1-py3-none-macosx_11_0_arm64.whl
- Upload date:
- Size: 75.3 MB
- Tags: Python 3, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1287f7af0d2081d07ab3fc573cad3ab6ae6ea1991587f49c3f1e85477e8b955a |
|
MD5 | 55dec1eb2e94fc2d799efffb4450791a |
|
BLAKE2b-256 | 5e13a189d2bf23167476acc6b4c28f6380c2acc510e0338498cad1520ff8815c |
File details
Details for the file aspose_ocr_models_textinwild_python_net-23.12.1-py3-none-macosx_10_14_x86_64.whl
.
File metadata
- Download URL: aspose_ocr_models_textinwild_python_net-23.12.1-py3-none-macosx_10_14_x86_64.whl
- Upload date:
- Size: 78.5 MB
- Tags: Python 3, macOS 10.14+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38a0ef74791f23336446b421737588ba5ec8583ca8998c4142338686903c3773 |
|
MD5 | 05cba2c94cecaf878457d734a99062ee |
|
BLAKE2b-256 | 3a7e747756000af38180cf0fac89e3cf6da0c491fd74e2988f1c966ef74f8ff7 |