Image processing device, image processing method, and image processing program

The image processing device's packet-based approach reduces processing time and memory usage by selectively processing only necessary packets, addressing the delay issues in conventional image processing technologies and enhancing positioning efficiency in factory automation.

WO2024201978A1PCT designated stage expired Publication Date: 2024-10-03MITSUBISHI ELECTRIC CORP
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/JP2023/013484
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-31
Publication Date
2024-10-03

AI Technical Summary

Technical Problem

Conventional image processing technologies in factory automation take a long time to acquire and process captured images, leading to delays in positioning tasks.

Method used

An image processing device that receives and processes a captured image by dividing it into packets, selecting and processing only the necessary packets for image processing, reducing the time required to acquire and process the image.

Benefits of technology

This approach significantly shortens the time from image reception to processing, enabling faster positioning of objects and reducing memory usage by discarding unnecessary data, thus improving processing efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure JP2023013484_03102024_PF_FP_ABST
    Figure JP2023013484_03102024_PF_FP_ABST
Patent Text Reader

Abstract

An Ethernet processing unit (310) receives a plurality of payload packets storing a plurality of divided images obtained by dividing a captured image. The Ethernet processing unit (310) and a packet discarding unit (311) select, from among the plurality of payload packets, a payload packet storing a divided image to be subjected to image processing.
Need to check novelty before this filing date? Find Prior Art

Description

Image processing device, image processing method, and image processing program

[0001] The present disclosure relates to image processing.

[0002] In FA (factory automation), various technologies (positioning technologies) have been put into practical use, which use servo motors to align the position of an object to be positioned, such as a workpiece (control target position), to a target position. One method for measuring the control target position is to measure the control target position by image processing of an image captured by a camera. In a method for measuring the control target position by image processing, as disclosed in, for example, Patent Document 1, a camera captures an image of the object to be positioned so that the image includes the control target position. An image processing device then analyzes the captured image to calculate the distance between the control target position and the target position.

[0003] Japanese Patent Application Laid-Open No. 2019-003388

[0004] In conventional positioning techniques using image processing, such as that described in Patent Document 1, the image processing function within the image processing device acquires the entire captured image. Therefore, when the image processing device receives the captured image, the conventional techniques have a problem in that it takes a long time from the reception of the captured image until the image processing function acquires the captured image.

[0005] A primary object of the present disclosure is to solve such problems. More specifically, an object of the present disclosure is to shorten the time from when a captured image is received until a function that performs image processing acquires the captured image.

[0006] The image processing device according to the present disclosure includes a packet receiving unit that receives a plurality of payload packets that store a plurality of divided images obtained by dividing a captured image, and a packet selecting unit that selects, from the plurality of payload packets, a payload packet that stores a divided image to be subjected to image processing.

[0007] According to the present disclosure, it is possible to reduce the time from when a captured image is received until a function that performs image processing acquires the captured image.

[0008] FIG. 1 is a diagram showing an example of the configuration of a positioning system according to embodiment 1. FIG. 2 shows a method for transmitting a captured image according to embodiment 1. FIG. 3 is a diagram showing an example of the hardware configuration of an image processing device according to embodiment 1. FIG. 4 is a diagram showing an example of the hardware configuration of a motion controller according to embodiment 1. FIG. 5 is a diagram showing an example of the functional configuration of an image processing device and a motion controller according to embodiment 1. FIG. 6 is a diagram showing an example of a filter table according to embodiment 1. FIG. 7 is a diagram explaining a method for determining a positioning utilization area according to embodiment 1. FIG. 8 is a diagram explaining a method for determining packets to be discarded according to embodiment 1. A flowchart showing an example of the operation of a positioning system according to embodiment 1. FIG. 9 is a diagram showing an example of the operation of an image processing device according to embodiment 1. A flowchart showing an example of the operation of a pattern detection unit according to embodiment 1. A flowchart showing an example of the operation of a motion controller according to embodiment 1.

[0009] Hereinafter, embodiments will be described with reference to the drawings. In the following description of the embodiments and the drawings, the same reference numerals denote the same or corresponding parts.

[0010] First Embodiment ***Description of Configuration*** Fig. 1 shows an example of the configuration of a positioning system 1 according to this embodiment.

[0011] 1, a positioning system 1 positions a workpiece 2 by image processing. The positioning system 1 includes a moving mechanism 100, a camera 200, an image processing device 300, a motion controller 400, and a servo driver 500.

[0012] The workpiece 2 is, for example, a printed circuit board. The workpiece 2 has a characteristic portion 3 that is used for positioning. The characteristic portion 3 is, for example, a mounted chip, an unmounted pattern, a recognition mark, or the like. The characteristic portion 3 may also be composed of a combination of these. The workpiece 2 corresponds to an object to be positioned, since it is the object to be positioned by the positioning system 1. Furthermore, the workpiece 2 also corresponds to an object to be imaged, since it is the object to be imaged by the camera 200.

[0013] The moving mechanism 100 moves the workpiece 2. The moving mechanism 100 includes an XY stage 110, a servo motor 120a, and a servo motor 120b. The servo motor 120a drives the XY stage 110 along the X-axis direction. The servo motor 120b drives the XY stage 110 along the Y-axis direction. The moving mechanism 100 may include an XYθ stage instead of the XY stage 110.

[0014] The camera 200 captures an image of the workpiece 2. The camera 200 then transmits the captured image to the image processing device 300. In this embodiment, the camera 200 transmits the captured image to the image processing device 300 via Ethernet (registered trademark). In this embodiment, the camera 200 communicates with the image processing device 300 using the GigE Vision standard. GigE Vision is an interface standard for industrial cameras.

