Re: Advise on object detection





aruzinsky wrote:

It just occurred to me that YUV is asymmetric:

Y = 0.2990*R + 0.5870*G + 0.1140*B;
U = -0.14713*R - 0.28886*G + 0.436*B;
V = 0.615*R - 0.51499*G - 0.10001*B;

As I recall, these coefficients (or was it YCbCr?) are determined by
the characteristics of CRT phosphors which changed from the 1950s.
Anyway, I bet the rationale for these coefficients is far fetched.

It would be better to use a symmetric version:

Y' = (R + G + B)/3.0;
U' = (2.0*B - R - G)/3.0;
V' = (2.0*R - G - B)/3.0;


R = Y' + V';
G = Y' - U' - V';
B = Y' + U';

In my experience, this works just fine.

I suspect internal camera format is YUV, before it converted to RGB
later by driver - it seems it's either yuv or jpeg. So working with
asymmetrical YUV could be preferable.
.