{"id":22294811,"url":"https://github.com/tkd-alex/food-classification","last_synced_at":"2025-07-29T01:31:37.284Z","repository":{"id":70126881,"uuid":"84801085","full_name":"Tkd-Alex/Food-Classification","owner":"Tkd-Alex","description":"A Social Media Management project. Feature collection with BOW. Pics classification with k­-NN.","archived":false,"fork":false,"pushed_at":"2018-05-06T08:14:29.000Z","size":771,"stargazers_count":7,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-05T05:41:19.040Z","etag":null,"topics":["bovw","classification","feature","food","knn","learning","machine","python"],"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/Tkd-Alex.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":"2017-03-13T08:21:07.000Z","updated_at":"2024-05-08T14:43:55.000Z","dependencies_parsed_at":"2023-02-25T01:00:31.114Z","dependency_job_id":null,"html_url":"https://github.com/Tkd-Alex/Food-Classification","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Tkd-Alex/Food-Classification","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tkd-Alex%2FFood-Classification","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tkd-Alex%2FFood-Classification/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tkd-Alex%2FFood-Classification/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tkd-Alex%2FFood-Classification/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Tkd-Alex","download_url":"https://codeload.github.com/Tkd-Alex/Food-Classification/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tkd-Alex%2FFood-Classification/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267616555,"owners_count":24116153,"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","status":"online","status_checked_at":"2025-07-28T02:00:09.689Z","response_time":68,"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":["bovw","classification","feature","food","knn","learning","machine","python"],"created_at":"2024-12-03T17:39:06.419Z","updated_at":"2025-07-29T01:31:37.279Z","avatar_url":"https://github.com/Tkd-Alex.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Food-Classification\nThis _Social Media Management_ project allow to classificate picture between food and non-food.\n#### What we do:\n1. Extract feature splitted 70% for training and 30% test set.\n2. With deasy (step=8) extract local feature.\n3. To build aur dictionary of visual word, we have cluster all local feature with KMeans=500 (scikitlearn).\n4. Finally to classificate the picture we have used KNN.\n\n![markdown-preview](doc/Schermata%20da%202017-03-13%2009-33-58.png)\n\n## Bag of visual word\n\u003eIn computer vision, the bag-of-words model (BoW model) can be applied to image classification, by treating image features as words. In document classification, a bag of words is a sparse vector of occurrence counts of words; that is, a sparse histogram over the vocabulary. In computer vision, a bag of visual words is a vector of occurrence counts of a vocabulary of local image features.\n\n### Set enviroment\nYou need to have install on your system:\n- [Python2.7](http://www.python.it/) \n- [Skimage](http://scikit-image.org/)\n- [Numpy](http://www.numpy.org/)\n- [Matplotlib](http://matplotlib.org/)\n\n### How to use\nTo use this script you need to clone this repo and download from release the **dataset.7z** file.\nExtract the file in the same folder of the repo and extract _dataset/Food.7z_ \u0026 _dataset/Non-Food.7z_.\nLaunch _main.py_ and enojy the classificator.\n\n### References\nOriginal dataset:\n- [Food Dataset](http://iplab.dmi.unict.it/madima2015/UNICT-FlickrFood.rar)\n- [Non-Food Dataset](http://iplab.dmi.unict.it/madima2015/UNICT-FlickrNon-Food.rar)\n\nInspired by http://iplab.dmi.unict.it/madima2015\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftkd-alex%2Ffood-classification","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftkd-alex%2Ffood-classification","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftkd-alex%2Ffood-classification/lists"}