Skip to main content

Trissotech library

Project description

TT

Trissotech

En esta librería se encuentran las utilidades de la empresa Trissotech

pip install Trissotech

Trissotech.API:

  • yolo_fire_prediction: Función para detectar incendios en imágenes utilizando un modelo YOLO.

- yolo_fire_prediction()

Para ejecutar este proyecto, se deben seguir los siguientes pasos:

Ejemplo de aplicación

Código:

# URL de la API
url_endpoint = 'endpoint:puerto'

# Ruta de la imagen que deseas enviar
image_path_fire = '/path/al/archivo.jpg'

# Ruta donde deseas recibir la imagen procesada
image_path_download = '/path/a/carpeta'

predicciones, posiciones = yolo_fire_prediction(url_endpoint, image_path_fire, image_path_download, save_img = True, verbose=True)

Esto devuelve por consola:

>> Cargando quema_controlada132.jpg
>> El servidor recibió la imagen correctamente. Procesando... Id de tarea: 8008e8b8-bcfd-4dd3-b648-5a012e909bf2
>> Obteniendo imagen procesada, espere
>> Imagen guardada en: ../notebooks/quema_controlada132.jpg_predicted_at_19_58_13.jpg
>> Imagen procesada con éxito. 19:58:13
>> Detecciones realizadas: Detección: Fuego
>> [['humo', 11, 284, 210, 124], ['humo', 72, 213, 925, 214], ['humo', 999, 352, 97, 76], ['humo', 105, 346, 123, 70]]

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

trissotech-0.0.5.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

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

trissotech-0.0.5-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file trissotech-0.0.5.tar.gz.

File metadata

  • Download URL: trissotech-0.0.5.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for trissotech-0.0.5.tar.gz
Algorithm Hash digest
SHA256 5ff5294a778a3c27de2c5fd0f2f46e2b21919a23cfa5d6f2f456e70d3c9b6cba
MD5 31eeae18651f80947067327198e22d5b
BLAKE2b-256 631b68189648f7c5d08cacd71ae65b460724b124e5f93fcc0487e03f10b1da1c

See more details on using hashes here.

File details

Details for the file trissotech-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: trissotech-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for trissotech-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 aeb74586c548213b054748ef683a699cb36fbfc458594c7e4b8115baf2a6cb23
MD5 ad4ade7b6c92e0424d4b22bc46fe8342
BLAKE2b-256 e73568d742d83304c65615f7a31f6da0df8f154bd5d6de4c2663185a550b0985

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