The invention relates to an apparatus for automatically bending workpieces (10), comprising a storage device (2) for workpieces (10), a
robot device (3) for handling workpieces (10), and a bending
machine (5) for deforming at least some of the workpieces (10) handled by the
robot device (3) via a bending process, the apparatus (1) further having an image capturing device (7) for capturing image data (ID) about workpieces (10) to be handled in the storage device (2) and a control device (6) for controlling the
robot device (3) using the image data (ID). The image capturing device (7) can be moved into different positions (CP1, CP2) via an
actuator system (8) in order to capture image data (ID) from different storage sections (201, 202, 203, 204) of the storage device (2) associated with the respective positions (CP1, CP2), wherein a plurality of markers (M1, M2,..., M10) are provided on the storage device (2), the positions (PO1, PO2,..., PO10) of which relative to a reference coordinate
system (RC) are stored in the control device (6), wherein the respective positions (CP1, CP2) of the image capturing device (7) in the associated storage sections (201, 202, 203, 204) contain at least two markers (M1, M2,..., M10), and the control device (6) is configured to perform an evaluation of the image data (ID) of the associated storage sections (201, 202, 203, 204), wherein by means of the stored positions (PO1, PO2,..., PO10) of the markers (M1, M2,..., M10) in the associated storage sections (201, 202, 203, 204), a positioning (CL) of the image capturing device (7) relative to the reference coordinate
system (RC) and / or a positioning (WL) of the workpieces (10) to be handled relative to the reference coordinate system (RC) is automatically determined.