S
S
Solvio
Search
⌃K

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.
Solvio Graph Understanding.postman_collection.json
284KB
Code
Download
post
https://developer.trysolvio.ai/api
/graph/understanding
Graph Understanding

Code Samples

JavaScript
Python
Java
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);
})
import requests
import json
url = "https://developer.trysolvio.ai/api/graph/understanding"
payload = json.dumps({
src : "data:image/png;base64,iVBOR...",
# Added other parameters if needed
# scaleX : 0.5,
# plotType : 'linePlot'
})
headers = {
'content-type' : 'application/json',
# Add your token here
'authorization' : 'Bearer eyJhbGciOiJSUzI1...'
}
response = requests.post(url, headers=headers, data=payload)
print(response.json())
JSONObject obj = new JSONObject();
// Put your base64 encoded image here
obj.put("src", "data:image/png;base64,iVBOR...");
// You can put more parameters here
// obj.put("scaleX", 1);
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json; charset=utf-8");
String body = obj.toString().toRequestBody(mediaType);
// Make sure to put the correct token in the Authorization header
Request request: Request = Request.Builder()
.url("https://developer.trysolvio.ai/api/graph/understanding")
.addHeader("Authorization", "Bearer eyJhbGciOiJSUzI1...")
.post(body)
.build();
Response response = client.newCall(request).execute();
// You can convert the string to JSONObject if needed
System.out.println(response.body().string());
If you have a feature request, please write to us at [email protected].