{"id":21318996,"url":"https://github.com/emingenc/yolo-pi-cctv","last_synced_at":"2025-07-12T04:31:28.440Z","repository":{"id":185296135,"uuid":"407184667","full_name":"emingenc/yolo-pi-cctv","owner":"emingenc","description":"yolov5 pi cctv integration","archived":false,"fork":false,"pushed_at":"2021-09-17T07:00:12.000Z","size":64471,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-08-01T11:44:21.022Z","etag":null,"topics":["deep-learning","raspberry-pi","yolov5"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/emingenc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2021-09-16T13:54:42.000Z","updated_at":"2023-08-01T11:44:26.203Z","dependencies_parsed_at":"2023-08-01T11:54:44.690Z","dependency_job_id":null,"html_url":"https://github.com/emingenc/yolo-pi-cctv","commit_stats":null,"previous_names":["emingenc/yolo-pi-cctv"],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emingenc%2Fyolo-pi-cctv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emingenc%2Fyolo-pi-cctv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emingenc%2Fyolo-pi-cctv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emingenc%2Fyolo-pi-cctv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/emingenc","download_url":"https://codeload.github.com/emingenc/yolo-pi-cctv/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225791376,"owners_count":17524773,"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":["deep-learning","raspberry-pi","yolov5"],"created_at":"2024-11-21T19:31:10.186Z","updated_at":"2024-11-21T19:31:20.077Z","avatar_url":"https://github.com/emingenc.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pi-cctv\n\n1) Setup your raspberry pi with [Raspberry Pi instructions](https://github.com/novitai/setuptools/tree/master/raspberrypi) \n2) Enable your camera \n    \n    * Make sure your camera connected to your Raspberry Pi :\n        \n        ```sudo raspi-config```\n\n        select interface options and enable your camera. It will ask you to reboot if not reboot device with: \n        \n        ```sudo reboot```\n3) Clone this repo :\n\n    * Before clone install git:\n\n        ```sudo apt update```\n\n        ```sudo apt install git```\n\n        ```git clone https://github.com/emingenc/pi-cctv.git```\n\n        ```cd pi-cctv```\n\n4) Install requirements:\n\n    * before installinng requirements.txt create venv:\n\n        4a. Install python3-venv: \n        \n        ```sudo apt-get install python3-venv```\n\n        4b. Create venv:\n\n        ```python3 -m venv venv```\n\n        4c. Activate venv:\n\n        ```source venv/bin/activate```\n\n        4d. Install requirements.txt:\n\n        ```pip3 install -r requirements.txt```\n\n5) Auto-start at boot:\n\n    * open etc/profile:\n\n    ```sudo nano /etc/profile```\n\n    * add these commands end of the file\n        \n    ```source /home/pi/pi-cctv/venv/bin/activate```\n\n    ```cd /home/pi/pi-cctv```\n\n    ```python3 /home/pi/pi-cctv/main.py \u0026```\n        \n        a. ctrl+x \n        b. save(press y)\n        c. press Enter to save file \n\n6) apt-get requirements for image compression:\n\n    * install:\n\n        ```sudo apt-get install libopenjp2-7 libtiff5```\n\n\n7)  Torch and torchvision install to pi:\n\n    * you can clone this repo and install via wheel:\n\n\n        ```git clone https://github.com/Kashu7100/pytorch-armv7l ```\n\n        ```cd pytorch-armv7l```\n\n        ```pip3 install torch-1.7.0a0-cp37-cp37m-linux_armv7l.whl```\n\n        ```pip3 install torchvision-0.8.0a0+45f960c-cp37-cp37m-linux_armv7l.whll```\n\n        note detect.py will not run unless you dont comment out torch and torchvision from requiremnts.txt.\n\n\n# Custom object detection\n\n1) Train a model with dataset [Check this tutorial](https://github.com/ultralytics/yolov5/wiki/Train-Custom-Data) \n\n2) After you trained a model copy model weights which extension is .pt to this repo.\n\n3) Change weight parameter with weight you just copied in main.py detected_objects detect function\n\n4) run your main.py with object class name that you want to send post request to the server.\n\n    ```python3 camera.py --file-name \u003cfilename\u003e --obj \u003cobj_name\u003e```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femingenc%2Fyolo-pi-cctv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femingenc%2Fyolo-pi-cctv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femingenc%2Fyolo-pi-cctv/lists"}