{"id":24165971,"url":"https://github.com/ivan-guerra/shooter","last_synced_at":"2026-05-20T07:01:23.744Z","repository":{"id":268305256,"uuid":"903923251","full_name":"ivan-guerra/shooter","owner":"ivan-guerra","description":"Detect and fire at a human passerby","archived":false,"fork":false,"pushed_at":"2025-01-15T04:03:27.000Z","size":22533,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-02T07:51:19.151Z","etag":null,"topics":["neural-network","raspberry-pi","turret-gun"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ivan-guerra.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-12-15T22:30:58.000Z","updated_at":"2025-01-15T04:03:28.000Z","dependencies_parsed_at":"2025-01-09T18:02:44.743Z","dependency_job_id":"2ad90d6f-8de6-408d-b41c-2a2c846e04df","html_url":"https://github.com/ivan-guerra/shooter","commit_stats":null,"previous_names":["ivan-guerra/shooter"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ivan-guerra/shooter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivan-guerra%2Fshooter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivan-guerra%2Fshooter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivan-guerra%2Fshooter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivan-guerra%2Fshooter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ivan-guerra","download_url":"https://codeload.github.com/ivan-guerra/shooter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivan-guerra%2Fshooter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273858849,"owners_count":25180766,"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","status":"online","status_checked_at":"2025-09-06T02:00:13.247Z","response_time":2576,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["neural-network","raspberry-pi","turret-gun"],"created_at":"2025-01-12T20:13:27.540Z","updated_at":"2026-05-20T07:01:23.660Z","avatar_url":"https://github.com/ivan-guerra.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# shooter\n\nA Nerf turret gun that automatically detects, tracks, and fires at humans.\n**This is a work in progress**. Currently, we're able to detect humans and\ngenerate commands for aiming the gun at a rate of 5-10 FPS.\n\n`shooter` is split into a client and server. The client, `tgc` (turret gun\nclient), runs onboard the Rapsberry Pi. The client requests the latest command\nfrom the server and then executes it by moving the motors/firing the gun. The\nserver, `tgs` (turret gun server), runs on a more powerful machine and processes\nthe image stream generating commands that are sent to the client only upon\nrequest. The client/server architecture lets us keep the software onboard the Pi\nlean while giving us the ability to generate detections at a high rate on a\nseparate, more powerful machine.\n\n### Human Detection\n\nA pretrained [You Only Look Once (YOLO)][1] model is used to detect humans.\n`shooter` can be configured to use any YOLO model. Included in this project\nunder [`models/`](models/) is the [yolov4-tiny][2] model. We went with\nyolo4-tiny because it's accurate enough to meet our goal and we're able to\nperform inference at 5-10 FPS on modest hardware.\n\n### Configuration\n\n`shooter` requires a configuration file to run. You can checkout an example\nconfig file under [`configs/test.toml`](configs/test.toml).\n\n### Getting a Video Stream\n\n`shooter` requires a video stream from a webcam or other video source. We\ncurrently are using a [Nexigo N60 webcam][5] and the [cam2ip][3] software to\nproduce a video stream. You can [download][4] a cam2ip release binary from\nGitHub.\n\n### Running `tgc`\n\n1. Cross compile the `tgc` binary for the Raspberry Pi. See\n   [`docker/README.md`](docker/README.md) for instructions.\n\n2. Copy the `tgc` binary, configs, and models to the Raspberry Pi:\n\n```bash\nscp target/aarch64-unknown-linux-gnu/release/tgc shooter@rpi:/home/shooter\nscp -r configs/ shooter@rpi:/home/shooter\nscp -r models/ shooter@rpi:/home/shooter\n```\n\n3. Plug the webcam into the Raspberry Pi.\n\n4. Run `cam2ip` to produce a video stream.\n\n5. Edit the `client` section of the configuration file as needed.\n\n6. Run `tgc` supplying it a configuration file:\n\n```bash\ntgc configs/test.toml\n```\n\n### Running `tgs`\n\n1. Install the following dependencies:\n\n```bash\nsudo apt-get install -y build-essential clang libclang-dev libopencv-dev\n```\n\n2. Build the `tgs` binary:\n\n```bash\ncargo build --release --bin tgs\n```\n\n3. Edit the `server` section of the configuration file as needed.\n\n4. Run `tgs` supplying it a configuration file:\n\n```bash\ntgs configs/test.toml\n```\n\n[1]: https://github.com/AlexeyAB/darknet\n[2]: https://github.com/AlexeyAB/darknet?tab=readme-ov-file#pre-trained-models\n[3]: https://github.com/gen2brain/cam2ip\n[4]: https://github.com/gen2brain/cam2ip/releases/tag/1.6\n[5]: https://www.amazon.com/gp/product/B088TSR6YJ/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8\u0026psc=1\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivan-guerra%2Fshooter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fivan-guerra%2Fshooter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivan-guerra%2Fshooter/lists"}