Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
p5js-webcam1 [2024/08/20 23:38] – renick | p5js-webcam1 [2024/08/22 00:01] (current) – renick | ||
---|---|---|---|
Line 54: | Line 54: | ||
===== more on the webcam ===== | ===== more on the webcam ===== | ||
- | This set of videos by Jeff Thompson shows a nice trick for getting a performant grid of x/y values and using the red value for that pixel as a measure of brightness and mapping that to the size of a circle to be drawn at that point | + | This set of videos by Jeff Thompson |
- https:// | - https:// | ||
Line 61: | Line 61: | ||
His code is at this link: https:// | His code is at this link: https:// | ||
+ | He explains how to get a particular pixel value in these videos: | ||
+ | - (basics) https:// | ||
+ | - (more performant by reading the flat pixel array) https:// | ||
+ | |||
+ | Here's a useful example from Kokyoong Lim for some simple motion detection: | ||
+ | |||
+ | - https:// | ||