Skip to content

crystal-data/spyglass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

    dependencies:
      spyglass:
        github: crystal-data/spyglass
  2. 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

  1. Fork it (https://github.com/your-github-user/spyglass/fork)
  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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published