Skip to content

Latest commit

 

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Computer Vision Projects

A collection of four small, self-contained computer vision exercises with Python/OpenCV.

Projects

color-detection

Detects colored objects in a static image (detect_image.py) or a video stream (detect_video.py) by converting frames to HSV, thresholding for a color range, and outlining the largest matching contour. detect_video.py extends this to track several colors (red, green, blue, yellow) simultaneously frame by frame.

coin-counter

Counts coins on a tray from a set of sample photos. Segments the tray via HSV color thresholding, detects circles with the Hough Circle Transform, and classifies each detected coin as big/small and inside/outside the tray, overlaying the counts on the image.

feature-matching

Three scripts on keypoint detection and matching with SIFT:

  • corner_harris.py - corner detection (Harris) alongside SIFT keypoints on a single image.
  • feature_matching.py - SIFT + FLANN-based matching between a query and a train image, with Lowe's ratio test.
  • video_feature_matching.py - extends matching to a video: tracks a query image's location frame-by-frame using SIFT/FLANN matches, drawing its outline once enough good matches are found.

cifar10-cnn

Trains a convolutional neural network (Keras) on CIFAR-10 image classification, with data augmentation (flip/translate/rotate), batch normalization, and dropout. After training, generates a PDF report with the model architecture diagram, loss/accuracy curves, a confusion matrix, and the final test accuracy.

Requirements

opencv-python
numpy
keras / tensorflow
scikit-learn
matplotlib

Usage

Each project is standalone - cd into its folder and run the script directly, e.g.:

cd color-detection
python detect_image.py

There are some scripts that read sample images/videos, which you can find in a local samples/ folder inside that project's directory or use your own.

About

Collection of OpenCV computer vision exercises - feature matching (FLANN, Harris corner detection), color detection, a coin counter, and a CIFAR-10 CNN.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages