{"id":19347094,"url":"https://github.com/crystal-data/spyglass","last_synced_at":"2026-03-07T16:03:19.534Z","repository":{"id":91428152,"uuid":"223215113","full_name":"crystal-data/spyglass","owner":"crystal-data","description":null,"archived":false,"fork":false,"pushed_at":"2019-11-25T03:55:55.000Z","size":1009,"stargazers_count":12,"open_issues_count":1,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-03T07:26:01.587Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/crystal-data.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-11-21T16:18:52.000Z","updated_at":"2022-09-06T15:21:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"16d9d804-ec13-4675-9701-1ddbf8169d28","html_url":"https://github.com/crystal-data/spyglass","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/crystal-data/spyglass","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crystal-data%2Fspyglass","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crystal-data%2Fspyglass/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crystal-data%2Fspyglass/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crystal-data%2Fspyglass/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/crystal-data","download_url":"https://codeload.github.com/crystal-data/spyglass/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crystal-data%2Fspyglass/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263184674,"owners_count":23427067,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T04:13:53.200Z","updated_at":"2026-03-07T16:03:14.512Z","avatar_url":"https://github.com/crystal-data.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# spyglass\n\nA simple wrapper around SOD - An Embedded Computer Vision \u0026 Machine Learning Library, that provides\naccess to powerful low-level image manipulation routines, as well as high level interaction with\nimages using N-Dimensional Tensors from Bottle.\n\n## Installation\n\nYou will need clang installed in order to build the sod library.\n\n1. Add the dependency to your `shard.yml`:\n\n   ```yaml\n   dependencies:\n     spyglass:\n       github: crystal-data/spyglass\n   ```\n\n2. Run `shards install`\n\n## Usage\n\n```crystal\nrequire \"spyglass\"\n```\n\nCurrently, basic manipulations are supported:\n\n```crystal\nimg = Spyglass::Image.from_file(\"rider.png\")\ngray = img.grayscale\ngray.save(\"grayscale.png\")\n```\n\n![](./static/grayscale.png)\n\n```crystal\nimg = Spyglass::Image.from_file(\"stop.jpg\", 1)\nbinary = img.otsu\nbinary.save(\"binary_dilation.png\")\n```\n\n![](./static/binary_dilation.png)\n\n\n## Contributing\n\n1. Fork it (\u003chttps://github.com/your-github-user/spyglass/fork\u003e)\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n\n## Contributors\n\n- [Chris Zimmerman](https://github.com/your-github-user) - creator and maintainer\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrystal-data%2Fspyglass","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrystal-data%2Fspyglass","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrystal-data%2Fspyglass/lists"}