{
 "blyg": "0.4",
 "id": "2va72wbgs5e6nw8mp2zdf5xxxj",
 "kind": "thread",
 "origin": "https://notionparallax.co.uk/",
 "page": "https://notionparallax.co.uk/2008/the-experiment-continues",
 "author": {
  "name": "Ben Doherty",
  "url": "https://notionparallax.co.uk/"
 },
 "created": "2008-03-31T02:55:41Z",
 "updated": "2008-03-31T02:55:41Z",
 "version": 1,
 "content_md": "# the experiment continues\n\n\n<p>upon getting stuck into any seemingly simple problem, more complicated things always seem to arise.</p>\n<p>I think I'll get something at least a little bit useful out of this soon though.</p>\n<p>lots of tests and diagrams after this </p>\n<table>\n<tr>\n<td><img src=\"https://notionparallax.co.uk/assets/08-03-31_tracker_progress_0005_Layer%201.jpg\" height=\"271\" /></td>\n<td>This is the stock code for finding blobs, but with an extra line that marks the centres of the boxes</td>\n</tr>\n<tr>\n<td><img src=\"https://notionparallax.co.uk/assets/08-03-31_tracker_progress_0004_Layer%202.jpg\" height=\"271\" /></td>\n<td>They make a bit more sense with just the edges turned on.<br />\nUltimately the display of all this data will be switched off to maximise running speed.</td>\n</tr>\n<tr>\n<td><img src=\"https://notionparallax.co.uk/assets/08-03-31_tracker_progress_0003_Layer%203.jpg\" height=\"271\" /></td>\n<td>The centre markers can be tagged...</td>\n</tr>\n<tr>\n<td><img src=\"https://notionparallax.co.uk/assets/08-03-31_tracker_progress_0002_Layer%204.jpg\" height=\"271\" /></td>\n<td>..with a number to identify them.<br />\nThis 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.</td>\n</tr>\n<tr>\n<td><img src=\"https://notionparallax.co.uk/assets/08-03-31_tracker_progress_0001_Layer%205.jpg\" height=\"271\" /></td>\n<td>First attempts at tracking points are proving tricky, even without any sort of continuity tracking.</td>\n</tr>\n<tr>\n<td><img src=\"https://notionparallax.co.uk/assets/08-03-31_tracker_progress_0000_Layer%206.jpg\" height=\"271\" /></td>\n<td>If the vertices with 0,0 coords are removed, it just spatters points.<br />\nThis also highlights the vast quantity of data that I am gathering here.<br />\nThere 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.</td>\n</tr>\n</table>\n<p>The mapping of a point from frame to frame is going to prove to be the most complicated part of this operation<br />\n<embed src=\"Images/Antipodes/frame-to-frame-mapping.swf\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/shockwave/download/\" height=\"400\" width=\"500\"></embed>The possible options for frame to frame changes in path coordinate arrays. <embed src=\"Images/Antipodes/frame-to-frame-conditions.swf\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/shockwave/download/\" height=\"500\" width=\"500\"></embed>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.<br />\nIt'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 <a href=\"http://www.codeproject.com/KB/audio-video/Motion_Detection.aspx\" target=\"_blank\">suggested here</a>.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?</p>\n",
 "content_html": "<h1>the experiment continues</h1>\n<p>upon getting stuck into any seemingly simple problem, more complicated things always seem to arise.</p>\n<p>I think I’ll get something at least a little bit useful out of this soon though.</p>\n<p>lots of tests and diagrams after this </p>\n<table>\n<tr>\n<td><img src=\"https://notionparallax.co.uk/assets/08-03-31_tracker_progress_0005_Layer%201.jpg\" height=\"271\" /></td>\n<td>This is the stock code for finding blobs, but with an extra line that marks the centres of the boxes</td>\n</tr>\n<tr>\n<td><img src=\"https://notionparallax.co.uk/assets/08-03-31_tracker_progress_0004_Layer%202.jpg\" height=\"271\" /></td>\n<td>They make a bit more sense with just the edges turned on.<br />\nUltimately the display of all this data will be switched off to maximise running speed.</td>\n</tr>\n<tr>\n<td><img src=\"https://notionparallax.co.uk/assets/08-03-31_tracker_progress_0003_Layer%203.jpg\" height=\"271\" /></td>\n<td>The centre markers can be tagged...</td>\n</tr>\n<tr>\n<td><img src=\"https://notionparallax.co.uk/assets/08-03-31_tracker_progress_0002_Layer%204.jpg\" height=\"271\" /></td>\n<td>..with a number to identify them.<br />\nThis 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.</td>\n</tr>\n<tr>\n<td><img src=\"https://notionparallax.co.uk/assets/08-03-31_tracker_progress_0001_Layer%205.jpg\" height=\"271\" /></td>\n<td>First attempts at tracking points are proving tricky, even without any sort of continuity tracking.</td>\n</tr>\n<tr>\n<td><img src=\"https://notionparallax.co.uk/assets/08-03-31_tracker_progress_0000_Layer%206.jpg\" height=\"271\" /></td>\n<td>If the vertices with 0,0 coords are removed, it just spatters points.<br />\nThis also highlights the vast quantity of data that I am gathering here.<br />\nThere 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.</td>\n</tr>\n</table>\n<p>The mapping of a point from frame to frame is going to prove to be the most complicated part of this operation<br />\n<embed src=\"https://notionparallax.co.uk/2008/Images/Antipodes/frame-to-frame-mapping.swf\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/shockwave/download/\" height=\"400\" width=\"500\" />&lt;/embed&gt;The possible options for frame to frame changes in path coordinate arrays. <embed src=\"https://notionparallax.co.uk/2008/Images/Antipodes/frame-to-frame-conditions.swf\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/shockwave/download/\" height=\"500\" width=\"500\" />&lt;/embed&gt;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.<br />\nIt’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 <a href=\"http://www.codeproject.com/KB/audio-video/Motion_Detection.aspx\" target=\"_blank\">suggested here</a>.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?</p>\n",
 "content_hash": "sha256:da6d7174fc65482990fb7c0b8504e700e417258500cad094be6362e9cf53059e",
 "media": [],
 "changelog": [
  {
   "version": 1,
   "at": "2008-03-31T02:55:41Z",
   "note": null
  }
 ],
 "transclusions": []
}