[0015] The image processing device 300 receives the captured image from the camera 200. The image processing device 300 also performs image processing on the captured image to identify the position of the characteristic portion 3 on the workpiece 2. The image processing device 300 then positions the workpiece 2 by identifying the position of the characteristic portion 3. The operating procedure of the image processing device 300 corresponds to an image processing method. The program that realizes the operation of the image processing device 300 corresponds to an image processing program.

[0016] The motion controller 400 generates a movement command for moving the position of the workpiece 2 closer to the target position based on the position of the characteristic portion 3 identified by the image processing device 300. Then, the motion controller 400 outputs the generated movement command to the servo driver 500.

[0017] The servo driver 500 performs feedback control of the servo motors 120 a and 120 b based on a movement command received from the motion controller 400 .

[0018] FIG. 2 shows a method in which the camera 200 divides a captured image into multiple packets and transmits them.

[0019] The captured image 4 of the workpiece 2 captured by the camera 200 is divided into multiple divided images in a raster scan format. Each divided image has a fixed size. The divided images are stored in multiple payload packets P(1) to P(N). These are transmitted in the following order: leader packet P(0), one or more payload packets P(1) to P(N), and trailer packet P(N+1). The leader packet P(0) is the first packet for the captured image 4. Each of the payload packets P(1) to P(N) stores a divided image. The trailer packet P(N+1) is the last packet for the captured image 4. The leader packet P(0) and trailer packet P(N+1) do not store any divided images. The leader packet P(0), each payload packet P(1) to P(N), and trailer packet P(N+1) are assigned a block ID, which is the serial number of the captured image 4, and a packet ID, which is the serial number of the packet within the captured image 4. The block ID is an integer value that is incremented for each captured image 4. In Fig. 2, the camera 200 assigns "1" as a block ID to the captured image 4. The packet ID is an integer value that is incremented for each packet. The packet ID is initialized to "0" for each captured image 4. In Fig. 2, the camera 200 assigns "0" to "N+1" as packet IDs to multiple packets in order.

[0020] 3 shows an example of the hardware configuration of an image processing device 300. The image processing device 300 is a computer. As shown in FIG. 3, the image processing device 300 includes a processor 301, a memory 302, a storage device 303, a network interface 304, and a motion controller interface 305.

[0021] 4 shows an example of the hardware configuration of the motion controller 400. The motion controller 400 is a computer. As shown in FIG. 4, the motion controller 400 includes a processor 401, a memory 402, a storage device 403, an image processing device interface 404, and a servo driver interface 405.

[0022] FIG. 5 shows an example of the functional configuration of the image processing device 300 and the motion controller 400.

[0023] The Ethernet processing unit 310 receives the segmented images transmitted by the camera 200 in the form of Ethernet (registered trademark) frames. The Ethernet processing unit 310 then inputs the IP (Internet Protocol) packets, which are the payload, to the UDP / IP processing unit 320. More specifically, the Ethernet processing unit 310 selects, from among the payload packets P(1) to P(N) shown in FIG. 2 , a payload packet that stores a segmented image to be subjected to image processing for positioning the workpiece 2. The Ethernet processing unit 310 then transfers the selected payload packet to the UDP / IP processing unit 320. The Ethernet processing unit 310 discards all payload packets other than the selected payload packet. The Ethernet processing unit 310 corresponds to a packet receiving unit. The Ethernet processing unit 310, together with a packet discarding unit 311 (described later), also corresponds to a packet selecting unit. The processing performed by the Ethernet processing unit 310 corresponds to a packet reception process. The processing performed by the Ethernet processing unit 310, together with the processing performed by the packet discard unit 311, corresponds to a packet selection process.

[0024] The UDP / IP processing unit 320 extracts a User Datagram Protocol (UDP) packet from the input IP packet, and inputs the GigE Vision packet, which is the payload of the UDP packet, to the GigE Vision processing unit 330.

[0025] The GigE Vision processing unit 330 constructs a partial image, which is a part of the captured image 4, from one or more GigE Vision packets. The partial image constructed by the GigE Vision processing unit 330 is an image that shows a positioning utilization area, which will be described later. The GigE Vision processing unit 330 inputs the partial image to the pattern detection unit 340. The GigE Vision processing unit 330 determines which captured image 4 the acquired GigE Vision packets constitute, based on the block IDs shown in FIG. 2. The GigE Vision processing unit 330 constructs the partial image from the payload packets in the order indicated by the packet IDs shown in FIG. 2.

[0026] The size of a single GigE Vision packet must fit into a single UDP packet. The size of a single UDP packet must fit into a single IP packet. The size of a single IP packet must fit into a single Ethernet frame. Jumbo frames may be used to meet these conditions.

[0027] The pattern detection unit 340 performs image processing on the partial image input from the GigE Vision processing unit 330. The pattern detection unit 340 then identifies the position of the characteristic portion 3 on the workpiece 2. The pattern detection unit 340 identifies the position of the characteristic portion 3, for example, by pixel-by-pixel detection processing using template matching. The pattern detection unit 340 may perform sub-pixel position estimation processing instead of or in addition to the pixel-by-pixel detection processing. The pattern detection unit 340 then outputs the result of the image processing (the position of the characteristic portion) to the motion controller 400. The pattern detection unit 340, together with the pixel range determination unit 341 and the discard packet determination unit 331 described below, corresponds to a packet designation unit. Furthermore, the processing performed by the pattern detection unit 340, together with the processing performed by the pixel range determination unit 341 and the discard packet determination unit 331 described below, corresponds to packet designation processing.

