A method of estimating a normal vector to an attachment mounted to an approach frame of an apparatus for taking out a molded product and/or a normal vector to a die mounted to a molding machine, wherein a vector that is perpendicular to respective mating surfaces of a fixed die and a movable die (32, 34) of the die mounted to the molding machine is defined as the normal vector to the die (31, 32, 34), and a vector that is perpendicular to an imaginary plane (PS1, PS2) that extends in a direction in which the approach frame extends and that is parallel to the mating surfaces when the attachment is inserted between the fixed die and the movable die (32, 34) is defined as the normal vector to the attachment; and the method being characterized in that it comprises: capturing an image including a surrounding component located around the mating surface of the fixed die or the mating surface of the movable die (32, 34) using a first imaging device capable of capturing an image including depth data or coordinate data on an object to be captured, specifying three or more extending portions from the image, the extending portions being each a part of the fixed die or the movable die (32, 34) or a part of the surrounding component and extending in a direction that coincides with an open/close direction for the fixed die and the movable die (32, 34), and estimating the normal vector to the die on the basis of depth data or coordinate data on the specified three or more extending portions; and/or capturing an image including three or more mounting members(82,81A) or three or more contact members (60A to 60D) using a second imaging device capable of capturing an image including depth data or coordinate data on an object to be captured, the mounting members extending in a direction that is orthogonal to the approach frame to mount the attachment to the approach frame, and the contact members contacting the molded product, and estimating the normal vector to the attachment on the basis of the depth data or the coordinate data on three of the mounting members or three of the contact members obtained from the image. a vector that is perpendicular to respective mating surfaces of a fixed die and a movable die (32, 34) of the die mounted to the molding machine is defined as the normal vector to the die (31, 32, 34), and a vector that is perpendicular to an imaginary plane (PS1, PS2) that extends in a direction in which the approach frame extends and that is parallel to the mating surfaces when the attachment is inserted between the fixed die and the movable die (32, 34) is defined as the normal vector to the attachment; and the method being characterized in that it comprises: capturing an image including a surrounding component located around the mating surface of the fixed die or the mating surface of the movable die (32, 34) using a first imaging device capable of capturing an image including depth data or coordinate data on an object to be captured, specifying three or more extending portions from the image, the extending portions being each a part of the fixed die or the movable die (32, 34) or a part of the surrounding component and extending in a direction that coincides with an open/close direction for the fixed die and the movable die (32, 34), and estimating the normal vector to the die on the basis of depth data or coordinate data on the specified three or more extending portions; and/or capturing an image including three or more mounting members(82,81A) or three or more contact members (60A to 60D) using a second imaging device capable of capturing an image including depth data or coordinate data on an object to be captured, the mounting members extending in a direction that is orthogonal to the approach frame to mount the attachment to the approach frame, and the contact members contacting the molded product, and estimating the normal vector to the attachment on the basis of the depth data or the coordinate data on three of the mounting members or three of the contact members obtained from the image. capturing an image including a surrounding component located around the mating surface of the fixed die or the mating surface of the movable die (32, 34) using a first imaging device capable of capturing an image including depth data or coordinate data on an object to be captured, specifying three or more extending portions from the image, the extending portions being each a part of the fixed die or the movable die (32, 34) or a part of the surrounding component and extending in a direction that coincides with an open/close direction for the fixed die and the movable die (32, 34), and estimating the normal vector to the die on the basis of depth data or coordinate data on the specified three or more extending portions; and/or capturing an image including three or more mounting members(82,81A) or three or more contact members (60A to 60D) using a second imaging device capable of capturing an image including depth data or coordinate data on an object to be captured, the mounting members extending in a direction that is orthogonal to the approach frame to mount the attachment to the approach frame, and the contact members contacting the molded product, and estimating the normal vector to the attachment on the basis of the depth data or the coordinate data on three of the mounting members or three of the contact members obtained from the image.