Wednesday, 10 June 2015

OpenCV and Object Tracking - 22/05/15

First Tracking
Mentioned in the last entry, I had trouble with error codes and could not run or debug the application. However, the OpenCV Lessons website mentioned last week provided sample codes which were working. I decided to compare the sample codes with my own work.  Double checking carefully I found a few syntax errors and capitalisation mistakes which I amended but was still unable to run the code.

I then checked the settings and found that I had to make sure that all the settings must be catering to my computer's 64bit structure.  I changed all relevant settings regarding this and it finally worked.  What popped up is a track-bar, a normal video feed, a white window, and a lensed feed.  Manipulating the hue and saturation values in the track-bar, I isolated the colour I wanted to track which is shown below as the red flower.


The white screen was actually another feed window that eventually helped me isolate the colour I want to track (in white with black contrasting background).  The red lines on the normal feed were the relative positions that I moved the picture.

The next development is to find a code that can highlight the object being tracked.

No comments:

Post a Comment