[0028] The packet discard unit 311 refers to the filter table 312 and determines whether the payload packet received by the Ethernet processing unit 310 should be discarded or input to the UDP / IP processing unit 320. As described above, the packet discard unit 311, together with the Ethernet processing unit 310, corresponds to a packet selection unit. Furthermore, the processing performed by the packet discard unit 311, together with the processing performed by the Ethernet processing unit 310, corresponds to a packet selection process.

[0029] The pixel range determination unit 341 determines an image area to be used for positioning (hereinafter referred to as the positioning utilization area) in a future captured image 4 that will be captured at a future imaging timing. The pixel range determination unit 341 determines the positioning utilization area based on the position of the characteristic portion 3 at the future imaging timing predicted by the position prediction unit 420, which will be described later. Each of the multiple divided images that make up the positioning utilization area is called a positioning divided image. The GigE Vision processing unit 330 described above combines the multiple positioning divided images to construct a partial image in which the positioning utilization area is captured. Details of the positioning utilization area will be described later. As described above, the pixel range determination unit 341, together with the pattern detection unit 340 and the discard packet determination unit 331, corresponds to a packet designation unit. Furthermore, the processing performed by the pixel range determination unit 341, together with the processing performed by the pattern detection unit 340 and the discard packet determination unit 331, corresponds to packet designation processing.

[0030] The discard packet determination unit 331 determines payload packets to be discarded. Specifically, the discard packet determination unit 331 calculates a block ID corresponding to the future captured image 4. Furthermore, the discard packet determination unit 331 calculates packet IDs of payload packets for the future captured image 4 that do not store a positioning partition, based on the positioning utilization area in the future captured image 4. The discard packet determination unit 331 then registers the calculation results in the filter table 312. In other words, the discard packet determination unit 331 specifies payload packets that store a positioning partition before the Ethernet processing unit 310 selects payload packets for the future captured image 4. As described above, the discard packet determination unit 331, together with the pattern detection unit 340 and the pixel range determination unit 341, corresponds to a packet designation unit. Furthermore, the processing performed by the discard packet determination unit 331, together with the processing performed by the pattern detection unit 340 and the pixel range determination unit 341, corresponds to a packet designation process.

[0031] The functions of the Ethernet processing unit 310, UDP / IP processing unit 320, etc. shown in Fig. 5 are realized by, for example, a program. The storage device 303 shown in Fig. 3 stores programs that realize the functions of the Ethernet processing unit 310, UDP / IP processing unit 320, etc. These programs are loaded from the storage device 303 into the memory 302. The processor 301 then executes these programs to perform the operations of the Ethernet processing unit 310, UDP / IP processing unit 320, etc.

[0032] In the motion controller 400, the movement control unit 410 generates a movement command to move the position of the workpiece 2 closer to the target position. More specifically, the movement control unit 410 generates the movement command based on the position of the characteristic portion 3 identified by the image processing device 300. The movement control unit 410 then outputs the generated movement command to the servo driver 500.

[0033] The position prediction unit 420 predicts the position of the characteristic part 3 at a future imaging timing. More specifically, the position prediction unit 420 predicts the position of the characteristic part 3 based on the past and current positions of the characteristic part 3 identified by the pattern detection unit 340. The position prediction unit 420 then notifies the pixel range determination unit 341 of the predicted position of the characteristic part 3.

[0034] The functions of the movement control unit 410 and the position prediction unit 420 shown in Fig. 5 are realized by, for example, a program. The storage device 403 shown in Fig. 4 stores programs that realize the functions of the movement control unit 410 and the position prediction unit 420. These programs are loaded from the storage device 403 to the memory 402. The processor 401 then executes these programs to perform the operations of the movement control unit 410 and the position prediction unit 420.

[0035] FIG. 6 shows an example of the filter table 312 .

[0036] The filter table 312 is a table generated in the memory 302. The filter table 312 holds information used by the Ethernet processing unit 310 to identify payload packets that should be discarded in the future. The filter table 312 of FIG. 6 registers pairs of block IDs and packet IDs as information used to identify payload packets that should be discarded in the future. FIG. 6 shows the packet IDs of payload packets to be discarded, which store divided images of captured image 4 having a block ID of "3." Specifically, the payload packet with packet ID "1" is to be discarded. The payload packet with packet ID "2" is also to be discarded. The payload packet with packet ID "33" is also to be discarded. The payload packet with packet ID "34" is also to be discarded. The payload packet with packet ID "35" is also to be discarded. Note that FIG. 6 shows an example in which the filter table 312 is configured using a ring buffer. The filter table 312 may also be configured using a hash set or a hash map using pairs of block IDs and packet IDs as keys.

[0037] FIG. 7 shows how the position prediction unit 420 and pixel range determination unit 341 determine the positioning utilization area 5 .

[0038] First, the position prediction unit 420 calculates the position at time t 0 At time t 1 (t 1 = t 0 +Δt). More specifically, the position prediction unit 420 predicts the position of the characteristic portion 3 at time t 0 the position of the characteristic portion 3 in the image and the time t 0 The predicted movement amount of the characteristic portion 3 obtained from the movement command at time t 0 From time t 1 Based on the movement amount of the workpiece 2 between the time t 1 In addition to these, the position prediction unit 420 may also use a damped oscillation model generated from past position information of the characteristic portion 3 to predict the position of the characteristic portion 3.

