Sunday, February 21, 2010

Week 20 Day 5

Today, before presenting to Kevin, I tested the application and confirmed that it is able to detect the color markers clearly. However, when Kevin came, the application decided to take a break : ( In the same environment I recalibrated twice, and only red worked. I then went back to research on the reason for this and realised that the range of yellow and green were set incorrectly. For instance, their area was set to 2000 min and 0 max. Such range will definitely fail for the detection. I investigated further, and realised a mistake in the code I wrote. Other than modifying and fixing it, I also added codes to ensure if 0 is detected for the maxiumum or minimum, then set it to the default area range instead.

I tested it, and realised that this time round, it still failed. The minimum area detected was too large. Hence I modified the code more. I force the area to be set to 300 when the minimum area detected was more than 300. Why do I choose 300? This is because after various testing in different environments, I came to the conclusion that provided the detection is accurate, the area of background noises are always 100 and below. I finished coding this up, but didn`t have the time to test it as I have to leave for my phyiscal examination or Napfa examination.

I look forward to testing this new code next Wednesday, and hereby wish all readers a Happy Chinese New Year! Cheers :) [for 2 days of extra holidays!]

No comments:

Post a Comment