pyronear / pyronear/pyro-envdev

[Draft] pyro-engine services and fake camera services are not up to date

Open
#29 0 comments 0 reactions 1 assignee View on GitHub

@fe51 is already working on this.

Since Nov 16, 2025.

enhancement
Dominant language
Jupyter Notebook
Stars
1
Forks
3
PR merge metrics
No merged PRs in 30d

Description

Pitch

pyro-engine has evolved and and this development environment does not reflect it.

The services replicating pyro-engine and cameras interactions are no longer relevant and, above all, do not allow new features to be developed.

We want it to be possible to work on pyro-engine developments without having an IP camera at home, and therefore relying on pyro-envdev.

What is done currently

Two Docker services, reolinkdev1 and reolinkdev2, simulate IP cameras that the Docker service pyro-engine would query to retrieve images.
See docker-compose file

What must be done

Take into account the new process of the pyro-engine repository.

See docker-compose file : This consists of two services:

  • reolink-api: the API responsible for interacting with the cameras (capturing images, focusing, moving PTZ cameras, etc.)

  • engine: which relies on reolink-api to interact with the cameras, in particular to retrieve images, perform detection, and generate alerts (and therefore interact with pyro-api)

  • Therefore, within pyro-envdev, develop a service that replicates reolink-api (camera-mock-api), initially in a simplified manner, i.e., providing an endpoint constructed in the same way as the reolink-api endpoint, allowing an image to be retrieved.

  • For any image requested, this endpoint will return a image taken from a folder (and shall loop in images in this directory).

  • The directory must be in a volume that makes it easy to change the images returned.

  • Next, the service engine must be set up so that it queries camera-mock-api to retrieve images and connects it correctly to the API (see pyro-engine doc -> to be updated)

  • This API must reproduce certain endpoints required for the engine to function and therefore, initially, systematically return the elements that enable proper functioning -> to be detailed.

  • Finally, it must be possible to launch only the reolink-api-mock service in order to work on new features on pyro-engine : updates makefile consequently and document the readme accordingly.

Happy to discuss it !

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.