Intelligent high-speed seamer for top-stitching of small parts with electronic edge ruler and sensor for edge detection