notion parallax

what happens when ideas slide past each other
  • Home
  • buy me books
  • i look at this
  • i read this
  • tutorials
31 Mar 2008

the experiment continues

upon getting stuck into any seemingly simple problem, more complicated things always seem to arise.

I think I’ll get something at least a little bit useful out of this soon though.

lots of tests and diagrams after this

This is the stock code for finding blobs, but with an extra line that marks the centres of the boxes
They make a bit more sense with just the edges turned on.
Ultimately the display of all this data will be switched off to maximise running speed.
The centre markers can be tagged…
..with a number to identify them.
This highlights a problem that I had anticipated. The numbering (array index) of the blobs is dynamically assigned. They are detected on a frame by frame basis, and therefore the numbering is not consistent across frames. This means that the paths can’t just be drawn, but I’ll need to do some sort of proximity search to find the nearest one to the previous one, and just hope that the movement isn’t sufficiently large to upset the progression.
First attempts at tracking points are proving tricky, even without any sort of continuity tracking.
If the vertices with 0,0 coords are removed, it just spatters points.
This also highlights the vast quantity of data that I am gathering here.
There will probably need to be some sort of data reduction at the end, as at 10 fps, with 5 blobs, that produces 100 values a second, so even recording for a minute will make a huge dataset.

The mapping of a point from frame to frame is going to prove to be the most complicated part of this operation
The possible options for frame to frame changes in path coordinate arrays. I’m going to have a go at implementing a solution that tests to see if there is a centroid in the previous frame within 10ish pixels of the current one, then if there is, starts measuring it’s path and adds the list of coords to a list.
It’ll take a bit of fiddling to find out how to work with lists in processing, but it should work.I should probably also implement a filter that only bothers dealing with blobs if they are over a certain number of pixels in area, as suggested here.There are all kinds of issues that will probably pop up. I find this sort of data management/array stuff quite hard to get my head around. I wonder why?

Tags: architecture, geek, hardware

This entry was posted on Monday, March 31st, 2008 at 1:55 pm and is filed under Uncategorized. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Reply

Click here to cancel reply.

« experiment progress
chipping away »
  • Recent Posts

    • Humility collection
    • a weekend on wheels
    • emotionality…0
    • graphing legend status
    • Public perceptions of energy consumption and savings
  • Recent Comments

    • Ben: http://cafehayek.com/2011/12/m an-bites-dog.html Two top hurricane predictors are leaving the field because they...
    • Ben: http://road.cc/content/blog/49 070-cycling-london-getting-saf er An article by Jenny Jones about how she...
    • Ben: There’s another video from the night here: http://www.youtube.com/watch?v =LrzKx3Kepws Lots of pictures of...
    • josh: Hey, great tutorial. I’m looking forward to reading more
    • Bethan: “The certificate claims that I’m not a “total legend”, yay!”. Do you mean “now a total...
  • Tags

    advertising architecture australia bikes books BVN climbing coffee collaborative cool links diploma economics eco stuff ecotect enhancement flying food future gardening GC geek hardware house keeping interaction Judit late night life major study masters music processing rmit scooter smart geometry studio surfing teaching thinking toys trips turning japanese tutorials UTS video writing
notion parallax is powered by WordPress
Theme Design by Generic Designer

Entries (RSS) and Comments (RSS)
loading Cancel
Post was not sent - check your email addresses!
Email check failed, please try again
Sorry, your blog cannot share posts by email.