{"id":15463382,"url":"https://github.com/ntamvl/deepdetect-client-rails-example","last_synced_at":"2026-04-19T14:04:55.125Z","repository":{"id":83971084,"uuid":"84628976","full_name":"ntamvl/deepdetect-client-rails-example","owner":"ntamvl","description":"DeepDetect Client Rails Example","archived":false,"fork":false,"pushed_at":"2017-03-11T09:18:26.000Z","size":1405,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-28T11:25:45.028Z","etag":null,"topics":["deepdetect","deeplearning","deeplearningapi","rails","ruby"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ntamvl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2017-03-11T06:22:41.000Z","updated_at":"2024-02-21T10:48:28.000Z","dependencies_parsed_at":"2023-04-10T08:46:48.856Z","dependency_job_id":null,"html_url":"https://github.com/ntamvl/deepdetect-client-rails-example","commit_stats":{"total_commits":24,"total_committers":1,"mean_commits":24.0,"dds":0.0,"last_synced_commit":"8a51c11d9fea9ecb0b3949b7b76a5d0719285635"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ntamvl/deepdetect-client-rails-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ntamvl%2Fdeepdetect-client-rails-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ntamvl%2Fdeepdetect-client-rails-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ntamvl%2Fdeepdetect-client-rails-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ntamvl%2Fdeepdetect-client-rails-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ntamvl","download_url":"https://codeload.github.com/ntamvl/deepdetect-client-rails-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ntamvl%2Fdeepdetect-client-rails-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32009243,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"online","status_checked_at":"2026-04-19T02:00:07.110Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["deepdetect","deeplearning","deeplearningapi","rails","ruby"],"created_at":"2024-10-02T00:20:42.480Z","updated_at":"2026-04-19T14:04:55.083Z","avatar_url":"https://github.com/ntamvl.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DeepDetect Client Rails Example\n\n## Requirements\n- Ubuntu 14.04 or Ubuntu 16.04\n- Rails 5+\n- Ruby 2.2+\n- Redis\n\n## Install DeepDetect\n**Install dependencies:**\n```\nsudo apt-get install build-essential libgoogle-glog-dev libgflags-dev libeigen3-dev libopencv-dev libcppnetlib-dev libboost-dev libboost-iostreams-dev libcurlpp-dev libcurl4-openssl-dev protobuf-compiler libopenblas-dev libhdf5-dev libprotobuf-dev libleveldb-dev libsnappy-dev liblmdb-dev libutfcpp-dev cmake libgoogle-perftools-dev unzip\n```\n\n**Clone \u0026 build deepdetect:**\n```\ncd \u0026\u0026 mkdir Projects \u0026\u0026 git clone git@github.com:beniz/deepdetect.git\ncd deepdetect \u0026\u0026 mkdir build\ncd build\ncmake ..\nmake\n```\n\n**Start the server:**\n```\ncd build/main\n./dede\n\nDeepDetect [ commit 73d4e638498d51254862572fe577a21ab8de2ef1 ]\nRunning DeepDetect HTTP server on localhost:8080\n```\n\nRead more at https://github.com/beniz/deepdetect\n\n**Clone models that are trained by me:**\n```\ncd \u0026\u0026 mkdir Models\nwget http://ntam.me/downloads/person_yes_no.tar.gz\ntar xvf person_yes_no.tar.gz\n```\n\nType cmd `pwd` at folder Models to get absolute path\n\nExample with my absolute path model\n```\n/home/tamnguyen/Models\n```\n\n## How to run\n```\ngit clone git@github.com:ntamvl/deepdetect-client-rails-example.git\nbundle install\n\n# edit config/database.yml then run\nrails db:create \u0026\u0026 rails db:migrate \u0026\u0026 rails db:seed\n\n# edit deepdetect config at config/deepdetect.json\n# update model_path like this\n{\n  \"model_path\": \"/home/tamnguyen/Models\"\n}\n\n# run on development\nrails s -b 0.0.0.0\n\n# run on production as daemonize\nbundler exec puma -C config/puma.rb -e production -d\n```\n\n## Usage\n**Predict an image by model**\n- Endpoint: `POST /v1/predict`\n- Header:\n  - Authorization: Authentication token\n- Params:\n  - image_url: string, required\n  - model: string, required\n\n## How to use\n```\ncurl -X POST --header 'Content-Type: application/x-www-form-urlencoded' --header 'Accept: application/json' --header 'Authorization: Token token=TtDKqIuz50GyNpl7z8tMtQtt' -d 'image_url=https%3A%2F%2Fscontent.fsgn1-1.fna.fbcdn.net%2Fv%2Ft1.0-9%2F1239414_10201956642662189_587041755_n.jpg%3Foh%3D9e9be2c2b9318abac66abde163a88399%26oe%3D592CF192\u0026model=person_yes_no' 'http://127.0.0.1:3000/v1/predict.json'\n```\n\nOR use API docs at `http://localhost:3000/docs`\n\n![Example result](https://raw.githubusercontent.com/ntamvl/deepdetect-client-rails-example/master/example_result.png)\n\n\n## Architecture Diagram\n![Machine Learning Service Application Architecture](https://c7.staticflickr.com/6/5467/30326223422_fb15e3c2c8_b.jpg)\n\n## Contributing\nML API is designed and implemented by Tam Nguyen [ntamvl@gmail.com](ntamvl@gmail.com)\nBug reports and pull requests are welcome on GitHub at https://github.com/ntamvl/deepdetect-client-rails-example\n\n\u003e I will upload more models when I have free time :D :P\n\n\u003e you can get more models at http://ntam.me/downloads/\n\n## License\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fntamvl%2Fdeepdetect-client-rails-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fntamvl%2Fdeepdetect-client-rails-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fntamvl%2Fdeepdetect-client-rails-example/lists"}