Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gauss Endpoint #4

Open
ztnel opened this issue Jul 30, 2021 · 0 comments
Open

Gauss Endpoint #4

ztnel opened this issue Jul 30, 2021 · 0 comments
Assignees
Labels
endpoint endpoint creation or modification model database model change

Comments

@ztnel
Copy link
Member

ztnel commented Jul 30, 2021

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
      }
    }
  ]
}
@ztnel ztnel added endpoint endpoint creation or modification model database model change labels Jul 30, 2021
@ztnel ztnel self-assigned this Jul 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
endpoint endpoint creation or modification model database model change
Projects
None yet
Development

No branches or pull requests

1 participant