Skip to content

Shakshi3104/LiTeX

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LiTeX

LiTeX allows use Live Text as the command line tool and output results to a text file.

LiTeX requires macOS 13 to use Live Text (using ImageAnalyzer of VisionKit). On macOS 12, LiTeX uses VNRecognizeTextRequest of Vision.

Usage

OVERVIEW: Command line tool of Live Text

LiTeX allows use Live Text as the command line tool and output results to a text file.

USAGE: litex [<image-filepath>] [--use-vision] [--lang <lang>] [--support-lang]

ARGUMENTS:
  <image-filepath>        An image filepath.

OPTIONS:
  --use-vision            Use VNRecognizeTextRequest of Vision. This option is only
                          available on macOS 13 and newer.
  --lang <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