{"id":13435961,"url":"https://github.com/rileynwong/dogspotting","last_synced_at":"2026-05-11T04:35:51.602Z","repository":{"id":78459496,"uuid":"173174010","full_name":"rileynwong/dogspotting","owner":"rileynwong","description":"use machine learning for computer vision to draw bounding boxes around dogs in pictures","archived":false,"fork":false,"pushed_at":"2019-04-15T21:44:17.000Z","size":27617,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-27T23:19:09.475Z","etag":null,"topics":["computer-vision","dogs","image-ai","machine-learning"],"latest_commit_sha":null,"homepage":"https://www.rileynwong.com/blog/2019/3/5/dogspotting-using-machine-learning-to-draw-bounding-boxes-around-dogs-in-pictures","language":"Jupyter Notebook","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/rileynwong.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":"2019-02-28T19:24:06.000Z","updated_at":"2019-09-14T16:05:47.000Z","dependencies_parsed_at":"2023-04-17T05:39:52.161Z","dependency_job_id":null,"html_url":"https://github.com/rileynwong/dogspotting","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/rileynwong%2Fdogspotting","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rileynwong%2Fdogspotting/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rileynwong%2Fdogspotting/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rileynwong%2Fdogspotting/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rileynwong","download_url":"https://codeload.github.com/rileynwong/dogspotting/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245007240,"owners_count":20546144,"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":["computer-vision","dogs","image-ai","machine-learning"],"created_at":"2024-07-31T03:00:41.370Z","updated_at":"2026-05-11T04:35:46.561Z","avatar_url":"https://github.com/rileynwong.png","language":"Jupyter Notebook","funding_links":[],"categories":["Software"],"sub_categories":["Machine Learning"],"readme":"# Dogspotting\nUse machine learning for computer vision to draw bounding boxes around dogs in pictures. [See accompanying blog post.](https://www.rileynwong.com/blog/2019/3/5/dogspotting-using-machine-learning-to-draw-bounding-boxes-around-dogs-in-pictures)\n\nNBViewer for easier viewing (recommended) [here](https://nbviewer.jupyter.org/github/rileynwong/dogspotting/blob/master/Image_detection.ipynb) \n\n![dog picture](result.png)\n\n## Setup \n\n1. (Optional) Create Anaconda environment w/ Python 3.6: `$ conda create -n retinanet python=3.6 anaconda`\n\n2. (Optional) Activate virtual environment: `$ source activate retinanet`\n\n3. Install dependencies: `$ conda install tensorflow numpy scipy opencv pillow matplotlib h5py keras`\n\n4. Install ImageAI library: `$ pip install https://github.com/OlafenwaMoses/ImageAI/releases/download/2.0.1/imageai-2.0.1-py3-none-any.whl`\n\n5. Download pretrained RetinaNet model: https://github.com/OlafenwaMoses/ImageAI/releases/download/1.0/resnet50_coco_best_v2.0.1.h5\n\n## Files\n- `Image_detection.ipynb`: Jupyter notebook, walks through the steps and set up\n- `detect_single_image.py`: Script to run to run object detection on a single image file. Set `input_path` to your image file.\n- `detect_images_folder.py`: Script to run to run object detection on images in a folder. Set `input_images_path` to `your-folder/*`. Resulting images can be found in `results/` directory. Keep in mind that the `results` folder images will be overwritten each time you run the script, so move previous files elsewhere. \n\n## Credits\n- [ImageAI library](https://github.com/OlafenwaMoses/ImageAI)\n- [Object detection tutorial](https://www.analyticsvidhya.com/blog/2018/06/understanding-building-object-detection-model-python/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frileynwong%2Fdogspotting","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frileynwong%2Fdogspotting","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frileynwong%2Fdogspotting/lists"}