Project

wildfire

0.0
No commit activity in last 3 years
No release in over 3 years
Uses computer vision to cut objects from images.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.6
~> 10.0
>= 0

Runtime

~> 1.3
~> 0.9
~> 0.0.17
~> 3.4
 Project Readme

Wildfire

Uses computer vision to cut objects from images.

Something like this.

Page Rectangle

Installation

Add this line to your application's Gemfile:

gem 'wildfire'

And then execute:

$ bundle

Or install it yourself as:

$ gem install wildfire

Usage

Use it from command line:

bin/wildfire a4 spec/support/printed-iphones-on-a4.jpg
# => The page was cut and placed at spec/support/big_page.jpg

bin/wildfire printed_screens spec/support/printed-iphones-on-a4.jpg
# => The screens were cut and placed at spec/support/screen_0.jpg,
# spec/support/screen_1.jpg, spec/support/screen_2.jpg, spec/support/screen_3.jpg

Use it from Ruby code:

  manager = Wildfire::Manager.new(image_path)
  manager.predicted_page_coords
  # => [[0,0], [0, 50], [50, 0], [50, 50]]
  manager.cut_page!(manager.predicted_page_coords)
  # => cut_page_path.jpg

  Wildfire::ScreenCutter.new('cut_page_path.jpg').paths
  # => ['screen_1.jpg', 'screen_2.jpg', ...]

Contributing

  1. Fork it ( https://github.com/[my-github-username]/wildfire/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