{"id":30899863,"url":"https://github.com/seeed-projects/cross_fence_with_aibox","last_synced_at":"2025-09-09T04:10:38.153Z","repository":{"id":306882080,"uuid":"1026041591","full_name":"Seeed-Projects/cross_fence_with_AIBox","owner":"Seeed-Projects","description":null,"archived":false,"fork":false,"pushed_at":"2025-07-28T06:42:04.000Z","size":18740,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-28T08:37:20.481Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Seeed-Projects.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2025-07-25T08:03:34.000Z","updated_at":"2025-07-28T06:42:07.000Z","dependencies_parsed_at":"2025-07-28T08:47:27.325Z","dependency_job_id":null,"html_url":"https://github.com/Seeed-Projects/cross_fence_with_AIBox","commit_stats":null,"previous_names":["seeed-projects/cross_fence_with_aibox"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/Seeed-Projects/cross_fence_with_AIBox","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Seeed-Projects%2Fcross_fence_with_AIBox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Seeed-Projects%2Fcross_fence_with_AIBox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Seeed-Projects%2Fcross_fence_with_AIBox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Seeed-Projects%2Fcross_fence_with_AIBox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Seeed-Projects","download_url":"https://codeload.github.com/Seeed-Projects/cross_fence_with_AIBox/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Seeed-Projects%2Fcross_fence_with_AIBox/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274242989,"owners_count":25248148,"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-09T02:00:10.223Z","response_time":80,"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":[],"created_at":"2025-09-09T04:10:37.034Z","updated_at":"2025-09-09T04:10:38.138Z","avatar_url":"https://github.com/Seeed-Projects.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cross fence detection\n\nUsing the YOLOv8n model to detect whether the position of a person intersects with a manually drawn line, and if so, it is considered as an act of climbing over the fence.\n\n## Hardware prepare\n\n|                                               reComputer AI Box                                            |                                              reComputer Industry AI Box                                             |\n| :----------------------------------------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------------------------------: |\n| ![Raspberry Pi AI Kit](https://media-cdn.seeedstudio.com/media/catalog/product/cache/bb49d3ec4ee05b6f018e93f896b8a25d/i/m/image114993560.jpeg) | ![reComputer R1100](https://media-cdn.seeedstudio.com/media/catalog/product/cache/bb49d3ec4ee05b6f018e93f896b8a25d/2/-/2-114993595-recomputer-ai-industrial-r2135-12.jpg) |\n| [**Purchase Now**](https://www.seeedstudio.com/reComputer-AI-R2130-12-p-6368.html?utm_source=PiAICourse\u0026utm_medium=github\u0026utm_campaign=Course) | [**Purchase Now**](https://www.seeedstudio.com/reComputer-AI-Industrial-R2135-12-p-6432.html?utm_source=PiAICourse\u0026utm_medium=github\u0026utm_campaign=Course) |\n\n## Software prepare\n\n### Install the runtime environment \n\n```bash\nsudo apt update \u0026\u0026 sudo apt full-upgrade -y \u0026\u0026 sudo apt install hailo-all\n```\n\n### Install the project\n\n```bash\ngit clone https://github.com/Seeed-Projects/cross_fence_with_AIBox.git\ncd cross_fence_with_AIBox\n```\n\n### Prepare the python environment\n\n```bash\npython -m venv .env --system-site-packages  \u0026\u0026 source .env/bin/activate\npip install -r requirements.txt\n```\n\n## Run the project\n\n```bash\npython app.py -i ./scale_the_fence.mp4 -n ./yolov8n.hef --show-fps -l ./common/coco.txt \n```\n## Result\n\n[![Watch the video](https://img.youtube.com/vi/_-89czNbZ_M/0.jpg)](https://www.youtube.com/watch?v=_-89czNbZ_M)\n\n\n## Reference\n\nThis project references  [Hailo-Application-Code-Examples](https://github.com/hailo-ai/Hailo-Application-Code-Examples).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseeed-projects%2Fcross_fence_with_aibox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseeed-projects%2Fcross_fence_with_aibox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseeed-projects%2Fcross_fence_with_aibox/lists"}