Hello people, I am here to ask for an advice because, after surfing the web, I could not find myself a strategy.
I have to implement a script in python that states which are the spatial relations between objects (the objects are shapes).
So far I have a script that recognizes shapes in images using findContours() function and now I have to state which are the spatial relations between the object.
An example: I got that a is a triangle and b is a square, what is the realtion between a and b? Inside, Above, Below, NextTo, etc. I do this in order to obtain a graph containing the shapes and the spatial relations between them.
How could I do that? Which strategy would you advice me? Or, which package of python fits better the requirements?
Thanks in advance for your help!