Skip to content

How to get traffic light color information #5508

Answered by KevinLADLee
ltj3334 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @ltj3334 , I've done some training data collection job before. You could have a look at this link.

I use a RGB camera and a segmentation camera to extract every light box part in the RGB image, and then determine the color of the light box using some classical method. It is not an elegant way to do this job, but it may helps you quickly collect some training data and quickly to start you further project.

For further developing, you could refer this link to get all traffic light actors, and use get_state to get their state to determine the traffic light color. But I think maybe you want to label the light box, not the traffic light pole. So that you could use the get_light_boxes functio…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@ltj3334
Comment options

Answer selected by ltj3334
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants