Categorygithub.com/ddddddO/extxt
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

  1. Install extxt command.
  2. Create a service account for cloud vison.
  3. export GOOGLE_APPLICATION_CREDENTIALS=/path/to/service_account_key_json
  4. 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

  1. Install extxt command.
  2. Create a service account for cloud vison.
  3. export GOOGLE_APPLICATION_CREDENTIALS=/path/to/service_account_key_json
  4. Set the following for basic authentication.
    • export BASIC_AUTH_NAMES=user_name(,user_name2,user_name3,...)
    • export BASIC_AUTH_PASSWORDS=password(,password2,password3,...)
  5. Please execute extxt server.
  6. Enter the http://localhost:8080 in your browser.

# Packages

No description provided by the author
No description provided by the author

# Functions

Run is ...
RunByServer is ...