Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Detection of symmetries in Python

I want to detect symmetries (rotation, translation, etc) of a simple figure or a shape in a image. That is, if I find one symmetry I want to replicate my original figure with it.

Are there any function or module? I have thought in python-opencv, but I did not find nothing.

like image 469
kshipuden Avatar asked Jun 29 '13 08:06

kshipuden


1 Answers

Let me just throw some packages at you: OpenCV for Python Cookbook might be a good start. A search for "opencv" on the Python Package Index yields several bindings of OpenCV for Python.

Concerning the detection of symmetries: The answer to question how to detect simple geometric shapes using OpenCV? might be a good start. After you find similar objects, check their orientation. Replacing then should be a piece of cake.

like image 109
ojdo Avatar answered Sep 28 '22 04:09

ojdo