Trissotech library
Project description
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
47d4440760fb0772c9f08fd6238edc76cefc68bed04b84717f61d8fe7e7ef7b6
|
|
| MD5 |
8dba2ec3c710f9aab32f2650a27b6310
|
|
| BLAKE2b-256 |
87e7e0f601df4870269656e74341f8264cfb59519f0697e41e145f54e76fe85b
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0eed88e5f3afb3addbbda57aaa650eb23ef14fdd6fd3d93cb48d5aa03dc351ba
|
|
| MD5 |
767deaa2d3acc23a3c73174644ae7d34
|
|
| BLAKE2b-256 |
0fd4da3e3f364dfccaca909b1a8e5a6bc24f82fc4e7d39203d7e0ad506d0371f
|