https://github.com/asticode/go-astiocr
https://github.com/asticode/go-astiocr
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/asticode/go-astiocr
- Owner: asticode
- License: mit
- Created: 2018-05-06T10:14:17.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-21T08:13:46.000Z (over 7 years ago)
- Last Synced: 2025-08-06T18:57:48.583Z (6 months ago)
- Language: Go
- Size: 12.7 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Installation
- [install tensorflow](https://www.tensorflow.org/install/)
- [install the tensorflow object detection API](https://github.com/tensorflow/models/blob/master/research/object_detection/g3doc/installation.md)
- install `astiocr`
```
$ go get -u github.com/asticode/go-astiocr/...
```
# Train your model
For the next commands we assume you are in `$GOPATH/src/github.com/asticode/go-astiocr`
## Set up configuration
Copy `astiocr/local.toml.dist` to `astiocr/local.toml` and replace the desired values.
## Gather data
Then run:
```
$ go run astiocr/main.go gather -v -c astiocr/local.toml
```
or if `make` is installed on your system:
```
$ make gather
```
## List available trained models
Run:
```
$ go run astiocr/main.go list -v -c astiocr/local.toml
```
or if `make` is installed on your system:
```
$ make list
```
## Configure the model
Run:
```
$ go run astiocr/main.go configure -v -c astiocr/local.toml -n
```
## Train the model
Move to your output path and run either `scripts/train.bat` or `scripts/train.sh` depending on your platform.