{"id":15619840,"url":"https://github.com/nedomas/wildfire","last_synced_at":"2025-04-28T13:41:07.175Z","repository":{"id":21293584,"uuid":"24609691","full_name":"Nedomas/Wildfire","owner":"Nedomas","description":"Ruby gem to cut objects from images like crazy with OpenCV","archived":false,"fork":false,"pushed_at":"2014-10-18T18:44:30.000Z","size":6916,"stargazers_count":8,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-09T19:49:38.842Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/Nedomas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-09-29T19:31:41.000Z","updated_at":"2020-10-08T10:43:49.000Z","dependencies_parsed_at":"2022-08-17T21:11:03.044Z","dependency_job_id":null,"html_url":"https://github.com/Nedomas/Wildfire","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nedomas%2FWildfire","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nedomas%2FWildfire/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nedomas%2FWildfire/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nedomas%2FWildfire/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Nedomas","download_url":"https://codeload.github.com/Nedomas/Wildfire/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251321218,"owners_count":21570696,"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-10-03T08:42:02.216Z","updated_at":"2025-04-28T13:41:07.154Z","avatar_url":"https://github.com/Nedomas.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Wildfire](https://cloud.githubusercontent.com/assets/1877286/4690706/84d6eb94-56f6-11e4-96c2-66d0a022431a.png)\n\nUses computer vision to cut objects from images.\n\nSomething like this.\n\n![Page Rectangle](https://cloud.githubusercontent.com/assets/1877286/4446183/244f081a-4800-11e4-8b71-b7abe348e2c1.png)\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'wildfire'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install wildfire\n\n## Usage\n\nUse it from command line:\n```sh\nbin/wildfire a4 spec/support/printed-iphones-on-a4.jpg\n# =\u003e The page was cut and placed at spec/support/big_page.jpg\n\nbin/wildfire printed_screens spec/support/printed-iphones-on-a4.jpg\n# =\u003e The screens were cut and placed at spec/support/screen_0.jpg,\n# spec/support/screen_1.jpg, spec/support/screen_2.jpg, spec/support/screen_3.jpg\n```\n\nUse it from Ruby code:\n```ruby\n  manager = Wildfire::Manager.new(image_path)\n  manager.predicted_page_coords\n  # =\u003e [[0,0], [0, 50], [50, 0], [50, 50]]\n  manager.cut_page!(manager.predicted_page_coords)\n  # =\u003e cut_page_path.jpg\n\n  Wildfire::ScreenCutter.new('cut_page_path.jpg').paths\n  # =\u003e ['screen_1.jpg', 'screen_2.jpg', ...]\n```\n\n## Contributing\n\n1. Fork it ( https://github.com/[my-github-username]/wildfire/fork )\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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnedomas%2Fwildfire","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnedomas%2Fwildfire","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnedomas%2Fwildfire/lists"}