https://github.com/cosmtrek/imgctl
A command-line interface to control images with ease.
https://github.com/cosmtrek/imgctl
cli image ocr
Last synced: over 1 year ago
JSON representation
A command-line interface to control images with ease.
- Host: GitHub
- URL: https://github.com/cosmtrek/imgctl
- Owner: cosmtrek
- License: apache-2.0
- Created: 2023-02-21T12:27:36.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-02-22T00:39:34.000Z (over 3 years ago)
- Last Synced: 2025-03-27T13:12:47.994Z (over 1 year ago)
- Topics: cli, image, ocr
- Language: Go
- Homepage:
- Size: 11.7 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# imgctl
A command-line interface to control images with ease.
## 🚀 Installation
You can install `imgctl` via go:
```bash
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:
```bash
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:
```bash
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](./LICENSE) file for details.