[0039] Next, the pixel range determination unit 341 determines the pixel range at time t 1 The entire view of the characteristic portion 3 and the rectangular area surrounding the characteristic portion 3 in the future captured image 4 to be captured by the camera are determined as the positioning utilization area 5. A segmented image that captures at least a portion of the characteristic portion 3 is called a feature segmented image. In this embodiment, an image capturing the entire view of the characteristic portion 3 is constructed by combining one or more feature segmented images. Furthermore, a segmented image that captures at least a portion of the rectangular area surrounding the characteristic portion 3 is called a surrounding segmented image. In this embodiment, an image capturing the entire view of the surrounding rectangular area is constructed by combining one or more surrounding segmented images. When at least a portion of the characteristic portion 3 and at least a portion of the surrounding rectangular area are captured in one segmented image, the segmented image is both a feature segmented image and a surrounding segmented image. As described above, each of the multiple segmented images that constitute the positioning area is called a positioning segmented image. For simplicity of explanation, in this embodiment, each positioning segmented image is either a feature segmented image or a surrounding segmented image. In actual operation, the positioning segmented image may be the segmented image that is both a feature segmented image and a surrounding segmented image, as described above.

[0040] The size of the positioning utilization region 5 may be fixed or variable as long as it can completely include the entire view of the feature portion 3. As an example of a variable size, it is possible to increase the size of the positioning utilization region 5 when there is a possibility that the prediction accuracy of the position of the feature portion 3 may decrease. For example, 0 From time t 1 When it is predicted that the movement distance of the workpiece 2 will be large from time t 0 From time t 1 When it is predicted that the vibration amplitude of the workpiece 2 will be large over a long period of time, it is possible to increase the size of the positioning utilization area 5.

[0041] Fig. 8 explains how the discard packet determination unit 331 determines packets to be discarded. That is, Fig. 8 shows how the discard packet determination unit 331 calculates the packet ID of a payload packet in which an image segment that does not correspond to the positioning image segment is stored. In other words, Fig. 8 shows how the discard packet determination unit 331 calculates the packet ID of a payload packet in which a positioning image segment is stored.

[0042] Here, the current time is t 0 [seconds], and the future imaging timing is t 1 (t 1 = t 0 + Δt) [seconds]. Also, the frame rate is f [fps], and the current time t 0 The block ID of the captured image 4 captured at b 0 At future time t 1 The block ID of the future captured image 4 to be captured at b 1 = b 0+f [fps] × Δt [seconds]. In positioning using the future captured image 4, the leader packet, trailer packet, and all payload packets storing divided images (positioning divided images) corresponding to the positioning utilized region 5 are subject to image processing by the pattern detection unit 340. In other words, payload packets storing divided images that do not correspond to the positioning utilized region 5 are subject to discard. Here, the leading coordinates of the positioning utilized region 5 as determined by raster scanning are (xi, yi), and the trailing coordinates are (xj, yj). Also, the packet IDs of payload packets storing divided images of the future captured image 4 are denoted by P(1) to P(N). The packet ID of a payload packet storing a divided image including the leading coordinates of the positioning utilized region 5 is denoted by P(i). Also, the packet ID of a payload packet storing a divided image including the trailing coordinates of the positioning utilized region 5 is denoted by P(j). In this case, payload packets with packet IDs P(1) to P(i-1) and payload packets with packet IDs P(j+1) to P(N) are discarded.

[0043] ***Explanation of Operation*** Next, an example of the operation of the positioning system 1 according to this embodiment will be described. Figure 9 shows an example in which the positioning system 1 positions the workpiece 2 by image processing.

[0044] First, in step S100, when a new workpiece 2 is placed, the process proceeds to step S200.

[0045] In step S200, the camera 200 captures an image of the workpiece 2 placed on the XY stage 110 and records the image capturing time. The camera 200 captures an image of the workpiece 2 in step S200 for each image capturing period.

[0046] Next, in step S300, the camera 200 transmits the captured image 4 obtained in step S200 and the capture time to the image processing device 300. The camera 200 communicates with the image processing device 300 using, for example, the GigE Vision standard. The capture time is stored in a leader packet. Multiple divided images obtained by dividing the captured image 4 are stored in one or more payload packets. Then, as shown in FIG. 2, the camera 200 transmits the leader packet, payload packet, and trailer packet to the image processing device 300. The camera 200 completes the transmission in step S300 by the start time of the next imaging cycle.

[0047] In step S400, the image processing device 300 receives the leader packet, payload packet, and trailer packet transmitted from the camera 200, and acquires the divided images and their image capture times. Then, the image processing device 300 performs image processing to identify the current position of the characteristic portion 3 on the workpiece 2.

[0048] In step S500, the image processing device 300 notifies the movement control unit 410 and the position prediction unit 420 of the motion controller 400 of the image capturing time and the current position of the characteristic part 3 identified in step S400.

[0049] The processing of the image processing device 300 described in steps S400 and S500 will be described in detail later.

[0050] In step S600, the movement control unit 410 generates a movement command to move the position of the workpiece 2 closer to the target position based on the current position of the characteristic part 3 identified by the image processing device 300. In addition, the position prediction unit 420 predicts the position of the characteristic part 3 at a future imaging timing.

[0051] In step S700, the movement control unit 410 of the motion controller 400 notifies the servo driver 500 of the movement command generated in step S600. In addition, the position prediction unit 420 of the motion controller 400 notifies the pixel range determination unit 341 of the image processing device 300 of the predicted position of the characteristic portion 3 calculated in step S600.

[0052] The processing by the motion controller 400 described in steps S600 and S700 will be described in detail later.

[0053] In step S800, the servo driver 500 performs feedback control on the servo motors 120a and 120b so that the movement amount of the XY stage 110 approaches the movement command. Then, the servo motors 120a and 120b drive the XY stage 110, thereby changing the position of the workpiece 2.

