简体   繁体   中英

Simple shape recognition and classification by algorithm

I'd like to classify simple shapes (see the attached "sample resource of shapes") algorithmically (automatically). Does anyone know how to do that?

The intended result would be a text such as "line", "circle", and "triangular" etc.

形状样本资源

Make sure that the shapes are always aligned the same way (for instance bottom-right justified) and decompose the space with a grid (say 6x6). In each grid cell, determine the length of the stroke that traverses it, and possibly a dominant direction.

For recognition, perform the same decomposition of the shape and try a matching with all templates. You need to define a distance function that is minimized when the lengths and directions are identical and smoothly decreases otherwise.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM