Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Real-time color detection in varying light conditions #1033

Open
FaizaAbbasi988 opened this issue Sep 24, 2024 · 0 comments
Open

Real-time color detection in varying light conditions #1033

FaizaAbbasi988 opened this issue Sep 24, 2024 · 0 comments

Comments

@FaizaAbbasi988
Copy link

Problem Overview:

I am developing an algorithm to detect the concentration of a chemical using the RGB values of a liquid placed in the center of an image. Over the course of five minutes, the liquid changes color based on the chemical concentration in the air. This color is then compared to surrounding reference colors in the image, each of which has a known RGB value that corresponds to a specific concentration. When a suitable match is found between the liquid’s color and the surrounding reference colors, we can determine the chemical concentration.

However, there are two significant challenges in real-time detection:

Device-Specific RGB Variations: Different mobile devices capture colors differently due to variations in camera sensors. Fortunately, since both the liquid and reference colors are captured by the same device, this challenge is inherently mitigated. Any deviation in RGB values will affect both the liquid and reference colors in the same way, making the comparison consistent.

Lighting Conditions: The more critical issue is uneven lighting. If the lighting is uniform, all RGB values across the image will change consistently, and the detection will still be accurate. But if there's glare or uneven lighting in parts of the image, the RGB values will vary at those points while others remain unchanged. This causes inconsistencies in color comparison and leads to inaccurate concentration detection.

Request for Suggestions:

I'm seeking suggestions to handle the challenge of uneven lighting conditions, particularly when there is glare or shadow on certain parts of the image. How can I ensure that the color detection remains reliable in non-uniform lighting scenarios?

4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant