According that post Detecting set of planes from point cloud I'm doing the same, but I don't know how to proceed with the algorithm in python. Would someone point a pseudo code for the algorithm in python ? Or using any helper library like scipy ?
I'm trying to detect two planes (two walls with an edge) and I need their normals
The algorithm that is mentioned:
Pick 3 points at random.
Make a plane.
Check if each other point lies on the plane.
If enough are on the plane - recalculate a best plane from all these points and remove them from the set
If not try another 3 points
Stop when you have enough planes, or too few points left.