<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Ofelia simple video analysis questions]]></title><description><![CDATA[<p>I'm new to PD and Ofelia (although I have used Max), and I've been searching around for ways to do the simple video analysis I need and I haven't found much. For example:</p>
<p>I would like to 'scan' the incoming webcam image and have an X Y coordinate spit out for any significant change in pixel value (signifying the sharp top edge of an object on a blurry background for example). And then get a value for the color of the top edge of that object.</p>
<p>Do I need OpenCV to do this or can it just be done using Ofelia and some coding? I'm not looking for some kind of mission critical use, it's for a toy so it doesn't have to be perfect. I'm lost when it comes to trying to take what I find at openFrameworks and somehow applying it to Ofelia...</p>
<p>Thanks, and I'm willing to pay someone for their help!</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13346/ofelia-simple-video-analysis-questions</link><generator>RSS for Node</generator><lastBuildDate>Sun, 08 Nov 2026 17:37:55 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/13346.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 10 Mar 2021 22:57:24 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Ofelia simple video analysis questions on Wed, 10 Mar 2021 22:57:24 GMT]]></title><description><![CDATA[<p>I'm new to PD and Ofelia (although I have used Max), and I've been searching around for ways to do the simple video analysis I need and I haven't found much. For example:</p>
<p>I would like to 'scan' the incoming webcam image and have an X Y coordinate spit out for any significant change in pixel value (signifying the sharp top edge of an object on a blurry background for example). And then get a value for the color of the top edge of that object.</p>
<p>Do I need OpenCV to do this or can it just be done using Ofelia and some coding? I'm not looking for some kind of mission critical use, it's for a toy so it doesn't have to be perfect. I'm lost when it comes to trying to take what I find at openFrameworks and somehow applying it to Ofelia...</p>
<p>Thanks, and I'm willing to pay someone for their help!</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13346/ofelia-simple-video-analysis-questions</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13346/ofelia-simple-video-analysis-questions</guid><dc:creator><![CDATA[riboflavo]]></dc:creator><pubDate>Wed, 10 Mar 2021 22:57:24 GMT</pubDate></item><item><title><![CDATA[Reply to Ofelia simple video analysis questions on Sat, 13 Mar 2021 20:01:24 GMT]]></title><description><![CDATA[<p>I wrote Zack Lee and he was helpful in setting me in the right direction for my particular need - he wrote:</p>
<p>&quot;For example, if you open &quot;ofelia/examples/video/asciiVideoExample/asciiVideoExample.lua&quot;, in line 51, you can replace the M.draw() function with the following:</p>
<p>function M.draw()<br />
local stepAmount = 20<br />
for i = 0, camWidth-1, stepAmount do<br />
for j = 0, camHeight-1, stepAmount do<br />
local color = vidGrabber:getPixels():getColor(i, j)<br />
color:invert()<br />
ofSetColor(color)<br />
ofDrawRectangle(i, j, stepAmount, stepAmount)<br />
end<br />
end<br />
end</p>
<p>It will check the pixel every 20 steps, and get the color value, then invert the color and draw a rectangle with the color.&quot;</p>
<p>I could still use lots of help with the implementation if anyone is up for some paid Ofelia/Lua work though!</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13346/ofelia-simple-video-analysis-questions/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13346/ofelia-simple-video-analysis-questions/2</guid><dc:creator><![CDATA[riboflavo]]></dc:creator><pubDate>Sat, 13 Mar 2021 20:01:24 GMT</pubDate></item></channel></rss>