├── .gitignore ├── README.md ├── package.json ├── public └── index.html ├── src ├── index.js └── style.css └── yarn.lock /.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | 8 | # Runtime data 9 | pids 10 | *.pid 11 | *.seed 12 | *.pid.lock 13 | 14 | # Directory for instrumented libs generated by jscoverage/JSCover 15 | lib-cov 16 | 17 | # Coverage directory used by tools like istanbul 18 | coverage 19 | 20 | # nyc test coverage 21 | .nyc_output 22 | 23 | # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) 24 | .grunt 25 | 26 | # Bower dependency directory (https://bower.io/) 27 | bower_components 28 | 29 | # node-waf configuration 30 | .lock-wscript 31 | 32 | # Compiled binary addons (https://nodejs.org/api/addons.html) 33 | build/Release 34 | 35 | # Dependency directories 36 | node_modules/ 37 | jspm_packages/ 38 | 39 | # TypeScript v1 declaration files 40 | typings/ 41 | 42 | # Optional npm cache directory 43 | .npm 44 | 45 | # Optional eslint cache 46 | .eslintcache 47 | 48 | # Optional REPL history 49 | .node_repl_history 50 | 51 | # Output of 'npm pack' 52 | *.tgz 53 | 54 | # Yarn Integrity file 55 | .yarn-integrity 56 | 57 | # dotenv environment variables file 58 | .env 59 | .env.test 60 | 61 | # parcel-bundler cache (https://parceljs.org/) 62 | .cache 63 | 64 | # next.js build output 65 | .next 66 | 67 | # nuxt.js build output 68 | .nuxt 69 | 70 | # vuepress build output 71 | .vuepress/dist 72 | 73 | # Serverless directories 74 | .serverless/ 75 | 76 | # FuseBox cache 77 | .fusebox/ 78 | 79 | # DynamoDB Local files 80 | .dynamodb/ 81 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Object Detection 2 | 3 | ## Setup 4 | 5 | ### Clone this Repo 6 | 7 | Run `git clone https://github.com/ichtrojan/Object-Detection.git && cd Object-Detection` 8 | 9 |  10 | 11 | ## Install dependencies 12 | 13 | Run `yarn install` 14 | 15 |  16 | 17 | ## Run Application 18 | 19 | Run `npm start` to run the application 20 | 21 |  22 | 23 | ## Test Application 24 | 25 | Visit `localhost:3000` on your browser (Excluding Safari) to test the application; you will be asked to give permission to access the camera on your machine. 26 | 27 |  28 | 29 | If permission is granted, you can proceed to test your application. 30 | 31 |  32 | 33 | --- 34 | 35 | I wrote this README while I was bored, so if anything doesn't make sense it's totally my fault, do send in a PR for anything you'd like to correct, add or remove. 36 | 37 | E go be ✌️ 38 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "object-detection", 3 | "version": "1.0.0", 4 | "description": "", 5 | "keywords": [], 6 | "main": "src/index.js", 7 | "dependencies": { 8 | "@tensorflow-models/coco-ssd": "0.1.1", 9 | "@tensorflow/tfjs": "0.14.0", 10 | "react": "16.5.2", 11 | "react-dom": "16.5.2", 12 | "react-magic-dropzone": "1.0.1", 13 | "react-scripts": "^2.0.3" 14 | }, 15 | "devDependencies": {}, 16 | "scripts": { 17 | "start": "react-scripts start", 18 | "build": "react-scripts build", 19 | "test": "react-scripts test --env=jsdom", 20 | "eject": "react-scripts eject" 21 | }, 22 | "browserslist": [">0.2%", "not dead", "not ie <= 11", "not op_mini all"] 23 | } 24 | -------------------------------------------------------------------------------- /public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |
5 | 6 | 7 | 8 | 12 | 13 | 14 | 23 |