Image processor API (0.2)

Download OpenAPI specification:Download

API Support: support@kisanhub.com

The Image processor project is responsible for processing satellite imagery into a variety of downstream products, including vegetative indices (such as NDVI) physical parameters for modelling (LAI) and quality estimation of images.

image

Generates images

Generate an NDVI image

Request Body schema: application/json
colors
object (ColorSchema)

Associative array for coloring images with hex codes as keys and bin range as values

image_url
required
string

Responses

200

OK

400

Bad request

post /ndvi/image
/ndvi/image

Request samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "colors":
    {
    },
  • "image_url": "gs://clip-scaling/techtalk-test/S2/input/2018-10-19.tif"
}

Generate an IRECI image

Request Body schema: application/json
colors
object (ColorSchema)

Associative array for coloring images with hex codes as keys and bin range as values

image_url
required
string

Responses

200

OK

400

Bad request

post /ireci/image
/ireci/image

Request samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "colors":
    {
    },
  • "image_url": "gs://clip-scaling/techtalk-test/S2/input/2018-10-19.tif"
}

Generate an RGB image

Request Body schema: application/json
image_url
string

Responses

200

OK

400

Bad request

post /rgb/image
/rgb/image

Request samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "image_url": "gs://clip-scaling/techtalk-test/S2/input/2018-10-19.tif"
}

stats

Generates statistics

Generate NDVI statistics for a given image

Request Body schema: application/json
image_url
string

Responses

200

OK

400

Bad request

post /ndvi/stats
/ndvi/stats

Request samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "image_url": "gs://clip-scaling/techtalk-test/S2/input/2018-10-19.tif"
}

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "median": 0.3,
  • "mean": 0.4
}

Generate IRECI statistics for a given image

Request Body schema: application/json
image_url
string

Responses

200

OK

400

Bad request

post /ireci/stats
/ireci/stats

Request samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "image_url": "gs://clip-scaling/techtalk-test/S2/input/2018-10-19.tif"
}

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "median": 0.3,
  • "mean": 0.4
}

Generate image quality statistics for a given image

Request Body schema: application/json
image_url
string

Responses

200

OK

400

Bad request

post /quality/stats
/quality/stats

Request samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "image_url": "gs://clip-scaling/techtalk-test/S2/input/2018-10-19.tif"
}

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "percent_cloudfree": 30.4
}