Patent ID: 9659363
Date: 2017-05-23
CPC Classifications: B21D,B23Q,G01B,G05B,G06K,G06T

Claim:
1. A positioning apparatus comprising: an imaging unit that images from above a workpiece fixed to a table of a machine tool; a moving unit that causes the imaging unit to be positioned at a desired relative position with respect to the table in a plane parallel with the table; an image processing unit that processes the image of the workpiece imaged by the imaging unit and detects a position of a feature point of the workpiece in the image; a storage unit that stores, as a reference relative position, a relative position of the imaging unit with respect to the table when a reference workpiece is imaged by the imaging unit, and stores, as a reference point image position, a position of a feature point of the reference workpiece in the image of the reference workpiece imaged by the imaging unit; a calculation unit that calculates an amount of deviation between the position of the feature point of the reference workpiece and the feature point of the workpiece by comparing the relative position of the imaging unit with respect to the table when the workpiece is imaged by imaging unit with the reference relative position, and comparing the position of the feature point of the workpiece in the image of the workpiece imaged by the imaging unit with the reference point image position; and a program changing unit that generates an amount of correction such that the amount of deviation calculated by the calculation unit becomes zero, and thereby changes a program of the machine tool; wherein the workpiece and the reference workpiece include at least two feature points, and wherein the amount of deviation calculated by the calculation unit includes an amount of rotation deviation in a plane parallel with the table by comparing a direction of a line segment combining the two feature points in the image of the reference workpiece and a direction of a line segment combining the corresponding two feature points in the image of the workpiece.