How to do segmentation based on some filters(e.g. TRAFFIC SIGNALS) from live streaming data



I am supposed to do traffic symbols recognition from live streaming data. Please tell me how to automate the process of segmentation. I am able to recognize the symbols using Neural Networks from segmented data but stuck in the segmentation part. I have tried it using YOLO, but I think I am lacking something. I have also tried it with openCV. please help