Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

po-meta-magic

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

po-meta-magic

A Python package for extracting and processing text from images.

  • 0.1.7
  • PyPI
  • Socket score

Maintainers
1

po_meta_magic

Overview

po_meta_magic is a Python package designed for extracting and processing text from images based on metadata and bounding box information. It includes functionalities for validating inputs, extracting text from specific regions of an image, formatting dates, and ensuring only allowed characters are included in the output.

Installation

To install the package, use pip:

pip install po-meta-magic

Parameters

  • image (PIL.Image.Image): The image object from which text will be extracted.

  • meta_data (dict): A dictionary where keys represent metadata types and values are dictionaries containing:

    • bbox: Bounding box coordinates as a tuple (x_min, y_min, x_max, y_max).
    • key: The key or text to find and extract.
    • date_format (optional, str): Format for dates if the value is a date.
    • optional_key_match (optional, bool): If True, key is not required to be present in the text.
    • allowed_chars (optional, str): Characters to be kept in the text (e.g., 0-9A-Za-z).

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc