how to detect shapes in an image?

Manoj picture Manoj · Apr 2, 2011 · Viewed 12.2k times · Source

I want to detect a circle, rectangle shaped object in an image and read the information from that object. Is there any api in java which will be helpful to me?

Ex: Detect a round shaped coin in a white background and obtain information about that that coin like ( value of a coin, etc.)

Thanks.

Answer

mpenkov picture mpenkov · Apr 2, 2011

Here's an answer to a similar question for C++.

For Java, you can use the OpenCV wrappers. However, once you understand the essence of the approach you should be able to solve your problem using whichever framework is available.