You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
_Note: There's a bug that prevents live camera access in current versions of Processing 2.0 on machines with a Retina display._
30
30
@@ -34,79 +34,87 @@ Detect faces in images.
34
34
35
35
<ahref="http://www.flickr.com/photos/unavoidablegrain/8634017624/"title="Screen Shot 2013-04-08 at 1.22.18 PM by atduskgreg, on Flickr"><imgsrc="http://farm9.staticflickr.com/8543/8634017624_35f7ef05ce.jpg"width="500"height="358"alt="Screen Shot 2013-04-08 at 1.22.18 PM"></a>
Adjust the brightness and contrast of color and gray images.
42
42
43
43
<ahref="http://www.flickr.com/photos/unavoidablegrain/9155239258/"title="brightness and contrast by atduskgreg, on Flickr"><imgsrc="http://farm3.staticflickr.com/2841/9155239258_41a7df36c6.jpg"width="500"height="358"alt="brightness and contrast"></a>
Basic filtering operations on images: threshold, blur, and adaptive thresholds.
50
50
51
51
<ahref="http://www.flickr.com/photos/unavoidablegrain/8643666252/"title="Screen Shot 2013-04-12 at 1.42.30 PM by atduskgreg, on Flickr"><imgsrc="http://farm9.staticflickr.com/8240/8643666252_be0da1c751.jpg"width="500"height="358"alt="Screen Shot 2013-04-12 at 1.42.30 PM"></a>
Find contours in images and calculate polygon approximations of the contours (i.e., the closest straight line that fits the contour).
58
58
59
59
<ahref="http://www.flickr.com/photos/unavoidablegrain/9024663015/"title="contours with polygon approximations by atduskgreg, on Flickr"><imgsrc="http://farm4.staticflickr.com/3719/9024663015_f419b117b1.jpg"width="500"height="208"alt="contours with polygon approximations"></a>
Three different edge-detection techniques: Canny, Scharr, and Sobel.
66
66
67
67
<ahref="http://www.flickr.com/photos/unavoidablegrain/8635989723/"title="Screen Shot 2013-04-10 at 2.03.59 AM by atduskgreg, on Flickr"><imgsrc="http://farm9.staticflickr.com/8109/8635989723_170b69dca0.jpg"width="500"height="358"alt="Screen Shot 2013-04-10 at 2.03.59 AM"></a>
Find straight lines in the image using Hough line detection.
74
+
75
+
<ahref="http://www.flickr.com/photos/unavoidablegrain/9263329608/"title="Hough line detection by atduskgreg, on Flickr"><imgsrc="http://farm4.staticflickr.com/3781/9263329608_735ce228bb.jpg"width="486"height="500"alt="Hough line detection"></a>
<ahref="http://www.flickr.com/photos/unavoidablegrain/9199572469/"title="finding the brightest point by atduskgreg, on Flickr"><imgsrc="http://farm8.staticflickr.com/7407/9199572469_4a25c83062.jpg"width="500"height="366"alt="finding the brightest point"></a>
Assign a sub-section (or Region of Interest) of the image to be processed. Video of this example in action here: [Region of Interest demo on Vimeo](https://vimeo.com/69009345).
82
90
83
91
<ahref="http://www.flickr.com/photos/unavoidablegrain/9077805277/"title="region of interest by atduskgreg, on Flickr"><imgsrc="http://farm4.staticflickr.com/3795/9077805277_084d87a3a5.jpg"width="500"height="358"alt="region of interest"></a>
Find the difference between two images in order to subtract the background or detect a new object in a scene.
90
98
91
99
<ahref="http://www.flickr.com/photos/unavoidablegrain/8640005799/"title="Screen Shot 2013-04-11 at 2.10.35 PM by atduskgreg, on Flickr"><imgsrc="http://farm9.staticflickr.com/8114/8640005799_44b48e01ae.jpg"width="500"height="409"alt="Screen Shot 2013-04-11 at 2.10.35 PM"></a>
Thin (erode) and expand (dilate) an image in order to close holes. These are known as "morphological" operations.
98
106
99
107
<ahref="http://www.flickr.com/photos/unavoidablegrain/9075875005/"title="dilation and erosion by atduskgreg, on Flickr"><imgsrc="http://farm3.staticflickr.com/2818/9075875005_8f7cde3ed7.jpg"width="496"height="500"alt="dilation and erosion"></a>
Detect moving objects in a scene. Use background subtraction to distinguish background from foreground and contour tracking to track the foreground objects.
106
114
107
115
<ahref="http://www.flickr.com/photos/unavoidablegrain/9220336868/"title="Background Subtraction by atduskgreg, on Flickr"><imgsrc="http://farm8.staticflickr.com/7292/9220336868_bed3498528.jpg"width="500"height="369"alt="Background Subtraction"></a>
@@ -115,62 +123,62 @@ Demonstration of what you can do color images in OpenCV (threshold, blur, etc) a
115
123
116
124
<ahref="http://www.flickr.com/photos/unavoidablegrain/9136033334/"title="color operations: threshold and blur by atduskgreg, on Flickr"><imgsrc="http://farm6.staticflickr.com/5451/9136033334_3345dfa057.jpg"width="500"height="358"alt="color operations: threshold and blur"></a>
Separate a color image into red, green, blue or hue, saturation, and value channels in order to work with the channels individually.
123
131
124
132
<ahref="http://www.flickr.com/photos/unavoidablegrain/9246157901/"title="ColorChannels by atduskgreg, on Flickr"><imgsrc="http://farm3.staticflickr.com/2847/9246157901_08ccf19e7d.jpg"width="488"height="500"alt="ColorChannels"></a>
Demonstrates use of the findHistogram() function and the Histogram class to get and draw histograms for grayscale and individual color channels.
131
139
132
140
<ahref="http://www.flickr.com/photos/unavoidablegrain/9174190443/"title="gray, red, green, blue histograms by atduskgreg, on Flickr"><imgsrc="http://farm8.staticflickr.com/7287/9174190443_224a740ce8.jpg"width="500"height="355"alt="gray, red, green, blue histograms"></a>
Detect objects based on their color. Demonstrates the use of HSV color space as well as range-based image filtering.
139
147
140
148
<ahref="http://www.flickr.com/photos/unavoidablegrain/9193745547/"title="Hue-based color detection by atduskgreg, on Flickr"><imgsrc="http://farm4.staticflickr.com/3799/9193745547_8f09e55a39.jpg"width="500"height="397"alt="Hue-based color detection"></a>
An example of the process involved in calibrating a camera. Currently only detects the corners in a chessboard pattern.
147
155
148
156
<ahref="http://www.flickr.com/photos/unavoidablegrain/8706849024/"title="Screen Shot 2013-05-04 at 2.03.23 AM by atduskgreg, on Flickr"><imgsrc="http://farm9.staticflickr.com/8267/8706849024_f2d938ec51.jpg"width="500"height="382"alt="Screen Shot 2013-05-04 at 2.03.23 AM"></a>
A more advanced example. Detecting skin in an image based on colors in a region of color space. Warning: uses un-wrapped OpenCV objects and functions.
155
163
156
164
<ahref="http://www.flickr.com/photos/unavoidablegrain/8707167599/"title="Screen Shot 2013-05-04 at 2.25.18 PM by atduskgreg, on Flickr"><imgsrc="http://farm9.staticflickr.com/8135/8707167599_d38fbdfe30.jpg"width="500"height="171"alt="Screen Shot 2013-05-04 at 2.25.18 PM"></a>
An advanced example. Calculates depth information from a pair of stereo images. Warning: uses un-wrapped OpenCV objects and functions.
163
171
164
172
<ahref="http://www.flickr.com/photos/unavoidablegrain/8642493130/"title="Screen Shot 2013-04-12 at 2.27.30 AM by atduskgreg, on Flickr"><imgsrc="http://farm9.staticflickr.com/8260/8642493130_f99dd76f3d.jpg"width="500"height="404"alt="Screen Shot 2013-04-12 at 2.27.30 AM"></a>
An in-depth advanced example. Detect a CV marker in an image, warp perspective, and detect the number stored in the marker. Many steps in the code. Uses many un-wrapped OpenCV objects and functions.
171
179
172
180
<ahref="http://www.flickr.com/photos/unavoidablegrain/8642309968/"title="Screen Shot 2013-04-12 at 12.20.17 AM by atduskgreg, on Flickr"><imgsrc="http://farm9.staticflickr.com/8522/8642309968_257e397db2.jpg"width="500"height="225"alt="Screen Shot 2013-04-12 at 12.20.17 AM"></a>
0 commit comments