how to recognise a zebra crossing from top view using opencv?

て烟熏妆下的殇ゞ 提交于 2019-12-05 19:47:41

I'd have a look at Haar-like features as a low level descriptor. It is very commonly used in face detection but is a technique with wide applications.

Some of the very common features are sensitive to lines; vertical, horizontal, or diagonal. These should be well suited to detecting zebra crosswalks. Also, depending on your implementation, these feature sets can be scale insensitive which would make your algorithm more robust.

A large number of parallel lines with such contrast (white (or yellow) paint vs pavement) should get you on your way to recognizing zebra crossings. I'm not sure exactly what you mean by 'twists and turns' as zebra crossings, by design, are supposed to be straight. If you provide an image or two of your edge cases, perhaps we can brainstorm with you.

Edit: I also agree strongly with @Algebra's comment. Using a Hough transform, you could get the edges of the lines. A number of parallel lines at regular intervals should be a strong indication of a zebra crossing.

For whichever approach(es) you explore, you will want to use machine learning techniques for pattern recognition to make the final decision on what a zebra crossing looks like. You do not want to hard code things like 'x parallel lines of y width and z length'.

Here is a relevant paper:

Detecting and Locating Crosswalks using a Camera Phone

While this is not an opencv implementation it should be a reasonable place to start.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!