User Tools

Site Tools


processing:video_capture

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
processing:video_capture [2013/08/15 22:29] – [Reduce resolution] mithatprocessing:video_capture [2013/08/23 04:10] (current) – [Video capture examples] mithat
Line 1: Line 1:
 ====== Video capture examples ====== ====== Video capture examples ======
  
-The examples below are based on documentation and code from the [[http://www.processing.org/reference/libraries/video/Capture.html|Processing 2.0 library reference]] and at [[http://www.learningprocessing.com/|Learning Processing]].+The examples below lean heavily on documentation and code from the [[http://www.processing.org/reference/libraries/video/Capture.html|Processing 2.0 library reference]] and at [[http://www.learningprocessing.com/|Learning Processing]].
  
 ===== List available capture devices ===== ===== List available capture devices =====
Line 269: Line 269:
  
 ===== Brightest pixel ===== ===== Brightest pixel =====
 +The following example takes the reduced resolution camera feed above and draws a colored circle inside the brightest pixel found. If there is more than one pixel with the same brightness, then it shows the first one (scanning from top-left to bottom-right). It also adds some code to indicate frame timing.
 +
 <file java capture_brightest_pixel.pde> <file java capture_brightest_pixel.pde>
 /** Reduce resolution of captured image and indicate brightest pixel.  /** Reduce resolution of captured image and indicate brightest pixel. 
processing/video_capture.1376605743.txt.gz · Last modified: 2013/08/15 22:29 by mithat

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki