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 (to be implemented)

Requirements

  • Python 3.7 or higher
  • Pillow

Installation

To install, run:

pip install SafeScanEngine

Usage

from safe_scan_engine import YoloV8Resolver

model = YoloV8Resolver(images=["img_1.jpg", "img_no_danger.jpg", "img_2.jpg"])
results = model.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.2.0.tar.gz (521.7 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.2.0-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for SafeScanEngine-0.2.0.tar.gz
Algorithm Hash digest
SHA256 2e0e0421c67efa1c560a055d4c100c60ec8763e84b2518b28cdb7aba5a49238b
MD5 80d86c787c722d00bd95ac172b372c7b
BLAKE2b-256 3cef76aefc5d38777b8360e57d623f10c7554dccffb0ba6a5aaeff0825428be5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: SafeScanEngine-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 3.4 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f7ba427703c590b1c9dcc0670e13f4ef422818b09bd6112c70af3c2a8be27927
MD5 b6f656ddf1ab3b62dac55b08ef88480e
BLAKE2b-256 2a107cf1c677fffeec99e20c17c95994c05185e85bb1077455f5826be52b1f07

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