https://github.com/bhavyac16/handwriting-recognition
Python module to use Micrsoft Azure's Computer Vision API for handwriting recognition
https://github.com/bhavyac16/handwriting-recognition
computer-vision computer-vision-api handwriting-recognition microsoft-azure-api
Last synced: about 2 months ago
JSON representation
Python module to use Micrsoft Azure's Computer Vision API for handwriting recognition
- Host: GitHub
- URL: https://github.com/bhavyac16/handwriting-recognition
- Owner: BhavyaC16
- License: gpl-3.0
- Created: 2019-06-17T18:17:21.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-06-18T06:20:12.000Z (about 7 years ago)
- Last Synced: 2025-02-26T02:44:30.595Z (over 1 year ago)
- Topics: computer-vision, computer-vision-api, handwriting-recognition, microsoft-azure-api
- Language: Python
- Homepage:
- Size: 101 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Handwriting-Recognition
This is a python module to use Micrsoft Azure's Computer Vision API for handwriting recognition.
The Computer Vision API of Microsoft Cognitive Services is a REST based service. Images in JPEG/PNG/BMP format can be submitted, with dimensions between 50x50 to 3200x3200 pixels, and a file size smaller than 4 MB.
It returns information about the visual content in the image as a JSON object.
## Description
```
def processRequest(json,data,headers,params):
'''
sending request to Microsoft Azure API and returning the
status-code and Operation-Location header, which gives the
address to obtain the result
'''
```
```
def OCRTextResult(operation_location,headers):
'''
function to access the text result, i.e., the json object
which is obtained using the Operation-Location header
'''
```
```
def processImage(path):
'''
function that takes the path to the image as a parameter, and
prints the handwritten text recognized.
'''
```
## Sample Input and Output
### Sample Image 1:

### Output
```
The quick brown fox jumps over the lazy dog.
```
### Sample Image 2:

### Output
```
0 1 2 3 4 5 6 7 8 9
```