Interactive floor - Dev blog for group 9 / IDP http://idp.mexinetica.com/blog/ Interactive floor - Group 9 dev blog (c) 2009 Mr. Personality [group 9] Sun, 07 Nov 2010 07:17:27 -0800 http://www.textmotion.org Interactive Floor for Windows - simplified http://idp.mexinetica.com/blog/blog/blog/view/69/interactive-floor-for-windows-simplified http://idp.mexinetica.com/blog/blog/blog/view/69/interactive-floor-for-windows-simplified <p><div><font class="Apple-style-span" color="#000000" face="'courier new', 'andale mono', monaco"><span class="Apple-style-span" style="line-height: 20px; font-size: medium">Due to the excessively complicated instructions seveal people got lost when trying to use our code, so I've taken the time to ease things up a bit.</span></font></div><div><font class="Apple-style-span" color="#000000" face="'courier new', 'andale mono', monaco"><span class="Apple-style-span" style="line-height: 20px; font-size: medium">For now there's only a Windows version which was the hardest to get up and running - if you need OSX or GNU/Linux versions feel free to ask for it in the comments and I'll do it when I have the time.</span></font></div><div><font class="Apple-style-span" color="#000000" face="'courier new', 'andale mono', monaco"><span class="Apple-style-span" style="line-height: 20px; font-size: medium"></p> <p></span></font></div><div><font class="Apple-style-span" color="#000000" face="'courier new', 'andale mono', monaco"><span class="Apple-style-span" style="line-height: 20px; font-size: medium">So now in theory you only need to download three things</span></font></div><div><font class="Apple-style-span" color="#000000" face="'courier new', 'andale mono', monaco"><span class="Apple-style-span" style="line-height: 20px; font-size: medium"></p> <p></span></font></div><div><font class="Apple-style-span" color="#000000" face="'courier new', 'andale mono', monaco"><span class="Apple-style-span" style="line-height: 20px; font-size: medium">1) The OpenFrameworks package with the optic flow addon I provide here: <a href="http://idp.mexinetica.com/files/of_preRelease_v0.05_windows_cb_FAT_withInteractiveFloorTracking.zip">http://idp.mexinetica.com/files/of_preRelease_v0.05_windows_cb_FAT_withInteractiveFloorTracking.zip</a></span></font></div><div><font class="Apple-style-span" color="#000000" face="'courier new', 'andale mono', monaco"><span class="Apple-style-span" style="line-height: 20px; font-size: medium"></p> <p></span></font></div><div><font class="Apple-style-span" color="#000000" face="'courier new', 'andale mono', monaco"><span class="Apple-style-span" style="line-height: 20px; font-size: medium">2) Codeblocks 10.05 WITH MiNGW from codeblocks.org</span></font></div><div><font class="Apple-style-span" color="#000000" face="'courier new', 'andale mono', monaco"><span class="Apple-style-span" style="line-height: 20px; font-size: medium"></p> <p></span></font></div><div><font class="Apple-style-span" color="#000000" face="'courier new', 'andale mono', monaco"><span class="Apple-style-span" style="line-height: 20px; font-size: medium">3) Processing from processing.org</span></font></div><div><font class="Apple-style-span" color="#000000" face="'courier new', 'andale mono', monaco"><span class="Apple-style-span" style="line-height: 20px; font-size: medium"></p> <p></span></font></div><div><font class="Apple-style-span" color="#000000" face="'courier new', 'andale mono', monaco"><span class="Apple-style-span" style="line-height: 20px; font-size: medium">Here are the installation instructions (which are provided as a Readme inside the OpenFrameworks package</span></font></div><div><font class="Apple-style-span" color="#000000" face="'courier new', 'andale mono', monaco"><span class="Apple-style-span" style="line-height: 20px; font-size: medium"></p> <p></span></font></div><div><font class="Apple-style-span" color="#000000" face="'courier new', 'andale mono', monaco"><span class="Apple-style-span" style="line-height: 20px; font-size: medium"></p> <p></span></font></div><div><font class="Apple-style-span" color="#000000" face="'courier new', 'andale mono', monaco"><span class="Apple-style-span" style="line-height: 20px; font-size: medium"></span></font></div><blockquote><span><div><font class="Apple-style-span" color="#000000" face="'courier new', 'andale mono', monaco"><span class="Apple-style-span" style="line-height: 20px; font-size: medium">Hi, I've packed these things together so that it's easier to use.</span></font></div><div><font class="Apple-style-span" color="#000000" face="'courier new', 'andale mono', monaco"><span class="Apple-style-span" style="line-height: 20px; font-size: medium">Please follow these instructions so that you can get the Interactive Floor software up &amp; running:</span></font></div><div><font class="Apple-style-span" color="#000000" face="'courier new', 'andale mono', monaco"><span class="Apple-style-span" style="line-height: 20px; font-size: medium"></p> <p></span></font></div><div><font class="Apple-style-span" color="#000000" face="'courier new', 'andale mono', monaco"><span class="Apple-style-span" style="line-height: 20px; font-size: medium"></p> <p></span></font></div><div><font class="Apple-style-span" color="#000000" face="'courier new', 'andale mono', monaco"><span class="Apple-style-span" style="line-height: 20px; font-size: medium">1- Install CodeBlocks10.05mingw-setup from <a href="http://prdownload.berlios.de/codeblocks/codeblocks-10.05mingw-setup.exe">http://prdownload.berlios.de/codeblocks/codeblocks-10.05mingw-setup.exe</a> (or <a href="http://www.codeblocks.org/downloads/26">http://www.codeblocks.org/downloads/26</a> )</span></font></div><div><font class="Apple-style-span" color="#000000" face="'courier new', 'andale mono', monaco"><span class="Apple-style-span" style="line-height: 20px; font-size: medium"></p> <p></span></font></div><div><font class="Apple-style-span" color="#000000" face="'courier new', 'andale mono', monaco"><span class="Apple-style-span" style="line-height: 20px; font-size: medium">2- Unpack the included codeblocks_additions.zip file in C:\Program Files\CodeBlocks\MinGW</span></font></div><div><font class="Apple-style-span" color="#000000" face="'courier new', 'andale mono', monaco"><span class="Apple-style-span" style="line-height: 20px; font-size: medium"></p> <p></span></font></div><div><font class="Apple-style-span" color="#000000" face="'courier new', 'andale mono', monaco"><span class="Apple-style-span" style="line-height: 20px; font-size: medium">3- Open opticflowexampleWin32 from of_preRelease_v0.05_windows_cb_FAT\apps\addonsExamples\opticFlowExample</span></font></div><div><font class="Apple-style-span" color="#000000" face="'courier new', 'andale mono', monaco"><span class="Apple-style-span" style="line-height: 20px; font-size: medium"></p> <p></span></font></div><div><font class="Apple-style-span" color="#000000" face="'courier new', 'andale mono', monaco"><span class="Apple-style-span" style="line-height: 20px; font-size: medium">4- Click Compile, you'll get thousands of warnings in fmod_errors.h but it will still work:</span></font></div><div><font class="Apple-style-span" color="#000000" face="'courier new', 'andale mono', monaco"><span class="Apple-style-span" style="line-height: 20px; font-size: medium"></p> <p></span></font></div><div><font class="Apple-style-span" color="#000000" face="'courier new', 'andale mono', monaco"><span class="Apple-style-span" style="line-height: 20px; font-size: medium"> “..\..\..\libs\fmodex\inc\fmod_errors.h|23|warning: deprecated conversion from string constant to 'char*'|”</span></font></div><div><font class="Apple-style-span" color="#000000" face="'courier new', 'andale mono', monaco"><span class="Apple-style-span" style="line-height: 20px; font-size: medium"></p> <p></span></font></div><div><font class="Apple-style-span" color="#000000" face="'courier new', 'andale mono', monaco"><span class="Apple-style-span" style="line-height: 20px; font-size: medium">5- Click run</span></font></div><div><font class="Apple-style-span" color="#000000" face="'courier new', 'andale mono', monaco"><span class="Apple-style-span" style="line-height: 20px; font-size: medium"></p> <p></span></font></div><div><font class="Apple-style-span" color="#000000" face="'courier new', 'andale mono', monaco"><span class="Apple-style-span" style="line-height: 20px; font-size: medium">6- It usually crashes on exit, but seems to work fine.</span></font></div><div><font class="Apple-style-span" color="#000000" face="'courier new', 'andale mono', monaco"><span class="Apple-style-span" style="line-height: 20px; font-size: medium"></p> <p></span></font></div><div><font class="Apple-style-span" color="#000000" face="'courier new', 'andale mono', monaco"><span class="Apple-style-span" style="line-height: 20px; font-size: medium">7- Install Processing ( <a href="http://processing.org/">http://processing.org/</a> ) so you can use the included .pde interactive apps</span></font></div><div><font class="Apple-style-span" color="#000000" face="'courier new', 'andale mono', monaco"><span class="Apple-style-span" style="line-height: 20px; font-size: medium"></p> <p></span></font></div><div><font class="Apple-style-span" color="#000000" face="'courier new', 'andale mono', monaco"><span class="Apple-style-span" style="line-height: 20px; font-size: medium">8- Always start the tracking (openframeworks) application before the processing apps</span></font></div><div></div></span></blockquote><div><font class="Apple-style-span" color="#000000" face="'courier new', 'andale mono', monaco"><span class="Apple-style-span" style="line-height: 20px; font-size: medium"></p> <p></span></font></div><div><font class="Apple-style-span" color="#000000" face="'courier new', 'andale mono', monaco"><span class="Apple-style-span" style="line-height: 20px; font-size: medium">Hope this makes things easier!</span></font></div><div><font class="Apple-style-span" color="#000000" face="'courier new', 'andale mono', monaco"><span class="Apple-style-span" style="line-height: 20px; font-size: medium"></p> <p></span></font></div><div><font class="Apple-style-span" color="#000000" face="'courier new', 'andale mono', monaco"><span class="Apple-style-span" style="line-height: 20px; font-size: medium"></p> <p></span></font></div><div><font class="Apple-style-span" color="#000000" face="'courier new', 'andale mono', monaco"><span class="Apple-style-span" style="line-height: 20px; font-size: medium">/Alejandro</span></font></div></span></font></div></span></font></div></span></font></div></span></font></div></span></font></div></div></span></font></div></span></font></div></span></font></div></span></font></div></span></font></div></span></font></div></span></font></div></span></font></div></span></font></div></span></font></div></span></font></div></span></font></div></span></font></div></span></font></div></span></font></div></span></font></div></span></font></div></span></font></div></span></font></div></span></font></div></span></font></div></span></blockquote></span></font></div></span></font></div></span></font></div></span></font></div></span></font></div></span></font></div></span></font></div></span></font></div></span></font></div></span></font></div></span></font></div></span></font></div></span></font></div></span></font></div></span></font></div></p> rocaa@student.chalmers.se (unknown) Sun, 07 Nov 2010 07:17:27 -0800 By popular request, now available for Windows http://idp.mexinetica.com/blog/blog/blog/view/66/by-popular-request-now-available-for-windows http://idp.mexinetica.com/blog/blog/blog/view/66/by-popular-request-now-available-for-windows <p>I succeeded in making the tracking software compile in Windows and it seems to work.</p> <p>Here's how:</p> <p>1) Follow instructions for installing OpenFrameworks 05 FAT :</p> <p></p> <p><a href="http://www.openframeworks.cc/forum/viewtopic.php?t=523"><a href="http://www.openframeworks.cc/forum/viewtopic.php?t=523">http://www.openframeworks.cc/forum/viewtopic.php?t=523</a></a></p> <p></p> <p>(Don't forget the extra files that need to be placed in the mingw dir)</p> <p>2) Follow the tracking system's README instructions for the GNU/Linux set-up , but don't open the codeBlocks project for GNU/Linux just yet.</p> <p>3) Download the following package, <a href="http://idp.mexinetica.com/files/interactiveFloorWIN32.zip">interactiveFloorWIN32.zip</a> which contains a testApp with a minor modification to allow for windows compilation and a custom project file for Windows as well.</p> <p></p> <p>4) Replace apps\addonsExamples\opticFlowExample\src\testApp.cpp with the one provided in interactiveFloorWIN32.zip</p> <p></p> <p>5) Place the project file provided in interactiveFloorWIN32.zip in apps\addonsExamples\opticFlowExample\ and use it.</p> <p></p> <p>6) Copy the following DLLs from random places in the OpenFrameworks05 FAT package to apps\addonsExamples\opticFlowExample\bin\ :</p> <p></p> <p>cv100.dll</p> <p>cxcore100.dll</p> <p>libguide40.dll</p> <p>fmodex.dll</p> <p>FreeImage.dll</p> <p>glut.dll</p> <p></p> <p>7) Press compile. Good luck!</p> <p></a></a></p> rocaa@student.chalmers.se (unknown) Sat, 22 Aug 2009 00:22:00 -0700 Update http://idp.mexinetica.com/blog/blog/blog/view/65/update http://idp.mexinetica.com/blog/blog/blog/view/65/update <p>The tracking README file mentions <a href="http://wiki.openframeworks.cc/index.php?title=Download#Experimental_prereleases">http://wiki.openframeworks.cc/index.php?title=Download#Experimental_prereleases</a> as the source for OpenFrameworks; the right links are,</p> <p><p style="text-align: left"><span></span><span>for GNU/Linux:</p> <p></span></p><p style="text-align: left"><span></p> <p></span></p><p style="text-align: left"><span><a href="http://wiki.openframeworks.cc/index.php?title=Download#prerelease_0.05">http://wiki.openframeworks.cc/index.php?title=Download#prerelease_0.05</a></p> <p></span><span>and for MacOSX:</p> <p></span></p><p style="text-align: left"><span></p> <p></span></p><p style="text-align: left"><span><a href="http://wiki.openframeworks.cc/index.php?title=Download#current_prerelease_0.06">http://wiki.openframeworks.cc/index.php?title=Download#current_prerelease_0.06</a></span></p></p> <p>These will likely keep on changing as the OF team makes improvements.</p> <p>The same readme also mentions “assorted libraries” might be needed to compile the GNU/Linux version.</p> <p>Two known required libraries are <span style="font-weight: bold"></span><b>libraw1394-dev</b> and <b>freeglut3-dev</b> , available in both Ubuntu and debian repositories through Synaptic (apt-get, etc).</p> <p>Codeblocks used to copy and link library files properly as part of the compilation process but it seems to currently fail when doing so. In that case, create a link to <b>“of_preRelease_v0.05_linux_cb_FAT/export/libs”</b> from within the "<b>opticFlowExample/bin</b>" directory and create a script with the following commands:</p> <p><blockquote><span>#!/bin/sh</p> <p>echo $(pwd)</p> <p>export LD_LIBRARY_PATH=$(pwd)/libs/</p> <p>./opencvExample_debug</span></blockquote></p> <p>Save it as "<b>opticFlowExample/bin/run.sh</b>". Run this script when you want to launch the tracking app.</b></span></blockquote></b></b></b></b></span></span></p></span></p></span></span></p></span></p></span></span></p> rocaa@student.chalmers.se (unknown) Fri, 17 Jul 2009 12:45:00 -0700 Source code, project report available http://idp.mexinetica.com/blog/blog/blog/view/63/source-code-project-report-available http://idp.mexinetica.com/blog/blog/blog/view/63/source-code-project-report-available <p>Source code in an easy-to-use zip package is at <a href="http://web.student.chalmers.se/groups/idp09-9/code.zip"><a href="http://web.student.chalmers.se/groups/idp09-9/code.zip">http://web.student.chalmers.se/groups/idp09-9/code.zip</a></a> .</p> <p>The project report is located at <a href="http://web.student.chalmers.se/groups/idp09-9/report.pdf"><a href="http://web.student.chalmers.se/groups/idp09-9/report.pdf">http://web.student.chalmers.se/groups/idp09-9/report.pdf</a></a></p> <p></a></a></p> rocaa@student.chalmers.se (unknown) Wed, 27 May 2009 17:33:41 -0700 Settings definition of the OF tracking code http://idp.mexinetica.com/blog/blog/blog/view/58/settings-definition-of-the-of-tracking-code http://idp.mexinetica.com/blog/blog/blog/view/58/settings-definition-of-the-of-tracking-code <p>Modified the opticFlowExample tracking application to allow us to define the play area and scale blob coordinates accordingly.</p> <p>For now coordinates outside the play area are truncated, but tomorrow I'll try to code a better approach with users exiting when outside the play area, and blob events being ignored while outside the play area.</p> <p>The program is also able to load some settings from a text file. Adding support for more settings is trivial, and I'll do this tomorrow as well as post the full specifications of the file.</p> rocaa@student.chalmers.se (unknown) Thu, 09 Apr 2009 16:39:00 -0700 Code now runs on OSX http://idp.mexinetica.com/blog/blog/blog/view/55/code-now-runs-on-osx http://idp.mexinetica.com/blog/blog/blog/view/55/code-now-runs-on-osx <p>Two days ago I got the OpenFrameworks-based app running on OSX and keyvan was able to solve the mysterious “OF-based app does not report positions in processing” error.</p> <p>I spent a number of hours researching how to select a video device in order to be able to capture from an external webcam instead of the iSight, modifying the code and testing it. When it didn't work, I spent more time porting the OF blob tracking extension to OF.06, and it still didn't work. But today I found a rather silly workaround.</p> <p>1. Connect the webcam you want to use</p> <p>2. Open skype, go to preferences and turn on the video so it shows the iSight image.</p> <p>3. Forget about the skype preferences window but don't close it.</p> <p>4. Start the OF app, stand-alone or from the Processing app.</p> <p>5. The OF app should get image feed from the external webcam.</p> <p>Ok, so now I'll be able to focus more on the interaction (“Playing with new mac”)</p> rocaa@student.chalmers.se (unknown) Thu, 09 Apr 2009 00:45:00 -0700 Setting up the OF code in GNU/Linux & Mac OSX http://idp.mexinetica.com/blog/blog/blog/view/56/setting-up-the-of-code-in-gnu-linux-a-mac-osx http://idp.mexinetica.com/blog/blog/blog/view/56/setting-up-the-of-code-in-gnu-linux-a-mac-osx <p>0. Update your local copy of the interactive floor repo</p> <p>1. Download <span style="text-decoration: line-through"></span><a href="http://wiki.openframeworks.cc/index.php?title=Download#Experimental_prereleases">the OF wiki</a>, <span style="text-decoration: underline">FAT version 05</span> if you have GNU/Linux; if you have MacOS, <span style="text-decoration: underline">FAT version 06</span>.</p> <p>2. Uncompress the package.</p> <p>3. Copy the appropriate <b>opticFlowExample</b> directory from the <b>tracking section</b></p> <p>4. Paste it into <b>apps/addonsExamples</b> (where you decompressed your OpenFrameworks package).</p> <p>5. Copy the appropriate <span style="font-weight: bold"></span><b>ofxOpenCVBlobTrackingExt(05/06)</b> from the opticFlowExample directory, paste it in <b>addons</b> (where you decompressed your OpenFrameworks package) and rename it to <b>ofxOpenCVBlobTrackingExt</b>.</p> <p>6. Open the <b>CodeBlocks</b> file from the opticFlowExample if you use GNU/Linux, or the <b>XCodeproject</b> if you use OSX.</p> <p></b></b></b></b></b></span></b></b></b></span></span></a></span></p> rocaa@student.chalmers.se (unknown) Thu, 09 Apr 2009 00:40:00 -0700