... | ... | @@ -149,8 +149,8 @@ |
|
|
> The table shows red, green and blue readings on different paper colors. White paper results in high values and black paper results in low values. Green paper has values higher than black but lower than white.
|
|
|
>
|
|
|
>In order to use these values to distinguish between the three colors we suggest looking at the raw values as they are the most accurate readings the sensor can provide. If we want to detect green color we look at the raw color sensor value "Green". If this value is significantly higher (should invesigated further) than the raw values of red and blue, the color is green. If we want to detect the color black we will look at the color sensors getRawLightValue()(ref). If the light value is low the color is black. Likewise if it is high the color is white. The reason why the color sensor might be better than the light sensor is that it not only serves as a color detector but also a light detector.
|
|
|
|
|
|
This method is not 100 % accurate and some colors close to green may also result in a green interpretation, but it should still be able to distinguish the three colors apart.
|
|
|
|
|
|
|
|
|
|
|
|
>
|
|
|
>This method is not 100 % accurate and some colors close to green may also result in a green interpretation, but it >should still be able to distinguish the three colors apart.
|
|
|
>
|
|
|
>
|
|
|
> #### References |