-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tabscanner Receipt OCR (Independent Publisher) #3756
Open
tokyoben
wants to merge
6
commits into
microsoft:dev
Choose a base branch
from
tokyoben:feature/tabscanner-receipt-ocr
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
401089e
adds files for Tabscanner connector
9d721d0
updates metadata
9f3b3f3
Delete independent-publisher-connectors/.DS_Store
tokyoben 3d3bba3
correct file struture
32d65ce
Merge branch 'feature/tabscanner-receipt-ocr' of github.com:tokyoben/…
de00d74
corrects readme description, shortens parameter descriptions and upda…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
213 changes: 213 additions & 0 deletions
213
independent-publisher-connectors/Tabscanner Receipt OCR/apiDefinition.swagger.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,213 @@ | ||
{ | ||
"swagger": "2.0", | ||
"info": { | ||
"title": "Tabscanner Receipt OCR", | ||
"version": "1.0.0", | ||
"description": "The Tabscanner API provides powerful Optical Character Recognition (OCR) technology to extract structured data from images of receipts with high accuracy.\nDesigned for developers and businesses, this API simplifies the process of digitizing receipts, enabling seamless integration with financial systems, expense tracking platforms, and data analytics solutions.\n", | ||
"contact": { | ||
"name": "Ben Smith", | ||
"url": "https://github.com/tokyoben", | ||
"email": "[email protected]" | ||
} | ||
}, | ||
"host": "api3.tabscanner.com", | ||
"basePath": "/", | ||
"schemes": [ | ||
"https" | ||
], | ||
"paths": { | ||
"/api/2/processbase64": { | ||
"post": { | ||
"tags": [ | ||
"default" | ||
], | ||
"summary": "Submit a receipt for processing", | ||
"description": "Submit JSON data to the Tabscanner system.", | ||
"operationId": "Process", | ||
"consumes": [ | ||
"application/json" | ||
], | ||
"produces": [ | ||
"application/json" | ||
], | ||
"parameters": [ | ||
{ | ||
"name": "body", | ||
"in": "body", | ||
"required": true, | ||
"schema": { | ||
"type": "object", | ||
"properties": { | ||
"image": { | ||
"type": "string", | ||
"description": "Base64-encoded receipt image. Can accept JPG and PNG file formats.", | ||
"example": "data:image/jpeg;base64,/9j/4AAQ..." | ||
}, | ||
"region": { | ||
"type": "string", | ||
"description": "The 2-alpha ISO country code of the supported country.", | ||
"example": "hk" | ||
}, | ||
"documentType": { | ||
"type": "string", | ||
"description": "Accepts a string value. Must be receipt, invoice or auto.", | ||
"example": "receipt" | ||
}, | ||
"defaultDateParsing": { | ||
"type": "string", | ||
"description": "Accepts a string value. Must be m/d or d/m.", | ||
"example": "m/d" | ||
}, | ||
"decimalPlaces": { | ||
"type": "string", | ||
"description": "Accepts an integer value should be 0, 1 or 3.", | ||
"example": 2 | ||
} | ||
} | ||
} | ||
} | ||
], | ||
"responses": { | ||
"200": { | ||
"description": "Successful response", | ||
"schema": { | ||
"$ref": "#/definitions/Process" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"/api/result/{token}": { | ||
"get": { | ||
"tags": [ | ||
"default" | ||
], | ||
"summary": "Retrieve the result of a receipt image submitted for processing", | ||
"description": "This operation returns the result of the processed receipt image.", | ||
"operationId": "Result", | ||
"produces": [ | ||
"application/json" | ||
], | ||
"parameters": [ | ||
{ | ||
"name": "token", | ||
"in": "path", | ||
"required": true, | ||
"type": "string", | ||
"description": "Unique token to identify the processing request." | ||
} | ||
], | ||
"responses": { | ||
"200": { | ||
"description": "Successful response", | ||
"schema": { | ||
"$ref": "#/definitions/Result" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"definitions": { | ||
"Process": { | ||
"type": "object", | ||
"properties": { | ||
"message": { | ||
"type": "string", | ||
"example": "SUCCESS: Image uploaded successfully" | ||
}, | ||
"status": { | ||
"type": "string", | ||
"example": "success" | ||
}, | ||
"status_code": { | ||
"type": "integer", | ||
"format": "int32", | ||
"example": 2 | ||
}, | ||
"token": { | ||
"type": "string", | ||
"example": "WdoHFx2fojq9b0Qd" | ||
}, | ||
"success": { | ||
"type": "boolean", | ||
"example": true | ||
}, | ||
"code": { | ||
"type": "integer", | ||
"format": "int32", | ||
"example": 200 | ||
}, | ||
"duplicate": { | ||
"type": "boolean", | ||
"example": true | ||
}, | ||
"duplicateToken": { | ||
"type": "string", | ||
"example": "kV96aAhXeuE8iDkO" | ||
} | ||
} | ||
}, | ||
"Result": { | ||
"type": "object", | ||
"properties": { | ||
"URL": { | ||
"type": "string", | ||
"example": "TARGET.COM" | ||
}, | ||
"tax": { | ||
"type": "integer", | ||
"format": "int32", | ||
"example": 0 | ||
}, | ||
"tip": { | ||
"type": "integer", | ||
"format": "int32", | ||
"example": 0 | ||
}, | ||
"url": { | ||
"type": "string", | ||
"example": "target.com" | ||
}, | ||
"total": { | ||
"type": "number", | ||
"example": 28.1 | ||
}, | ||
"address": { | ||
"type": "string", | ||
"example": "West Hollywood, Santa Monica Blvd, West Hollywood, CA 90046" | ||
}, | ||
"date": { | ||
"type": "string", | ||
"format": "date-time" | ||
} | ||
} | ||
} | ||
}, | ||
"securityDefinitions": { | ||
"api_key": { | ||
"type": "apiKey", | ||
"in": "header", | ||
"name": "apikey" | ||
} | ||
}, | ||
"security": [ | ||
{ | ||
"api_key": [] | ||
} | ||
], | ||
"x-ms-connector-metadata": [ | ||
{ | ||
"propertyName": "Website", | ||
"propertyValue": "https://www.tabscanner.com" | ||
}, | ||
{ | ||
"propertyName": "Privacy policy", | ||
"propertyValue": "https://tabscanner.com/privacy-policy/" | ||
}, | ||
{ | ||
"propertyName": "Categories", | ||
"propertyValue": "Data;Productivity" | ||
} | ||
] | ||
} |
23 changes: 23 additions & 0 deletions
23
independent-publisher-connectors/Tabscanner Receipt OCR/apiProperties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"properties": { | ||
"connectionParameters": { | ||
"apikey": { | ||
"type": "securestring", | ||
"uiDefinition": { | ||
"displayName": "API Key", | ||
"description": "The API Key for this api", | ||
"tooltip": "Provide your API Key", | ||
"constraints": { | ||
"required": "true" | ||
} | ||
} | ||
} | ||
}, | ||
"iconBrandColor": "#da3b01", | ||
"capabilities": [ | ||
"actions" | ||
], | ||
"publisher": "Ben Smith", | ||
"stackOwner": "Tabscanner" | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
independent-publisher-connectors/Tabscanner Receipt OCR/readme.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Tabscanner Receipt OCR | ||
The Tabscanner API service processes an image of a receipt and returns the extracted data. | ||
|
||
## Publisher: Ben Smith | ||
|
||
## Prerequisites | ||
An API Key is Required. Please create an account at [Tabscanner](https://tabscanner.com) to get your API key. | ||
|
||
## Supported Operations | ||
### Submit a receipt image for processing | ||
Upload a receipt image in base64 format for transcription. | ||
|
||
### Retrieve the result of a processed receipt image | ||
The result contains the receipt transcription. | ||
|
||
## Obtaining Credentials | ||
An API Key is Required. Please create an account at [Tabscanner](https://tabscanner.com) to get your API key. | ||
|
||
## Known Issues and Limitations | ||
No known issues and limitations. |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please refer the below link and update/add all the required sections.
https://github.com/microsoft/PowerPlatformConnectors/blob/dev/templates/Independent%20Publisher/readme.md