Skip to content

nicoversity/cc_of_workshop_simpleObjectDetectionUsingOpenCV

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Creative coding using openFrameworks - Workshop: Simple Object Detection using OpenCV

complementary slides: GitHub, 9.59 MB

openFrameworks version: 0.9.6

The purpose of this project is to illustrate and teach the access of connected cameras, basic image manipulation as well as some simple object detection capabilities of the OpenCV addon using the the creative coding toolkit openFrameworks. This activity is meant to be held in a workshop-like format and steb by step to the participants using live coding, supported by summarizing slides.

Following, a brief overview about the project's content is given in order as they are illustrated during the workshop:

  1. Setup a camera input source and draw the camera input to the application window. Furthermore, a helper function is created in order to log information about available camera devices.
  2. Create a HSV representation of the original camera input image as well as extracting hue, saturation and value color channel information into separate image instances.
  3. Simple Image manipulation in order to assist the later object detection by taking the difference between a registered background and the saturation color channel image. Additionally, the contrast is increased via defined threshold value.
  4. Using the OpenCV Contour Finder instance, objects ("blobs") are detected and visualized accordingly.
  5. Using the center point of each detected object ("blob"), the color is extracted and visualized as a circle overlay.

License

MIT License, see LICENSE.md

Releases

No releases published

Packages

No packages published

Languages