Skip to main content

Inventory Card Reader

This repository contains code to read, process, and integrate data from inventory cards. Currently it uses (pero-ocr)[https://github.com/DCGM/pero-ocr] for text recognition.

Installation

  1. Install the package from pip using pip install inventory-card-reader
  2. Or clone the repository and do your thing

Prepare config files

  • Create a config yaml to specify text regions in the inventory card and their mapping to table columns
    regions: 
        <<key1>>: [x1,y1,x2,y2]
        <<key2>>: [x1,y1,x2,y2]
        <<...>>: [...]

Where key define the column names to be extracted and x1,y1,x2,y2 denote the relative coordinates of the region where the values for the respective columns can be found in the inventory card. (x1,y1) denote the coordinates of the top left corner of the region, and x2,y2 the bottom right.

For example:

    regions:
        Gegenstand: [0.047,0,1,0.077],
        "Inv. Nr.": [0.047,0.077,0.275,0.135],
  • Download the pero ocr model weights provided by the pero developers (here)[https://nextcloud.fit.vutbr.cz/s/NtAbHTNkZFpapdJ], unzip the file and store the .pt and .pt.cpu files in the pero_resources folder
  • Start the extraction by invoking read_inventory_cards <<config>> <<input_folder>> where <<config>> is the path to the config yaml file described above and <<input folder>> the path to a directory of scanned jpgs of inventory cards to be processed.

Contributing

I'm happy to receive feedback and code contributions. Feel free to open issues or create pull requests.

Metadata

Release files for inventory-card-reader 0.0.16

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

Source distribution (sdist)

Source distribution for inventory-card-reader 0.0.16
File Size Uploaded Provenance
inventory_card_reader-0.0.16.tar.gz 8.2 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for inventory-card-reader 0.0.16
File Interpreter ABI Platform
inventory_card_reader-0.0.16-py3-none-any.whl Python 3 none any Details

Total release size: 17.7 kB

Release files / inventory_card_reader-0.0.16.tar.gz

Download URL inventory_card_reader-0.0.16.tar.gz
Size 8.2 kB
Tags Source
SHA-256 checksum
How to use checksums
d84b7f37c31b658eecdc57e481292e99ca75546ac0e0caf3b1c7f332edc74f92
BLAKE2b-256 checksum
How to use checksums
d57e229341ea14d466205ddc386e71e0d2ef0011a1650c99f67d1ba9b4a37d7a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.3

Release files / inventory_card_reader-0.0.16-py3-none-any.whl

Download URL inventory_card_reader-0.0.16-py3-none-any.whl
Size 9.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6cc67685a13dafc803d3746afb22f700e79e627f25982c1f4d84659c93d7159e
BLAKE2b-256 checksum
How to use checksums
4126627697c482138e2310dea759db4cea20c2b348ef3cec23f71b2330761d24
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.3

Security for inventory-card-reader 0.0.16

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.

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