Skip to main content

A package to identify dangerous non baby-proof items.

Project description

SafeScanEngine

Overview

SafeScanEngine is a Python Library designed for identifying dangerous (non baby-proof) from a list of images. The engine was design to be an interface for more than one image processing solvers. For the time being, YoloV8 was implemented

Key Features

  • Can identify both lethal and non-lethal objects.

Lethal:

  • Electrical outlets
  • Plastic bags (to be implemented)
  • Cables/cords of any kind (to be implemented)

Non-lethal:

  • Sharp corners

Requirements

  • Python 3.7 or higher
  • Pillow

Installation

To install, run:

pip install SafeScanEngine

Usage

from SafeScanEngine import YoloV8Resolver

electrical_outlet_resolver = YoloV8Resolver(images=["img_1.jpg", "img_no_danger.jpg", "img_2.jpg"])
results = electrical_outlet_resolver.return_detections()

# Process results list
for result in results:
    boxes = result["boxes"]  # Boxes as list for bbox outputs in json serializable form
    original_shape = result["original_shape"]  # Input image dimensions
    labels = result["names"]  # Labels detected (e.g. ElectricalOutlet) 
    result_image_with_label = result["encoded_image"]  # Result image (with boxes) encoded in base64
    was_danger_detected = result["danger_found"]  # Boolean always available even if nothing was detected (e.g. False)

License

MIT License. See LICENSE for details.

Contact

Reach out at dragosjosan@gmail.com for support or inquiries.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

SafeScanEngine-0.1.0.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

SafeScanEngine-0.1.0-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file SafeScanEngine-0.1.0.tar.gz.

File metadata

  • Download URL: SafeScanEngine-0.1.0.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.13

File hashes

Hashes for SafeScanEngine-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e97b845e29fd8b0663b149737894e4fcb12d98df1b2d101577e18a736d4ba05b
MD5 c76bcc35bf6ff4a96e86f1f490b4e99f
BLAKE2b-256 d73b5a1876c5e508cd75b0a2749521983395029a007474bfe0e808561e15824b

See more details on using hashes here.

File details

Details for the file SafeScanEngine-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: SafeScanEngine-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.13

File hashes

Hashes for SafeScanEngine-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6c0e893d967dce490f06f56456138f924799175c5cdf7dd6b1e2b5e8b0e220c6
MD5 e281e3ae9362da2c29ebc4499ff75488
BLAKE2b-256 e54a79627500c39a6f14d9d5b2eb4df7fb497fc34613c5176352e55e1b20324d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page