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_no_img: 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.6.tar.gz (5.8 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.6-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: trissotech-0.0.6.tar.gz
  • Upload date:
  • Size: 5.8 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.6.tar.gz
Algorithm Hash digest
SHA256 47d4440760fb0772c9f08fd6238edc76cefc68bed04b84717f61d8fe7e7ef7b6
MD5 8dba2ec3c710f9aab32f2650a27b6310
BLAKE2b-256 87e7e0f601df4870269656e74341f8264cfb59519f0697e41e145f54e76fe85b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: trissotech-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 5.1 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 0eed88e5f3afb3addbbda57aaa650eb23ef14fdd6fd3d93cb48d5aa03dc351ba
MD5 767deaa2d3acc23a3c73174644ae7d34
BLAKE2b-256 0fd4da3e3f364dfccaca909b1a8e5a6bc24f82fc4e7d39203d7e0ad506d0371f

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