https://github.com/speciesfilegroup/sqed
Ruby library for parsing (individual) specimen metada from images.
https://github.com/speciesfilegroup/sqed
collections images metadata
Last synced: 4 months ago
JSON representation
Ruby library for parsing (individual) specimen metada from images.
- Host: GitHub
- URL: https://github.com/speciesfilegroup/sqed
- Owner: SpeciesFileGroup
- License: other
- Created: 2014-03-27T13:51:35.000Z (about 12 years ago)
- Default Branch: main
- Last Pushed: 2024-07-24T00:47:14.000Z (almost 2 years ago)
- Last Synced: 2025-04-11T18:23:14.362Z (about 1 year ago)
- Topics: collections, images, metadata
- Language: Ruby
- Homepage:
- Size: 49.3 MB
- Stars: 0
- Watchers: 12
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
[![Continuous Integration Status][1]][2]
# Sqed
Sqed is a gem that faciliates metadata extraction from images of staged collection objects.
## Installation
Add this line to your application's Gemfile:
gem 'sqed'
And then execute:
$ bundle
Or install it yourself as:
$ gem install sqed
## Usage
For the time being, see specs.
## Experiment with irb
```Ruby
require 'sqed'
i = Magick::Image.read(File.expand_path('~/Downloads/') + '/img_0129.jpg').first
s = Sqed.new( image: i, pattern: :lep_stage, boundary_color: :red, has_border: false )
r = s.result
r.write_images # => ./temp/*.jpg
# Without thumbnail
s = Sqed.new( image: i, pattern: :lep_stage, boundary_color: :red, has_border: false, use_thumbnail: false )
```
## Contributing
1. Fork it ( http://github.com/SpeciesFileGroup/sqed/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 new Pull Request
[1]: https://secure.travis-ci.org/SpeciesFileGroup/sqed.png?branch=master
[2]: http://travis-ci.org/SpeciesFileGroup/sqed?branch=master