{"id":20982653,"url":"https://github.com/tzutalin/android-object-detection","last_synced_at":"2025-04-07T13:10:25.954Z","repository":{"id":75653195,"uuid":"43112555","full_name":"tzutalin/Android-Object-Detection","owner":"tzutalin","description":" :coffee: Fast-RCNN and Scene Recognition using Caffe","archived":false,"fork":false,"pushed_at":"2017-09-01T09:01:33.000Z","size":21910,"stargazers_count":305,"open_issues_count":9,"forks_count":142,"subscribers_count":41,"default_branch":"master","last_synced_at":"2025-03-31T12:06:34.210Z","etag":null,"topics":["android","caffe","detection","scene-recognition"],"latest_commit_sha":null,"homepage":"","language":"Java","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/tzutalin.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":"2015-09-25T06:02:49.000Z","updated_at":"2024-12-30T08:44:13.000Z","dependencies_parsed_at":"2023-06-07T06:15:27.889Z","dependency_job_id":null,"html_url":"https://github.com/tzutalin/Android-Object-Detection","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/tzutalin%2FAndroid-Object-Detection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tzutalin%2FAndroid-Object-Detection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tzutalin%2FAndroid-Object-Detection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tzutalin%2FAndroid-Object-Detection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tzutalin","download_url":"https://codeload.github.com/tzutalin/Android-Object-Detection/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247657282,"owners_count":20974345,"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":["android","caffe","detection","scene-recognition"],"created_at":"2024-11-19T05:46:14.883Z","updated_at":"2025-04-07T13:10:25.898Z","avatar_url":"https://github.com/tzutalin.png","language":"Java","funding_links":["https://ko-fi.com/A4263TV2'"],"categories":[],"sub_categories":[],"readme":"# Android-Object-Detection\n[![Build Status](https://travis-ci.org/tzutalin/Android-Object-Detection.png)](https://travis-ci.org/tzutalin/Android-Object-Detection)\n\n## Requirements\n* Android 4.0+ support\n\n* ARMv7 and x86 based devices\n\n* Get the Caffe model and push it to Phone SDCard. For object detection, network(*.prototxt) should use ROILayer, you can refer to [Fast-RCNN](https://github.com/rbgirshick/fast-rcnn). For scene recognition(object recognition), it can use any caffe network and weight with memory input layer.\n\n* Build with Gradle. You can use Android studio to build\n\n## Feature\n* [Object detection - Region-based Convolutional Networks detection](http://arxiv.org/abs/1504.08083)\n[Selective Search on Android](https://github.com/tzutalin/dlib-android) + [FastRCNN](https://github.com/rbgirshick/caffe-fast-rcnn)\n\n* [Scene recognition - Convolutional neural networks trained on Places](http://places.csail.mit.edu/downloadCNN.html)\n Input a picture of a place or scene and predicts it.\n\n## Demo\n\n![](demo/1.png)\n\n![](demo/2.png)\n\n![](demo/3.png)\n\n![](demo/4.png)\n\n![](demo/5.png)\n\n## Usage \n\n* Download and push the neccessary file to your phone. There should be model and weight in /sdcard/fastrcnn and /sdcard/vision_scene.\n\n` $ ./setup.sh `\n\n* Build and run the application using  gradlew or you can open AndroidStudio to import this project\n\n` $ ./gradlew assembleDebug`\n\n` $ adb install -r ./app/build/outputs/apk`\n\nBesides, you can change deep learning's model, weight, etc in VisionClassifierCreator.java\n``` java\n\npublic class VisionClassifierCreator {\n    private final static String SCENE_MODEL_PATH = \"..\";\n    private final static String SCENE_WIEGHTS_PATH = \"..\";\n    private final static String SCENE_MEAN_FILE = \"..\";\n    private final static String SCENE_SYNSET_FILE = \"..\";\n\n    private final static String DETECT_MODEL_PATH = \"..\";\n    private final static String DETECT_WIEGHTS_PATH = \"..\";\n    private final static String DETECT_MEAN_FILE = \"..\";\n    private final static String DETECT_SYNSET_FILE = \"..\";\n }\n``` \n\n## Contribution\n* Send pull request\n* \u003ca href='https://ko-fi.com/A4263TV2' target='_blank'\u003e\u003cimg height='36' style='border:0px;height:36px;' src='https://az743702.vo.msecnd.net/cdn/kofi1.png?v=0' border='0' alt='Buy Me a Coffee at ko-fi.com' /\u003e\u003c/a\u003e\n\n## License\n\n\t    Copyright (C) 2015-2016 TzuTaLin\n\t\n\tLicensed under the Apache License, Version 2.0 (the \"License\");\n\tyou may not use this file except in compliance with the License.\n\tYou may obtain a copy of the License at\n\t\n\t     http://www.apache.org/licenses/LICENSE-2.0\n\t\n\tUnless required by applicable law or agreed to in writing, software\n\tdistributed under the License is distributed on an \"AS IS\" BASIS,\n\tWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\tSee the License for the specific language governing permissions and\n\tlimitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftzutalin%2Fandroid-object-detection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftzutalin%2Fandroid-object-detection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftzutalin%2Fandroid-object-detection/lists"}