This project focuses on image classification using OpenCV for face and eye detection, and machine learning algorithms for classification tasks. The project utilizes Haar cascades for face and eye detection, and various machine learning models for classification.
Clone the repository:
git clone https://github.com/nky001/img-classification.git
cd img-classification
Install dependencies:
pip install -r requirements.txt
python image_classification.py
The project uses Haar cascades for face and eye detection:
import cv2
face_cascade = cv2.CascadeClassifier("server/opencv/haarcascades/haarcascade_frontalface_default.xml")
eye_cascade = cv2.CascadeClassifier("server/opencv/haarcascades/haarcascade_eye.xml")
The project employs various machine learning models for classification, including:
from sklearn.svm import SVC
from sklearn.ensemble import RandomForestClassifier
from sklearn.linear_model import LogisticRegression
This project is licensed under the MIT License.
Feel free to modify and expand upon this template to better fit your project's specific details and requirements! Let me know if there's anything else you'd like to include or if you have any specific preferences.