https://github.com/davidgasquez/category-recognition
:camera: This tool allows image classification into different categories using OpenCV and Machine Learning techniques
https://github.com/davidgasquez/category-recognition
category-recognition image-classification opencv
Last synced: about 1 year ago
JSON representation
:camera: This tool allows image classification into different categories using OpenCV and Machine Learning techniques
- Host: GitHub
- URL: https://github.com/davidgasquez/category-recognition
- Owner: davidgasquez
- License: gpl-2.0
- Created: 2015-01-24T10:56:46.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-02-09T18:12:36.000Z (over 11 years ago)
- Last Synced: 2025-04-12T03:52:05.904Z (about 1 year ago)
- Topics: category-recognition, image-classification, opencv
- Language: TeX
- Homepage:
- Size: 33.8 MB
- Stars: 4
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Category Recognition
====================
This tool allows image classification into different categories using OpenCV
and Machine Learning techniques.
Dependencies
------------
- OpenCV
Resources Structure
-------------------
- resources/
- random_images/
- categories_train/
- category_1/
- category_2/
- category_3/
- ...
- categories_test/
- category_1/
- category_2/
- category_3/
- ...
Run
---
1. Fork, clone or download the source from GitHub
2. Compile it using `make`
3. Create vocabulary file with a bunch of random images `./make_vocabulary `
4. Make a folder to add categories folders with images to train SVM
5. Create Bag of Words descriptors of your categories train images `./bow `
6. Now you have a file with the trained SVM and in console output you have the labels.
7. Classify with `./classify "`. It will return a number you must match in the computed labels when computing Bag of Words