[0054] As shown in step S900, steps S200 to S800 are repeated until the workpiece 2 moves to the target position.

[0055] FIG. 10 explains the detailed processing of the image processing device 300 in steps S400 and S500.

[0056] The image processing device 300 executes the processes of steps S410 to S440 in Fig. 10 for each image processing cycle. The length of the image processing cycle is the same as the length of the imaging cycle. Note that the start time of the image processing cycle does not need to be the same as the start time of the imaging cycle.

[0057] 10 , the Ethernet processing unit 310 and UDP / IP processing unit 320, and the GigE Vision processing unit 330 and pattern detection unit 340 operate on separate CPU (Central Processing Unit) cores. Therefore, the Ethernet processing unit 310 and UDP / IP processing unit 320, and the GigE Vision processing unit 330 and pattern detection unit 340 operate in parallel. More specifically, while the GigE Vision processing unit 330 and pattern detection unit 340 are processing captured image 4 with block ID=n, the Ethernet processing unit 310 and UDP / IP processing unit 320 are performing reception processing for packets corresponding to captured image 4 with block ID=n+1.

[0058] First, in step S410, the Ethernet processing unit 310 selects an Ethernet frame from among the Ethernet frames arriving at the network interface 304, for which an IP packet should be input to the UDP / IP processing unit 320. More specifically, the Ethernet processing unit 310 uses the packet discard unit 311 to determine whether the received Ethernet frame should be discarded. The packet discard unit 311 references the GigE Vision protocol header of the received Ethernet frame. The packet discard unit 311 then determines whether the pair of block ID and packet ID held by the Ethernet frame matches the pair of block ID and packet ID registered in the filter table 312. If the pair of block ID and packet ID of the Ethernet frame matches the pair of block ID and packet ID in the filter table 312, the packet discard unit 311 determines that the Ethernet frame should be discarded. The Ethernet processing unit 310 discards an Ethernet frame that the packet discard unit 311 has determined should be discarded, without inputting the frame to the UDP / IP processing unit 320. After the Ethernet frame has been discarded, the packet discard unit 311 deletes the pair of block ID and packet ID of the Ethernet frame from the filter table 312. On the other hand, if the packet discard unit 311 has not determined that the Ethernet frame should be discarded, the Ethernet processing unit 310 inputs the IP packet of the payload of the Ethernet frame to the UDP / IP processing unit 320. In other words, the Ethernet processing unit 310 and the packet discard unit 311 select an IP packet to be subjected to image processing from a plurality of IP packets.

[0059] Next, in step S420, the UDP / IP processing unit 320 extracts a UDP packet from the input IP packet. Furthermore, the UDP / IP processing unit 320 extracts a GigE Vision packet from the payload of the extracted UDP packet. The UDP / IP processing unit 320 then inputs the extracted GigE Vision packet to the GigE Vision processing unit 330. The GigE Vision packet input to the GigE Vision processing unit 330 is either a leader packet, a payload packet, or a trailer packet.

[0060] In step S430, the GigE Vision processing unit 330 constructs a partial image from the leader packet, one or more payload packets, and the trailer packet. The partial image constructed by the GigE Vision processing unit 330 is an image that shows the positioning utilization area 5. The GigE Vision processing unit 330 constructs a partial image by combining the segment images (positioning segment images) stored in all payload packets that have a common block ID in the order indicated by the packet IDs. When constructing a partial image, if some of the payload packets were discarded in step S410, the GigE Vision processing unit 330 skips storing the segment images in the memory area corresponding to the discarded payload packets. In this case, the segment images are not stored in that memory area. Therefore, the values ​​originally stored in that memory area (initial values, undefined values, etc.) are maintained in that memory area. When the GigE Vision processing unit 330 receives the trailer packet and completes construction of a partial image, it inputs the partial image, the imaging time acquired from the leader packet, and the start and end coordinates of the partial image obtained by raster scanning to the pattern detection unit 340. The GigE Vision processing unit 330 inputs the coordinates of the first pixel of the first divided image of the partial image to the pattern detection unit 340 as the start coordinates of the partial image. The GigE Vision processing unit 330 also inputs the coordinates of the last pixel of the last divided image of the partial image to the pattern detection unit 340 as the end coordinates of the partial image. The start coordinates of the partial image are, with reference to FIG. 8 , the coordinates (xk, yk) of the first pixel of the divided image stored in the payload packet whose packet ID is P(i). The end coordinates of the partial image are, with reference to FIG. 8 , the coordinates (xl, yl) of the last pixel of the divided image stored in the payload packet whose packet ID is P(j).

[0061] FIG. 11 shows an example of the operation of the pattern detection section 340 in step S440.

[0062] In step S441, the pattern detection unit 340 receives the partial image, the capture time of the partial image, and the start and end coordinates of the partial image from the GigE Vision processing unit 330.

[0063] Next, in step S442, the pattern detection unit 340 performs image processing on the partial image to identify the current position of the characteristic portion 3 on the workpiece 2. Note that, in order to perform image processing efficiently, the pattern detection unit 340 may perform image processing including part of the area outside the partial image. Furthermore, the pattern detection unit 340 may perform image processing by padding the periphery of the partial image.

[0064] Next, in step S443, the pattern detection unit 340 notifies the movement control unit 410 and position prediction unit 420 of the motion controller 400 of the position of the characteristic part 3 and the time of capturing the partial image used to identify the position of the characteristic part 3.

