cancel
Showing results for 
Search instead for 
Did you mean: 

Is there any formula or way to convert VD6283 register values to something like Red-Green-Blue?

dpergarc
Associate

Hi there,

 

We are testing the VD6283 sensor so as to detect a set of colours a card might adquire (specifically, blue, green and yellow), but we do not understand what units / kind of values all its channels return, so:

 

  • Is there any way to convert those to something like Red-Green-Blue? If that is true, which formula could we use? Do you have any documentation related to this topic?

 

Thanks beforehand, sorry for the inconveniences, and looking forward to hearing from you soon.

 

Kind regards.

Daniel.

2 REPLIES 2
GMaid.2
Associate

What you could do is to normalize the values (divide each channel value by the sum of RGB) and convert to HSV to see the color angle in the HUE circle. Though it relies on the illumination condition.

Anne BIGOT
ST Employee

ST device reports light counts. So you will have RGB + other channels counts.

To detect several single colors, you may play with ratio (for example : R divided by G or (R+G)/G for things like that) 

ST has no particular algorithm for this use case but some customers are able to it.


Our community relies on fruitful exchanges and good quality content. You can thank and reward helpful and positive contributions by marking them as 'Accept as Solution'. When marking a solution, make sure it answers your original question or issue that you raised.

ST Employees that act as moderators have the right to accept the solution, judging by their expertise. This helps other community members identify useful discussions and refrain from raising the same question. If you notice any false behavior or abuse of the action, do not hesitate to 'Report Inappropriate Content'