Skip to content

A command-line interface to control images with ease.

License

Notifications You must be signed in to change notification settings

cosmtrek/imgctl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

imgctl

A command-line interface to control images with ease.

🚀 Installation

You can install imgctl via go:

go install github.com/cosmtrek/imgctl/cmd/imgctl@latest

🔧 Usage

To see the available commands, run imgctl --help.

📜 Extracting text from an image

To extract text from an image using the default OCR service (Tencent), run:

export TENCENT_OCR_SECRET_ID=your_secret_id
export TENCENT_OCR_SECRET_KEY=your_secret_key

imgctl ocr

If the image file path is not set, the program will read the image from the clipboard.

To use a specific image file, run:

imgctl ocr --image /path/to/image.jpg

For a full list of available options for the ocr command, run imgctl ocr --help.

📝 License

This project is licensed under the Apache License 2.0. See the LICENSE file for details.

About

A command-line interface to control images with ease.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published