Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Shakshi3104/LiTeX
Live Text Command Line Tool
https://github.com/Shakshi3104/LiTeX
command-line-tool coreml-vision live-text macos swift visionkit
Last synced: 4 days ago
JSON representation
Live Text Command Line Tool
- Host: GitHub
- URL: https://github.com/Shakshi3104/LiTeX
- Owner: Shakshi3104
- License: mit
- Created: 2022-11-13T11:47:09.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-07T10:56:02.000Z (over 1 year ago)
- Last Synced: 2024-08-02T16:10:01.437Z (3 months ago)
- Topics: command-line-tool, coreml-vision, live-text, macos, swift, visionkit
- Language: Swift
- Homepage:
- Size: 2.33 MB
- Stars: 30
- Watchers: 3
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# LiTeX
**LiTeX** allows use [Live Text](https://support.apple.com/en-us/HT212630) as the command line tool and output results to a text file.
LiTeX requires **macOS 13** to use Live Text (using [ImageAnalyzer of VisionKit](https://developer.apple.com/documentation/visionkit/imageanalyzer)).
On macOS 12, LiTeX uses [VNRecognizeTextRequest of Vision](https://developer.apple.com/documentation/vision/vnrecognizetextrequest).
## Usage
```sh
OVERVIEW: Command line tool of Live TextLiTeX allows use Live Text as the command line tool and output results to a text file.
USAGE: litex [] [--use-vision] [--lang ] [--support-lang]
ARGUMENTS:
An image filepath.OPTIONS:
--use-vision Use VNRecognizeTextRequest of Vision. This option is only
available on macOS 13 and newer.
--lang Set recognition language. If you want to check supported
languages, run `litex --support-lang`. This option is for
VNRecognizeTextRequest. (default: ja-JP)
--support-lang Show supported languages.
--version Show the version.
-h, --help Show help information.
```## Installation
1. Download the latest version binary file
2. Open terminal app and move to the directory contating the "litex" file
3. Add the executable permission to the file: `chmod +x litex`
4. Move the file to the /usr/local/bin directory: `mv litex /usr/local/bin`## Requirements
- macOS 12.0+
- Xcode 14.1+## Swift Package Dependencies
- [Swift Argument Parser](https://github.com/apple/swift-argument-parser) 1.1.0+