Anchor is a command-line application, designed to be used with PowerShell
/ Command Prompt
in Windows, Terminal
in MacOS or any Linux
shell.
It should be added to the system’s PATH
environmental variable.
Steps
1. Download and unpack
- Download the latest distribution.
- Unpack the
zip
ortar.gz
into a directory of one’s choosing.
2. Install a Java Runtime Environment (JRE) if necessary.
JRE version 8 or above is required. This is often already present. If not, Oracle offers a free download.
3. Set up environment variables
- Add Anchor’s
bin/
subdirectory of the anchor-distribution toPATH
.
Please use the standard ways to set environment variables, e.g. for Windows, and for Linux and macOS, lines can be added at the end of $HOME/.bash_profile
ala:
export PATH=/SOME_PATH_TO_ANCHOR/bin/:$PATH
- Type
java -version
in a shell, and check it returns at least version 1.8.
If not:
- Ensure
JAVA_HOME
points to the location of the JRE. - Ensure the directory for the
java
application ($JAVA_HOME/bin
) exists in thePATH
variable.
4. Installation complete - test the command!
Congratulations, Anchor should now be ready to run!
Open a shell (e.g. Command Prompt or PowerShell in Windows) in a directory with images, and run anchor
$ anchor Searching recursively for image files. CTRL+C cancels. Learn how to select inputs, outputs and tasks with 'anchor -h'. ...lines will follow after it searches for images...
Tip: Follow the Example Usage and User Guide to learn more.