How to detect various geometric shapes on video

I am a beginner. I need to detect each of the yellow geometric shapes on the video frames. I have to classify the shapes into classes, for example - circle, rectangle, triangle. I have to make an output video with each of the shapes signed by the name of its class and mark the classes with different colors.
I would be very grateful for your tips on how to do this. It will also be useful to have a learning resource specifically for the given problem (with Python). Thanks a lot!