Context: Using Postman for API Request Handling with Aspose.OMR
I’m currently integrating the Aspose.OMR API and encountering an issue during the recognition phase. Here’s a step-by-step breakdown of what I’ve done so far:
- Account Setup:
- Created an account on the Aspose dashboard.
- Registered an application and obtained the access token.
2.Generate OMR Template
- Sent a
POST
request to the Generate OMR endpoint. - Used base64-encoded source code from the Answer Sheet Barcode Example as the
MarkupFile
. - Request body sample:
{
"MarkupFile": "...",
"Images": {},
"Settings": {
"PaperSize": "A4",
"BubbleColor": "Black",
"FontSize": 14,
"FontFamily": "Arial",
"FontStyle": "Regular",
"Orientation": "Vertical"
}
}
- Retrieve Generated Files
- Received a response with both PNG and OMR data.
- Sample response:
{
"id": "...",
"responseStatusCode": "Ok",
"results": [
{
"type": "Png",
"data": "..."
},
{
"type": "Omr",
"data": "..."
}
],
"error": null
}
- Printed and Captured the Filled Sheet:
- Printed the PNG file, filled in bubbles manually.
- Captured the completed sheet using a mobile phone (flat-lay shot).
- Encoded the photo to base64.
- Sent a
POST
request to the Recognize Template endpoint with the following body:
{
"Images": [ "..." ], // base64 of captured photo
"omrFile": "...", // base64 of initial source code
"outputFormat": "CSV",
"recognitionThreshold": 35
}
- Error:
- Received the following error on calling
GET
Recognize Template:
{
"id": "9930a934-d13b-4856-930b-39d1645a1222",
"responseStatusCode": "Error",
"results": null,
"error": {
"messages": [
"Failed to find all reference points on image! Please make sure they are clearly visible and have enough blank space around them."
],
"warnings": []
}
}
Issue:
Despite following the documentation, I keep getting the same error about missing reference points. I’ve tried with different images (attached below), but no success.
Office lens image
2025_05_05 14_50 Office Lens.jpg (378.3 KB)
iPhone photo
IMG_3278 (1).jpeg (368.0 KB)
Request for Help:
Could you please advise what might be causing the issue? Are there best practices for photo capture (e.g., margin spacing, angle, lighting) that I might be missing?
Note:
I’m a Flutter developer working to integrate this API into a mobile project. Any tips or SDK recommendations related to Flutter would also be appreciated.