[0065] Then, in step S444, the pixel range determination unit 341 executed by the pattern detection unit 340 acquires the predicted position of the characteristic portion 3 in the future captured image 4 from the position prediction unit 420. At this time, the pixel range determination unit 341 may acquire information for identifying the future captured image 4. For example, the pixel range determination unit 341 acquires information indicating the difference Δt between the capture time of the current captured image 4 and the capture time of the future captured image 4 as the information for identifying the future captured image 4. The pixel range determination unit 341 may also acquire information indicating the difference N between the block ID of the current captured image 4 and the block ID of the future captured image 4 as the information for identifying the future captured image 4. Note that in the example of FIG. 10 , while the GigE Vision processing unit 330 and the pattern detection unit 340 are processing the partial image of the captured image 4 with block ID = n, the Ethernet processing unit 310 and the UDP / IP processing unit 320 have already started receiving the packet containing the captured image 4 with block ID = n+1. 10 , the position prediction unit 420 calculates the predicted position of the characteristic portion 3 in the captured image 4 having block ID=n+2 from the partial image of the captured image 4 having block ID=n. In other words, the difference between the block ID of the current captured image 4 and the block ID of the future captured image 4 is 2.

[0066] Next, in step S445, the pixel range determination unit 341 determines the positioning utilization area 5 in the future captured image 4 based on the predicted position of the characteristic portion 3 acquired in step S444. The method for determining the positioning utilization area 5 is as described with reference to FIG. 7. When the captured image 4 with the block ID=n is captured at time t 0 7 corresponds to the captured image 4 of block ID=n+2. 1 This corresponds to the captured image 4.

[0067] In step S446, the discard packet determination unit 331 executed by the pattern detection unit 340 determines packets to be discarded. Specifically, the discard packet determination unit 331 calculates a block ID corresponding to the future captured image 4. Furthermore, the discard packet determination unit 331 calculates, based on the positioning utilization area 5 in the future captured image 4, packet IDs of payload packets for the future captured image 4 that do not store positioning divided images. The discard packet determination unit 331 then registers the calculation results in the filter table 312. The method for calculating the block IDs and packet IDs is as described using FIG. 8. Furthermore, the contents registered in the filter table 312 are as described using FIG. 6.

[0068] As shown in step S447, steps S441 to S446 are repeated until the workpiece 2 moves to the target position.

[0069] 12 shows an example of the operation of steps S600 and S700 of the motion controller 400. The motion controller 400 executes steps S601 to S604 in FIG.

[0070] When the start time of the calculation cycle arrives in step S601, in step S602, the movement control unit 410 and the position prediction unit 420 acquire the position of the characteristic part 3 identified by the image processing device 300 and the image capture time of the captured image 4 used to identify the position of the characteristic part 3.

[0071] In step S603, the movement control unit 410 generates a movement command to move the position of the workpiece 2 closer to the target position based on the position of the characteristic part 3 identified by the image processing device 300. Also, the position prediction unit 420 predicts the position of the characteristic part 3 at the future image capture timing. The prediction method is as explained using FIG. 7. Here, the current image capture time is set to t 0 [seconds], and the future imaging timing is t 1 (t 0+Δt) [seconds], and the frame rate is f [fps]. When calculating a predicted position in the captured image 4 N frames later, with the current captured image 4 as the reference, Δt is expressed as Δt [seconds] = 1 / f × N. Here, the value of N is determined between the image processing device 300 and the motion controller 400, for example, before the start of positioning. Alternatively, the image processing device 300 may notify the motion controller 400 of the value of N each time during positioning.

[0072] In step S604, the movement control unit 410 of the motion controller 400 notifies the servo driver 500 of the movement command generated in step S603. Furthermore, the position prediction unit 420 of the motion controller 400 notifies the pixel range determination unit 341 of the image processing device 300 of the predicted position of the characteristic portion 3 calculated in step S603. When notifying the predicted position of the characteristic portion 3, the position prediction unit 420 may notify the pixel range determination unit 341 of information indicating which future captured image 4 the predicted position corresponds to. As such information, the position prediction unit 420 may, for example, use the above-mentioned Δt, t 0 +Δt, or N.

[0073] As shown in step S605, steps S601 to S604 are repeated until the workpiece 2 moves to the target position.

[0074] ***Description of Effects of the Embodiment*** In this embodiment, the position prediction unit 420 predicts the position of the characteristic portion 3 at a future imaging timing. Then, the pixel range determination unit 341 determines the positioning utilization area 5 in the captured image 4 to be captured at the future imaging timing. The discard packet determination unit 331 identifies future payload packets unnecessary for positioning. Furthermore, the packet discard unit 311 discards the unnecessary payload packets. Therefore, according to this embodiment, the time from when the Ethernet processing unit 310 receives the captured image 4 from the camera 200 connected via a network to when the pattern detection unit 340 acquires the captured image 4 can be shortened. This enables faster positioning of the object to be positioned. Additionally, the amount of data input to the UDP / IP processing unit 320 is reduced, thereby reducing memory usage by the socket buffer, which is commonly used in network reception processing. Furthermore, in this embodiment, the camera 200 captures and transmits the entire workpiece 2, and the image processing device 300 discards unnecessary areas of the captured image. Therefore, image processing targeting areas other than the characteristic portion 3 can be started without delay as needed. This is an effect that cannot be obtained by a conventional method in which the camera 200 reduces the amount of data transmitted by capturing an image of only a portion of the workpiece 2. In addition, this is an effect that cannot be obtained by a conventional method in which the camera 200 reduces the amount of data transmitted by transmitting only a portion of the captured image (ROI: Region of Interest).

