OpenCV for Processing
By Procheta Nag
Open Source
Free “Open Source Computer Vision Library (OpenCV)”
Optimized
2500 optimized algorithms focusing real-time applications (ex: DIP)
Cross-Platform
C++, Python and Java interfaces support Linux, MacOS, Windows, iOS, and Android.
DIP =Digital Image Processing
Examples
Face Detection and Recognition
Facebook photo tag
Face lock
opencv.detect()
Ex:Smart Face-cam attendance system
Face detection
(Detect face in image)
Training images
Face recognition(live cam)
Examples
ColorChannels
Separate a color image into RGB and HSB.
work with the channels individually.
opencv.getR()
FindHistogram
Get and draw histograms for grayscale and individual color
channels.
opencv.findHistogram()
Examples
Filter Images
Basic filtering operations on images: threshold, blur,
and adaptive thresholds.
opencv.blur()
ImageDiff
Find the difference between two images
subtract the background or detect a new object in a scene.
opencv.diff()
Processing Integration
OpenCV JAVA API for processing
Installation ( Latest version 4.1.1)
Windows, Mac and Linux version
Import library
import gab.opencv.*;
OpenCV opencv;
References
• https://opencv.org
• http://www.willowgarage.com/pages/software/opencv
• https://github.com/atduskgreg/opencv-processing
• https://www.sciencealert.com/facebook-just-pushed-its-facial-recognition-
into-a-bold-new-future-tagged-privacy

Opencv