dolortaste / PolygonDetection

A Python 2.7 program that detects polygons in webcam images using OpenCV and heuristics.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PolygonDetection

This repository contains code written in Python 2.7 for Blackburn College's Fall 2016 Artificial Intelligence class CS370.

PolygonDetection captures an image from a webcam, processes the webcam image with OpenCV, scans the processed image for polygon contours, and then attempts to detect and classify all polygons in the image. During testing I put shapes cut from dark-colored construction paper on a white canvas and used my Logitech webcam to take images of the canvas. While this program does detect polygons up to 10 sides, I found that polygons with more than 7 sides are often misclassified.

Prerequisites

  • Python 2.7 or higher
  • NumPy 1.12 or higher
  • OpenCV-Python 3.0 or higher
  • imutils 0.3.7 or higher

License

This project is licensed under the MIT License - see the LICENSE file for details

About

A Python 2.7 program that detects polygons in webcam images using OpenCV and heuristics.

License:MIT License


Languages

Language:Python 100.0%