[0075] In this embodiment, the image processing device 300 and the motion controller 400 are separate devices, but they may be integrated into a single device. This allows the movement control unit 410 and the position prediction unit 420 to operate on the same memory as the pixel range determination unit 341. This allows the positioning utilization area 5 in the captured image 4 to be captured at a future imaging timing to be determined more quickly.

[0076] In this embodiment, the Ethernet processing unit 310 and UDP / IP processing unit 320, and the GigE Vision processing unit 330 and pattern detection unit 340 operate in parallel on separate CPU cores. Alternatively, they may operate sequentially on a single CPU core. In this case, the GigE Vision processing unit 330 and pattern detection unit 340 complete processing of the partial image with block ID = n, and then the Ethernet processing unit 310 and UDP / IP processing unit 320 perform packet reception processing for the captured image 4 with block ID = n+1. Therefore, the position prediction unit 420 calculates the predicted position of the characteristic portion 3 in the captured image with block ID = n+1 from the partial image with block ID = n. In other words, the difference between the block ID of the current captured image 4 and the block ID of the future captured image 4 is 1.

[0077] Furthermore, in this embodiment, the size of the positioning utilization region 5 may be variable or fixed. If the size of the positioning utilization region 5 is variable, the average time required from when the Ethernet processing unit 310 receives the captured image 4 until the pattern detection unit 340 acquires the captured image 4 is shortened. On the other hand, if the size of the positioning utilization region 5 is fixed, an upper limit is placed on the number of packets that the image processing device 300 processes without discarding. Therefore, if the size of the positioning utilization region 5 is fixed, the maximum time required from when the Ethernet processing unit 310 receives the captured image 4 until the pattern detection unit 340 acquires the captured image 4 is reduced. This has the effect of shortening the imaging cycle and achieving higher-precision positioning.

[0078] In addition, in the present embodiment, an example has been described in which the Ethernet processing unit 310 selects payload packets storing divided images to be used in image processing for positioning. The Ethernet processing unit 310 can be used not only for positioning but also for extracting divided images of the characteristic portion 3 from a series of divided images. That is, the Ethernet processing unit 310 can receive multiple payload packets storing multiple divided images obtained by dividing a captured image of an object that is not a positioning object but has the characteristic portion 3. The Ethernet processing unit 310 can then select, from the multiple payload packets, the payload packets storing the divided images showing the characteristic portion 3 as the payload packets storing the divided images to be subjected to image processing.

[0079] The procedure described in this embodiment is an example. Therefore, only a part of the procedure described in this embodiment may be implemented. Also, at least a part of the procedure described in this embodiment may be implemented in combination with a procedure not described in this embodiment. Also, the configuration and procedure described in this embodiment may be changed as necessary.

[0080] ***Supplementary Explanation of Hardware Configuration*** Finally, a supplementary explanation of the hardware configuration of the image processing device 300 and the motion controller 400 will be provided.

[0081] The processor 301 is an IC (Integrated Circuit) that performs processing. The processor 301 is a CPU, a DSP (Digital Signal Processor), or the like. The memory 302 is a RAM (Random Access Memory). The storage device 303 is a ROM (Read Only Memory), a flash memory, a HDD (Hard Disk Drive), or the like. The network interface 304 and the motion controller interface 305 are each electronic circuits that execute data communication processing. The network interface 304 and the motion controller interface 305 are each, for example, a communication chip or a NIC (Network Interface Card).

[0082] The storage device 303 also stores an operating system (OS). At least a portion of the OS is executed by the processor 301. While executing at least a portion of the OS, the processor 301 executes programs that implement functions such as the Ethernet processing unit 310 and the UDP / IP processing unit 320. The processor 301 executes the OS to perform tasks, memory management, file management, communication control, and the like. At least one of information, data, signal values, and variable values ​​indicating the results of processing by the Ethernet processing unit 310, the UDP / IP processing unit 320, and the like is stored in the memory 302, the storage device 303, and at least one of a register and a cache memory within the processor 301. The programs that implement the functions of the Ethernet processing unit 310, the UDP / IP processing unit 320, and the like may be stored on a portable recording medium such as a magnetic disk, a flexible disk, an optical disk, a compact disk, a Blu-ray (registered trademark) disk, or a DVD. A portable recording medium storing a program for realizing the functions of the Ethernet processing unit 310, the UDP / IP processing unit 320, etc. may be distributed.

[0083] The processor 401 is also an IC that performs processing. The processor 401 is also a CPU, DSP, etc. The memory 402 is also a RAM. The storage device 403 is also a ROM, flash memory, HDD, etc. The image processing device interface 404 and the servo driver interface 405 are also electronic circuits that execute data communication processing. The image processing device interface 404 and the servo driver interface 405 are also each, for example, a communication chip or a NIC.

[0084] The storage device 403 also stores an OS. At least a portion of the OS is executed by the processor 401. While executing at least a portion of the OS, the processor 401 executes programs that implement the functions of the movement control unit 410 and the position prediction unit 420. By executing the OS, the processor 401 performs task management, memory management, file management, communication control, and the like. At least one of information, data, signal values, and variable values ​​indicating the results of processing by the movement control unit 410 and the position prediction unit 420 is stored in the memory 402, the storage device 403, and / or a register and cache memory within the processor 401. The programs that implement the functions of the movement control unit 410 and the position prediction unit 420 may be stored on a portable recording medium such as a magnetic disk, a flexible disk, an optical disk, a compact disk, a Blu-ray (registered trademark) disk, or a DVD. Portable recording media storing the programs that implement the functions of the movement control unit 410 and the position prediction unit 420 may be distributed.

