Gauss Endpoint

Aperta
#4 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@ztnel ci sta già lavorando.

Dal 30/7/2021.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

endpoint model

Description

Endpoint

/v1/gauss/<id:int>
GET endpoint for retrieving image measurements. Will return the gauss resource as a model when available. This endpoint must support polling and so if the algorithm is still in progress the endpoint should return status code 202 Accepted with a status indicator in the header. see https://benramsey.com/blog/2008/04/http-status-201-created-vs-202-accepted/.

Model

Gauss models will have the following fields once populated in mongo:

{
  "id": "dskladnasdknsldnal",
  "capture_id": "49uoujndklsand",
  "created_at": "2021-07-11",
  "updated_at": "2021-07-11",
  "elapsed": 23.4,
  "threshold": 56,
  "gaussian_blur": 45,
  "erosion_iterations": 2,
  "dialation_iterations": 5,
  "apexes": [
    {
      "init": {
        "amplitude": 250,
        "sigma_x": 10,
        "sigma_y": 10,
        "mu_x": 230,
        "mu_y": 230
      },
      "opt": {
        "amplitude": 200,
        "sigma_x": 8.2,
        "sigma_y": 7.6,
        "mu_x": 234,
        "mu_y": 243
      }
    },
    {
      "init": {
        "amplitude": 250,
        "sigma_x": 10,
        "sigma_y": 10,
        "mu_x": 230,
        "mu_y": 230
      },
      "opt": {
        "amplitude": 200,
        "sigma_x": 8.2,
        "sigma_y": 7.6,
        "mu_x": 234,
        "mu_y": 243
      }
    }
  ]
}
Lingua principale
Python
Stelle
0
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di LEAP-Systems/api

Tutte le issue di LEAP-Systems/api

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.