The application relates to the technical field of
image detection, and discloses a scale-invariant
contour matching method and device based on
machine vision and a storage medium, the method comprising the following steps: extracting a target contour from a template and a query image and detecting key points; constructing a multi-scale contour context descriptor for each key point, the descriptor being composed of chord length ratios and chord angle features under multi-scale in a local neighborhood; performing
feature matching, estimating scale and rotation transformation parameters according to chord length ratios and chord angles of a matched descriptor pair, and combining key point coordinates to calculate a translation parameter to generate a similarity transformation
hypothesis; clustering all hypotheses as points in a high-dimensional parameter space to obtain candidate instances; for each candidate instance, fitting an accurate similarity transformation model and eliminating false matching by using a random sample
consensus algorithm through matched point pairs associated with the candidate instance, and outputting final positioning parameters of a target object. The application realizes efficient, accurate and scale- and rotation-invariant
contour matching.