[0085] Furthermore, at least one "unit" in the Ethernet processing unit 310, UDP / IP processing unit 320, etc. may be read as a "circuit," "step," "procedure," "process," or "circuitry." At least one "unit" in the movement control unit 410 and the position prediction unit 420 may also be read as a "circuit," "step," "procedure," "process," or "circuitry." Furthermore, the image processing device 300 and the motion controller 400 may be realized by a processing circuit. The processing circuit is, for example, a logic IC (Integrated Circuit), a GA (Gate Array), an ASIC (Application Specific Integrated Circuit), or an FPGA (Field-Programmable Gate Array). In this case, the Ethernet processing unit 310, UDP / IP processing unit 320, packet discarding unit 311, etc. are each realized as part of a processing circuit. The movement control unit 410 and position prediction unit 420 are also each realized as part of a processing circuit. In this specification, the higher-level concept of a processor and a processing circuit is called "processing circuitry." In other words, the processor and the processing circuit are each specific examples of "processing circuitry."

[0086] 1 Positioning system, 2 Workpiece, 3 Characteristic part, 4 Captured image, 5 Positioning utilization area, 100 Moving mechanism, 110 XY stage, 120a Servo motor, 120b Servo motor, 200 Camera, 300 Image processing device, 301 Processor, 302 Memory, 303 Storage device, 304 Network interface, 305 Motion controller interface, 310 Ethernet processing unit, 311 Packet discarding unit, 312 Filter table, 320 UDP / IP processing unit, 330 GigE Vision processing unit, 331 Discard packet determination unit, 340 Pattern detection unit, 341 Pixel range determination unit, 400 Motion controller, 401 Processor, 402 Memory, 403 Storage device, 404 Image processing device interface, 405 Servo driver interface, 410 Movement control unit, 420 Position prediction unit, 500 Servo driver.

Claims

1. An image processing device having a packet receiving unit that receives a plurality of payload packets storing a plurality of divided images obtained by dividing a captured image, and a packet selecting unit that selects, from the plurality of payload packets, a payload packet storing a divided image to be subjected to image processing.

2. The image processing device according to claim 1, wherein the packet selection unit discards payload packets other than the selected payload packet from among the plurality of payload packets.

3. The image processing device according to claim 1, wherein the packet receiving unit receives a plurality of payload packets each storing a plurality of divided images obtained by dividing an image of a positioning object that is the subject of positioning, and the packet selecting unit selects a payload packet each storing a positioning divided image, which is a divided image that is the subject of image processing for positioning the positioning object, as the payload packet each storing the divided image that is the subject of the image processing.

4. The image processing device according to claim 3, wherein the object to be positioned has a characteristic portion, the plurality of payload packets include payload packets each storing a characteristic split image which is a split image in which the characteristic portion is captured, and the packet selection unit selects the payload packet in which the feature split image is stored as the payload packet in which the positioning split image is stored.

5. The image processing device according to claim 4, wherein the plurality of payload packets include a payload packet storing a surrounding divided image, which is a divided image showing the area surrounding the characteristic portion, and the packet selection unit selects the payload packet storing the surrounding divided image as the payload packet storing the positioning divided image.

6. The image processing device according to claim 3, further comprising a packet designation unit that designates a payload packet in which the positioning divided image is stored prior to the selection of a payload packet by the packet selection unit, and the packet selection unit selects the payload packet designated by the packet designation unit.

7. An image processing device as described in claim 6, wherein the object to be positioned has a characteristic portion, the plurality of payload packets include a payload packet storing a feature split image which is a split image depicting the characteristic portion, and a payload packet storing a surrounding split image which is a split image depicting the area surrounding the characteristic portion, and the packet designation unit designates the payload packet storing the feature split image and the payload packet storing the surrounding split image as the payload packets storing the positioning split images.

8. The packet designation unit determines the time t 0 and the time t 0 From the time t 0 Time t after 1 The time t of the characteristic portion predicted based on the amount of movement of the object to be positioned between 1 and obtaining a predicted position of the obtained feature portion at time t 1 Using the predicted position at time t 1 The image captured at time t 1 The plurality of divided images at the time t 1 Among the multiple payload packets at time t 1 8. The image processing device according to claim 7, wherein the image processing device specifies a payload packet in which a divided image for positioning is stored.

9. The image processing device according to claim 6, wherein the packet designation unit uses a fixed-size positioning division image.

10. The image processing device according to claim 1, wherein the packet receiving unit receives a plurality of payload packets each containing a plurality of divided images obtained by dividing the captured image in a raster scan format.

11. The image processing device according to claim 1, wherein the packet receiving unit receives a plurality of payload packets each containing a plurality of divided images obtained by dividing an image of an object having a characteristic portion, and the packet selecting unit selects a payload packet containing a divided image depicting the characteristic portion as a payload packet containing a divided image to be subjected to the image processing.

12. An image processing method in which a computer receives multiple payload packets each storing a multiple divided image obtained by dividing a captured image, and the computer selects from the multiple payload packets a payload packet storing a divided image to be subjected to image processing.

13. An image processing program that causes a computer to execute a packet reception process for receiving a plurality of payload packets each storing a plurality of divided images obtained by dividing a captured image, and a packet selection process for selecting, from the plurality of payload packets, a payload packet each storing a divided image to be subjected to image processing.

Citation Information

Patent Citations

  • Arbitrary viewpoint picture transmission method, apparatus for implementing the method, processing program therefor and recording medium

    JP2004193941A

  • Controller, display, control method therefor, augmented reality system, and computer program

    JP2009156992A

  • Pattern position detection method

    JP2013003821A

  • Information processing apparatus and display method

    JP2019004388A