Skip to content

Commit

Permalink
attention ocr
Browse files Browse the repository at this point in the history
  • Loading branch information
zhang0jhon committed Nov 7, 2019
1 parent ba46051 commit 31647a5
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,25 @@ Scene text recognition attention maps:
<!-- ![](imgs/attention_maps_gt_8601.jpg) -->
<!-- ![](imgs/attention_maps_gt_8622.jpg) -->
<!-- ![](imgs/attention_maps_gt_918.jpg) -->
<!-- ![](imgs/attention_maps_gt_94.jpg) -->
<!-- ![](imgs/attention_maps_gt_94.jpg) -->

## Docker

I upload ICDAR2019 scene text recognition model include text detection and recognition to [__Docker Hub__](https://hub.docker.com/repository/docker/zhang0jhon/demo)
After [__nvidia-docker__](https://github.com/NVIDIA/nvidia-docker) installed, run:

```
docker pull zhang0jhon/demo:ocr
docker run --runtime=nvidia -p 5000:5000 -it zhang0jhon/demo:ocr bash
cd /ocr/ocr
python flaskapp.py
```

Then you can test with your data via browser:

```
$(localhost or remote server ip address):5000
```
![](imgs/web.png)

**Note that the model in docker container is slightly different from the recognition model trained from this updated repository.**
Binary file added imgs/web.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 31647a5

Please sign in to comment.