{"id":17794497,"url":"https://github.com/kjunichi/mruby-webcam","last_synced_at":"2025-03-16T20:31:22.299Z","repository":{"id":148483071,"uuid":"47261894","full_name":"kjunichi/mruby-webcam","owner":"kjunichi","description":"mruby can get image from webcam now!","archived":false,"fork":false,"pushed_at":"2019-04-22T07:02:41.000Z","size":58,"stargazers_count":8,"open_issues_count":1,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-27T13:22:24.915Z","etag":null,"topics":["camera-image","face-detection","mruby","opencv"],"latest_commit_sha":null,"homepage":"","language":"CMake","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kjunichi.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}},"created_at":"2015-12-02T13:14:36.000Z","updated_at":"2021-06-28T18:44:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"f79db19b-3632-490c-ad7e-57e90d7145cf","html_url":"https://github.com/kjunichi/mruby-webcam","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kjunichi%2Fmruby-webcam","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kjunichi%2Fmruby-webcam/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kjunichi%2Fmruby-webcam/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kjunichi%2Fmruby-webcam/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kjunichi","download_url":"https://codeload.github.com/kjunichi/mruby-webcam/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243830912,"owners_count":20354848,"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":["camera-image","face-detection","mruby","opencv"],"created_at":"2024-10-27T11:16:41.111Z","updated_at":"2025-03-16T20:31:22.286Z","avatar_url":"https://github.com/kjunichi.png","language":"CMake","readme":"# mruby-webcam   [![Build Status](https://travis-ci.org/kjunichi/mruby-webcam.png?branch=master)](https://travis-ci.org/kjunichi/mruby-webcam) [![Build status](https://ci.appveyor.com/api/projects/status/mowcb3ggp4bne9aq/branch/master?svg=true)](https://ci.appveyor.com/project/kjunichi/mruby-webcam/branch/master)\n\n\n[![mruby-webcam](http://img.youtube.com/vi/_YFswQSockw/0.jpg)](http://www.youtube.com/watch?v=_YFswQSockw)\n\n## install by mrbgems\n- add conf.gem line to `build_config.rb`\n\n```ruby\nMRuby::Build.new do |conf|\n\n    # ... (snip) ...\n\n    conf.gem :github =\u003e 'kjunichi/mruby-webcam'\nend\n```\n## example\n```ruby\ncam = Webcam.new\ncam.set_size 300, 300\ncam.capture {|img|\n  # img : JPEG format(default)\n  puts img.length\n}\n\n# SPC : capture\n# ESC : exit\ncam.start\n```\n\n```ruby\ncam = Webcam.new\ncam.set_size 300, 300\ncam.each {|img|\n  # img : JPEG format(default)\n  puts img.length\n}\n```\n\n### how to put ppm image\n\n```ruby\ncam = Webcam.new\ncam.set_fmt \"ppm\"\ncam.capture {|img|\n  # img : PPM format(P6)\n  puts img\n}\n\n# SPC : capture\n# ESC : exit\ncam.start\n```\n\n## License\nunder the MIT License:\n- see LICENSE file\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkjunichi%2Fmruby-webcam","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkjunichi%2Fmruby-webcam","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkjunichi%2Fmruby-webcam/lists"}