Location and orientation detection of mechanical parts using Hough technique