S
S
Solvio
Search…
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
1
const headers = {
2
'content-type': 'application/json',
3
// Paste your token here
4
'authorization': 'Bearer eyJhbGciOiJSUzI1...'
5
}
6
7
const body = {
8
src: "data:image/png;base64,iVBOR...",
9
// Add other parameters if needed
10
// scaleX : 0.5,
11
// plotType: 'linePlot'
12
}
13
14
fetch("https://developer.trysolvio.ai/api/graph/understanding", {
15
method: 'POST',
16
headers,
17
body: JSON.stringify(body)
18
}).then(res => {
19
return res.json()
20
}).then(data => {
21
console.log(data);
22
})
Copied!
1
import requests
2
import json
3
4
url = "https://developer.trysolvio.ai/api/graph/understanding"
5
6
payload = json.dumps({
7
src : "data:image/png;base64,iVBOR...",
8
# Added other parameters if needed
9
# scaleX : 0.5,
10
# plotType : 'linePlot'
11
})
12
13
headers = {
14
'content-type' : 'application/json',
15
# Add your token here
16
'authorization' : 'Bearer eyJhbGciOiJSUzI1...'
17
}
18
19
response = requests.post(url, headers=headers, data=payload)
20
21
print(response.json())
Copied!
1
JSONObject obj = new JSONObject();
2
// Put your base64 encoded image here
3
obj.put("src", "data:image/png;base64,iVBOR...");
4
// You can put more parameters here
5
// obj.put("scaleX", 1);
6
7
OkHttpClient client = new OkHttpClient();
8
9
MediaType mediaType = MediaType.parse("application/json; charset=utf-8");
10
String body = obj.toString().toRequestBody(mediaType);
11
12
// Make sure to put the correct token in the Authorization header
13
Request request: Request = Request.Builder()
14
.url("https://developer.trysolvio.ai/api/graph/understanding")
15
.addHeader("Authorization", "Bearer eyJhbGciOiJSUzI1...")
16
.post(body)
17
.build();
18
19
Response response = client.newCall(request).execute();
20
21
// You can convert the string to JSONObject if needed
22
System.out.println(response.body().string());
23
Copied!
If you have a feature request, please write to us at [email protected].
Last modified 7mo ago