{"id":18472956,"url":"https://github.com/physicsx/tensorflow-object-detection-on-raspberry-pi-4-model-b","last_synced_at":"2025-04-08T11:33:04.515Z","repository":{"id":133477182,"uuid":"257039910","full_name":"PhysicsX/Tensorflow-Object-Detection-on-Raspberry-pi-4-model-B","owner":"PhysicsX","description":null,"archived":false,"fork":false,"pushed_at":"2020-04-20T20:20:14.000Z","size":14,"stargazers_count":10,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-23T12:23:50.273Z","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/PhysicsX.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}},"created_at":"2020-04-19T15:53:15.000Z","updated_at":"2022-11-22T10:25:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"b49a8597-7412-4fdd-a7dc-bcb8f1f71bf7","html_url":"https://github.com/PhysicsX/Tensorflow-Object-Detection-on-Raspberry-pi-4-model-B","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/PhysicsX%2FTensorflow-Object-Detection-on-Raspberry-pi-4-model-B","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PhysicsX%2FTensorflow-Object-Detection-on-Raspberry-pi-4-model-B/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PhysicsX%2FTensorflow-Object-Detection-on-Raspberry-pi-4-model-B/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PhysicsX%2FTensorflow-Object-Detection-on-Raspberry-pi-4-model-B/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PhysicsX","download_url":"https://codeload.github.com/PhysicsX/Tensorflow-Object-Detection-on-Raspberry-pi-4-model-B/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247834353,"owners_count":21003953,"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":[],"created_at":"2024-11-06T10:23:11.235Z","updated_at":"2025-04-08T11:33:04.509Z","avatar_url":"https://github.com/PhysicsX.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tensorflow-Object-Detection-on-Raspberry-pi-4-model-B\n\n\n\tcd Desktop/\n\tmkdir tensorflowRasp\n\tcd tensorflowRasp/\n\tpython3 -m pip install virtualenv\n\tvirtualenv env\n\t-\u003e logout\n\tcd Desktop/tensorflowRasp/\n\tvirtualenv env\n\tsource env/bin/activate\n\tsudo apt-get install -y libhdf5-dev libc-ares-dev libeigen3-dev gcc gfortran python-dev libgfortran5 libatlas3-base libatlas-base-dev libopenblas-dev libopenblas-base libblas-dev liblapack-dev cython openmpi-bin libopenmpi-dev python3-dev\n\tsudo pip3 install keras_applications==1.0.8 --no-deps\n\tsudo pip3 install keras_preprocessing==1.1.0 --no-deps\n\tsudo pip3 install pybind11\n\tsudo pip3 install h5py==2.9.0\n\tsudo pip3 install -U six wheel mock\n\twget https://github.com/lhelontra/tensorflow-on-arm/releases/download/v2.1.0/tensorflow-2.1.0-cp37-none-linux_armv7l.whl\n\tpython3 -m pip install tensorflow-2.1.0-cp37-none-linux_armv7l.whl \n\t-\u003e logout\n\tcd Desktop/tensorflowRasp/\n\tsource env/bin/activate\n\tpython3\n\t-\u003e import tensorflow\n\tsudo pip3 install pillow lxml jupyter matplotlib cython\n\tsudo apt-get install libjpeg-dev libtiff5-dev libjasper-dev libpng12-dev libavcodec-dev libavformat-dev libswscale-dev libv4l-dev libxvidcore-dev libx264-dev qt4-dev-tools\n\tpip3 install opencv-python\n\tpython3\n\t-\u003e import cv2\n\tpip3 install opencv-contrib-python==4.1.0.25\n\tpython3\n\t-\u003e import cv2\n\tsudo apt-get install protobuf-compiler\n\tprotoc --version\n\tgit clone --depth 1 https://github.com/tensorflow/models.git\n\tsudo nano ~/.bashrc\n\texport PYTHONPATH=$PYTHONPATH:/home/pi/Desktop/tensorflowRasp/models/research:/home/pi/Desktop/tensorflowRasp/models/research/slim\n\tcd models/research/\n\tprotoc object_detection/protos/*.proto --python_out=.\n\tcd object_detection\n\twget http://download.tensorflow.org/models/object_detection/ssdlite_mobilenet_v2_coco_2018_05_09.tar.gz\n\ttar -xzvf ssdlite_mobilenet_v2_coco_2018_05_09.tar.gz\n\tpip3 install picamera\n\tpip3 install matplotlib\n\tpip3 install Pillow\n\twget https://raw.githubusercontent.com/PhysicsX/Tensorflow-Object-Detection-on-Raspberry-pi-4-model-B/master/ObjectDetectionPiCamera.py\n\tpython3 ObjectDetectionPiCamera.py\n\t-\u003e you will get an error because of new tensorflow library, just change the line in the /home/pi/Desktop/tensorflowRasp/models/research/object_detection/utils/label_map_util.py line 138 -\u003e   with tf.io.gfile.GFile(path, 'r') as fid:\n\tnano +138 /home/pi/Desktop/tensorflowRasp/models/research/object_detection/utils/label_map_util.py\n  \tpython3 ObjectDetectionPiCamera.py\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphysicsx%2Ftensorflow-object-detection-on-raspberry-pi-4-model-b","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphysicsx%2Ftensorflow-object-detection-on-raspberry-pi-4-model-b","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphysicsx%2Ftensorflow-object-detection-on-raspberry-pi-4-model-b/lists"}