Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wakame1367/gcp_ocr
https://github.com/wakame1367/gcp_ocr
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/wakame1367/gcp_ocr
- Owner: wakame1367
- Created: 2019-11-27T02:00:11.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T03:17:54.000Z (about 2 years ago)
- Last Synced: 2023-03-10T20:56:55.943Z (almost 2 years ago)
- Language: Python
- Size: 774 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gcp_ocr
This repository is **GCP Vision API(Text/Document Detection) Python Sample**## Before you start
**Setup Project** and **export GOOGLE_APPLICATION_CREDENTIALS**, **Install Cloud SDK**
[Cloud Vision API - Detect text in images](https://cloud.google.com/vision/docs/ocr)## Installing
Use [Github - pipenv](https://github.com/pypa/pipenv)
```
git clone https://github.com/wakamezake/gcp_ocr.git
pipenv install
```## How to use
```
python cli.py path/to/file or gcs://path/to/file
``````
```
## Detection results
|image_description|text_detection|document_text_detection|
|:---:|:---:|:---:|
|original|![](https://raw.githubusercontent.com/wakamezake/gcp_ocr/master/sample/1_eOkU7BNyO5Avh1xu62FxQw.png)|![](https://raw.githubusercontent.com/wakamezake/gcp_ocr/master/sample/1_eOkU7BNyO5Avh1xu62FxQw.png)|
|detection_block|![](https://raw.githubusercontent.com/wakamezake/gcp_ocr/master/sample/text_detection_block.jpg)|![](https://raw.githubusercontent.com/wakamezake/gcp_ocr/master/sample/document_detection_block.jpg)|
|detection_paragraph|![](https://raw.githubusercontent.com/wakamezake/gcp_ocr/master/sample/text_detection_para.jpg)|![](https://raw.githubusercontent.com/wakamezake/gcp_ocr/master/sample/document_detection_para.jpg)|
|detection_word|![](https://raw.githubusercontent.com/wakamezake/gcp_ocr/master/sample/text_detection_word.jpg)|![](https://raw.githubusercontent.com/wakamezake/gcp_ocr/master/sample/document_detection_word.jpg)|
|detection_symbol|![](https://raw.githubusercontent.com/wakamezake/gcp_ocr/master/sample/text_detection_symbol.jpg)|![](https://raw.githubusercontent.com/wakamezake/gcp_ocr/master/sample/document_detection_symbol.jpg)|