https://github.com/crystal-data/spyglass
https://github.com/crystal-data/spyglass
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/crystal-data/spyglass
- Owner: crystal-data
- License: mit
- Created: 2019-11-21T16:18:52.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-11-25T03:55:55.000Z (over 6 years ago)
- Last Synced: 2025-06-03T07:26:01.587Z (about 1 year ago)
- Language: C
- Size: 985 KB
- Stars: 12
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# spyglass
A simple wrapper around SOD - An Embedded Computer Vision & Machine Learning Library, that provides
access to powerful low-level image manipulation routines, as well as high level interaction with
images using N-Dimensional Tensors from Bottle.
## Installation
You will need clang installed in order to build the sod library.
1. Add the dependency to your `shard.yml`:
```yaml
dependencies:
spyglass:
github: crystal-data/spyglass
```
2. Run `shards install`
## Usage
```crystal
require "spyglass"
```
Currently, basic manipulations are supported:
```crystal
img = Spyglass::Image.from_file("rider.png")
gray = img.grayscale
gray.save("grayscale.png")
```

```crystal
img = Spyglass::Image.from_file("stop.jpg", 1)
binary = img.otsu
binary.save("binary_dilation.png")
```

## Contributing
1. Fork it ()
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request
## Contributors
- [Chris Zimmerman](https://github.com/your-github-user) - creator and maintainer