Component posture information acquisition device and component posture determination method
The component posture information acquisition device addresses the challenge of determining component orientation in contact or overlap by employing distance measurement and feature analysis, enhancing accuracy in orientation determination.
Patent Information
- Application Number
- JP2023060687
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-04-04
- Publication Date
- 2024-10-17
AI Technical Summary
Existing image recognition methods struggle to accurately determine the orientation of components when they are in contact or overlap, as they fail to obtain sufficient surface shape information, leading to increased recognition errors and decreased accuracy.
A component posture information acquisition device that uses a distance measuring section to determine the position of components and an orientation determining unit to identify a region of interest based on feature amounts, even when components are in contact or overlap.
Enables accurate determination of component posture despite contact or overlap by utilizing distance measurement and feature amount analysis, improving orientation determination accuracy.
Smart Images

Figure 2024147930000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to a component attitude information acquisition device and a component attitude determination method. [Background technology]
[0002] Conventionally, image recognition processing is known in which a workpiece (component) is photographed with a camera to determine the position and inclination of the workpiece. Patent Document 1 describes a method for selecting image recognition conditions that selects optimal image recognition conditions for each component.
[0003] In the method for selecting image recognition conditions described in Patent Document 1, imaging conditions for multiple types of workpieces and multiple types of processing conditions are set as recognition conditions. The imaging conditions are, for example, the angle of the workpiece and the illumination intensity, and the processing conditions are, for example, a pre-processing method for the captured image and a recognition processing method. Next, image recognition processing is performed under all image recognition conditions that combine each imaging condition and each processing condition, and a recognition error is calculated for each image recognition condition. Then, the image recognition condition that has the smallest recognition error is selected as the optimal image recognition condition. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] Japanese Patent Application Publication No. 09-245177 Summary of the Invention [Problem to be solved by the invention]
[0005] Incidentally, while it is easy to clearly capture the external shape of a part, it may be difficult to capture the surface shape of the part as clearly as the external shape. Therefore, when a part is photographed under the same image recognition conditions, less information on the surface shape can be obtained from the captured image. Therefore, with the method of selecting image recognition conditions described in Patent Document 1, it is expected that the recognition error will be large when image recognition processing is performed, and the accuracy of determining the orientation (front and back) of the part will be low.
[0006] For example, we have considered a method of determining the orientation of a part by focusing on the feature amount in the surface shape of the part and determining whether the detected feature amount is the feature amount of the first surface or the feature amount of the second surface. With this method, the orientation of the part can be determined even when precise information on the surface shape cannot be obtained.
[0007] However, for example, when parts are in contact with each other or overlap each other and it is not possible to accurately obtain information on the boundaries between the parts, it is not possible to accurately associate the obtained feature values with the parts. Or, when obtaining feature values based on information on the external shapes of the parts, it is not possible to obtain the feature values themselves. As a result, it is not possible to determine the orientation of the parts.
[0008] The present invention has been made in view of the above circumstances, and an object of the present invention is to make it possible to determine the orientation of parts even when the parts are in contact with or overlapping each other. [Means for solving the problem]
[0009] In order to achieve at least one of the above-mentioned objects, a component posture information acquisition device reflecting one aspect of the present invention comprises a distance measurement unit provided near a component gripping portion of a hand that grips a component placed on a pick table and places it in a supply position, and that measures the distance to the component, and an posture determination unit that determines a region of interest to be used in determining the posture of the component based on information about the position of the distance measurement unit when the measured distance becomes a predetermined distance, and determines the posture of the component based on features of the region of interest. Effect of the Invention
[0010] According to the present invention, the orientation of parts can be determined even when the parts are in contact with or overlapping each other. [Brief description of the drawings]
[0011] [Figure 1] 1 is a perspective view of a component supply device according to an embodiment of the present invention; [Diagram 2] FIG. 2 is a top view of the component supply device according to the embodiment of the present invention. [Diagram 3] 1 is a side view of a component supplying device according to an embodiment of the present invention. [Figure 4] 2 is a side view of a supply unit in the component supply device according to the embodiment of the present invention; FIG. [Diagram 5] 5A and 5B are diagrams illustrating a configuration of a hand block of a supply unit in the component supply device according to the embodiment of the present invention. [Figure 6] 2 is a block diagram showing an example of the configuration of a control system in the component supply device according to the embodiment of the present invention; FIG. [Figure 7] 11 is a diagram showing a state in which the distance to a component measured by a distance measuring sensor according to an embodiment of the present invention becomes a target distance. FIG. [Figure 8] 11 is a diagram showing a correspondence relationship between a target distance, a reference position, and a position of a region of interest according to an embodiment of the present invention. FIG. [Figure 9] 1 is a block diagram showing an example of a hardware configuration of a component supply device according to an embodiment of the present invention; [Figure 10] 1A to 1C are diagrams illustrating a component supplying operation of a component supplying device according to an embodiment of the present invention. [Figure 11] 10 is a flowchart illustrating an example of a procedure of a posture determination process according to an embodiment of the present invention. [Figure 12] 5A to 5C are diagrams illustrating each step of the posture determination process according to the embodiment of the present invention. [Figure 13] 5A to 5C are diagrams illustrating each step of the posture determination process according to the embodiment of the present invention. [Figure 14] 11A and 11B are diagrams illustrating an example of determining the placement position of a distance measuring sensor when multiple components are stacked according to an embodiment of the present invention. [Figure 15] 1 is a diagram showing an example of a positional relationship between a distance measuring sensor and a component according to an embodiment of the present invention; [Figure 16] 4 is a graph showing an example of measurement values by a distance measuring sensor according to an embodiment of the present invention. [Figure 17]11A and 11B are diagrams illustrating an example of adjustment of the inclination of a hand according to an embodiment of the present invention. [Figure 18] FIG. 13 is a diagram showing an example in which a region of interest is set over a wide range in a component according to a modified example of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0012] Hereinafter, an embodiment of the present invention will be described with reference to the accompanying drawings. In this specification and the drawings, components having substantially the same functions or configurations are denoted by the same reference numerals, and duplicated descriptions of the components will be omitted.
[0013] <Component supply device configuration> First, the configuration of a component supplying device according to an embodiment of the present invention will be described with reference to Figures 1 to 3. Figure 1 is a perspective view of the component supplying device 1, Figure 2 is a top view of the component supplying device 1, and Figure 3 is a side view of the component supplying device 1.
[0014] 1, component supplying device 1 (an example of a component posture information acquisition device) according to this embodiment includes a frame 2, storage units 3A, 3B, a supply unit 4, pick tables 5A, 5B, place tables 6A, 6B, a control board 7, and an operation display unit 8. Storage units 3A, 3B, supply unit 4, pick tables 5A, 5B, place tables 6A, 6B, and control board 7 are attached to frame 2. Component supplying device 1 arranges components stored in storage units 3A, 3B on place tables 6A, 6B in an aligned posture, and supplies them to a device for the next process.
[0015] The frame 2 is formed in a substantially rectangular parallelepiped shape, and has a width, depth, and height. Here, in Figs. 1 to 3, the X-axis direction indicates the width direction of the frame 2, the Y-axis direction indicates the depth direction of the frame 2, and the Z-axis direction indicates the height direction of the frame 2. The X-axis and Y-axis directions correspond to two horizontal axial directions that are two axial directions parallel to the horizontal plane, and the Z-axis direction corresponds to the vertical direction that is perpendicular to the horizontal plane. The frame 2 is composed of horizontal members extending in the X-axis or Y-axis direction, and vertical members extending in the Z-axis direction.
[0016] The storage units 3A and 3B are disposed on one side of the frame 2 in the Y-axis direction. The storage units 3A and 3B face each other at an appropriate distance in the X-axis direction. The storage units 3A and 3B are formed in a generally box-like shape with an open top. The storage units 3A and 3B are provided with a lifting mechanism (not shown) that moves the bottom in the Z-axis direction. This allows each storage unit 3A and 3B to change the capacity that can be stored and the height position of the components stored therein.
[0017] For example, a first part is stored in storage unit 3A, and a second part different from the first part is stored in storage unit 3B. In this case, component supplying device 1 supplies the first part and the second part to the device of the next process. Also, the first part may be stored in storage units 3A and 3B during a first period, and the second part may be stored in storage units 3A and 3B during a second period different from the first period. In this case, component supplying device 1 supplies the first part to the device of the next process during the first period, and supplies the second part to the device of the next process during the second period.
[0018] The supply unit 4 is disposed in the approximate center of the upper part of the frame 2. The supply unit 4 grasps one or more parts from a large amount of first parts or a large amount of second parts stored in the storage units 3A, 3B, and drops and supplies them onto the pick tables 5A, 5B. As a result, the first parts or second parts are placed on the pick tables 5A, 5B. The supply unit 4 also grasps the first parts or second parts placed on the pick tables 5A, 5B one by one, and supplies them to the place tables 6A, 6B. The configuration of the supply unit 4 will be described later with reference to FIGS. 4 and 5.
[0019] The pick tables 5A and 5B are disposed on both sides of the supply unit 4 in the X-axis direction. The pick tables 5A and 5B are adjacent to the storage units 3A and 3B in the Y-axis direction. The pick tables 5A and 5B are located above the storage units 3A and 3B.
[0020] In the Z-axis direction, a part of the pick table 5A overlaps with the storage section 3A. As a result, a component that has fallen from the part of the pick table 5A is again stored in the storage section 3A. In the Z-axis direction, a part of the pick table 5B overlaps with the storage section 3B. As a result, a component that has fallen from the part of the pick table 5B is again stored in the storage section 3B.
[0021] The placing tables 6A, 6B have a belt conveyor that transports parts in the Y-axis direction. The placing tables 6A, 6B are also attached to an X-axis movement mechanism (not shown). The X-axis movement mechanism moves the placing tables 6A, 6B in the X-axis direction. The placing tables 6A, 6B transport parts supplied from the supply unit 4 in the Y-axis direction and position them at a predetermined position. The positioned parts are supplied to the equipment for the next process.
[0022] 1 and 3, the control board 7 is attached to the side of the frame 2. The control board 7 is provided with a control unit 71 (see FIG. 6) that controls the operations of the storage units 3A and 3B, the supply unit 4, and the place tables 6A and 6B.
[0023] The operation display unit 8 displays various settings related to the supply of parts. Examples of the various settings include the type of parts to be supplied, the number of remaining parts, a judgment area described below, a first reference amount, and a second reference amount. The first reference amount is a feature amount that serves as a reference for the surface shape of a first surface (e.g., the front surface), and the second reference amount is a feature amount that serves as a reference for the surface shape of a second surface (e.g., the back surface). The first reference amount and the second reference amount will be described later. Furthermore, the operation display unit 8 displays an error. An example of an error is a malfunction of the supply unit 4.
[0024] The operation display unit 8 is configured, for example, with a touch panel display. That is, the operation display unit 8 also serves as an input unit for inputting various settings related to the component supply operation. The operation display unit 8 displays an operation screen. The user inputs various settings related to the component supply operation, issues instructions to execute the supply operation, and the like while viewing the operation screen displayed on the operation display unit 8. The settings input using the operation display unit 8 are supplied to the control unit 71 (see FIG. 6) of the control board 7.
[0025] [Supply section configuration] Next, the configuration of the supply unit 4 will be described with reference to FIGS. Fig. 4 is a side view of the supply unit 4 in the component supply device 1. Fig. 5 is a diagram for explaining the configuration of a hand block of the supply unit 4 in the component supply device 1.
[0026] 4, the supply unit 4 includes an arm block 41 and a hand block 42 connected to the arm block 41. The arm block 41 has a support base 411 and an arm 412 attached to the support base 411. The support base 411 is fixed to the frame 2 (see FIGS. 1 to 3). The support base 411 supports the arm 412 rotatably.
[0027] The arm 412 freely moves the hand block 42 in the X-axis, Y-axis, and Z-axis directions. In addition, the arm 412 freely rotates the hand block 42 around the X-axis, Y-axis, and Z-axis. The arm 412 has a base member 413, a first link member 414, a second link member 415, and a connecting member 416.
[0028] The base member 413 is rotatably connected to the support stand 411. The base member 413 rotates around the Z axis (first axis). One end of a first link member 414 is rotatably connected to the base member 413. The first link member 414 rotates around an axis (second axis) extending in the horizontal direction.
[0029] The second link member 415 has a rotating portion 415a and a swivel portion 415b connected to the rotating portion 415a. The rotating portion 415a is rotatably connected to the other end of the first link member 414. The rotating portion 415a rotates around an axis (third axis) extending in the horizontal direction. The rotating portion 415b is rotatably connected to the rotating portion 415a. The rotating portion 415b rotates around an axis (fourth axis) extending in the connection direction with the rotating portion 415a.
[0030] The connecting member 416 has a rotating portion 416a and a swivel portion 416b connected to the rotating portion 416a. The rotating portion 416a is rotatably connected to the rotating portion 415b of the second link member 415. The rotating portion 416a rotates around an axis (fifth axis) extending in the horizontal direction. The rotating portion 416b is rotatably connected to the rotating portion 416a. The rotating portion 416b rotates around an axis (sixth axis) extending in the connection direction with the rotating portion 416a.
[0031] As shown in FIG. 5, the hand block 42 has a housing 421 , and a hand 422 and a camera 424 attached to the housing 421 .
[0032] Housing 421 is connected to pivot portion 416b (see FIG. 4) of connecting member 416 in arm 412. Housing 421 is a substantially rectangular parallelepiped case. A hand hole 421a and a camera hole 421b are formed in the bottom surface of housing 421. Hand hole 421a passes through hand 422. Camera hole 421b exposes lighting 425 of camera 424, which will be described later.
[0033] The hand 422 is composed of two gripping pieces 422a. An opening / closing mechanism for opening and closing the two gripping pieces 422a and a lifting mechanism for raising and lowering the multiple gripping pieces (both not shown) are provided inside the housing 421. The length of the two gripping pieces 422a protruding from the hand hole 421a changes when the lifting mechanism lifts and lowers them. Increasing the length of the two gripping pieces 422a protruding from the hand hole 421a increases the space available for holding components, and the number of components that can be held increases. On the other hand, shortening the length of the two gripping pieces 422a protruding from the hand hole 421a reduces the space available for holding components, and the number of components that can be held decreases.
[0034] The two gripping pieces 422a are also capable of gripping one component at their tips. The hand 422 grips one or more components from a large number of components stored in the storage unit 3A or storage unit 3B and supplies the components to the pick table 5A or pick table 5B. On the other hand, the hand 422 grips one component from one or more components placed on the pick table 5A or pick table 5B and supplies the component to the place table 6A or place table 6B.
[0035] Further, a distance measurement sensor 423 (one example of a distance measurement unit, see FIG. 6) is provided near the gripping portion of the component in each of the two gripping pieces 422a. The distance measurement sensor 423 measures the distance to the side surface of an object (component) located between the two gripping pieces 422a in the open state. Information on the distance to the side surface of the component measured by the distance measurement sensor 423 (hereinafter also referred to as "distance measurement result information") is output to the control unit 71 (see FIG. 6).
[0036] In this embodiment, distance measurement result information by distance measurement sensor 423 is used as information for determining the position of the attention area including the feature amount required for determining the orientation of the part. A method for determining the position of the attention area based on the distance measurement result information will be described later with reference to FIG.
[0037] Camera 424 is stored in housing 421. Camera 424 has lighting 425, polarizing filter 426, multiple lenses 427, and camera body 428. The components constituting camera 424 are arranged in the following order from the subject side: lighting 425, polarizing filter 426, multiple lenses 427, and camera body 428. The subject can be, for example, components on pick tables 5A and 5B, components stored in storage units 3A and 3B, a component held by hand 422, etc.
[0038] The lighting 425 is exposed from the camera hole 421b. The lighting 425 is formed in a ring shape having a shooting hole for passing light from the subject. The lighting 425 irradiates the subject with light. The lighting 425 is also configured so that the amount of light can be adjusted in stages. The ON / OFF and light amount of the lighting 425 are controlled by the recognition control unit 715 of the control unit 71, which will be described later.
[0039] A polarizing film (not shown) is placed in the photographing hole of the lighting 425. In addition, the polarizing filter 426 faces the photographing hole of the lighting 425. The polarizing film and the polarizing filter 426 remove the specular reflection component of the reflected light of the subject. The reflected light of the subject from which the specular reflection component has been removed by the polarizing film and the polarizing filter 426 passes through multiple lenses 427.
[0040] The multiple lenses 427 form a subject image on a light receiving surface of an image sensor in a camera body 428. The multiple lenses 427 are supported by a support portion (not shown). The support portion (not shown) supports each of the multiple lenses 427 so as to be movable in the optical axis direction. The movement of each lens in the optical axis direction is controlled by a recognition control portion 715 of the control portion 71 shown in FIG. 6, which will be described later.
[0041] The camera body 428 has an imaging element and an image processing circuit (both not shown). The imaging element has a plurality of light receiving elements, for example, photodiodes, and a drive circuit for driving each light receiving element. Each light receiving element generates an electric charge according to the amount of incident light. The drive circuit transmits a pixel signal corresponding to the electric charge generated in each light receiving element to the image processing circuit. The image processing circuit converts the received pixel signal into image data. The camera body 428 then outputs the image data to a recognition control unit 715 of the control unit 71, which will be described later.
[0042] The camera body 428 may be configured with a line sensor or an area sensor, a camera with a depth sensor, or a 3D camera capable of acquiring 3D point cloud information. When the camera body 428 is configured with a camera with a depth sensor or a 3D camera, it is possible to acquire relief data of the component. The camera body 428 may include both a camera for 2D shooting and a 3D camera.
[0043] <Control system configuration> Next, the configuration of a control system of the component supplying device 1 will be described with reference to Fig. 6. Fig. 6 is a block diagram showing an example of the configuration of the control system in the component supplying device 1.
[0044] As shown in Fig. 6, the component supplying device 1 includes a control unit 71, a storage unit 72, and a moving unit 4. The moving unit 4 has already been described with reference to Figs. 3 to 5, and therefore will not be described again.
[0045] The control unit 71 has an overall control unit 711, an arm control unit 712, a hand control unit 713, a distance measurement control unit 714, a recognition control unit 715, a posture determination unit 716, and a display control unit 717.
[0046] The overall control unit 711 is connected to an arm control unit 712, a hand control unit 713, a distance measurement control unit 714, a recognition control unit 715, an attitude determination unit 716, and a display control unit 717. The overall control unit 711 receives detection results from the recognition control unit 715, such as the positions of each unit, such as the storage units 3A and 3B and the hand 422, the attitudes of the parts on the pick tables 5A and 5B, and the number of parts held by the hand 422.
[0047] The overall control unit 711 performs overall control of the arm control unit 712 and the hand control unit 713 based on the detection results received from the recognition control unit 715 and the supply parameters and the like stored in the memory unit 72. The supply parameters are used to determine the operation of the supply unit 4 when supplying components to the pick tables 5A and 5B and the place tables 6A and 6B. Examples of the supply parameters include the position at which the hand 422 starts the operation of gripping a component, the transport speed of the component by the arm 412, and the position at which the hand 422 releases its grip on the component.
[0048] The arm control unit 712 is connected to the drive unit of the arm 412. The arm control unit 712 receives control commands from the overall control unit 711. The arm control unit 712 generates an arm drive signal for driving the arm 412 based on the control command received from the overall control unit 711, and transmits the signal to the drive unit of the arm 412. As a result, the arm 412 performs an operation according to the control command from the overall control unit 711.
[0049] The hand control unit 713 is connected to a drive unit of the hand 422. The hand control unit 713 receives control commands from the overall control unit 711. The hand control unit 713 generates a hand drive signal for driving the hand 422 based on the control command received from the overall control unit 711, and transmits the signal to the drive unit of the hand 422. As a result, the hand 422 performs an operation according to the control command from the overall control unit 711.
[0050] The distance measurement control unit 714 is connected to each distance measurement sensor 423 provided on each of the two gripping pieces 422a (see FIG. 5) of the hand 422. The distance measurement control unit 714 outputs information on the distance to the end face of the component measured by the distance measurement sensor 423 at the position determined by the recognition control unit 715 (distance measurement result information) to the overall control unit 711.
[0051] The recognition control unit 715 is connected to the camera 424. The recognition control unit 715 controls the shooting by the camera 424 based on the shooting parameters 721 stored in the storage unit 72. In addition, the recognition control unit 715 determines the shooting position of the camera 424 based on the image data sent from the camera 424 and calibration data (not shown).
[0052] Information on the shooting position of the camera 424 determined by the recognition control unit 715 is transmitted to the overall control unit 711. The overall control unit 711 transmits a control command to the arm control unit 712 to control the operation of the arm 412 according to the shooting position determined by the recognition control unit 715. The arm control unit 712 controls the drive unit of the arm 412 according to the control command from the overall control unit 711. As a result, the camera 424 provided on the hand block 42 is positioned at the shooting position.
[0053] Furthermore, the recognition control unit 715 performs image processing on the image data received from the camera 424 based on the image processing parameters (various correction values) stored in the storage unit 72.
[0054] Furthermore, the recognition control unit 715 detects positions where the two gripping pieces 422a (see FIG. 5) of the hand 422 can be inserted into the side surface of the component based on image data sent from the camera 424, and transmits information on the detected positions to the overall control unit 711. Based on the information on the insertable positions transmitted to the overall control unit 711, the hand control unit 713 performs control, whereby the two gripping pieces 422a of the hand 422 move and are inserted near the side surface of the component.
[0055] Furthermore, after the insertion of the two gripping pieces 422a, the recognition control unit 715 calculates the movement direction and movement amount of the hand 422 required to make the distance between the distance measuring sensor 423 and the end of the component coincide with the target distance dyt (see FIG. 10), and outputs information on the calculated movement direction and movement amount of the hand 422 to the overall control unit 711. Based on the movement direction and movement amount transmitted to the overall control unit 711, the hand control unit 713 performs control to move the two gripping pieces 422a of the hand 422. As a result, the distance to the component measured by the distance measuring sensor 423 provided near the component gripping parts of the two gripping pieces 422a becomes the target distance dyt. The target distance dyt is a distance required to set a reference position to be referred to when determining the position of the attention area on the component.
[0056] The orientation determination unit 716 detects the type of the component on the pick tables 5A, 5B by comparing the image data that has been subjected to image processing with various templates 726 stored in the storage unit 72. Furthermore, based on the image data of the image of the component captured by the camera 424 and distance measurement result information by the distance measurement control unit 714, the orientation determination unit 716 determines (specifies) the position of a region of interest that includes a feature amount required for determining the orientation of the component in the image data generated from the captured image.
[0057] More specifically, the attitude determination unit 716 specifies a reference position in the image data based on information on the arrangement positions of the two gripping pieces 422a when the distance to the part measured by the distance measurement sensor 423 approaches and reaches the target distance dyt, and sets a region of interest based on the reference position. The relationship between the target distance dyt, the reference position, and the region of interest will be described later with reference to Figs. 7 and 8.
[0058] Furthermore, the orientation determination unit 716 determines the orientation (front or back) of the part based on the comparison result between the feature amount of the attention area and the information on the front or back determination reference amount stored in the storage unit 72. Then, the orientation determination unit 716 transmits the detection result and the determination result to the overall control unit 711. The orientation determination of the part by the orientation determination unit 716 can be performed using an AI model for orientation determination or the like. The AI model for orientation determination can be generated by using the information of the attention area as training data.
[0059] The display control unit 717 is connected to the operation display unit 8 (see FIG. 3). The display control unit 717 receives control commands from the overall control unit 711. The display control unit 717 generates a display unit control signal for controlling the operation display unit 8 based on the control command received from the overall control unit 711, and transmits the signal to the operation display unit 8. As a result, the operation display unit 8 displays various setting contents and the like in accordance with the control command from the overall control unit 711.
[0060] The storage unit 72 stores imaging parameters 721 , image processing parameters 722 , part shape information 723 , hand opening width information 724 , front / back determination reference amount 725 , and various templates 726 .
[0061] The photographing parameters 721 are used when photographing the components, pick tables 5A, 5B, etc., by the camera 424. Examples of the photographing parameters 721 include an exposure time, an amount of light of the illumination, an image size, etc., according to the subject (subject to be photographed). The image processing parameters 722 are various correction values used when performing image processing on the image data received from the camera 424 .
[0062] Part shape information 723 is information indicating the shape of a part, and is configured, for example, by information on the longitudinal size and lateral size of the part. If camera 424 is configured as a 3D camera, part shape information 723 also includes undulation information of the part. Part shape information 723 may be any information indicating the shape of the part, and may be configured, for example, by contour information of the part.
[0063] The hand open width information 724 is information that indicates the interval (distance) between the two gripping pieces 422a of the hand 422 when the two gripping pieces 422a are in an open state.
[0064] The front / back determination reference amount 725 is a reference feature amount for the surface shape of the part. At least a first reference amount and a second reference amount are prepared as the front / back determination reference amount 725 for each type of part. The first reference amount is a reference feature amount for the surface shape of the first face (e.g., the front face). The second reference amount is a reference feature amount for the surface shape of the second face (e.g., the back face). An example of the feature amount is the number of edges (hereinafter referred to as the "number of edges"). The orientation determination unit 716 determines the orientation (front / back) of the part depending on the determination result of whether the feature amount in the attention area of the part detected from the image data is closer to or equal to the first reference amount or the second reference amount.
[0065] The various templates 726 are templates for matching the two-dimensional shapes (external shapes) of various parts. At least one various template 726 is prepared for each type of part. The orientation determination unit 716 compares the two-dimensional shape of the part detected from the image data with the various templates 726, and detects the type of the part in the image data from the matching or similar template.
[0066] <Relationship between target distance, reference position, and area of interest> Next, the relationship between the target distance dyt, the reference position, and the attention area will be described with reference to Fig. 7 and Fig. 8. Fig. 7 is a diagram showing the correspondence relationship between the target distance dyt, the reference position Pr, and the position of the attention area Ad, and Fig. 8 is a diagram showing a state in which the distance to the part W measured by the distance measuring sensor 423 becomes the target distance dyt.
[0067] Fig. 7A is a diagram showing an example of setting an attention area Ad on a first surface (front surface) of a part W, and Fig. 7B is a diagram showing an example of setting an attention area Ad on a second surface (back surface) of the part W. As described above, the attention area is an area that includes a feature amount required for determining the orientation of the part.
[0068] For example, when the external shape of the first side and the external shape of the second side of the part W are different, the orientation determination unit 716 can determine the orientation of the part W, i.e., the front and back of the part W, based on information about the external shape of the part obtained from the image data. However, as shown in Fig. 7, when the external shape of the first side and the external shape of the second side of the part W are the same or approximately the same, it is difficult for the orientation determination unit 716 to determine the orientation of the part from the external shape of the part W obtained from the image data.
[0069] Therefore, in this embodiment, the orientation determination unit 716 determines whether the feature amount in the attention area Ad of the surface shape of the part W is the feature amount of the first face (hereinafter also referred to as the "first reference amount") or the feature amount of the second face (hereinafter also referred to as the "second reference amount"). This enables the orientation determination unit 716 to determine the orientation of the part W, i.e., whether the first face is facing upward or the second face is facing upward.
[0070] In this embodiment, the feature amount in an area where the difference in the number of edges between the first and second faces is expected to be large is used as the feature amount used to determine the orientation of the part W. Then, the area including such feature amount is set as the attention area Ad. The attention area Ad can be configured to have, for example, a rectangular shape.
[0071] 7A and 7B, the reference position Pr is set on one of the two end faces constituting the short side direction of the part W. Then, the attention area Ad is set at a position a distance dx away from the reference position Pr in the horizontal direction. Each parameter, i.e., the position of the reference position Pr in the external shape of the part W, the shape and size of the attention area Ad, and the distance dx from the reference position Pr to one side of the attention area Ad, is assumed to be registered in advance as parameters in the part shape information 723 (see FIG. 6).
[0072] Then, when the distance to the end face of the side surface of the part W measured by the distance measuring sensor 423 becomes the target distance dyt, the orientation determination unit 716 sets a reference position Pr to the position (position in the image data) of the end face of the part W located near the arrangement position of the distance measuring sensor 423. Next, the orientation determination unit 716 sets an attention area Ad to a position in the image data that is a distance dx forward from the reference position Pr in the horizontal direction (the direction along the top surface of the part W). By performing such processing, the orientation determination unit 716 can identify the position of the attention area Ad including the feature amount used for determining the orientation of the part W in the image data obtained by photographing the part W.
[0073] The location where the edge appears differs depending on the type of part W, the die used to mold the part W, the attitude of the part W, etc. Therefore, it is preferable that the attention area Ad is set at least for each type of part W. Furthermore, when different dies are used depending on the production lot of the part W, a judgment area may be set for each production lot of the part W or each die.
[0074] Furthermore, the attention area Ad is not limited to one location, and may be two or more locations. When there are two or more attention areas Ad, the orientation determination unit 716 can determine the orientation of the part W by, for example, comparing the sum of the detected edges with a reference number of edges. When there are two or more attention areas Ad, the orientation determination unit 716 may determine the orientation of the part W by comparing the ratio of the number of edges detected in each attention area Ad with the ratio of the reference number of edges in each determination area.
[0075] Furthermore, the feature amount is not limited to the number of edges, and may be, for example, the edge length, edge area, texture, or the like.
[0076] Fig. 8A is a front view and Fig. 8B is a side view of the part W and the hand 422. In Figs. 8A and 8B, the hand 422 is illustrated in a simplified manner.
[0077] The target distance dyt is the distance that is expected to be measured by the distance measuring sensor 423 provided at approximately the tip of the two gripping pieces 422a when the two gripping pieces 422a are placed near the reference position Pr and the part W is located at approximately the center of the two open gripping pieces 422a. The target distance dyt is set in advance based on the opening width Wdh defined in the hand opening width information 724 and the horizontal width (width in the short side direction) Wdw of the part W near the reference position Pr.
[0078] Then, the attitude determination unit 716 (see FIG. 6) sets the reference position Pr to a position assumed to be the reference position Pr in the image data captured by the camera 424. Specifically, when the distance between the distance measurement sensor 423 and the end face of the part W reaches the target dyt, the attitude determination unit 716 sets the reference position Pr to the end face of the part W that is in a position where it can be gripped by the two gripping pieces 422a (the end sides, if the image data is two-dimensional data).
[0079] In this embodiment, by performing such processing, it is possible to identify the position of the reference position Pr in the image data, and the position of the attention area Ad can also be identified based on the reference position Pr, without performing processing to accurately extract information about the outer shape of the part W from the image data, etc. Therefore, according to this embodiment, even in a situation where it is difficult to accurately extract information about the outer shape of the part W from the image data, for example, because the parts W are in contact with or overlapping each other, it is possible to determine the orientation of the part W based on the feature amount of the attention area Ad identified based on the distance measurement result by the distance measurement sensor 723.
[0080] In this embodiment, an example is given in which the reference position Pr is set to a specific end face (or edge) among multiple end faces constituting the part W, but the present invention is not limited to this. The reference position Pr may be set to a location on the part W that has a specific feature, such as a portion where a rib is formed.
[0081] <Hardware configuration> Next, a hardware configuration of the component supplying device 1 will be described with reference to Fig. 9. Fig. 9 is a block diagram showing an example of a hardware configuration of the component supplying device 1. A calculator 200 shown in Fig. 2 is hardware used as a so-called computer.
[0082] The computer 200 includes a control unit 210, a non-volatile storage 220, an operation display unit 230, and a communication I / F (Interface) 240, which are all connected to a bus B.
[0083] The control unit 210 includes a central processing unit (CPU) 211, a read only memory (ROM) 212, and a random access memory (RAM) 213. The CPU 211 reads out program code of software for implementing each function according to this embodiment from the ROM 212, expands it in the RAM 213, and executes it. The computer 200 may include a processing device such as an MPU (Micro-Processing Unit) instead of the CPU 211. Variables, parameters, etc. generated during the arithmetic processing are temporarily written to the RAM 213.
[0084] The non-volatile storage 220 may be, for example, a hard disk drive (HDD), a solid state drive (SSD), a flexible disk, an optical disk, a magneto-optical disk, a CD-ROM, a CD-R, a non-volatile memory card, etc. In addition to an operating system (OS) and various parameters, programs for operating the computer 200, etc. are recorded in the non-volatile storage 220. The programs may be stored in the ROM 212.
[0085] The program is stored in the form of a computer-readable program code, and the CPU 211 sequentially executes operations according to the program code. In other words, the ROM 212 or the non-volatile storage 220 is used as an example of a computer-readable non-transitory recording medium that stores a program executed by a computer.
[0086] Various functions of the control unit 71 (see FIG. 6) of the component supplying device 1 are realized by the CPU 211 executing a predetermined processing program stored in the ROM 212. The various functions of the control unit 71 include, for example, operation control of the arm 412 by the arm control unit 712, operation control of the hand 422 by the hand control unit 713, operation control of the distance measurement sensor 423 by the distance measurement control unit 714, component attitude determination processing by the attitude determination unit 716, display control of the operation display unit 8 by the display control unit 717, and the like.
[0087] The function of the storage unit 72 (see FIG. 6) of the component supplying device 1 is realized by the non-volatile storage 220 or the ROM 212.
[0088] The operation display unit 230 is configured as a touch panel in which a display panel configured by an LCD (Liquid Crystal Display) or the like and an operation input unit configured by a touch sensor are integrally formed. Note that the display panel and the operation input unit may be configured as separate devices.
[0089] The communication I / F 240 may be, for example, a network interface card (NIC), and may transmit and receive various data to and from an external device (not shown) via a network or a communication line.
[0090] [Component supply operation of the component supply device] Next, the component supplying operation of the component supplying device 1 will be described with reference to FIG. FIG. 10 is a diagram for explaining the component supplying operation of the component supplying device 1. As shown in FIG.
[0091] As shown in Fig. 10, in order for the component supplying device 1 to supply components to a device in the next process, the components are first stored in storage units 3A and 3B (hereinafter referred to as "storage unit 3") (see Fig. 1). The storage of the components in storage unit 3 may be performed by a device in the previous process, or may be performed manually by a person.
[0092] Next, the supply unit 4 grasps one or more parts from the large amount of parts in the storage unit 3 and supplies them to the pick table 5A or the pick table 5B (hereinafter referred to as "pick table 5"). At this time, the supply unit 4 performs a supply operation such that the grasped parts are scattered on the pick table 5. Hereinafter, the supply operation such that the parts are scattered on the pick table 5 is referred to as a "parts scattering operation."
[0093] Next, the camera 424 photographs the top of the pick table 5, and the recognition control unit 715 of the control unit 71 recognizes the top of the pick table 5 from above. At this time, the recognition control unit 715 determines whether or not there is a grippable part on the pick table 5. If it is determined that there is no grippable part on the pick table 5, the supply unit 4 grips one or more parts from the large amount of parts in the storage unit 3.
[0094] Note that even if a component is placed on the pick table 5, if the component is in a position that cannot be grasped by the supply unit 4, it is determined that there is no component that can be grasped on the pick table 5. In this case, the tilting mechanism is driven to tilt the pick table 5. As a result, the component placed on the pick table 5 falls from the pick table 5 and is collected in the storage unit 3.
[0095] When it is determined that there is a grippable part on the pick table 5, the recognition control unit 715 determines one of the parts on the pick table 5 as the part to be gripped, and causes the camera 424 to capture an image of the part to be gripped. Then, the orientation determination unit 716 determines the orientation (front and back) of the part from the image data of the part to be gripped. After that, the hand control unit 713 recognizes (determines) the position at which the hand 422 of the supply unit 4 grips the part.
[0096] Next, the supply unit 4 grasps one part and supplies it to the place tables 6A and 6B (hereinafter referred to as "place table 6"). The place table 6 positions the supplied part at a predetermined position. The part positioned at the predetermined position is supplied to the device for the next process.
[0097] When the supply unit 4 supplies one part to the place table 6, the attitude determination unit 716 determines one of the parts on the pick table 5 as the part to be grasped, and as described above, determines the attitude (front or back) of the part and recognizes (determines) the position where the hand 422 of the supply unit 4 grasps the part. At this time, if there is no part on the pick table 5, the operation of supplying parts to the place table 6 is terminated. Then, the supply unit 4 grasps one or more parts from the large number of parts in the storage unit 3. Thereafter, the supply unit 4 performs an operation of disassembling the parts, and repeats the supply of parts to the place table 6.
[0098] According to this embodiment, even if the components are in contact with or overlapping with each other, the orientation determination unit 716 can determine the orientation of the components, so it is possible to omit the process of “disassembling” the components on the pick table 5.
[0099] <Posture determination process> Next, the attitude determination process performed by the component supplying device 1 will be described with reference to FIGS. Fig. 11 is a flowchart showing an example of the procedure of the posture determination process in this embodiment. Fig. 12 and Fig. 13 are diagrams for explaining each step of the posture determination process.
[0100] First, the recognition control unit 715 causes the camera 424 to take an overhead photograph of the pick table 5 (see FIG. 1) on which the components have been supplied (step S1). FIG. 12A is a diagram showing an image of overhead photography by the camera 424. FIG. 12A shows an example in which components W1 and W2 are arranged on the pick table 5 with some of them overlapping each other. Next, the recognition control unit 715 determines the arrangement position of the distance measurement sensor 423 based on the image data taken in step S1 (step S2).
[0101] Fig. 12B shows an example of the arrangement positions of the distance measuring sensor 423 recognized by the recognition control unit 715. Fig. 12B shows a state in which arrangement positions Ar1 and Ar2 at which the distance to the end faces on the left end side in the figure of both side faces in the longitudinal direction of the part W1 can be measured, and arrangement positions Ar2 and Ar3 at which the distance to the end faces on the lower side in the figure of both side faces in the longitudinal direction of the part W2 can be measured are recognized as the arrangement positions of the distance measuring sensor 423.
[0102] Prior to determining the placement position of the distance measurement sensor 423, the recognition control unit 715 first cuts out the areas (contours) of the individual parts W1 and W2 from the image data generated by the camera 424. The area of each part W can be cut out, for example, by using image area information or by using an instance segmentation technique using deep learning. Then, the recognition control unit 715 determines, as the placement position of the distance measurement sensor 423, an area that is in the vicinity of the end face of the side surface of the part and into which the two gripping pieces 422a to which the distance measurement sensor 423 is attached can be inserted.
[0103] 14 is a diagram showing an example of determining the placement position of distance measuring sensor 423 when multiple parts are stacked. When camera 424 is configured as a camera capable of acquiring depth information, recognition control unit 715 can determine the placement position of distance measuring sensor 423 (area indicated by an ellipse with a dashed line in the figure) by referring to the depth information acquired by camera 424.
[0104] Returning to Fig. 11, the description will be continued. After the process of step S2, the hand control unit 713 adjusts the position of the distance measuring sensor 423 provided at the tip portion of the two gripping pieces 422a by moving the hand 422 to the arrangement position determined in step S2 (step S3). Fig. 13A is a diagram showing a state in which the distance measuring sensor 423 does not capture the end face of the part W1, and Fig. 13B is a diagram showing a state in which the distance measuring sensor 423 is arranged at a position where it can measure the distance to the end face of the part W1.
[0105] 13B, when the distance measuring sensor 423 is placed at a position where it can measure the distance to the end face of the part W1, the distance measuring sensor 423 measures the distance dy to the end face of the part W1 (step S4 in FIG. 11). Next, the recognition control unit 715 determines whether the distance dy to the end face of the part W1 measured by the distance measuring sensor 423 matches the target distance dyt (step S5).
[0106] 15 and 16, an example of measurement of the distance dy from the end face of the component W by the distance measuring sensor 423 will be described. Fig. 15 is a diagram showing an example of the positional relationship between the distance measuring sensor 423 and the component W, and Fig. 16 is a graph showing an example of the measurement value by the distance measuring sensor 423. The vertical axis of Fig. 16 indicates the distance dy from the component W measured by the distance measuring sensor 423, and the horizontal axis indicates time (t).
[0107] 15, it is assumed that the distance measurement sensor 423 is gradually moving from the right side of the figure toward the component W. In this case, until the distance measurement sensor 423 detects the component W, the measurement value by the distance measurement sensor 423 is a default value when nothing is detected, that is, a value corresponding to the distance between a light-emitting unit and a light-receiving unit (not shown) of the distance measurement sensor 423. On the other hand, when the end face of the component W (the surface where the reference position Pr is set) is placed in the approximate center between the light-emitting unit and the light-receiving unit of the distance measurement sensor 423, the measurement value of the distance measurement sensor 423 is a target value dyt, as shown in the graph of FIG.
[0108] In addition, if the part for which the placement position of the distance measurement sensor 423 has been determined in step S2 of Figure 11 is tilted due to reasons such as being stacked on top of other parts, the hand control unit 713 (see Figure 6) adjusts the tilt of the hand 422 based on information obtained from image data output from the camera 424.
[0109] Fig. 17 is a diagram showing an example of adjusting the inclination of the hand 422. In the example shown in Fig. 17A, the part W is inclined downward to the right. In this case, the hand control unit 713 adjusts the hand 422 by tilting the hand 422 diagonally downward to the right in the figure so that the angle between the longitudinal axis of the part W and the axes of the two gripping pieces 422a becomes approximately 90 degrees. By the hand control unit 713 performing such an adjustment, the distance measurement sensor 423 (not shown in Fig. 17) attached to approximately the tip portions of the two gripping pieces 422a can properly measure the distance to the end of the side surface of the part W.
[0110] The explanation will be continued by returning to Fig. 11. If it is determined in step S5 that the distance to the end face of the component does not match the target distance dyt (if the determination in step S5 is NO), the process returns to step S3 and is performed.
[0111] On the other hand, if it is determined in step S5 that the distance between the distance measuring sensor 423 and the end face of the component matches the target distance dyt (if step S5 is determined to be YES), the hand control unit 713 stops the movement of the hand 422 (step S6).
[0112] Next, the posture determination unit 716 determines the position of the attention area for posture determination (step S7) based on the image data generated by the camera 424, the position information (coordinate positions) of the hand 422 (of the two gripping pieces 422a) stopped in step S6, and the distance measurement result information by the distance measurement sensor 423. Fig. 13B shows a state in which the position of the attention area Ad is determined based on the reference position Pr determined by the position information of the two gripping pieces 422a of the hand 422.
[0113] Next, the orientation determination unit 716 determines the orientation (front or back) of the component based on the information on the feature amount in the attention area determined in step S7 and the front or back determination reference amount 725 stored in the storage unit 72 (step S8). After the process of step S8, the orientation determination process by the component supplying device 1 ends.
[0114] In the above embodiment, the attitude determination unit 716 of the component supplying device 1 determines the position of the attention area Ad used for determining the attitude of the part W in the captured image obtained by photographing the part W from above, based on information on the arrangement position of the distance measurement sensor 423 when the distance from the distance measurement sensor 423 to the side surface of the part W measured by the distance measurement sensor 423 becomes a predetermined target distance dyt. Then, the attitude determination unit 716 determines the attitude of the part W based on the feature amount in the attention area Ad.
[0115] Therefore, according to this embodiment, even if the external shape of part W cannot be precisely extracted because a part of part W is in contact with or overlapping with other parts, the attitude determination unit 716 can determine the attitude of part W based on information on the distance to part W measured by the distance measurement sensor 423.
[0116] Furthermore, in the orientation determination process according to this embodiment, even if there is variation in the edge shape for each part, the detected feature amount can be compared with a predetermined reference amount in a region of interest where the influence of the variation is small, and as a result, the orientation (front / back) of the part can be determined with high accuracy.
[0117] For example, for a part or the like whose left and right directions are difficult to distinguish from the image data, the orientation determination unit 716 may set the attention area Ad to be larger. Fig. 18 is a diagram showing an example in which an attention area Ad is set over a wide range in a part W. As shown in Fig. 18, by setting an attention area Ad that can cover a wide area in the longitudinal direction of the part W, it becomes possible to set a reference position Pr on each of two end faces of the part W in the lateral direction.
[0118] As a result, even if the part W to be subjected to posture determination is a part W whose left / right direction is difficult to identify from the image data, the posture determination unit 716 can determine the posture of the part W by identifying the attention area Ad containing the feature amount required for posture determination as long as it can recognize either of the reference positions Pr set on the two end faces.
[0119] 18, by providing two reference positions Pr, even if a position where the two gripping pieces 422a can be inserted cannot be detected near one of the end faces where the reference position Pr is set, the posture determination unit 716 can determine the posture of the part W if the gripping pieces 422a can be inserted near the other reference position Pr. In other words, according to this modification, it is possible to improve the probability that the recognition control unit 715 can detect an area where the distance measurement sensor 423 provided near the part gripping portions of the two gripping pieces 422a can be placed.
[0120] The number of reference positions Pr is not limited to two, and three or more may be set depending on the shape of the part W. Also, even when the size of the attention area Ad is the size shown in Fig. 7, that is, the minimum size that includes the feature amount necessary for determining the orientation of the part, multiple reference positions Pr may be set.
[0121] Furthermore, the present invention is not limited to the above-described embodiment, and it goes without saying that various other applications and modifications are possible without departing from the gist of the present invention as set forth in the claims. For example, the above-described embodiment describes the configuration of the device in detail and specifically in order to clearly explain the present invention, and is not necessarily limited to having all of the configurations described. [Explanation of symbols]
[0122] 1...component supply device, 5...pick table, 422...hand, 422a...gripping piece, 423...distance measurement sensor, 424...camera, 711...overall control unit, 712...arm control unit, 713...hand control unit, 714...distance measurement control unit, 715...recognition control unit, 716...posture determination unit, 717...display control unit, 723...component shape information, 724...hand opening width information, 725...front / back determination reference amount
Claims
1. a distance measuring unit provided in a hand that grasps a component placed on a pick table and places the component in a supply position, the distance measuring unit being provided near a grasping unit of the component and configured to measure a distance to the component; and an orientation determination unit that determines an attention area to be used in determining an orientation of the component based on information on a placement position of the distance measurement unit when the measured distance becomes a predetermined distance, and determines an orientation of the component based on a feature amount of the attention area. Parts orientation information acquisition device.
2. The region of interest is a region in which a difference between a feature amount on a first surface of the component and a feature amount on a second surface different from the first surface is expected to be large.
2. The component attitude information acquisition device according to claim 1.
3. The predetermined distance is a distance from the distance measuring unit to a side surface of the component when the distance measuring unit is disposed on a side surface of a reference position that is referred to when determining the attention area.
3. The component attitude information acquisition device according to claim 2.
4. The reference position is set to a specific end face or a location having a specific feature that constitutes the outer shape of the component recognized from a photographed image of the component taken from above.
4. The component attitude information acquisition device according to claim 3.
5. The orientation determination unit sets the attention area at a position moved in a predetermined direction and by a predetermined amount from the reference position in parallel along an upward surface of the part.
5. The component attitude information acquisition device according to claim 4.
6. The predetermined distance is set in advance based on information on the hand opening width and information on the width of the part.
6. The component attitude information acquisition device according to claim 5.
7. a camera that is arranged above the pick table on which the component is arranged and outputs at least one of a two-dimensional captured image of the component, three-dimensional point cloud information, and depth information; The present invention further includes a recognition control unit that determines a position where the hand provided with the distance measuring unit can be placed based on output information from the camera, and adjusts the position of the distance measuring unit when the hand is placed at a placement position until the distance from the distance measuring unit to a side surface of the component becomes a predetermined distance.
7. The component attitude information acquisition device according to claim 6.
8. A step of a hand that grips a component placed on a pick table and places the component in a supply position, the step of a distance measuring unit provided near a gripping unit of the component measuring a distance to the component; determining a region of interest to be used in determining the orientation of the component based on information on a placement position of the distance measuring unit when the measured distance becomes a predetermined distance, and determining the orientation of the component based on a feature amount of the region of interest. Part orientation determination method.
Citation Information
Patent Citations
Method and device for discriminating between front and back of work
JP1996168940A
Small work delivery control device
JP2002274641A
Object detection device, control device and object detection computer program
JP2020135623A
Systems, Devices, Components, and Methods for a Compact Robotic Gripper with Palm-Mounted Sensing, Grasping, and Computing Devices and Components
US20210394367A1
Selecting method for picture recognizing condition
JP1997245177A
