Graph Understanding

Understand hand-drawn and printed graphs. Currently, we support scatter plots and line charts (lines and parabolas).

Get started with Solvio's Graph Understanding API easily by downloading the Postman Collection attached below. To learn more about Postman Collections click here.

Graph Understanding

POST https://developer.trysolvio.ai/api/graph/understanding

Headers

Request Body

{
  "error": {
    "id": "string",
    "description": "string"
  },
  "imagePath": "string",
  "graphCharacteristics": {
    "blank": false,
    "grid": false,
    "title": "",
    "xLabel": "",
    "yLabel": "",
    "scaleX": 1,
    "scaleY": 1,
    "handDrawn": false,
    "plotType": "string"
  },
  "functionCharacteristics": {
    "function": "string",
    "xIntersection": false,
    "yIntersection": false,
    "quadrants": [],
    "equation": {
      "ascii" : "",
      "latex" : ""
    },
    "points": [],
    "coordinates": [],
    "parameters": {}
  }
}

Code Samples

const headers = {
    'content-type': 'application/json',
    // Paste your token here
    'authorization': 'Bearer eyJhbGciOiJSUzI1...'
}

const body = {
    src: "data:image/png;base64,iVBOR...",
//  Add other parameters if needed
//  scaleX : 0.5,
//  plotType: 'linePlot' 
}

fetch("https://developer.trysolvio.ai/api/graph/understanding", {
    method: 'POST',
    headers,
    body: JSON.stringify(body)
}).then(res => {
    return res.json()
}).then(data => {
    console.log(data);
})

If you have a feature request, please write to us at hello@trysolvio.ai.

Last updated