Skip to main content

Texere: This is the start of a new Module

Currently it has two function 1.Text Removal from Images and generate mask 2.Marking Edges in Images

Texere is a Python package that provides functionality for removing text from images and marking edges, along with the option to generate a mask for further processing.

Installation

You can install Texere using pip:

pip install texere

Usage:

Removing Text from Images

from texere.purge import txt

modified_image, mask = txt('image_path.jpg',pixels,threshold)

# 'modified_image' contains the image with text removed
# 'mask' is a binary image indicating the regions where text was removed
# Further processing using the 'mask' image can be done here

Marking Edges in the image

from texere.edges import mark

# Replace 'image_path.jpg' with the path to your input image
marked_image = mark('image_path.jpg',threshold)

# 'marked_image' contains the image with marked edges
# You can further process or visualize the edges here

Example:

Removing Text from Images

from texere.purge import txt

# Replace 'input_image.jpg' with the path to your input image
modified_image, mask = txt('input_image.jpg',7,10)

#threshold value is from 0-100
#pixels value >0
#depending on these two value the image will turn out Good 
# Save the modified image
cv2.imwrite('output_image.jpg', modified_image)

# Save the mask as a binary image its a grayscaled image so it can be used for impainting the text area
cv2.imwrite('mask_image.jpg', mask)

Marking Edges in the image

from texere.edges import mark

# Replace 'input_image.jpg' with the path to your input image
marked_image = mark('input_image.jpg',threshold)
#threshold value can be between 0-255 also images i tried on works best with 70 
# Save the marked image
marked_image.save('marked_image.jpg')

Contributing:

Contributions to Texere are welcome! If you have ideas for improvements, bug fixes, or new features, feel free to open an issue or submit a pull request on GitHub.

License:

This project is licensed under the MIT License - see the LICENSE file for details.

Metadata

Release files for texere 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for texere 1.0.2
File Size Uploaded Provenance Actions
texere-1.0.2.tar.gz 4.6 kB Without provenance Details for texere-1.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for texere 1.0.2
File Interpreter ABI Platform Actions
texere-1.0.2-py3-none-any.whl Python 3 none any Details for texere-1.0.2-py3-none-any.whl

Total release size: 9.4 kB

Release files / texere-1.0.2.tar.gz

Download URL texere-1.0.2.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
d9c0a7ca59e5c999f60c332ef788e880746de5ea68cd5a1219c115d3df2faf4f
BLAKE2b-256 checksum
How to use checksums
a5864dba1709eae71fe2dbda5c1d67fd87d83d7f463db84de79eb94205976d5e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.3

Release files / texere-1.0.2-py3-none-any.whl

Download URL texere-1.0.2-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d0f00870d1554bbfe43bfc64d095109d88803131c298bd5214d5f32e9f76a390
BLAKE2b-256 checksum
How to use checksums
054801ec0d05550a34db0ed7a6ff88626d29bd80dd658917e67f30dd0f2e9b25
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.3

Security for texere 1.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page