searmage

module
v0.0.0-...-3a2bc5f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 21, 2023 License: GPL-3.0

README

searmage

Searmage is a CLI tool for searching through your local images. It can watch a folder and build up an index for quickly searching through images later. Powered by Tesseract and SQLite.

example

Check out this repo and run make build

./bin/searmage -dir /some/folder/with/images -db /tmp/searmage.sqlite3

This will parse images in the given directory for any text, and then store the text within the sqlite database.

./bin/searmage -search '%the meaning of life%' -db /tmp/searmage.sqlite3

This will search the previously parsed image text and return with the path of matching images.

./bin/searmage -help

Will expose further flags, outlined at cfg/args.go

C

With CGO_ENABLED=0 Wazero is used to run Tesseract and SQLite, which have both been compiled to WASM. With CGO_ENABLED=1 however you can use a locally installed Tesseract instead. Here's an example on how to install Tesseract locally.

sudo apt-get install -y -qq libtesseract-dev libleptonica-dev tesseract-ocr-eng

The CGO_ENABLED=0 version is currently roughly 6 times slower.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL