Skip to main content

barberchop

Segments, classifies and extracts barcode images from larger images containing one or more barcodes.

Installation

Use the package manager pip to install barberchop.

pip install barberchop

Usage

import cv2
from Barberchop.ExtractionService import BarberchopYoloService

service = BarberchopYoloService()
img = cv2.imread('barberchop/src/test.png')
results = service.extract(img)

print(f"Found {len(results)} barcodes")
for barcode in results:
    cv2.imshow("barcode", barcode.image)
    cv2.waitKey(1000)

Roadmap

  • Object Detection based Extraction using Yolov5
  • Image Segmentation based Extraction

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

Copyright 2021 Sparkfish LLC

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Metadata

Release files for Barberchop 1.0.1

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

Source distribution (sdist)

Source distribution for Barberchop 1.0.1
File Size Uploaded Provenance Actions
Barberchop-1.0.1.tar.gz 4.0 kB Without provenance Details for Barberchop-1.0.1.tar.gz

Built distribution (wheel)

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

Total release size: 8.9 kB

Release files / Barberchop-1.0.1.tar.gz

Download URL Barberchop-1.0.1.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
6126466b418e982d5f3dc329a58b789bbe76a22457bd4365d1408412a0730efa
BLAKE2b-256 checksum
How to use checksums
6053226a77a2dc1e63cf0d83fbad2fe63a3a000c5c8adf9d916edf6638b0a749
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.0

Release files / Barberchop-1.0.1-py3-none-any.whl

Download URL Barberchop-1.0.1-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6ac6194933f8a0d8e4e5af88623705f5af1ef353a01a730b7259b9b631c26d61
BLAKE2b-256 checksum
How to use checksums
eec3fca168a2aa86c38ea4846d332f3bad10406a8b0a61ff9221e6e23d1449f7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.0

Security for Barberchop 1.0.1

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.1 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