spyglass
Version, currently master branch1 version
- master branchlatestNov 25, 2019
github.com/crystal-data/spyglass
Crystal bindings to the Sod ML and Computer Vision library
Installation
# Add this to your shard.yml
dependencies:
spyglass:
github: crystal-data/spyglass
branch: mastermaster is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
0.31.1- License
- MIT
- Author
- Chris Zimmerman
Dependencies
Runtime Dependencies
- bottle*github: crystal-data/bottle, branch: master
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.
-
Add the dependency to your
shard.yml:dependencies: spyglass: github: crystal-data/spyglass -
Run
shards install
Usage
require "spyglass"
Currently, basic manipulations are supported:
img = Spyglass::Image.from_file("rider.png")
gray = img.grayscale
gray.save("grayscale.png")

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

Contributing
- Fork it (https://github.com/your-github-user/spyglass/fork)
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
Contributors
- Chris Zimmerman - creator and maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This branch
- Branch
master- Seen
- Nov 25, 2019
- Crystal
0.31.1- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/crystal-data/spyglass
Metadata
- Created
- Aug 12, 2026
- Updated
- Nov 18, 2026
- Synced
- Nov 16, 2026
- Versions
- 1