How can I detect basic 2D geometric shapes (e.g. square, triangle, circle) on a JPEG image?

不想你离开。 提交于 2019-12-03 03:04:52

I'd use the edge detection filter in marvin processing. http://marvinproject.sourceforge.net/en/plugins/edgeDetector.html

Then go through the pixels, seach for dark pixels in the vicinity and store the lines you have found. Then you can check for intersections in the lines. Group intersecting lines together and check the angles of intersection. That should at least give you a starting point for polygons.

You might want to check out processing.org, also make your question a little less "Do this for me". http://www.processing.org has several facilities to do this. Even better is http://marvinproject.sourceforge.com which can do it in real time for video!

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