modulepackage
2.0.0+incompatible
Repository: https://github.com/ddddddo/extxt.git
Documentation: pkg.go.dev
# README
Description
Implemented Google Cloud Visoin API command with go. Extracts text from the specified image file.
Install
go get github.com/ddddddO/extxt/cmd/extxt
Usage
As a CLI
- Install
extxt
command. - Create a service account for cloud vison.
export GOOGLE_APPLICATION_CREDENTIALS=/path/to/service_account_key_json
- Please execute
extxt -i /path/to/local/src -o /path/to/dest
. Or-i http://path/to/src
or-i gs://path/to/src
.
As a Server
- Install
extxt
command. - Create a service account for cloud vison.
export GOOGLE_APPLICATION_CREDENTIALS=/path/to/service_account_key_json
- Set the following for basic authentication.
export BASIC_AUTH_NAMES=user_name(,user_name2,user_name3,...)
export BASIC_AUTH_PASSWORDS=password(,password2,password3,...)
- Please execute
extxt server
. - Enter the
http://localhost:8080
in your browser.