Skip to content

A TUI app for finding anime scenes by image. 用于搜索动漫图片出处的 TUI 应用

License

Notifications You must be signed in to change notification settings

acgtools/trace-moe-go

Repository files navigation

trace-moe-go

English | 简体中文

A TUI app for finding anime scenes by image using trace.moe API.

If this repo is helpful to you, please consider giving it a star (o゜▽゜)o☆ . Thank you OwO.

Random Wink OvO


Installation

Using go

$ go install -ldflags "-s -w" github.com/acgtools/trace-moe-go

Download from releases

release page

Quick Start

$ moe-go -h
A TUI app for finding anime scene by image, using trace.moe api

Usage:
  moe-go [command]

Available Commands:
  file        search image by file
  help        Help about any command

Flags:
  -h, --help      help for moe-go
  -v, --version   version for moe-go

Use "moe-go [command] --help" for more information about a command.

Ensure your terminal charset is UTF-8

Windows

> chcp
Active code page: 65001

# if code page is not 65001(utf-8), change it temporarily
> chcp 65001

If you want to set the default charset, follow the steps:

  1. Start -> Run -> regedit
  2. Go to [HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor\Autorun]
  3. Change the value to @chcp 65001>nul

If Autorun is not present, you can add a New String.

This approach will auto-execute @chcp 65001>nul when cmd starts.

Linux

$ echo $LANG
en_US.UTF-8

Find by image file

$ moe-go file <image file path>

Keys:

  • up, down: move the cursor
  • space ,enter: select one result
  • q: quit program

Example

gochiusa_rize

1

Issue

Feel free to create issues to report bugs or request new features.