@moziaverse/locateanything
v0.2.0
Published
LocateAnything image detection CLI
Downloads
20
Readme
@moziaverse/locateanything
LocateAnything image detection CLI.
Usage
npx @moziaverse/locateanything image IMAGE QUERY [options]Examples:
npx @moziaverse/locateanything image ./street.png person
npx @moziaverse/locateanything image ./street.png 'person</c>car</c>bicycle' --json
npx @moziaverse/locateanything image ./street.png person -o /tmp/locate-result --draw --cropsWhen --output is set, the CLI writes 结果.json.
Add --draw to also write 带框图.jpg.
Add --crops to also write 候选截图/候选NNN.jpg.
Install globally:
npm install -g @moziaverse/locateanything
locateanything image ./street.png personConfig
The CLI reads .env in the current working directory.
LOCATEANYTHING_API_URL=http://116.136.189.17:8010/v1
LOCATEANYTHING_MODEL=LocateAnything-3B
LOCATEANYTHING_API_KEY=EMPTY
LOCATEANYTHING_MAX_TOKENS=4096
LOCATEANYTHING_TIMEOUT=300000CLI flags override environment values.
