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

How can I use yolo to color detection? #1413

Open
Lapinchu opened this issue Feb 1, 2019 · 5 comments
Open

How can I use yolo to color detection? #1413

Lapinchu opened this issue Feb 1, 2019 · 5 comments

Comments

@Lapinchu
Copy link

Lapinchu commented Feb 1, 2019

Hi, I'm making a project to detect the color of traffic lights by YOLO.
Can the YOLO distinguish between green and red, which are the color of traffic lights? And how to do that?
I mean Is it possible for the YOLO to learn color detection?

@py-lacroix
Copy link

Maybe the simplest way is to recognize the shape of traffic light and check the position of the lighted lamp (no need to check colour). But be careful ! This position depends on the country.

@tarasevich-dmitry
Copy link

You need firstly to detect class of the object and the color, probably you need 2 networks for it
Also there is a solution in OpenCV for multiple color detection here

@AlexeyAB
Copy link
Collaborator

AlexeyAB commented Feb 1, 2019

Hi, I'm making a project to detect the color of traffic lights by YOLO.
Can the YOLO distinguish between green and red, which are the color of traffic lights? And how to do that?
I mean Is it possible for the YOLO to learn color detection?

Yes, Yolo can distinguish between green and red.
You just should:

  • label red and green objects as different classes
  • disable color augmentation, set hue=0 instead of
    hue=.1

Then train the Yolo as usuall.


More about HSV: https://en.wikipedia.org/wiki/HSL_and_HSV

@seojupal
Copy link

@AlexeyAB
Thanks! and one more question.
Can yolo distinguish all the colors not only green or red?

@nugrahari
Copy link

can I training without fliping image? example the direction of the road

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

6 participants