V
V
Viktor Vsk2014-05-28 00:09:04
Image processing
Viktor Vsk, 2014-05-28 00:09:04

How difficult is it to recognize these objects in matlab?

There is an image:
67ec072f1b5f45d29a65af1a9cad6ef2.jpg
It is necessary to determine the number of matches. I myself counted 14 matches there. But I see an option only to determine them by sulfuric heads.
This is what happened in the end after some simple manipulations.
89b50ffa2aed4c7eb3d907daaf10f0e4.jpg
Naturally, in this way it finds 12 objects. The
question is, do you think it is possible to separate the 2 lower matches (only at the level of coursework and matlab, and not dissertations using the edge of the opencv branch)?
I confess that I didn’t use a lot of very different methods (noise suppression, increased contrasts, erosion, etc.), because when I open it on a regular monitor, looking at it from an average distance, I don’t even see the possibility of separating them.
If it is impossible to separate them in simple ways, then which version of "counting" is preferable? For example, to calculate the average area of ​​the object, or something else?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey, 2014-05-28
@begemot_sun

Try the Hough transform . The result should be a cluster of points, the number of these clusters will be the number of matches.

S
Sergey, 2014-05-28
Protko @Fesor

It is not effective on sulfur heads, but to select the contours of objects and look for the number of rectangles - it will be more precise here. It is possible to apply still morphological filters what to apply.
Of the imperial methods, you can try to count the number of parallel lines.

S
Sa1995, 2019-07-29
@Sa1995

Hello, you can ask your questions in the Exponent's community: https://hub.exponenta.ru/, dedicated to the use of MATLAB tools for various tasks and the exchange of experience and knowledge with authors throughout Russia.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question