Skip to main content

Pyronear Engine is a repository that aims at deploying pyronear

Project description

PyroNear Logo

pyroengine: Deploy Pyronear wildfire detection

The increasing adoption of mobile phones have significantly shortened the time required for firefighting agents to be alerted of a starting wildfire. In less dense areas, limiting and minimizing this duration remains critical to preserve forest areas.

pyrovision aims at providing the means to create a wildfire early detection system with state-of-the-art performances at minimal deployment costs.

pyroengine aims to deploy pyrovision wildfire detection system

Table of Contents

Getting started

Prerequisites

  • Python 3.6 (or more recent)
  • pip

Installation

You can install the package using pypi as follows:

pip install pyroengine

Environment files

The pyroengine/pi_utils/python.env file must contain:

  • WEBSERVER_IP: the IP address of the main rpi once it is installed on site
  • WEBSERVER_PORT: the port exposed on the main rpi for the local webserver

Test Engine

You can test to run a prediction using our Pyronear Engine using the following:

from pyroengine.engine import PyronearEngine
from PIL import Image

engine = PyronearEngine()

im = Image.open("path/to/your/image.jpg").convert('RGB')

prediction = engine.predict(image) 

This is a quick demo without api setup, so without sending the alert

Documentation

The full package documentation is available here for detailed specifications. The documentation was built with Sphinx using a theme provided by Read the Docs.

Contributing

Please refer to CONTRIBUTING if you wish to contribute to this project.

Credits

This project is developed and maintained by the repo owner and volunteers from Data for Good.

License

Distributed under the AGPLv3 License. See LICENSE for more information.

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

pyroengine-0.1.0.tar.gz (21.5 kB view details)

Uploaded Source

Built Distribution

pyroengine-0.1.0-py3-none-any.whl (20.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyroengine-0.1.0.tar.gz
  • Upload date:
  • Size: 21.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.13

File hashes

Hashes for pyroengine-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8aa9a0c87dfc8b56b68f82df04017c407e2757ee309dc06149fb756fc646d366
MD5 87e92d05546ee34c7a058bb5c51624fb
BLAKE2b-256 3c774583b4eb1152e874755f506d756c08953c9d8f36148c0b02fa42649dfa41

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyroengine-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 20.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.13

File hashes

Hashes for pyroengine-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0ec80a16748b85de24ca9f99a5d925c6ba181df4cf232be5945ae2d1603aba6e
MD5 9d8f745738e00af3b0d392d83cc5a9d6
BLAKE2b-256 fa11b582ee98bde5c01ec3b250470796bbb540ceb831c138b9c8bd1fc823cf81

See more details on using hashes here.

Supported by

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