{"id":15922071,"url":"https://github.com/foxzool/bevy_nokhwa","last_synced_at":"2025-03-24T11:32:19.941Z","repository":{"id":65508465,"uuid":"592574690","full_name":"foxzool/bevy_nokhwa","owner":"foxzool","description":"A bevy plugin for render camera capture at background","archived":false,"fork":false,"pushed_at":"2024-12-01T13:39:41.000Z","size":51,"stargazers_count":12,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-19T03:41:23.050Z","etag":null,"topics":["bevy","camera","opencv"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/foxzool.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE-APACHE.md","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":"2023-01-24T02:45:32.000Z","updated_at":"2024-12-13T10:21:13.000Z","dependencies_parsed_at":"2024-02-20T12:30:26.832Z","dependency_job_id":"e0e68ae2-0283-43b2-869f-7dcd245634b4","html_url":"https://github.com/foxzool/bevy_nokhwa","commit_stats":{"total_commits":13,"total_committers":1,"mean_commits":13.0,"dds":0.0,"last_synced_commit":"03279a021fd7d34de33afde76be5b8439b793317"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foxzool%2Fbevy_nokhwa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foxzool%2Fbevy_nokhwa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foxzool%2Fbevy_nokhwa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foxzool%2Fbevy_nokhwa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/foxzool","download_url":"https://codeload.github.com/foxzool/bevy_nokhwa/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245261047,"owners_count":20586514,"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":["bevy","camera","opencv"],"created_at":"2024-10-06T20:04:40.174Z","updated_at":"2025-03-24T11:32:19.935Z","avatar_url":"https://github.com/foxzool.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![crates.io](https://img.shields.io/crates/v/bevy_nokhwa)](https://crates.io/crates/bevy_nokhwa)\n[![MIT/Apache 2.0](https://img.shields.io/badge/license-MIT%2FApache-blue.svg)](https://github.com/Seldom-SE/seldom_pixel#license)\n[![crates.io](https://img.shields.io/crates/d/bevy_nokhwa)](https://crates.io/crates/bevy_nokhwa)\n[![CI](https://github.com/foxzool/bevy_nokhwa/workflows/CI/badge.svg)](https://github.com/foxzool/bevy_nokhwa/actions)\n[![Documentation](https://docs.rs/bevy_nokhwa/badge.svg)](https://docs.rs/bevy_nokhwa)\n\n# bevy_nokhwa\n\n---\n\n\u003cimg src=\"https://user-images.githubusercontent.com/217027/214884000-408ee6ce-ba88-4b2e-bb24-8fd7acadee90.png\" width=\"640\" height=\"480\" alt=\"preview\"\u003e\n\nA bevy plugin using [nokhawa](https://github.com/l1npengtul/nokhwa).\n\nThis plugin allows you to render Camera Capture at background.\n\n## Showcase\n\n```rust\nuse bevy::prelude::*;\nuse bevy_nokhwa::BevyNokhwaPlugin;\n\nfn main() {\n    App::new()\n        .add_plugins(DefaultPlugins)\n        .add_plugin(BevyNokhwaPlugin)\n        .add_startup_system(setup_camera)\n        .run();\n}\n\n\nfn setup_camera(\n    mut commands: Commands,\n    mut meshes: ResMut\u003cAssets\u003cMesh\u003e\u003e,\n    mut materials: ResMut\u003cAssets\u003cStandardMaterial\u003e\u003e,\n) {\n    commands\n        .spawn(Camera3dBundle {\n            camera_3d: Camera3d {\n                // IMPORTANT! Need to set clear_color to None\n                clear_color: ClearColorConfig::None,\n                ..default()\n            },\n            transform: Transform::from_xyz(-2.0, 2.5, 5.0).looking_at(Vec3::ZERO, Vec3::Y),\n            ..Default::default()\n        })\n        // auto find camera and use highest resolution \n        // .insert(BackgroundCamera::auto())\n        .insert(BackgroundCamera::new(\n            ApiBackend::Auto,\n            Some(CameraIndex::Index(0)),\n            Some(RequestedFormatType::Closest(CameraFormat::new(\n                Resolution::new(640, 480),\n                FrameFormat::MJPEG,\n                30,\n            ))),\n        ));\n}\n```\n\n# Support\n\n[![Bevy tracking](https://img.shields.io/badge/Bevy%20tracking-released%20version-lightblue)](https://github.com/bevyengine/bevy/blob/main/docs/plugins_guidelines.md#main-branch-tracking)\n\n| bevy | bevy_nokhwa |\n|------|-------------|\n| 0.15 | 0.7         |\n| 0.14 | 0.6         |\n| 0.13 | 0.5         |\n| 0.12 | 0.4         |\n| 0.11 | 0.3         |\n| 0.10 | 0.2         |\n| 0.9  | 0.1         |\n\n# Licensing\n\nThe project is under dual license MIT and Apache 2.0, so join to your hearts content, just remember the license\nagreements.\n\n# Contributing\n\nYes this project is still very much WIP, so PRs are very welcome\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoxzool%2Fbevy_nokhwa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffoxzool%2Fbevy_nokhwa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoxzool%2Fbevy_nokhwa/lists"}