An open API service indexing awesome lists of open source software.

https://github.com/jerryshell/similars

similaRS is a tool for calculating image similarity written in Rust 🦀
https://github.com/jerryshell/similars

Last synced: 11 months ago
JSON representation

similaRS is a tool for calculating image similarity written in Rust 🦀

Awesome Lists containing this project

README

          

# similaRS

_similaRS_ is a tool for calculating image similarity written in Rust 🦀

## How to use

```bash
cargo install --git https://github.com/jerryshell/similars
```

```
Usage: similars_cli [OPTIONS] --image-x-path --image-y-path

Options:
-x, --image-x-path
-y, --image-y-path
--width [default: 8]
--height [default: 8]
-d, --show-distance By default, the output is the percentile of similarity, or the Hamming distance if --show-distance is explicitly specified.
-h, --help Print help
-V, --version Print version
```

## Example

By default, the output is the percentile of similarity

```bash
similars_cli -x example_img1.jpg -y example_img2.jpg
# 95.3125
```

If `-d` is explicitly specified, the output is Hamming distance

```bash
similars_cli -d -x example_img1.jpg -y example_img2.jpg
# 3
```

## References

- [https://www.ruanyifeng.com/blog/2011/07/principle_of_similar_image_search.html](https://www.ruanyifeng.com/blog/2011/07/principle_of_similar_image_search.html)

## License

[GNU Affero General Public License v3.0](https://choosealicense.com/licenses/agpl-3.0/)