pyronear / pyronear/pyro-api

Add Camera Elevation Field to Distinguish Relative Height from Absolute Altitude

Open
#579 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
29
Forks
14
Avg merge
9d 1h
Merged PRs (30d)
5

Description

Pitch

Introduce the concept of camera elevation.

Currently, the camera's altitude is stored as a single value, which represents the sum of:

  • the ground point altitude
  • the camera height above ground

However, for one frame localization and coverage simulation, the required data is the camera height relative to the ground, not the absolute altitude.

Requested changes

  • Add a new field (elevation ? ) to the cameras table.
  • Store the camera height relative to the ground in this field.
    Return this information in camera API responses, alongside existing CameraRead(?) fields.

it will allow systems that depend on relative camera positioning to use the correct height value, while preserving the existing absolute altitude data if needed.

Thanks a lot, happy to discuss it :)

Contributor guide

Open the contributing guide

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.

Research direction

Start by locating the cameras table definition and the CameraRead response fields, then trace how camera records are created and returned by the API. Add a relative camera-height elevation value while preserving the existing absolute altitude, and verify that camera API responses expose both values.

Written by the indexing model from the issue text.

Assessment

Tech stack
fastapi, postgresql, python
Domain
api, backend, database
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
64/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.