Image processing method and image processing apparatus

The image processing method and apparatus address the limitations of existing camera shake correction by integrating high-speed and low-speed vision processing to enable real-time correction of work positions, enhancing imaging speed and accuracy.

JP2024145965APending Publication Date: 2024-10-15PANASONIC INTELLECTUAL PROPERTY MANAGEMENT CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
JP2023058600
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-31
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

Existing camera shake correction methods only correct image shifts and do not facilitate real-time image recognition or feedback, limiting high-speed imaging and real-time work position correction of target objects.

Method used

An image processing method and apparatus that utilizes high-speed vision processing to measure the movement of a subject and calculate correction amounts for a driving device, combined with low-speed vision processing to refine position recognition, generating control commands for real-time correction of the work position.

Benefits of technology

Enables high-speed imaging and real-time correction of the work position of target objects, allowing continuous operation without speed reduction, and improves positional accuracy through combined high-speed and low-speed processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024145965000001_ABST
    Figure 2024145965000001_ABST
Patent Text Reader

Abstract

To realize high-speed imaging of an object using a high-speed camera and real time correction of a work position for the object.SOLUTION: An image processing method comprises: acquiring a plurality of frames imaged by a camera; measuring a first motion amount of a subject among the plurality of frames; executing high-speed vision processing that calculates a first correction amount correcting a position of a driving device on the basis of the first motion amount of the subject, and low-speed vision processing that has a longer processing period than a processing period of the high-speed vision processing and calculates a second correction amount correcting the position of the driving device on the basis of a recognition position of the subject reflected on the at least one frame; and generating a control command based on at least one of the first correction amount and the second correction amount to output to the driving device.SELECTED DRAWING: Figure 3
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to an image processing method and an image processing device. [Background technology]

[0002] Patent Document 1 discloses a camera shake correction method for correcting camera shake in images of a target area captured at predetermined intervals by a surveillance camera. In this camera shake correction method, one of two frames of an image is used as a reference image and the other as a processed image, a template pattern created from the reference image is used to perform pattern matching of the processed image, a specific matching area is selected by utilizing the regularity of image shift caused by camera shake, and the amount of camera shake is calculated from the movement vector (i.e., optical flow) to correct the image shift. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] JP 2006-094560 A Summary of the Invention [Problem to be solved by the invention]

[0004] However, the configuration of Patent Document 1 only corrects image shifts, and does not assume that the corrected image will be used for image recognition or for feedback based on the amount of camera shake. Also, the camera shake correction method performs image shifting for shake correction only once in order to process image shifts online in real time. In other words, it has been difficult for the camera shake correction method to achieve low latency including image processing, feedback, etc. using the corrected image.

[0005] The present disclosure has been devised in consideration of the above-mentioned conventional circumstances, and aims to provide an image processing method and image processing device capable of realizing high-speed imaging of an object using a high-speed camera and real-time correction of the working position of the object. [Means for solving the problem]

[0006] The present disclosure provides an image processing method performed by a computing device capable of communicating between a driving device and a camera that images a subject, which executes high-speed vision processing to acquire multiple frames imaged by the camera, measure a first amount of movement of the subject between the multiple frames, and calculate a first correction amount to correct a position of the driving device based on the measured first amount of movement of the subject, and low-speed vision processing having a processing cycle longer than the processing cycle of the high-speed vision processing and calculating a second correction amount to correct the position of the driving device based on a recognized position of the subject captured in at least one of the frames, and generates a control command based on at least one of the first correction amount and the second correction amount and outputs it to the driving device.

[0007] The present disclosure also provides an image processing device, which is a computing device capable of communicating between a driving device and a camera that images a subject, comprising: an acquisition unit that acquires multiple frames captured by the camera; a high-speed processing unit that performs high-speed vision processing that calculates a first correction amount to correct the position of the driving device based on an amount of movement of the subject between the multiple frames; a low-speed processing unit that performs low-speed vision processing at a processing cycle longer than the processing cycle of the high-speed vision processing that calculates a second correction amount to correct the position of the driving device based on the recognized position of the subject; and a control unit that generates a control command based on at least one of the first correction amount and the second correction amount and outputs it to the driving device. Effect of the Invention

[0008] According to the present disclosure, it is possible to realize high-speed imaging of an object using a high-speed camera and real-time correction of the working position of the object. [Brief description of the drawings]

[0009] [Figure 1]FIG. 1 is a block diagram showing an example of the internal configuration of a high-speed image processing system according to a first embodiment; [Diagram 2] Functional block diagram of a high-speed vision processing unit in the first embodiment. [Diagram 3] FIG. 1 is a sequence diagram showing an example of an overall operation procedure of a high-speed image processing system according to a first embodiment; [Figure 4] A time chart showing the processing timing of the high-speed vision processing unit and the low-speed vision processing unit. [Diagram 5] A sequence diagram showing an example of a procedure of a first tracking image generation process and a correction amount calculation process of the high-speed vision processing unit in the first embodiment. [Figure 6] A sequence diagram showing an example of a synthesis image generation processing procedure of the high-speed vision processing unit in the first embodiment. [Figure 7] A sequence diagram showing an example of a procedure of a second tracking image generation process and a correction amount calculation process of the high-speed vision processing unit in the first embodiment. [Figure 8] Functional block diagram of a high-speed vision processing unit in a first modification of the first embodiment. [Figure 9] A sequence diagram showing an example of a procedure of a third tracking image generation process and a correction amount calculation process of the high-speed vision processing unit in the first modification of the first embodiment. [Figure 10] FIG. 1 is a diagram illustrating a smoothing process. [Figure 11] Functional block diagram of a high-speed vision processing unit in a second modification of the first embodiment. [Figure 12] A sequence diagram showing an example of a procedure of a fourth tracking image generation process and a correction amount calculation process of the high-speed vision processing unit in the second modification of the first embodiment. [Figure 13] Diagram explaining prediction process [Figure 14] Diagram explaining prediction process [Figure 15] Functional block diagram of a high-speed vision processing unit in a third modification of the first embodiment. [Figure 16] A sequence diagram showing an example of a procedure of a fifth tracking image generation process and a correction amount calculation process of the high-speed vision processing unit in the third modification of the first embodiment. [Figure 17]Diagram explaining smoothing and prediction processing [Figure 18] Diagram explaining smoothing and prediction processing [Figure 19] Functional block diagram of a high-speed vision processing unit in the second embodiment. [Figure 20] FIG. 11 is a sequence diagram showing an example of an overall operation procedure of a high-speed image processing system according to a second embodiment. [Figure 21] A sequence diagram showing an example of a foreground tracking image generation process and a correction amount calculation process procedure of the high-speed vision processing unit in the second embodiment. [Figure 22] A sequence diagram showing an example of a procedure for background tracking image generation processing and correction amount calculation processing of the high-speed vision processing unit in the second embodiment. [Figure 23] A sequence diagram showing an example of a foreground synthesis image generation processing procedure of the high-speed vision processing unit in the second embodiment. [Figure 24] A sequence diagram showing an example of a background synthesis image generation processing procedure of the high-speed vision processing unit in the second embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0010] (Background to this disclosure) In recent years, there has been a demand for an image processing system that processes frames (captured images) captured by a camera capable of capturing images of an object such as a workpiece at high speed, corrects (removes) camera shake caused by disturbances (e.g., vibration, wind, etc.) in real time, and tracks the position of the object in real time, thereby enabling the execution of a specified task on the object. However, such an image processing system requires that the operating speed of various production equipment such as robots and workpiece conveying devices be limited or temporarily stopped, because the relative positions of the workpiece and the production equipment that performs the specified task on the workpiece change during image processing.

[0011] Conventionally, there is a camera shake compensation method that can quickly compensate for frame positional deviation caused by camera shake by performing image shift for shake compensation only once in order to process image deviation online in real time. However, this camera shake compensation method only compensates for frame positional deviation, and does not assume that the positional deviation-compensated frame is used to feed back the work position where a specific task is performed in real time to compensate the work position.

[0012] Therefore, in each of the embodiments described below, examples of an image processing method and an image processing device that can realize high-speed imaging of an object using a high-speed camera and real-time correction of the working position of the object will be described.

[0013] Hereinafter, with reference to the drawings as appropriate, each embodiment that specifically discloses the configuration and operation of the image processing method and image processing device according to the present disclosure will be described in detail. However, more detailed explanation than necessary may be omitted. For example, detailed explanation of already well-known matters and duplicate explanation of substantially the same configuration may be omitted. This is to avoid the following explanation becoming unnecessarily redundant and to facilitate understanding by those skilled in the art. Note that the attached drawings and the following explanation are provided to enable those skilled in the art to fully understand the present disclosure, and are not intended to limit the subject matter described in the claims.

[0014] (Embodiment 1) An example of the internal configuration of a high-speed image processing system 100 according to the first embodiment will be described with reference to Fig. 1 and Fig. 2. Fig. 1 is a block diagram showing an example of the internal configuration of a high-speed image processing system 100 according to the first embodiment. Fig. 2 is a functional block diagram of a high-speed vision processing unit 11 in the first embodiment.

[0015] 2, a solid line indicates a section where each captured image captured at the frame rate of the high-speed camera 14 (e.g., 1000 frames per second (hereinafter, referred to as "fps")) is processed at a processing speed corresponding to the frame rate of the high-speed camera 14 and input / output. In the block diagram shown in FIG. 2, a dashed line indicates a section where each captured image is processed at a processing speed (e.g., 60 fps) corresponding to the image recognition processing speed of the low-speed vision processing device P2 and input / output.

[0016] The high-speed image processing system 100 performs high-speed image processing on frames (captured images) captured by a high-speed camera 14 that captures images of an object Tg at a high speed, for example, 1000 fps, to correct the drive amount of a servo motor 15A, and performs low-speed image processing on a composite image obtained by combining frames captured at high speed to correct the position of the object Tg (hereinafter, referred to as the "target position"). The high-speed image processing system 100 includes an object Tg, a working device P1, and a low-speed vision processing device P2.

[0017] 1 is an example and is not limited thereto. For example, in the high-speed image processing system 100, the high-speed camera 14, the actuator 15, and the low-speed vision processing device P2 may be integrally configured, or the arithmetic device P11 as an example of an image processing device may be configured separately from the high-speed camera 14 and the actuator 15.

[0018] The working device P1 captures images of an object at high speed using a high-speed camera 14, processes each of the frames captured at high speed, and drives a servo motor 15A to a target position in order to correct the position of the high-speed camera 14 relative to the object Tg.

[0019] The working device P1 includes a communication unit 10, high speed vision processing units 11, 11B, 11C, 11D, and 11E (examples of a high speed processing unit, a low speed processing unit, and a control unit), a memory 12, a servo control unit 13, a high speed camera 14, and an actuator 15. Each of the communication unit 10, the high speed vision processing units 11, 11B to 11E, the memory 12, and the servo control unit 13 may be realized by one arithmetic device P11. In the following description of each of the high speed vision processing units 11, 11B to 11E, the high speed vision processing unit 11B will be described as Modification 1 of the embodiment 1, the high speed vision processing unit 11C as Modification 2 of the embodiment 1, the high speed vision processing unit 11D as Modification 3 of the embodiment 1, and the high speed vision processing unit 11E as the embodiment 2.

[0020] The communication unit 10, which is an example of an acquisition unit, is configured using a communication interface circuit for transmitting and receiving data. The communication unit 10 connects the working device P1 and the low-speed vision processing device P2 so that wired or wireless communication is possible, and realizes data transmission and reception. Note that the wireless communication here refers to communication via a wireless Local Area Network (LAN) such as Wi-Fi (registered trademark).

[0021] The high-speed vision processing unit 11 is configured using, for example, a microcomputer equipped with a Field Programmable Gate Array (hereinafter, referred to as "FPGA"), a real-time Operating System (OS), etc., and performs various processes and controls in cooperation with the memory 12. Specifically, the high-speed vision processing unit 11 refers to the programs and data stored in the memory 12 and executes the programs to realize functions of a motion measurement unit 111, a tracking image generation unit 112, an image for synthesis generation unit 113, a frame synthesis unit 114, a target position correction unit 115, etc.

[0022] <Tracking image generation process> The high-speed vision processing unit 11 generates a tracking image for tracking an object Tg between two consecutively captured frames at a processing speed corresponding to the frame rate (e.g., 1000 fps) of the high-speed camera 14 using the tracking image generation units 112, 112A.

[0023] The high-speed vision processing unit 11 estimates the position of an object Tg captured in frame n+1, which is captured next to frame n (n: an integer equal to or greater than 1), using the motion measurement unit 111, and measures the amount of motion of the object Tg between the position of the object Tg captured in frame n and the position of the object Tg captured in frame n+1 (hereinafter referred to as the "estimated position").

[0024] The high-speed vision processing unit 11 calculates a first transformation matrix that moves the position of the object Tg captured in frame n to the position of the object Tg captured in frame n+1 based on the measurement result of the motion measurement unit 111. The high-speed vision processing unit 11 performs affine transformation on frame n using the calculated first transformation matrix, and generates a tracking image that tracks the position of the object Tg moving between two frames (i.e., frame n, frame n+1).

[0025] The high-speed vision processing unit 11 may further calculate the first transformation matrix by using the position information of the servo motor 15A (for example, information on the position of the servo motor 15A, gyro information indicating the position of the servo motor 15A, etc.) output from the servo control unit 13. In such a case, the high-speed vision processing unit 11 calculates the first transformation matrix used for generating a tracking image by the motion measurement unit 111 based on the position information of the servo motor 15A and the estimated position of the target object Tg that appears in the next frame to be captured (i.e., the next frame n+1).

[0026] <Image generation process for synthesis> The high-speed vision processing unit 11 generates frames (hereinafter referred to as "images for synthesis") to be used for generating a composite image at a processing speed corresponding to the frame rate of the high-speed camera 14 (e.g., 1000 fps) by the image for synthesis generation unit 113.

[0027] The high-speed vision processing unit 11 measures and stores the position of the object Tg captured in frame 0, which is the synthesis reference for each synthesis image, in the synthesis process of the synthesis images for generating a synthetic image described later, by the motion measurement unit 111. The high-speed vision processing unit 11 measures the amount of movement of the object Tg between the position of the object Tg captured in frame n output from the high-speed camera 14 and the position of the object Tg captured in frame 0.

[0028] The high-speed vision processing unit 11 calculates a second transformation matrix for transforming frame n into an image for synthesis used to generate a composite image, based on the measured amount of movement of the object Tg between frame n and frame 0. The high-speed vision processing unit 11 transforms frame n into an image for synthesis, using the second transformation matrix calculated by the image for synthesis generating unit 113. This allows the high-speed vision processing unit 11 to generate an image for synthesis in which the position of the object Tg captured in frame n is aligned with the position of the object Tg captured in frame 0.

[0029] Specifically, when a composite image is generated by combining 16 composite images, frame 0 indicates the first composite image. When the generation of the composite image by the frame composition unit 114 is completed, the high-speed vision processing unit 11 sets the 17th frame output from the high-speed camera 14 after the generation of the composite image is completed as frame 0 (i.e., the first composite image), and starts the generation process of the next composite image.

[0030] The high-speed vision processing unit 11 executes synthesis of an image for synthesis by the frame synthesis unit 114. The high-speed vision processing unit 11 repeatedly executes a generation process of an image for synthesis based on frame n by the image for synthesis generation unit 113 and a synthesis process of a synthetic image in which each of the images for synthesis of frames 0 to frame n-1 is synthesized by the frame synthesis unit 114 and an image for synthesis based on frame n a predetermined number of times to generate a synthetic image in which a predetermined number of images for synthesis (i.e., frames) are synthesized. The high-speed vision processing unit 11 outputs the generated synthetic image to the communication unit 10 and causes it to be transmitted to the low-speed vision processing device P2.

[0031] In addition, the generation of a composite image is not essential and may be omitted. In such a case, the high-speed vision processing unit 11 outputs any one of the frames to the communication unit 10, and transmits it to the low-speed vision processing device P2.

[0032] The memory 12 has, for example, a Random Access Memory (hereinafter, referred to as "RAM") as a work memory used when executing each process of the high speed vision processing unit 11, and a Read Only Memory (hereinafter, referred to as "ROM") that stores programs and data that define the operation of the high speed vision processing unit 11. The RAM temporarily stores data or information generated or acquired by the high speed vision processing unit 11. The ROM has written therein a program that defines the operation of the high speed vision processing unit 11. The memory 12 includes a tracking frame buffer 12A and a synthesis frame buffer 12B.

[0033] The tracking frame buffer 12A stores frames that are output from the high-speed camera 14 and are used for generating a tracking image by the tracking image generating unit 112 and for generating a synthesis image by the synthesis image generating unit 113. The tracking frame buffer 12A stores frames in association with addresses indicating the time series in which the frames were captured.

[0034] The synthesis frame buffer 12B stores a synthetic image synthesized by the frame synthesis unit 114. Based on a control command output from the frame synthesis unit 114, the synthesis frame buffer 12B outputs the stored synthetic image to the communication unit 10, and transmits the synthetic image to the low-speed vision processing device P2.

[0035] The servo control unit 13 is configured using, for example, a microcomputer equipped with an FPGA, a real-time OS, etc., and performs various processes and controls in cooperation with the memory 12. Specifically, the servo control unit 13 refers to the programs and data stored in the memory 12 and executes the programs to control the actuator 15. The servo control unit 13 determines the correction amount for the servo motor 15A based on the correction value of the target position output from the target position correction unit 115, and generates a control command for the servo motor 15A.

[0036] The high-speed camera 14 is configured to have at least a lens (not shown) and an image sensor (not shown). The image sensor is, for example, a solid-state imaging element such as a Charged-Coupled Device (CCD) or a Complementary Metal Oxide Semiconductor (CMOS), and converts an optical image formed on an imaging surface into an electrical signal. The high-speed camera 14 captures an image of the object Tg at a high frame rate (for example, 1000 fps). The high-speed camera 14 may be, for example, a camera capable of capturing visible light or non-visible light, or may be, for example, an electric field camera capable of capturing electromagnetic waves.

[0037] The actuator 15 includes a servo motor 15A (an example of a driving device). The actuator 15 drives the servo motor 15A based on the control of the servo control unit 13 to perform a predetermined task on the target object Tg. The actuator 15 may include another motor instead of the servo motor 15A. For example, the actuator 15 may include a driving device such as a piezoelectric element, a driving device driven by the expansion of a liquid due to heat, or the like, instead of the servo motor 15A.

[0038] The low-speed vision processing device P2, which is an example of an external device, is connected to the communication unit 10 of the working device P1 so as to be capable of wired or wireless communication, and transmits and receives data. The low-speed vision processing device P2 is capable of performing image recognition processing using artificial intelligence (AI), machine learning, or the like.

[0039] The low-speed vision processing device P2 performs image recognition processing on the composite image transmitted from the working device P1, and detects (recognizes) the position of the object Tg appearing in the composite image. The low-speed vision processing device P2 transmits position information of the detected object Tg to the communication unit 10 of the working device P1. When generation of a composite image is omitted, the low-speed vision processing device P2 performs image recognition processing on any one of the frames transmitted from the working device P1, and detects (recognizes) the position of the object Tg appearing in this frame.

[0040] Next, the operation procedure of the high-speed image processing system 100 according to the embodiment 1 will be described with reference to Fig. 3 and Fig. 4. Fig. 3 is a sequence diagram showing an example of the overall operation procedure of the high-speed image processing system 100 according to the embodiment 1. Fig. 4 is a time chart showing the processing timing of the high-speed vision processing unit 11 and the low-speed vision processing device P2.

[0041] The high-speed vision processing unit 11 sets the position of the object Tg captured in a frame captured by the high-speed camera 14 as an initial position (St11).

[0042] After the process of step St11, the high-speed image processing system 100 repeatedly executes a loop process LP in which a first loop process LP1 and a second loop process LP2 are executed in parallel.

[0043] First, the first loop process LP1 will be described. The first loop process LP1 is a process that is repeatedly executed a number of times that is a multiple of the frame rate of the high-speed camera 14. After executing each process of steps St12 to St13, the first loop process LP1 executes in parallel the tracking image generation process of step St100, the correction amount calculation process, and each process of steps St14 to St16 (parallel process PAR1), and the synthesis image generation process of step St200 (parallel process PAR2) at a speed corresponding to the frame rate of the high-speed camera 14 (for example, 1000 fps).

[0044] In the first loop process LP1, the high-speed camera 14 captures an image of the object Tg at high speed (for example, 1000 fps) (St12), and outputs the captured frames to the high-speed vision processing unit 11 (St13).

[0045] The high-speed vision processing unit 11 executes a tracking image generation process and a correction amount calculation process (St100, St100A) using the frames output from the high-speed camera 14. The tracking image generation process and the correction amount calculation process in step St100 will be described later in FIG. 5. The tracking image generation process and the correction amount calculation process in step St100A will be described later in FIG. 7.

[0046] The high-speed vision processing unit 11 outputs the correction amount of the target position calculated by the correction amount calculation process in steps St100 and St100A to the servo control unit 13 (St14).

[0047] The servo control unit 13 generates a control command for correcting the position of the servo motor 15A of the actuator 15 based on the correction amount of the target position output from the high-speed vision processing unit 11 (St15). The servo control unit 13 outputs the generated control command (an example of a second control command) to the actuator 15, causing the position correction of the servo motor 15A to be performed (St16).

[0048] The high-speed vision processing unit 11 executes a synthesis image generation process (St200) using the frames output from the high-speed camera 14. The synthesis image generation process in step St200 will be described later with reference to FIG.

[0049] Next, the second loop process LP2 will be described. In the second loop process LP2, each of steps St21 to St23 is executed at the image recognition processing speed of the low-speed vision processing device P2 (e.g., 60 fps), and each of steps St24 to St27 is executed at the processing speed of the high-speed vision processing unit 11, which is a speed corresponding to the frame rate of the high-speed camera 14 (e.g., 1000 fps).

[0050] In the second loop process LP2, the high-speed vision processing unit 11 transmits the composite image generated in the composite image generation process of step St200 to the low-speed vision processing device P2 (St21). Note that, in the process of step St21, if the composite image generation process of step St200 is omitted, the high-speed vision processing unit 11 transmits any one of the frames output from the high-speed camera 14 to the low-speed vision processing device P2 instead of the composite image.

[0051] In this disclosure, the high-speed vision processing unit 11 generates a composite image equivalent to a frame captured at 60 fps by synthesizing 16 images for synthesis captured at 1000 fps and generated by the image for synthesis generation process, but is not limited to this example. The composite image may be generated by synthesizing two or more arbitrary images for synthesis based on the time required for the image recognition process of the low-speed vision processing device P2, the image recognition accuracy required depending on the application, etc.

[0052] The low-speed vision processing device P2 performs image recognition processing on the composite image transmitted from the high-speed vision processing device 11, and detects the position of the object Tg (St22). The low-speed vision processing device P2 transmits position information of the detected object Tg to the high-speed vision processing device 11 (St23). Each of the processes in steps St22 to St23 corresponding to the image recognition processing in FIG. 4 is executed at 60 fps (low-speed processing) corresponding to the image recognition processing of the low-speed vision processing device P2.

[0053] The high-speed vision processing unit 11 corrects the position of the object Tg detected by the motion measurement unit 111 to the target position (St24). The high-speed vision processing unit 11 also calculates a correction amount for correcting the currently set position of the object Tg to the position (target position) of the object Tg recognized by the low-speed vision processing device P2, and outputs the calculated correction amount of the target position to the servo control unit 13 (St25). Note that the processing after step St24 is executed at a speed corresponding to the frame rate (1000 fps) of the high-speed camera 14.

[0054] The servo control unit 13 generates a control command for correcting the position of the servo motor 15A included in the actuator 15 based on the correction amount output from the high-speed vision processing unit 11 (St26). The servo control unit 13 outputs the generated control command (an example of a first control command) to the actuator 15, causing the actuator 15 to execute position correction of the servo motor 15A (St27).

[0055] As described above, the high-speed image processing system 100 according to the first embodiment can correct the positional deviation of the high-speed camera 14 caused by disturbances by performing high-speed image processing on frames captured by the high-speed camera 14. Furthermore, the high-speed image processing system 100 can highly accurately correct the positional deviation of the object Tg by performing low-speed image processing on a composite image obtained by combining frames captured by the high-speed camera 14. Therefore, the high-speed image processing system 100 can realize calculation and correction of the amount of positional deviation of the high-speed camera 14 in real time.

[0056] This allows the actuator 15 to perform a specified task on the object Tg without temporarily stopping or slowing down the task speed until the object Tg is recognized by image recognition processing, thereby improving work efficiency.

[0057] Furthermore, when the high-speed image processing system 100 of embodiment 1 corrects the positional deviation of the high-speed camera 14 using position information (e.g., speed information, acceleration information, etc.) of the servo motor 15A of the actuator 15, it can calculate and correct the amount of positional deviation of the high-speed camera 14 with higher accuracy based on the amount of positional deviation caused by the servo motor 15A while two consecutive frames are captured and the difference between the two consecutive frames.

[0058] Next, a procedure example of the first tracking image generation process and correction amount calculation process (step St100) of the high-speed vision processing unit 11 will be described with reference to Fig. 5. Fig. 5 is a sequence diagram showing a procedure example of the first tracking image generation process and correction amount calculation process of the high-speed vision processing unit 11 in the first embodiment. Note that the first tracking image generation process and correction amount calculation process referred to here are tracking image generation procedures executed when position information of the servo motor 15A is not acquired from the servo control unit 13.

[0059] The motion measurement unit 111 estimates the position of the object Tg captured in frame n+1 (i.e., the (n+1)th frame) captured next to frame n (i.e., the nth frame), and measures the amount of movement of the object Tg between frames n and n+1 based on the estimated position of the object Tg. The motion measurement unit 111 calculates and sets a first transformation matrix for transforming the position of the object Tg captured in frame n to the position of the object Tg captured in frame n+1 captured next to frame n (St101). The motion measurement unit 111 outputs the set first transformation matrix to the tracking image generation unit 112 (St102).

[0060] Here, the motion measurement unit 111 may estimate the estimated position of the object Tg by assuming that the object Tg or the working device P1 (high-speed camera 14) is moving linearly at a constant speed. In this case, the motion measurement unit 111 can obtain the amount of change in the position of the high-speed camera 14 between frame n and frame n+1 and information on the acceleration of the high-speed camera 14, since the frames are captured at a high speed (for example, 1000 fps).

[0061] The tracking image generating unit 112 acquires the first transformation matrix output from the motion measuring unit 111. The tracking projective transformation address generating unit 1121 in the tracking image generating unit 112 transforms the entire area of ​​frame n based on the acquired first transformation matrix, and generates an address for tracking the target Tg appearing in frame n. The tracking image generating unit 112 generates a control command requesting the reading of frame n based on the address, and transmits it to the tracking frame buffer 12A (St103).

[0062] The tracking frame buffer 12A reads out frame n corresponding to the address from among the stored frames based on a control command output from the tracking image generating unit 112 (St104). The tracking frame buffer 12A outputs the read frame n to the tracking image generating unit 112 (St105).

[0063] The tracking image generating unit 112 acquires frame n output from the tracking frame buffer 12A. The image conversion unit 1122 in the tracking image generating unit 112 converts frame n using a first conversion matrix (St106). The tracking image generating unit 112 outputs the converted frame n to the motion measuring unit 111 (St107). Note that the frame output to the motion measuring unit 111 in the process of step St107 may be pixel data obtained by cutting out an area (pixels) including at least a part of the target Tg.

[0064] The high-speed camera 14 captures an image of the object Tg (St108). The high-speed camera 14 transmits frame n+1 to the motion measurement unit 111 (St109) and also transmits frame n+1 to the tracking frame buffer 12A (St110).

[0065] The tracking frame buffer 12A writes and stores frame n+1 transmitted from the high-speed camera 14 (St111).

[0066] The motion measurement unit 111 compares frame n+1 with the transformed frame n, and measures the amount of motion of the object Tg between frames n and n+1 (i.e., the position difference of the object Tg) based on the difference in the position of the object Tg appearing in each frame (St112). Note that here, the motion measurement unit 111 may extract pixel data of an area including at least a pixel corresponding to the estimated position from each of frame n+1 and transformed frame n, based on the estimated position of the object Tg estimated using frame n, and measure the amount of motion of the position of the object Tg from the extracted pixel data.

[0067] The motion measurement unit 111 calculates the corrected position of the servo motor 15A (hereinafter, referred to as the "first target position") based on the measured amount of motion of the target object Tg (St113). The motion measurement unit 111 generates first target position information including the calculated first target position, and outputs it to the target position correction unit 115 (St114).

[0068] The target position correction unit 115 calculates a correction amount for correcting the position of the servo motor 15A based on the first target position information output from the movement measurement unit 111 (St115).

[0069] As described above, the high-speed vision processing unit 11 in the first embodiment converts frame n based on the estimated position of the object Tg captured in the next frame n+1, thereby speeding up the measurement process of the movement amount of the object Tg captured between two frames. As a result, the high-speed vision processing unit 11 can perform high-speed image processing of the frames captured by the high-speed camera 14, and can perform position correction of the servo motor 15A in real time to track the object Tg (target position) by removing the shaking of the high-speed camera 14 due to disturbance.

[0070] The servo control unit 13 drives the servo motor 15A of the actuator 15, which can be driven at a frequency on the order of kHz higher than the frame rate of the high-speed camera 14, thereby performing position correction of the servo motor 15A in real time based on the correction amount of the target position calculated by the high-speed vision processing unit 11.

[0071] Next, a procedure example of the synthesis image generation processing (step St200) of the high-speed vision processing unit 11 will be described with reference to Fig. 6. Fig. 6 is a sequence diagram showing a procedure example of the synthesis image generation processing of the high-speed vision processing unit 11 in the first embodiment.

[0072] The motion measurement unit 111 calculates a second transformation matrix for moving the position of the object Tg in frame n to the position of the object Tg in frame 0 based on the position of the object Tg in frame n, and calculates and sets a second transformation matrix for transforming the position of the object Tg in frame n and the position of the object Tg in frame 0 (St201). The motion measurement unit 111 outputs the set second transformation matrix to the composite image generation unit 113 (St202). Note that frame 0 here is the first frame used to generate a composite image, and is the frame set as the reference position of the object Tg to be composited by the composite process.

[0073] The synthesis image generating unit 113 acquires the second transformation matrix output from the motion measuring unit 111. The synthesis image generating unit 113's projective transformation address generating unit 1131 transforms the entire area of ​​frame n based on the acquired second transformation matrix, and generates an address for tracking the object Tg appearing in frame n. The synthesis image generating unit 113 generates a control command requesting the reading of frame n based on the address, and transmits the control command to the tracking frame buffer 12A (St203).

[0074] The tracking frame buffer 12A reads out frame n corresponding to the address from among the stored frames based on the control command output from the composite image generating unit 113 (St204). The tracking frame buffer 12A outputs the read frame n to the composite image generating unit 113 (St205).

[0075] The image recognition projective transformation address generation unit 1131 in the composite image generation unit 113 uses the acquired second transformation matrix to deform the entire frame n so as to align the position of the object Tg appearing in frame n with the position of the object Tg appearing in frame 0 (St206).

[0076] The image-for-combining generation unit 113 outputs the image-for-combining corresponding to the frame n to the frame combining unit 114 (St207). Note that the image-for-combining output to the frame combining unit 114 in the process of step St207 may be pixel data obtained by cutting out a region (pixels) including at least a part of the object Tg.

[0077] The frame synthesis unit 114 generates a control command requesting the reading of a synthesis image synthesized with the synthesis image corresponding to frame n and the synthesis images corresponding to frames 0 to n-1, and outputs the control command to the synthesis frame buffer 12B (St208).

[0078] In addition, when the composite image output from the composite image generation unit 113 is a composite of the composite image corresponding to frame 0, the frame synthesis unit 114 generates a control command requesting writing of the composite image corresponding to frame 0 and outputs the control command to the composite frame buffer 12B.

[0079] The compositing frame buffer 12B reads out an image to be combined (St209) based on the control command output from the frame combining unit 114. The compositing frame buffer 12B outputs the read out image to be combined to the frame combining unit 114 (St210).

[0080] The frame composition unit 114 composes the composition image output from the composition frame buffer 12B with the composition image corresponding to frame n (St211), generates a control command requesting writing of the composition image after composition, and outputs the control command to the composition frame buffer 12B in association with the composition image (St212). The composition frame buffer 12B executes writing of the composition image output from the frame composition unit 114 (St213).

[0081] The frame synthesis unit 114 determines whether or not a predetermined number of synthesis images (for example, 16 images) have been synthesized (St214).

[0082] If the frame synthesis unit 114 determines in the processing of step St214 that a predetermined number of images for synthesis have been synthesized (St214, YES), it generates a control command to transmit a synthetic image formed by synthesizing the predetermined number of images for synthesis to the low-speed vision processing device P2, and outputs the control command to the synthesis frame buffer 12B (St215).

[0083] When the frame synthesis unit 114 determines in the process of step St214 that the predetermined number of images for synthesis has not been synthesized (St214, NO), it omits the generation of a control command to transmit a synthesized image in which the predetermined number of images for synthesis have been synthesized to the low-speed vision processing device P2. The high-speed vision processing unit 11 returns to the process of step St201.

[0084] As described above, the high-speed vision processing unit 11 in the first embodiment can generate a frame (synthetic image) with an exposure time corresponding to the number of composite images by converting and synthesizing the frames captured by the high-speed camera 14 using the second transformation matrix. In other words, the high-speed vision processing unit 11 can generate a composite image from which the disturbance of the frame or the shaking (blur) caused by the short exposure time is effectively removed. As a result, the high-speed vision processing unit 11 can generate a composite image suitable for the image recognition processing executed by the low-speed vision processing device P2.

[0085] Next, a procedure example of the second tracking image generation process and correction amount calculation process (step St100A) of the high-speed vision processing unit 11 will be described with reference to Fig. 7. Fig. 7 is a sequence diagram showing a procedure example of the second tracking image generation process and correction amount calculation process of the high-speed vision processing unit 11 in the first embodiment. Note that the second tracking image generation process and correction amount calculation process referred to here are tracking image generation procedures executed when calculating the correction amount of the servo motor 15A using the position information of the servo motor 15A acquired from the servo control unit 13.

[0086] In the second tracking image generating process and the correction amount calculating process shown in FIG. 7, the processes in steps St102 to St115 are similar to those in steps St102 to St115 described in FIG. 5, and therefore will not be described.

[0087] The motion measurement unit 111 calculates an estimated position of the object Tg in frame n+1 based on the position of the object Tg in frame n (St121).

[0088] The servo control unit 13 acquires position information (for example, speed information or acceleration information) of the servo motor 15A of the actuator 15 (St122). The servo control unit 13 outputs the acquired position information of the servo motor 15A to the tracking image generating unit 112A (St123).

[0089] Based on the calculated estimated position and the position information of the servo motor 15A output from the servo control unit 13, the tracking image generation unit 112A calculates and sets a first transformation matrix for converting the position of the object Tg appearing in frame n into an estimated position of the object Tg appearing in frame n+1, which is captured next to frame n (St101A).

[0090] As described above, the high-speed vision processing unit 11 in the first embodiment can estimate the position of the object Tg with high accuracy by using the position information of the servo motor 15A acquired from the servo control unit 13. Furthermore, by estimating the position of the object Tg with high accuracy, the high-speed vision processing unit 11 can reduce the number of pixels in each of the frames n and n+1 that are the subject of the motion amount measurement processing in the measurement processing of the motion amount of the object Tg based on the frame n transformed using the first transformation matrix and the frame n+1, thereby making it possible to further shorten the processing time required to measure the motion amount of the object Tg and to more accurately calculate the correction amount.

[0091] This enables the high-speed vision processing unit 11 to perform high-speed image processing of frames captured by the high-speed camera 14, remove shaking of the high-speed camera 14 caused by external disturbances, and perform position correction of the servo motor 15A in real time to track the target object Tg (target position).

[0092] As described above, the high-speed vision processing unit 11 in the first embodiment is capable of tracking the object Tg by correcting the servo motor 15A for the shaking (movement) of the high-speed camera 14 through high-speed image processing by the motion measurement unit 111. However, since the working device P1 recognizes the position of the object Tg through the low-speed vision processing device P2, there was a problem that when the object Tg itself moves, the amount of movement of the object Tg can only be tracked through low-speed processing.

[0093] When tracking a moving object Tg based on the position of the object Tg recognized by the low-speed vision processing device P2, the actuator 15 simultaneously corrects the target position obtained by high-speed processing and the target position obtained by low-speed processing, so the torque of the servo motor 15A changes suddenly, and the servo motor 15A may be subjected to a load that may cause a breakdown, or may not be able to drive smoothly due to the sudden change in the torque of the servo motor 15A. Specifically, the correction amount of the target position obtained by low-speed processing is a correction amount for correcting the position of the object Tg that has changed while the high-speed processing corrects the target position a predetermined number of times (for example, 16 times), and is therefore larger than the correction amount of the target position calculated by one high-speed processing.

[0094] Therefore, when the actuator 15 corrects the target position calculated by the high-speed processing and the low-speed processing, the torque of the servo motor 15A may fluctuate suddenly, which may result in a problem that the load on the servo motor 15A increases due to the sudden torque change or smooth movement control becomes difficult.

[0095] (First Modification of First Embodiment) The high-speed vision processing unit 11 in the first embodiment has shown an example in which the servo control unit 13 drives the servo motor 15A of the actuator 15 based on the correction amount calculated by the target position correction unit 115. An example will be described in which the high-speed vision processing unit 11B in the first embodiment divides the correction amount of the target position obtained by the low-speed processing of the low-speed vision processing device P2, and performs correction of the target position obtained by the high-speed processing and correction of the divided target position in each of the high-speed processing executed at multiple different timings by the target position correction unit 115B, thereby smoothing the correction amount of the servo motor 15A.

[0096] The high-speed vision processing unit 11B in the first modification of the first embodiment has a similar configuration to the high-speed vision processing unit 11 according to the first embodiment. Therefore, in the following description of the high-speed vision processing unit 11B in the first modification of the first embodiment, the same reference numerals are given to the same configuration as the high-speed vision processing unit 11, and the description thereof will be omitted.

[0097] The high-speed vision processing unit 11B in the first modification of the first embodiment will be described with reference to Fig. 8. Fig. 8 is a functional block diagram of the high-speed vision processing unit 11B in the first modification of the first embodiment.

[0098] 8, a solid line indicates a section where each captured image captured at the frame rate (e.g., 1000 fps) of the high-speed camera 14 is processed and input / output at a processing speed corresponding to the frame rate of the high-speed camera 14. In the block diagram shown in Fig. 8, a dashed line indicates a section where each captured image is processed and input / output at a processing speed (e.g., 60 fps) corresponding to the image recognition processing speed of the low-speed vision processing device P2.

[0099] The high-speed vision processing unit 11B includes a motion measurement unit 111, a tracking image generation unit 112, a synthesis image generation unit 113, a frame synthesis unit 114, a target position correction unit 115B, and a smoothing unit .

[0100] The smoothing unit 116 outputs information of a fixed ratio for determining the correction amount (smoothed correction amount) to be corrected in one correction process to the target position correction unit 115B in order to smoothly correct (reflect) the correction amount of the target position obtained by the low-speed vision processing device P2.

[0101] The target position correction unit 115B calculates the correction amount of the target position to be corrected by high-speed processing based on the second target position information acquired in advance from the low-speed vision processing device P2, the first target position information output from the motion measurement unit 111, and the information of a fixed ratio output from the smoothing unit 116. Specifically, the target position correction unit 115B calculates a smooth correction amount obtained by multiplying the correction amount of the target position based on the second target position information by a fixed ratio based on the processing cycle in which the second target position information is acquired from the low-speed vision processing device P2. The target position correction unit 115B calculates the correction amount of the target position to be output to the servo control unit 13 based on the correction amount of the target position obtained by high-speed processing by the target position correction unit 115B and the smooth correction amount so that the correction to the target position is completed within the time until the second target position information is next output from the low-speed vision processing device P2 (that is, within the time period of one cycle of low-speed processing).

[0102] The value of the constant ratio output to the target position correction unit 115B may be changed based on the magnitude of the correction amount of the target position obtained by the low-speed processing of the low-speed vision processing device P2. The smoothing unit 116 may output information of the constant ratio to the target position correction unit 115B only when it is determined that the correction amount of the servo motor 15A corrected by one correction process of the target position exceeds an upper limit value based on the magnitude of the correction amount of the target position obtained by the low-speed processing of the low-speed vision processing device P2.

[0103] Next, a procedure example of the third tracking image generation process and the correction amount calculation process (step St100B) of the high-speed vision processing unit 11B will be described with reference to Fig. 9. Fig. 9 is a sequence diagram showing a procedure example of the third tracking image generation process and the correction amount calculation process of the high-speed vision processing unit 11B in the first embodiment.

[0104] In the third tracking image generating process and the correction amount calculating process shown in FIG. 9, the processes in steps St101 to St114 are similar to those in steps St101 to St114 described in FIG. 5, and therefore will not be described.

[0105] The smoothing unit 116 reads out information of a certain ratio for determining a smooth correction amount to be corrected in one correction process, which is reflected at the timing of the next correction process of the target position (step St15) and is applied to the correction amount of the target position obtained by the low-speed process (St131). The smoothing unit 116 outputs the read out information of the certain ratio to the target position correction unit 115B (St132).

[0106] The target position correction unit 115B calculates a smoothed correction amount by multiplying the correction amount of the target position based on the second target position information obtained by the low-speed processing by a fixed ratio, based on the information of the fixed ratio output from the smoothing unit 116. The target position correction unit 115B calculates the correction amount of the target position based on the calculated smoothed correction amount and the correction amount of the target position based on the first target position information obtained by the high-speed processing in step St114 (St115B).

[0107] As described above, the high-speed vision processing unit 11B in the first modification of the first embodiment can suppress abrupt changes in the torque of the servo motor 15A by smoothing the correction amount of the target position. In addition, the high-speed vision processing unit 11B can perform the correction of the target position for removing the shaking of the high-speed camera 14 by high-speed processing and the correction of the target position of the moving target object Tg by low-speed processing in parallel, and can achieve low delay in the position correction of the servo motor 15A by performing the position correction of the servo motor 15A in the cycle of the high-speed processing by smoothing processing.

[0108] Next, the tracking process of the servo motor 15A depending on whether or not the smoothing process is performed by the smoothing unit 116 will be described with reference to Fig. 10. Fig. 10 is a diagram for explaining the smoothing process. Note that the time and the output timing of each control command shown in Fig. 10 are examples for making the explanation easier to understand, and it goes without saying that the present invention is not limited to these.

[0109] In FIG. 10, the two-dot chain line indicates the position (true value) of the object Tg that is displaced with the passage of time from time t21 to time t33.

[0110] The dashed lines indicate the tracking position of the servo motor 15A with respect to the target object Tg when no smoothing process is performed on the correction amount of the target position obtained by the low-speed vision processing device P2. The dashed lines shown in Fig. 10 are superimposed on the positions PS21, PS22, PS23, PS24, PS25A, PS26A, PS27A, PS28A, PS29A, PS30A, PS31A, PS32A, and PS33A of the servo motor 15A at each time.

[0111] The solid lines indicate the tracking position of the servo motor 15A with respect to the target object Tg when smoothing processing is performed on the correction amount of the target position obtained by the low-speed vision processing device P2. The solid lines shown in Fig. 10 are superimposed on the positions PS21, PS22, PS23, PS24, PS25B, PS26B, PS27B, PS28B, PS29B, PS30B, PS31B, PS32B, and PS33B indicating the positions of the servo motor 15A at each time.

[0112] Each of the control commands HS21, HS22, HS23, HS24, HS25, HS26, HS27, HS28, HS29, HS30, HS31, HS32, and HS33 is an electric signal (control command) that corrects the position of the servo motor 15A based on the correction amount of the target position obtained by the high-speed vision processing unit 11B. Each of the control commands HS21 to HS33 is generated and output at a high-speed processing cycle corresponding to the frame rate (e.g., 1000 fps) of the high-speed camera 14.

[0113] Each of the control commands LS21, LS22, and LS23 is an electrical signal that is output in a cycle of the low-speed processing of the low-speed vision processing device P2 and includes second target position information. The correction process of the target position based on each of the control commands LS21 to LS23 is executed in accordance with each of the control commands HS25, HS29, and HS33 that are output after the output timing of each of the control commands LS21 to LS23.

[0114] Therefore, when smoothing processing is not performed, the actuator 15 rotates the servo motor 15A at each of times t25, t29, and t33, and collectively corrects the correction amounts of the target positions corresponding to the control commands HS25, HS29, and HS33, and the correction amounts of the target positions corresponding to the control commands LS21 to LS23.

[0115] Furthermore, when smoothing processing is performed, the high-speed vision processing unit 11B gradually corrects the correction amount of the target position obtained by the low-speed vision processing device P2 through smoothing processing by the smoothing unit 116 in the time period until the next control command is output from the low-speed vision processing device P2 (that is, the time period for one cycle of low-speed processing, for example, the time period from time t25 to t28, the time period from time t29 to t33).

[0116] For example, the high-speed vision processing unit 11B smoothes the correction amount of the target position corresponding to the control command LS21. The high-speed vision processing unit 11B generates a correction instruction (control command) of the correction amount obtained by adding the smoothed correction amount obtained by the smoothing processing to the correction amount of the target position by each of the control commands HS25 to HS28 executed between time t25 and time t28, and outputs the generated correction instruction to the servo control unit 13. This allows the actuator 15 to eliminate the shaking of the high-speed camera 14 and follow the moving target object Tg in real time while suppressing abrupt fluctuations in the torque of the servo motor 15A.

[0117] When the smoothing process is not performed, the positions PS21 to PS33A of the servo motor 15A are closer to the position of the target object Tg (two-dot chain line) than the positions PS21 to PS33B of the servo motor 15A when the smoothing process is performed. However, when the smoothing process is performed, the position of the servo motor 15A is corrected to the same extent as when the smoothing process is not performed at the timing (times t28, t32, etc.) immediately before each of the control commands HS25, HS29, and HS33 is output.

[0118] As described above, the high-speed image processing system 100 in the first variant of the first embodiment divides and executes position correction based on the correction amount of the target position obtained by low-speed processing into position corrections executed by multiple high-speed processes, thereby eliminating shaking of the high-speed camera 14 through high-speed processing and enabling tracking of the moving target Tg in real time.

[0119] Here, the high-speed vision processing unit 11B in the first modification of the first embodiment divides the correction amount of the target position obtained by the low-speed vision processing device P2 into a plurality of timings (i.e., timings for executing the correction of the target position obtained by the target position correction unit 115B) and corrects it over time, which causes a problem that it becomes difficult for the position of the servo motor 15A to catch up with the target position corresponding to the position (true value) of the object Tg. Therefore, the high-speed vision processing unit 11B in the first modification of the first embodiment is difficult to apply to applications requiring high tracking (following) accuracy of the servo motor 15A with respect to the object Tg, such as, for example, mounting of electronic components on a board.

[0120] (Modification 2 of the First Embodiment) The high-speed vision processing unit 11B in the first modified example of the first embodiment has been described as an example in which the correction amount of the target position obtained by the low-speed vision processing device P2 is divided into a plurality of timings and corrected. The high-speed vision processing unit 11C in the second modified example of the first embodiment will be described as an example in which the displacement amount (movement amount) of the position of the object Tg to be imaged in the next frame is predicted, and the predicted displacement amount of the position of the object Tg is corrected.

[0121] The high-speed vision processing unit 11C in the modified example 2 of the embodiment 1 has a similar configuration to the high-speed vision processing unit 11 according to the embodiment 1. Therefore, in the following description of the high-speed vision processing unit 11C in the modified example 2 of the embodiment 1, the same reference numerals are given to the same configuration as the high-speed vision processing unit 11, and the description thereof will be omitted.

[0122] The high-speed vision processing unit 11C in the second modification of the first embodiment will be described with reference to Fig. 11. Fig. 11 is a functional block diagram of the high-speed vision processing unit 11C in the second modification of the first embodiment.

[0123] In addition, in the block diagram shown in Figure 11, the section where input / output, transmission / reception of data processed at a speed corresponding to the frame rate of the high-speed camera 14 (e.g., 1000 fps) is performed is shown by a solid line, and the section where input / output, transmission / reception of data processed at a speed corresponding to the image recognition processing speed of the low-speed vision processing device P2 (e.g., 60 fps) is performed is shown by a dotted line.

[0124] The high-speed vision processing unit 11C includes a motion measurement unit 111, a tracking image generation unit 112, a synthesis image generation unit 113, a frame synthesis unit 114, a target position correction unit 115C, and a prediction unit 117.

[0125] The prediction unit 117 predicts the position of the object Tg at the timing when the second target position information is next output from the low speed vision processing device P2, based on the movement amount, movement speed, acceleration, etc. of the object Tg based on the second target position information obtained in advance. The prediction unit 117 outputs the predicted position information of the object Tg to the target position correction unit 115C.

[0126] The target position correction unit 115C calculates the correction amount of the target position based on the first target position information output from the movement measurement unit 111 and the predicted position information output from the prediction unit 117. When the target position correction unit 115C acquires second target position information in advance from the low-speed vision processing device P2, the target position correction unit 115C calculates the correction amount of the target position based on the second target position information, the first target position information output from the movement measurement unit 111, and the predicted position information.

[0127] Next, a procedure example of the fourth tracking image generation process and the correction amount calculation process (step St100C) of the high-speed vision processing unit 11C will be described with reference to Fig. 12. Fig. 12 is a sequence diagram showing a procedure example of the fourth tracking image generation process and the correction amount calculation process of the high-speed vision processing unit 11C in the first embodiment.

[0128] In the fourth tracking image generating process and the correction amount calculating process shown in FIG. 12, the processes in steps St101 to St114 are similar to those in steps St101 to St114 described in FIG. 5, and therefore will not be described.

[0129] The prediction unit 117 predicts the predicted position of the object Tg that will move by the timing of the next target position correction process (step St15) based on the amount of movement of the object Tg obtained by the previous low-speed process (St141). The prediction unit 117 outputs the predicted predicted position information of the object Tg to the target position correction unit 115C (St142).

[0130] The target position correction unit 115C calculates the correction amount of the target position based on the predicted position of the object Tg output from the prediction unit 117 and the first target position information output from the movement measurement unit 111 (St115C).

[0131] As described above, the high-speed vision processing unit 11C in variant example 2 of embodiment 1 performs high-speed processing to correct the target position based on the predicted position of the target object Tg, thereby making it possible to reduce the amount of correction of the target position based on the second target position information output from the low-speed vision processing device P2 and suppress abrupt changes in the torque of the servo motor 15A during correction.

[0132] Next, the tracking process of the servo motor 15A depending on whether or not the prediction process is performed by the prediction unit 117 will be described with reference to Fig. 13. Fig. 13 is a diagram for explaining the prediction process. Note that the time and the output timing of each control command shown in Fig. 13 are examples for making the explanation easier to understand, and it goes without saying that the present invention is not limited to these. Also, Fig. 13 shows an example in which the target object Tg moves linearly at a constant speed.

[0133] In FIG. 13, the two-dot chain line indicates the position (true value) of the object Tg that is displaced with the passage of time from time t21 to time t33.

[0134] The dashed lines indicate the tracking position of the servo motor 15A with respect to the target object Tg when prediction processing is not performed on the correction amount of the target position obtained by the low-speed vision processing device P2. Also, the dashed lines shown in Fig. 13 are superimposed with the positions PS21 to PS33A of the servo motor 15A at each time.

[0135] The solid line indicates the follow-up position of the servo motor 15A with respect to the object Tg when a correction process for the target position is executed based on the predicted position of the object Tg.

[0136] Each of the control commands HS21 to HS33 is an electric signal that corrects the position of the servo motor 15A based on the correction amount of the target position corresponding to the first target position information output from the motion measurement unit 111. Each of the control commands HS21 to HS33 is generated and output at a high-speed processing cycle corresponding to the frame rate (e.g., 1000 fps) of the high-speed camera 14.

[0137] Each of the control commands LS21, LS22, and LS23 is an electrical signal that is output in a cycle of the low-speed processing of the low-speed vision processing device P2 and includes second target position information. The correction process of the target position based on each of the control commands LS21 to LS23 is executed in accordance with each of the control commands HS25, HS29, and HS33 that are output after the output timing of each of the control commands LS21 to LS23.

[0138] The high-speed vision processing unit 11C calculates the correction amount of the target position for each of the control commands HS22 to HS33 based on the predicted position information of the object Tg from the prediction unit 117 and the first target position information output from the movement measurement unit 111. The high-speed vision processing unit 11C may correct the correction amount of the target position based on the predicted position information in one cycle of low-speed processing, in a time period until the next control command including the second target position information is output from the low-speed vision processing device P2 (for example, a time period from time t25 to t28, a time period from time t29 to t32). In such a case, the high-speed vision processing unit 11C may correct the correction amount of the target position based on the predicted position information by a correction amount obtained by dividing the correction amount by the number of corrections of the target position executed in the time period until the next control command including the second target position information is output from the low-speed vision processing device P2.

[0139] As described above, the high-speed image processing system 100 in the second modification of the first embodiment performs position correction based on the correction amount of the target position obtained by the predicted position of the object Tg predicted by the prediction unit 117 in multiple high-speed processes, thereby suppressing abrupt fluctuations in the torque of the servo motor 15A, removing the shaking of the high-speed camera 14 by high-speed processing, and tracking the moving object Tg in real time. Furthermore, the high-speed image processing system 100 is unable to keep up with the tracking of the servo motor 15A until the correction of the target position based on the predicted position of the object Tg is performed (for example, from time t21 to time t24), but by performing the correction of the target position based on the predicted position of the object Tg, it is possible to make the position of the servo motor 15A track the position (true value) of the object Tg in real time.

[0140] Next, the tracking process of the servo motor 15A depending on whether or not the prediction process is performed by the prediction unit 117 will be described with reference to Fig. 14. Fig. 14 is a diagram for explaining the prediction process. Note that the times and the output timings of the control commands shown in Fig. 14 are examples for making the explanation easier to understand, and it goes without saying that the present invention is not limited to these. Also, Fig. 14 shows an example in which the target object Tg does not move linearly at a constant speed.

[0141] In FIG. 14, the two-dot chain line indicates the position (true value) of the object Tg that is displaced with the passage of time from time t41 to time t52.

[0142] The dashed lines indicate the tracking position of the servo motor 15A with respect to the target object Tg when prediction processing is not performed on the correction amount of the target position obtained by the low-speed vision processing device P2. The dashed lines shown in Fig. 14 are superimposed on the positions PS41A, PS42A, PS43A, PS44A, PS45A, PS46A, PS47A, PS48A, PS49A, PS50A, PS51A, and PS52A of the servo motor 15A at each time.

[0143] The solid line indicates the follow-up position of the servo motor 15A with respect to the object Tg when a correction process for the target position is executed based on the predicted position of the object Tg.

[0144] Each of the control commands HS41, HS42, HS43, HS44, HS45, HS46, HS47, HS48, HS49, HS50, HS51, HS52, and HS53 is an electric signal (control command) for correcting the position of the servo motor 15A based on the correction amount of the target position corresponding to the first target position information output from the motion measurement unit 111. Each of the control commands HS41 to HS52 is generated and output in accordance with a high-speed processing cycle corresponding to the frame rate (e.g., 1000 fps) of the high-speed camera 14.

[0145] Each of the control commands LS41 and LS42 is an electrical signal that includes second target position information and is output in a cycle of the low-speed processing of the low-speed vision processing device P2. The correction process of the target position based on each of the control commands LS21 to LS23 is executed in accordance with each of the control commands HS45 and HS49 that are output after the output timing of each of the control commands LS21 to LS23.

[0146] 14, the prediction unit 117 calculates a predicted position of the object Tg at time t48 based on information such as the movement amount, movement speed, or acceleration of the object Tg between time t41 and time t44. The prediction unit 117 outputs predicted position information of the object Tg to the target position correction unit 115C.

[0147] The target position correction unit 115C calculates a correction amount of the target position based on the first target position information output from the motion measurement unit 111 at each of times t41 to t44, and outputs control commands HS41 to HS44 including the calculated correction amounts of the target position to the servo control unit 13.

[0148] At time t45, the target position correction unit 115C calculates a correction of the target position based on the first target position information output from the motion measurement unit 111 and the second target position information output from the low-speed vision processing device P2, and outputs a control command HS45 including the calculated correction amount of the target position to the servo control unit 13.

[0149] The target position correction unit 115C calculates a correction amount for the target position based on the first target position information output from the movement measurement unit 111 and the predicted position information output from the prediction unit 117, respectively, at times t46 to t48, and outputs control commands HS46 to HS48 including the calculated correction amounts for the target position to the servo control unit 13.

[0150] The prediction unit 117 calculates a predicted position of the object Tg at time t52 based on information such as the movement amount, movement speed, or acceleration of the object Tg between time t45 and time t48. The prediction unit 117 outputs predicted position information of the object Tg to the target position correction unit 115C.

[0151] At time t49, the target position correction unit 115C calculates a correction of the target position based on the first target position information output from the motion measurement unit 111 and the second target position information output from the low-speed vision processing device P2, and outputs a control command HS49 including the calculated correction amount of the target position to the servo control unit 13.

[0152] The target position correction unit 115C calculates a correction amount for the target position based on the first target position information output from the movement measurement unit 111 and the predicted position information output from the prediction unit 117, at each of times t50 to t52, and outputs control commands HS50 to HS52 including the calculated correction amounts for the target position to the servo control unit 13.

[0153] As a result, even if the object Tg does not move linearly at a constant speed, the high-speed vision processing unit 11C can calculate the predicted position of the object Tg based on information such as the movement amount, movement speed, or acceleration of the object Tg.

[0154] As described above, the high-speed image processing system 100 in the second modification of the first embodiment performs position correction based on the correction amount of the target position obtained from the predicted position of the object Tg predicted by the prediction unit 117 in multiple high-speed processes, thereby suppressing abrupt fluctuations in the torque of the servo motor 15A, removing the shaking of the high-speed camera 14 by high-speed processing, and realizing real-time tracking of the moving object Tg. Also, in the high-speed image processing system 100, the servo motor 15A cannot keep up with the timing (e.g., time t45, etc.) when the acceleration of the object Tg changes until the correction of the target position based on the predicted position is performed (e.g., from time t45 to time t48), but by performing the correction of the target position based on the predicted position of the object Tg, the tracking of the moving object Tg can be realized in real time.

[0155] Here, the high-speed vision processing unit 11C in the second modification of the first embodiment predicts the position of the object Tg based on information such as the past movement amount, movement speed, or acceleration of the object Tg. Therefore, there is a problem that the tracking accuracy of the servo motor 15A with respect to the object Tg depends on the prediction accuracy of the position of the object Tg.

[0156] (Third Modification of First Embodiment) The high-speed vision processing unit 11C in the second modification of the first embodiment has been described as an example in which the target position of the servo motor 15A is corrected based on the predicted position of the object Tg based on information such as the past movement amount, movement speed, or acceleration of the object Tg. The high-speed vision processing unit 11D in the third modification of the first embodiment will be described as an example in which the correction amount of the target position based on the predicted position of the object Tg is smoothed, and the target position of the servo motor 15A is corrected based on the smoothed correction amount.

[0157] The high-speed vision processing unit 11D in the modified example 3 of the embodiment 1 has a similar configuration to the high-speed vision processing unit 11 according to the embodiment 1. Therefore, in the following description of the high-speed vision processing unit 11D in the modified example 3 of the embodiment 1, the same reference numerals are given to the same configuration as the high-speed vision processing unit 11, and the description thereof will be omitted.

[0158] The high-speed vision processing unit 11D in the third modification of the first embodiment will be described with reference to Fig. 15. Fig. 15 is a functional block diagram of the high-speed vision processing unit 11D in the third modification of the first embodiment.

[0159] In addition, in the block diagram shown in Figure 15, the section where input / output or transmission / reception of data processed at a speed corresponding to the frame rate of the high-speed camera 14 (e.g., 1000 fps) is performed is shown by a solid line, and the section where input / output or transmission / reception of data processed at a speed corresponding to the image recognition processing speed of the low-speed vision processing device P2 (e.g., 60 fps) is performed is shown by a dotted line.

[0160] The high-speed vision processing unit 11D includes a motion measurement unit 111, a tracking image generation unit 112, a synthesis image generation unit 113, a frame synthesis unit 114, a target position correction unit 115D, a smoothing unit 116, and a prediction unit 117.

[0161] The smoothing unit 116 outputs information of a fixed ratio to the target position correction unit 115D for determining the correction amount (smoothed correction amount) to be corrected in one correction process (high-speed processing) in order to smoothly correct (reflect) the correction amount of the target position obtained by the low-speed vision processing device P2.

[0162] The prediction unit 117 predicts the predicted position of the object Tg at the timing when the second target position information is next output from the low speed vision processing device P2, based on the movement amount, movement speed, acceleration, etc. of the object Tg based on the second target position information obtained in advance. The prediction unit 117 outputs the predicted position information of the object Tg to the target position correction unit 115D.

[0163] The target position correction unit 115D calculates a smoothed correction amount obtained by multiplying the correction amount of the target position based on the second target position information output from the low-speed vision processing device P2 or the predicted position information output from the prediction unit 117 by a constant ratio output from the smoothing unit 116. The target position correction unit 115D calculates the correction amount of the target position of the servo motor 15A included in the control command output to the servo control unit 13, based on the first target position information output from the movement measurement unit 111 and the calculated smoothed correction amount.

[0164] Next, a procedure example of the fifth tracking image generation process and correction amount calculation process (step St100D) of the high-speed vision processing unit 11D will be described with reference to Fig. 16. Fig. 16 is a sequence diagram showing a procedure example of the fifth tracking image generation process and correction amount calculation process of the high-speed vision processing unit 11D in the first embodiment.

[0165] In the fifth tracking image generating process and the correction amount calculating process shown in FIG. 16, the processes in steps St101 to St114 are similar to those in steps St101 to St114 described in FIG. 5, and therefore will not be described.

[0166] The smoothing unit 116 reads out information of a certain ratio for determining a smooth correction amount to be corrected in one correction process (high-speed processing) for the correction amount of the target position obtained by the low-speed processing at the timing of the next correction process of the target position (step St15) (St131). The smoothing unit 116 outputs the read out information of the certain ratio to the target position correction unit 115D (St132).

[0167] The prediction unit 117 predicts the predicted position of the object Tg that will move by the timing of the next correction process of the target position (step St15) based on the amount of movement of the object Tg obtained by the previous low-speed process (St141). The prediction unit 117 outputs the predicted predicted position information of the object Tg to the target position correction unit 115D (St142).

[0168] The target position correction unit 115D calculates a smoothed correction amount obtained by multiplying the correction amount of the target position based on the predicted position information output from the prediction unit 117 by a constant ratio output from the smoothing unit 116. The target position correction unit 115D calculates the correction amount of the target position of the servo motor 15A included in the control command output to the servo control unit 13, based on the calculated smoothed correction amount and the correction amount of the target position based on the first target position information output from the movement measurement unit 111 (St115D).

[0169] As described above, the high-speed vision processing unit 11D in the third modification of the first embodiment can correct the position of the servo motor 15A while suppressing abrupt changes in the torque of the servo motor 15A even if the prediction accuracy of the position of the object Tg is wrong by smoothing the correction of the target position based on the predicted position of the object Tg. Also, the high-speed vision processing unit 11D can gradually eliminate the difference between the position of the object Tg and the position of the high-speed camera 14 based on the servo motor 15A by correcting the target position based on the predicted position.

[0170] Next, the tracking process of the servo motor 15A depending on the presence or absence of the smoothing process or the prediction process will be described with reference to Fig. 17. Fig. 17 is a diagram for explaining the prediction process. Note that the time and the output timing of each control command shown in Fig. 17 are examples for making the explanation easier to understand, and it goes without saying that the present invention is not limited to these. Also, Fig. 17 shows an example in which the target object Tg moves linearly at a constant speed.

[0171] In FIG. 17, the two-dot chain line indicates the position (true value) of the object Tg that is displaced with the passage of time from time t21 to time t33.

[0172] The dashed line indicates the tracking position of the servo motor 15A with respect to the target object Tg when smoothing and prediction processing is not performed on the correction amount of the target position obtained by the low-speed vision processing device P2. Moreover, the dashed lines shown in Fig. 17 are superimposed with the positions PS21 to PS33A of the servo motor 15A at each time.

[0173] The solid lines indicate the tracking position of the servo motor 15A with respect to the target object Tg when smoothing and prediction processing is performed. Moreover, the solid lines shown in Fig. 17 are superimposed with the positions PS21, PS22, PS23, PS24, PS25D, PS26D, PS27D, PS28D, PS29D, PS30D, PS31D, PS32D, and PS33D of the servo motor 15A at each time.

[0174] 17, the prediction unit 117 calculates a predicted position of the object Tg at time t28 based on information such as the movement amount, movement speed, or acceleration of the object Tg between time t21 and time t24. The prediction unit 117 outputs the predicted position information of the object Tg to the target position correction unit 115D.

[0175] The target position correction unit 115D calculates a correction amount of the target position based on the first target position information output from the motion measurement unit 111 at each of times t21 to t24, and outputs control commands HS21 to HS24 including the calculated correction amounts of the target position to the servo control unit 13.

[0176] At time t25, the target position correction unit 115D calculates a correction of the target position based on the first target position information output from the motion measurement unit 111 and the second target position information output from the low-speed vision processing device P2, and outputs a control command HS25 including the calculated correction amount of the target position to the servo control unit 13.

[0177] The target position correction unit 115D calculates a smooth correction amount to be corrected at each of time t25 to time t28 by multiplying by a constant ratio the correction amount of the target position based on the second target position information output from the low speed vision processing device P2 and the predicted position information output from the prediction unit 117. At time t25, the target position correction unit 115D calculates a correction of the target position based on the first target position information output from the movement measurement unit 111 and the calculated smooth correction amount, and outputs a control command HS25 including the calculated correction amount of the target position to the servo control unit 13.

[0178] The target position correction unit 115D calculates a correction amount for the target position based on the first target position information output from the motion measurement unit 111 and the smoothed correction amount, at each of times t26 to t28, and outputs control commands HS26 to HS28 including the calculated correction amounts for the target position to the servo control unit 13.

[0179] The prediction unit 117 calculates a predicted position of the object Tg at time t32 based on information such as the movement amount, movement speed, or acceleration of the object Tg between time t25 and time t28. The prediction unit 117 outputs predicted position information of the object Tg to the target position correction unit 115D.

[0180] The target position correction unit 115D multiplies the correction amount of the target position based on the second target position information output from the low-speed vision processing device P2 and the predicted position information output from the prediction unit 117 by a constant ratio to calculate a smooth correction amount to be corrected at each of time t29 to time t32. At time t29, the target position correction unit 115D calculates the correction of the target position based on the first target position information output from the movement measurement unit 111 and the calculated smooth correction amount, and outputs control commands HS29 to HS32 including the calculated correction amount of the target position to the servo control unit 13. In the example shown in FIG. 17, the position of the servo motor 15A catches up with the position of the object Tg at time t33.

[0181] As a result, the high-speed vision processing unit 11D can correct the position of the servo motor 15A while suppressing a sudden change in the torque of the servo motor 15A even if the prediction accuracy of the position of the object Tg is wrong by smoothing the correction of the target position based on the predicted position of the object Tg. Also, the high-speed vision processing unit 11D can gradually eliminate the difference between the position of the object Tg and the position of the high-speed camera 14 based on the servo motor 15A by correcting the target position based on the predicted position.

[0182] Next, the tracking process of the servo motor 15A depending on the presence or absence of the smoothing process or the prediction process will be described with reference to Fig. 18. Fig. 18 is a diagram for explaining the prediction process. Note that the time and the output timing of each control command shown in Fig. 18 are examples for making the explanation easier to understand, and it goes without saying that the present invention is not limited to these. Also, Fig. 18 shows an example in which the target object Tg does not move linearly at a constant speed.

[0183] In FIG. 18, the two-dot chain line indicates the position (true value) of the object Tg that is displaced with the passage of time from time t41 to time t53.

[0184] The dashed line indicates the tracking position of the servo motor 15A with respect to the target object Tg when smoothing and prediction processing is not performed on the correction amount of the target position obtained by the low-speed vision processing device P2. Moreover, the dashed lines shown in Fig. 18 are superimposed with the positions PS41 to PS35A of the servo motor 15A at each time.

[0185] The solid line indicates the tracking position of the servo motor 15A with respect to the target object Tg when smoothing and prediction processing is performed.

[0186] 17, the prediction unit 117 calculates a predicted position of the object Tg at time t48 based on information such as the movement amount, movement speed, or acceleration of the object Tg between time t41 and time t44. The prediction unit 117 outputs predicted position information of the object Tg to the target position correction unit 115D.

[0187] The target position correction unit 115D calculates a correction amount of the target position based on the first target position information output from the motion measurement unit 111 at each of times t41 to t44, and outputs control commands HS41 to HS44 including the calculated correction amounts of the target position to the servo control unit 13.

[0188] At time t45, the target position correction unit 115D calculates a correction of the target position based on the first target position information output from the motion measurement unit 111 and the second target position information output from the low-speed vision processing device P2, and outputs a control command HS45 including the calculated correction amount of the target position to the servo control unit 13.

[0189] The target position correction unit 115D multiplies the correction amount of the target position based on the second target position information output from the low speed vision processing device P2 and the predicted position information output from the prediction unit 117 by a constant ratio to calculate a smooth correction amount to be used at each of times t45 to t48. At time t45, the target position correction unit 115D calculates a correction of the target position based on the first target position information output from the movement measurement unit 111 and the calculated smooth correction amount, and outputs a control command HS45 including the calculated correction amount of the target position to the servo control unit 13.

[0190] The target position correction unit 115D calculates a correction amount for the target position based on the first target position information output from the motion measurement unit 111 and the smoothed correction amount, at each of times t46 to t48, and outputs control commands HS46 to HS48 including the calculated correction amounts for the target position to the servo control unit 13.

[0191] The prediction unit 117 calculates a predicted position of the object Tg at time t52 based on information such as the movement amount, movement speed, or acceleration of the object Tg between time t45 and time t48. The prediction unit 117 outputs the predicted position information of the object Tg to the target position correction unit 115D.

[0192] The target position correction unit 115D calculates a smooth correction amount to be corrected at each of time t49 to time t52 by multiplying by a constant ratio the correction amount of the target position based on the second target position information output from the low speed vision processing device P2 and the predicted position information output from the prediction unit 117. At time t49, the target position correction unit 115D calculates a correction of the target position based on the first target position information output from the movement measurement unit 111 and the calculated smooth correction amount, and outputs a control command HS49 including the calculated correction amount of the target position to the servo control unit 13.

[0193] As described above, the high-speed image processing system 100 in the third modification of the first embodiment can correct the position of the servo motor 15A with respect to the object Tg while suppressing abrupt fluctuations in the torque of the servo motor 15A. Also, in the high-speed image processing system 100, the servo motor 15A cannot keep up with the change in acceleration of the object Tg from the timing (e.g., time t45, etc.) until the correction of the target position based on the predicted position is executed (e.g., from time t45 to time t48), but by executing the correction of the target position based on the predicted position of the object Tg, the difference between the position of the high-speed camera 14 based on the servo motor 15A and the position (true value) of the object Tg can be gradually reduced.

[0194] As described above, the calculation device P11 in embodiment 1 and variants 1 to 3 of embodiment 1 is capable of communicating between the servo motor 15A (an example of a driving device) and the high-speed camera 14 (an example of a camera) that captures an image of an object Tg (an example of a subject), and executes high-speed vision processing (parallel processing PAR1) that acquires a plurality of frames captured by the high-speed camera 14, measures a first movement amount of the object Tg between the plurality of frames, and calculates a first correction amount (i.e., a shake correction amount of the high-speed camera 14) for correcting the position of the servo motor 15A based on the measured first movement amount of the object Tg, and low-speed vision processing (second loop processing LP2) that has a processing period longer than the processing period of the high-speed vision processing and calculates a second correction amount (i.e., a position correction amount of the servo motor 15A based on the position of the object Tg) for correcting the position of the servo motor 15A based on the recognized position of the object Tg captured in at least one frame, and generates a control command based on at least one of the first correction amount and the second correction amount and outputs it to the servo motor 15A.

[0195] As a result, the arithmetic device P11 in the first embodiment and the first to third modifications of the first embodiment can speed up the process of measuring the amount of movement of the object Tg captured between two frames, and can calculate and output in real time a correction amount for correcting the position of the servo motor 15A with respect to the object Tg caused by, for example, the shaking of the high-speed camera 14. As a result, the actuator 15 can perform a predetermined task on the object Tg without temporarily stopping or reducing the task speed until the object Tg is recognized by the image recognition process, thereby improving the task efficiency.

[0196] As described above, the arithmetic device P11 in the first embodiment and the first to third modifications of the first embodiment generates a first control command based on the first and second correction amounts, or a second control command based on the first correction amount, and outputs it to the servo motor 15A. As a result, the arithmetic device P11 in the first embodiment and the first to third modifications of the first embodiment can correct the position of the servo motor 15A using a control command corresponding to the processing cycle of the low-speed vision processing device P2 and a control command corresponding to a cycle corresponding to the frame rate of the high-speed camera 14, and therefore can remove shaking of the high-speed camera 14 in real time.

[0197] Furthermore, the first control command in the first embodiment and the first to third modifications of the first embodiment is output in response to the processing cycle of the low-speed vision processing. The second control command is output in response to the processing cycle of the high-speed vision processing. As a result, the arithmetic device P11 in the first embodiment and the first to third modifications of the first embodiment can correct the position of the servo motor 15A in a cycle corresponding to the frame rate of the high-speed camera 14, thereby eliminating the shaking of the high-speed camera 14.

[0198] Furthermore, the arithmetic device P11 in the first embodiment and the first to third modifications of the first embodiment transmits a composite image to a low-speed vision processing device P2 (an example of an external device) that can communicate with the arithmetic device P11 and recognize the position of the object Tg, and acquires the recognized position of the object Tg from the low-speed vision processing device P2. This allows the arithmetic device P11 in the first embodiment and the first to third modifications of the first embodiment to perform more accurate position recognition of the object Tg using the composite image by the low-speed vision processing device P2. The arithmetic device P11 can correct the position of the servo motor 15A with higher accuracy by using the position of the object Tg obtained by low-speed processing and the amount of shaking of the high-speed camera 14 obtained by high-speed processing.

[0199] Moreover, the arithmetic device P11 in the first embodiment and the first to third modifications of the first embodiment generates a composite image by combining K (K: an integer equal to or greater than 2) frames (parallel processing PAR2), and calculates a second correction amount based on the recognition position of the object Tg in the composite image. As a result, the arithmetic device P11 in the first embodiment and the first to third modifications of the first embodiment generates a composite image from which frame disturbance or blur caused by a short exposure time is effectively removed, thereby generating a composite image suitable for image recognition processing, and performing low-speed image processing on the composite image to highly accurately correct the position shift of the object Tg. Therefore, the arithmetic device P11 can generate an image (composite image) more suitable for image recognition processing executed by the low-speed vision processing device P2, and can perform more accurate position recognition of the object Tg.

[0200] Furthermore, the arithmetic device P11 in the first embodiment and the first to third modifications of the first embodiment estimates the position of the object Tg captured in each of the K frames in the low-speed vision processing, measures a third amount of movement of the object Tg between the 0th frame and the Kth frame based on the estimated position of the object Tg and the position of the object Tg captured in the 0th frame indicating the reference position of the object Tg, and performs K times the synthesis processing of synthesizing the Kth frame with the 0th frame based on the third amount of movement of the object Tg to generate a synthetic image. As a result, the arithmetic device P11 in the first embodiment and the first to third modifications of the first embodiment can generate a synthetic image in which blurring of the object Tg, which is the recognition target in the image recognition processing, is preferentially removed, and therefore can generate an image (synthetic image) more suitable for the image recognition processing executed by the low-speed vision processing device P2.

[0201] Furthermore, the calculation device P11 in the first embodiment and the first to third modifications of the first embodiment calculates the second correction amount based on the recognized position of the object Tg and the third movement amount in the low-speed vision processing. This allows the calculation device P11 in the first embodiment and the first to third modifications of the first embodiment to calculate the position of the high-speed camera 14 (i.e., the working device P1) relative to the position of the object Tg, and to calculate the second correction amount capable of correcting the positional deviation amount of the high-speed camera 14.

[0202] Furthermore, the calculation device P11 in the first embodiment acquires position information of the servo motor 15A, and in the low-speed vision processing, measures a third movement amount of the object Tg based on the recognition position of the object Tg, the position information of the servo motor 15A, and the position of the object Tg captured in the Kth frame. This allows the calculation device P11 in the first embodiment to measure the third movement amount of the object Tg with higher accuracy.

[0203] Moreover, the calculation device P11 in the first embodiment acquires position information of the servo motor 15A, estimates the position of the object Tg that will appear in the latest frame acquired next in the high-speed vision processing, acquires the latest frame, and measures a first movement amount of the object Tg between two consecutive frames based on the estimated position of the object Tg, the position information of the servo motor 15A, and the position of the object Tg that will appear in the latest frame. This allows the calculation device P11 in the first embodiment to calculate the amount of shaking of the high-speed camera 14, the acceleration of the shaking of the high-speed camera 14, and the like with higher accuracy.

[0204] Moreover, the arithmetic device P11 in the first modification of the first embodiment calculates a third correction amount by dividing the second correction amount calculated by the low-speed vision processing by a predetermined number (for example, the number of times high-speed processing is executed while low-speed processing is executed once), omits the generation of the second control command, and executes a process of generating a first control command based on the first and third correction amounts and outputting the first control command to the servo motor 15A a predetermined number of times. As a result, the arithmetic device P11 in the first modification of the first embodiment can suppress a sudden change in the torque of the servo motor 15A by executing smoothing of the correction amount of the target position. Furthermore, the arithmetic device P11 can execute in parallel the correction of the target position for removing the shaking of the high-speed camera 14 by high-speed processing and the correction of the target position for the moving target object Tg by low-speed processing, and can realize a low delay in the position correction of the servo motor 15A by executing the position correction of the servo motor 15A by high-speed processing through smoothing processing.

[0205] Furthermore, the calculation device P11 in the first modification of the first embodiment stores an upper correction limit for the position of the servo motor 15A corrected based on the second control command, and when it is determined that the second correction amount calculated by the low-speed vision processing is equal to or greater than the upper correction limit for the position of the servo motor 15A, it omits the generation of the second control command, and executes a process of generating a first control command based on the first and third correction amounts and outputting the command to the servo motor 15A a predetermined number of times. As a result, the calculation device P11 in the first modification of the first embodiment can execute the smoothing process only when the position correction of the servo motor 15A exceeds the upper correction limit at which a sudden change in the torque of the servo motor 15A may occur.

[0206] Furthermore, the arithmetic device P11 in the second modification of the first embodiment estimates the recognized position of the object Tg to be recognized in the next low-speed vision processing, calculates a fourth movement amount of the object Tg based on the recognized position of the object Tg captured in at least one frame and the estimated recognized position of the object Tg, and generates a first control command based on the first correction amount and the fourth movement amount. As a result, the arithmetic device P11 in the second modification of the first embodiment performs correction of the target position based on the predicted position of the object Tg at high speed processing, thereby making it possible to reduce the correction amount of the target position based on the second target position information output from the low-speed vision processing device P2 and suppress a sudden change in the torque of the servo motor 15A during correction.

[0207] Moreover, the arithmetic device P11 in the third modification of the first embodiment calculates a third correction amount by dividing the second correction amount calculated by the low-speed vision processing by a predetermined number (for example, the number of times high-speed processing is executed while low-speed processing is executed once), estimates the recognition position of the object Tg to be recognized in the next low-speed vision processing, calculates a fourth movement amount of the object Tg based on the recognition position of the object Tg captured in at least one frame and the estimated recognition position of the object Tg, generates a first control command based on the first correction amount, the third correction amount, and the fourth movement amount, and outputs the first control command to the servo motor 15A, and executes the process a predetermined number of times. As a result, the arithmetic device P11 in the third modification of the first embodiment smoothes the correction of the target position based on the predicted position of the object Tg, so that even if the prediction accuracy of the position of the object Tg is not achieved, the position of the servo motor 15A can be corrected while suppressing a sudden change in the torque of the servo motor 15A. Moreover, the high-speed vision processing unit 11D can gradually eliminate the difference between the position of the object Tg and the position of the high-speed camera 14 based on the servo motor 15A by correcting the target position based on the predicted position.

[0208] As described above, the arithmetic device P11 in the first embodiment and the modified example of the first embodiment includes a communication unit 10 (an example of an acquisition unit) capable of communicating between a servo motor 15A (an example of a drive device) and a high-speed camera 14 (an example of a camera) that captures an image of an object Tg (an example of a subject) and acquires a plurality of frames captured by the high-speed camera 14, and a high-speed vision processing unit (parallel processing PAR1) that executes a high-speed vision processing to calculate a first correction amount (i.e., a shake correction amount of the high-speed camera 14) for correcting the position of the servo motor 15A based on the amount of movement of the object Tg between the plurality of frames. The high-speed vision processing system includes: a target position correction unit 115 (an example of a low-speed processing unit) that executes low-speed vision processing (second loop processing LP2) that calculates a second correction amount (i.e., a position correction amount of the servo motor 15A based on the position of the object Tg) for correcting the position of the servo motor 15A based on the recognized position of the object Tg at a processing cycle longer than the processing cycle of the high-speed vision processing; and a high-speed vision processing unit 11, 11B to 11D (an example of a control unit) that generates a control command based on at least one of the first correction amount and the second correction amount and outputs it to the servo motor 15A.

[0209] As a result, the arithmetic device P11 in the first embodiment and the first to third modifications of the first embodiment can speed up the measurement process of the amount of movement of the object Tg captured between two frames by converting frame n based on the estimated position of the object Tg captured in the next frame n+1, and can calculate and output in real time a correction amount for correcting the position of the servo motor 15A with respect to the object Tg caused by shaking or the like of the high-speed camera 14. As a result, the actuator 15 can perform a predetermined task on the object Tg without temporarily stopping or slowing down the task speed until the object Tg is recognized by the image recognition process, thereby improving the task efficiency.

[0210] (Embodiment 2) The high-speed image processing system 100 according to the first embodiment has been described as an example in which the shaking of the high-speed camera 14 is removed and the position of the servo motor 15A is corrected based on the position of the object Tg captured in the frame. The high-speed image processing system 100A according to the second embodiment will be described as an example in which the foreground and background are separated from the frame, and the position or shaking of the working device P1 (high-speed camera 14) and the position of the object Tg are tracked and corrected individually based on the object Tg captured in the foreground and the features of the background.

[0211] The high-speed image processing system 100A according to the second embodiment has a similar configuration to the high-speed image processing system 100 according to the first embodiment. Therefore, in the following description of the high-speed image processing system 100A according to the second embodiment, the same components as those in the high-speed image processing system 100 according to the first embodiment are denoted by the same reference numerals, and description thereof will be omitted.

[0212] The high-speed image processing system 100A according to the second embodiment includes an object Tg, a working device P1, and a low-speed vision processing device P2A as an example of an external device.

[0213] The working device P1 includes a communication unit 10, a high-speed vision processing unit 11E (an example of a first high-speed processing unit, a second high-speed processing unit, a first low-speed processing unit, a second low-speed processing unit, and a control unit), a memory 12, a servo control unit 13, a high-speed camera 14, and an actuator 15. The communication unit 10, the high-speed vision processing unit 11E, the memory 12, and the servo control unit 13 may be configured as one arithmetic device P11A as an example of an image processing device.

[0214] The high-speed vision processing unit 11E in the second embodiment will be described with reference to Fig. 19. Fig. 19 is a functional block diagram of the high-speed vision processing unit 11E in the second embodiment.

[0215] The high-speed vision processing unit 11E includes a first motion measuring unit 111B, a second motion measuring unit 111C, a tracking image generating unit 112A, a synthesis image generating unit 113A, a frame synthesizing unit 114, a target position correcting unit 115E, and an area dividing unit 118.

[0216] <Tracking image generation process> The high-speed vision processing unit 11E acquires frames output from the high-speed camera 14, and detects from the frames a foreground region including the object Tg and a background region including scenery or buildings that are less susceptible to disturbances (e.g., vibrations or wind) using the region division unit 118.

[0217] The high-speed vision processing unit 11E generates a foreground frame by dividing the pixels of the foreground region detected by the region dividing unit 118 from the frame, and a background frame by dividing the pixels of the detected background region from the frame. The high-speed vision processing unit 11E outputs the generated foreground frame to the first motion measuring unit 111B, and outputs the background frame to the second motion measuring unit 111C.

[0218] The high-speed vision processing unit 11E estimates the position of the foreground in foreground frame n+1, which is captured after foreground frame n, using the first motion measurement unit 111B, and measures the amount of motion between the estimated position of the foreground in foreground frame n+1 and between the position of the foreground in frame n and the position of the foreground in frame n+1.

[0219] The high-speed vision processing unit 11E calculates a first foreground transformation matrix that moves the position of the foreground captured in the foreground frame n to the position of the foreground captured in the foreground frame n+1 based on the measurement result of the first motion measurement unit 111B. The high-speed vision processing unit 11E performs affine transformation on the foreground frame n using the calculated first foreground transformation matrix, and generates a foreground tracking image that tracks the position of the foreground moving between two foreground frames (i.e., foreground frame n and foreground frame n+1).

[0220] The high-speed vision processing unit 11E estimates the position of the background in background frame n+1, which is captured after background frame n, using the second motion measurement unit 111C, and measures the estimated position of the background in background frame n+1 and the amount of motion between the position of the background in frame n and the position of the background in frame n+1.

[0221] The high-speed vision processing unit 11E calculates a first background transformation matrix that moves the position of the background in the background frame n to the position of the background in the background frame n+1 based on the measurement result of the second motion measurement unit 111C. The high-speed vision processing unit 11E performs affine transformation on the background frame n using the calculated first background transformation matrix, and generates a background tracking image that tracks the position of the background moving between two background frames (i.e., background frame n and background frame n+1).

[0222] The high-speed vision processing unit 11E may further calculate the first background transformation matrix by using the position information of the servo motor 15A output from the servo control unit 13 (for example, information on the rotation angle of the servo motor 15A, gyro information indicating the position information of the servo motor 15A, etc.). In such a case, the high-speed vision processing unit 11E calculates the first background transformation matrix used for generating the tracking image by the second movement measurement unit 111C based on the position information of the servo motor 15A and the estimated position of the background that appears in the next background frame to be captured (i.e., the next background frame n+1).

[0223] In addition, the high-speed vision processing unit 11E may further use position information of the servo motor 15A output from the servo control unit 13 (e.g., information regarding the rotation angle of the servo motor 15A, gyro information indicating the position information of the servo motor 15A, etc.) to calculate each of the first foreground transformation matrix and the first background transformation matrix.

[0224] <Image generation process for synthesis> The high-speed vision processing unit 11E generates foreground frames (hereinafter referred to as "foreground composite images") to be used to generate a foreground composite image from foreground frames at a processing speed corresponding to the foreground frame rate (e.g., 1000 fps) of the high-speed camera 14 using the composite image generation unit 113A.

[0225] The high-speed vision processing unit 11E measures and stores the position of the foreground captured in foreground frame 0, which is the first foreground composite image and serves as a composite reference for each foreground composite image, in the composite process of the foreground composite image for generating a foreground composite image described later by the first movement measurement unit 111B. The high-speed vision processing unit 11E measures the amount of movement of the foreground between the position of the foreground captured in foreground frame n output from the high-speed camera 14 and the position of the foreground captured in foreground frame 0.

[0226] The high speed vision processing unit 11E calculates a second foreground transformation matrix for transforming the foreground frame n into a foreground compositing image used to generate a foreground composite image, based on the measured amount of foreground movement between the foreground frame n and the foreground frame 0. The high speed vision processing unit 11E transforms the foreground frame n into a foreground compositing image using the second foreground transformation matrix calculated by the compositing image generating unit 113A. This allows the high speed vision processing unit 11E to generate a foreground compositing image that can superimpose the position of the foreground captured in the foreground frame n onto the position of the foreground captured in the foreground frame 0.

[0227] The high-speed vision processing unit 11E executes compositing (superimposing) of the foreground compositing image by the frame composition unit 114. The high-speed vision processing unit 11E executes a process of generating a foreground compositing image based on the foreground frame n by the composition image generation unit 113A, and a process of compositing a foreground composite image by the frame composition unit 114A, in which the foreground compositing images of the foreground frames 0 to n-1 are composited, and a foreground compositing image based on the foreground frame n, a predetermined number of times, to generate a foreground composite image by compositing a predetermined number of foreground compositing images (i.e., foreground frames). The high-speed vision processing unit 11E outputs the generated foreground composite image to the communication unit 10, and causes it to be transmitted to the low-speed vision processing device P2A.

[0228] Moreover, the high-speed vision processing unit 11E, in the synthesis process of background synthesis images for generating a background synthesis image described later, measures and stores the position of the background captured in background frame 0, which is the first background synthesis image and serves as a synthesis reference for each background synthesis image, by the second motion measurement unit 111C. The high-speed vision processing unit 11E measures the amount of movement of the background between the position of the background captured in background frame n output from the high-speed camera 14 and the position of the background captured in background frame 0.

[0229] The high-speed vision processing unit 11E calculates a second background transformation matrix for transforming the background frame n into an image for background synthesis used for generating a background synthesis image based on the measured amount of movement of the background between the background frame n and the background frame 0. The high-speed vision processing unit 11E transforms the background frame n into an image for background synthesis using the second background transformation matrix calculated by the image for synthesis generating unit 113A. This allows the high-speed vision processing unit 11E to generate an image for background synthesis that can superimpose the position of the background appearing in the background frame n onto the position of the background appearing in the background frame 0.

[0230] The high-speed vision processing unit 11E executes synthesis (superimposition) of the background synthesis image by the frame synthesis unit 114. The high-speed vision processing unit 11E executes a predetermined number of times the generation process of the background synthesis image based on the background frame n by the synthesis image generation unit 113A and the synthesis process of the foreground synthesis image in which the background synthesis images of the background frames 0 to n-1 are synthesized by the frame synthesis unit 114A and the background synthesis image based on the background frame n, thereby generating a background synthesis image in which a predetermined number of background synthesis images (i.e., background frames) are synthesized. The high-speed vision processing unit 11E outputs the generated background synthesis image to the communication unit 10 and causes it to be transmitted to the low-speed vision processing device P2A.

[0231] In addition, the generation of the foreground composite image and the background composite image is not essential and may be omitted. In such a case, the high-speed vision processing unit 11E outputs any one of the foreground frame and the background frame to the communication unit 10 and transmits it to the low-speed vision processing device P2A.

[0232] Next, an operation procedure of the high-speed image processing system 100A according to the second embodiment will be described with reference to Fig. 20. Fig. 20 is a sequence diagram showing an example of the overall operation procedure of the high-speed image processing system 100A according to the second embodiment.

[0233] The high-speed vision processing unit 11E sets the positions of the foreground (object Tg) and background captured in a frame captured by the high-speed camera 14 as initial positions (St11).

[0234] After the process of step St11, the high-speed image processing system 100A repeatedly executes a loop process LPA in which a first loop process LP1A and a second loop process LP2A are executed in parallel.

[0235] First, the first loop process LP1A will be described. The first loop process LP1A is a process that is repeatedly executed a number of times that is a multiple of the frame rate of the high-speed camera 14. After executing each of the processes of steps St12 to St13 and step St17, the first loop process LP1A executes in parallel and substantially simultaneously the foreground tracking image generation process and correction amount calculation process (St300A) and the background tracking image generation process and correction amount calculation process (St300B) shown in step St300, and executes each of the processes of steps St14A to St16A (PAR11). In addition, the first loop process LP1A executes in parallel with the parallel process PAR11 the foreground synthesis image generation process (St400A) and the background synthesis image generation process (St400B) shown in step St400, in parallel and substantially simultaneously (PAR12). That is, the parallel processing PAR11 and the parallel processing PAR12 are processes executed in parallel, and are high-speed processes corresponding to the frame rate of the high-speed camera 14 (for example, 1000 fps).

[0236] In the parallel processing PAR11 of the first loop processing LP1A, the high-speed camera 14 captures an image of an area including an object Tg at high speed (for example, 1000 fps) (St12) and outputs the captured frame 0 to the high-speed vision processing unit 11E (St13).

[0237] The high-speed vision processing unit 11E detects pixels in the foreground region and pixels in the background region from frame 0 captured by the high-speed camera 14. The high-speed vision processing unit 11E separates the pixels in the foreground region and the pixels in the background region detected from the frame, and generates a foreground frame and a background frame, respectively (St17).

[0238] The high-speed vision processing unit 11E executes in parallel (St300) a foreground tracking image generation process and a correction amount calculation process (step St300A) using the generated (separated) foreground frame, and a background tracking image generation process and a correction amount calculation process (step St300B) using the background frame.

[0239] The high-speed vision processing unit 11E outputs to the servo control unit 13 (St14A) the correction amount for the target position of the servo motor 15A obtained by the foreground tracking image generation process and the correction amount calculation process (step St300A) and the background tracking image generation process using the background frame and the correction amount calculation process (step St300B).

[0240] The servo control unit 13 generates a control command for correcting the position of the servo motor 15A based on the correction amount of the target position output from the high-speed vision processing unit 11E (St15A). The servo control unit 13 outputs the generated control command (an example of a second control command) to the actuator 15 (St16A).

[0241] In addition, in the parallel processing PAR12 of the first loop processing LP11, the high-speed vision processing unit 11E executes in parallel (St400) a foreground synthesis image generation process using the generated (separated) foreground frame (step St400A) and a background synthesis image generation process using the background frame (step St400B).

[0242] In the second loop processing LP2A, the high-speed vision processing unit 11E transmits the foreground composite image generated by the foreground composite image generation processing (step St400A) and the background composite image generated by the background composite image generation processing (step St400B) to the low-speed vision processing device P2A (St21A). Note that in the processing of step St21A, if the foreground composite image generation processing of step St400A and the background composite image generation processing of step St400B are omitted, the high-speed vision processing unit 11E transmits any one of the foreground frame and background frame output from the high-speed camera 14 to the low-speed vision processing device P2 instead of the foreground composite image and the background composite image, respectively.

[0243] The low-speed vision processing device P2A acquires each of the foreground composite image and the background composite image transmitted from the high-speed vision processing unit 11E. The low-speed vision processing device P2A executes image recognition processing on the acquired images for foreground synthesis to detect the position of the foreground from the images for foreground synthesis (St22A). The low-speed vision processing device P2A executes image recognition processing on the acquired images for background synthesis to detect the position of the background from the images for background synthesis (St22A). The low-speed vision processing device P2A transmits position information of the detected foreground and position information of the background to the high-speed vision processing unit 11E (St23A).

[0244] The high-speed vision processing unit 11E calculates a target position of the servo motor 15A based on the foreground position information transmitted from the low-speed vision processing device P2A, and a target position of the servo motor 15A based on the background position information. The high-speed vision processing unit 11E calculates a correction amount (an example of a third correction amount) of the target of the servo motor 15A based on the calculated foreground position information, and a correction amount (an example of a fourth correction amount) of the target of the servo motor 15A based on the calculated background position information (St24A), and outputs them to the servo control unit 13 (St25).

[0245] The servo control unit 13 generates a control command for correcting the position of the servo motor 15A to the target position based on the correction amount of the target position transmitted from the high-speed vision processing unit 11E (St26). The servo control unit 13 outputs the generated control command (an example of a first control command) to the actuator 15 to execute the position correction of the servo motor 15A (St27).

[0246] As described above, the high-speed image processing system 100A according to the second embodiment is capable of performing parallel processing of measuring the amount of motion of the foreground and background based on the foreground and background frames (parallel processing PAR11) and generating the foreground and background composite images (parallel processing PAR12), which is high-speed processing corresponding to the frame rate (e.g., 1000 fps) of the high-speed camera 14. The high-speed image processing system 100A is also capable of performing parallel processing of a first loop processing LP1A including each of the parallel processing PAR11 and PAR12, and a second loop processing LP2A including a recognition process of the positions of the foreground and background based on the foreground and background composite images, which is low-speed processing slower (e.g., 60 fps) than the frame rate (e.g., 1000 fps) of the high-speed camera 14.

[0247] As a result, the high-speed image processing system 100A according to the second embodiment can remove (correct) shaking of the working device P1 or the high-speed camera 14 relative to the background (reference position) caused by disturbance, by performing high-speed image processing on the foreground frames and background frames captured by the high-speed camera 14. Also, the high-speed image processing system 100A can correct the position of the working device P1 or the high-speed camera 14 relative to the background (reference position) in real time by performing low-speed image processing on a background composite image obtained by combining multiple background frames, and can correct the position of the object Tg (foreground) in real time by performing low-speed image processing on a foreground composite image obtained by combining multiple foreground frames.

[0248] Therefore, the high-speed image processing system 100A according to the second embodiment can maintain the relative positional relationship between the working device P1 (the high-speed camera 14 and the servo motor 15A) and the object Tg, and can correct or adjust the relative positional relationship so that a specified task can be performed on the object Tg.

[0249] Specifically, when the working device P1 is a drone equipped with a robotic arm and performs a specified task on an object Tg in an environment with external disturbances such as wind, the working device P1 can individually perform control of the robotic arm in accordance with the amount of sway of the object Tg based on first target position information regarding the foreground and the position of the object Tg based on second target position information regarding the foreground, and flight control in accordance with the amount of sway of the high-speed camera 14 (i.e., the working device P1) based on the first target position information regarding the background and the position of the high-speed camera 14 (i.e., the working device P1) based on the second target position information regarding the background.

[0250] Next, a procedure example of the foreground tracking image generation process and the correction amount calculation process (step St300) of the high speed vision processing unit 11E will be described with reference to Fig. 21. Fig. 21 is a sequence diagram showing a procedure example of the foreground tracking image generation process and the correction amount calculation process of the high speed vision processing unit 11E in the second embodiment.

[0251] The first motion measurement unit 111B estimates the position of the foreground (object Tg) in foreground frame n+1 (i.e., the (n+1)th foreground frame) captured after foreground frame n (i.e., the nth foreground frame), and measures the amount of foreground movement between foreground frames n and n+1 based on the estimated position of the foreground. The first motion measurement unit 111B calculates and sets a first foreground transformation matrix for transforming the position of the foreground captured in foreground frame n to the position of the foreground captured in foreground frame n+1 captured after foreground frame n (St301A). The first motion measurement unit 111B outputs the set first foreground transformation matrix to the tracked image generation unit 112 (St302A).

[0252] Here, the first motion measurement unit 111B may estimate the estimated position of the foreground by assuming that the object Tg in the foreground or the working device P1 (high-speed camera 14) is moving at a constant speed in a straight line. In this case, since the foreground frames are captured at a high speed (e.g., 1000 fps), the first motion measurement unit 111B can acquire the amount of change in the position of the object Tg between foreground frame n and foreground frame n+1 and information on the acceleration of the object Tg.

[0253] The tracking image generating unit 112A acquires the first foreground transformation matrix output from the first motion measuring unit 111B. The tracking projective transformation address generating unit 1121 in the tracking image generating unit 112A transforms the entire foreground frame n based on the acquired first foreground transformation matrix, and generates an address for tracking the foreground shown in the foreground frame n. The tracking image generating unit 112A generates a control command requesting the reading of the foreground frame n based on the address, and transmits the control command to the tracking frame buffer 12A (St303A).

[0254] The tracking frame buffer 12A reads out the foreground frame n corresponding to the address from among the stored foreground frames based on the control command output from the tracking image generating unit 112A (St304A). The tracking frame buffer 12A outputs the read out foreground frame n to the tracking image generating unit 112A (St305A).

[0255] The tracking image generating unit 112A acquires the foreground frame n output from the tracking frame buffer 12A. The image conversion unit 1122 in the tracking image generating unit 112A converts the foreground frame n using a first foreground transformation matrix (St306A). The tracking image generating unit 112 outputs the converted foreground frame n to the first motion measuring unit 111B (St307A). Note that the foreground frame output to the first motion measuring unit 111B in the process of step St307A may be pixel data obtained by cutting out an area including at least a part of the foreground.

[0256] The high-speed camera 14 captures an image of the object Tg (St308). The high-speed camera 14 transmits frame n+1 to the first motion measurement unit 111B (St309), and separates pixel data included in the foreground area from pixel data included in the background area from frame n+1 to generate a foreground frame and a background frame (St316). The high-speed camera 14 transmits the generated foreground frame to the tracking frame buffer 12A (St317A).

[0257] The tracking frame buffer 12A writes and stores the foreground frame n+1 transmitted from the high-speed camera 14 (St311A).

[0258] First motion measurement unit 111B compares foreground frame n+1 with transformed foreground frame n, and measures the amount of foreground movement between foreground frame n and foreground frame n+1 (i.e., the foreground position difference) based on the difference in the positions of the foreground captured in each foreground frame (St312A). Note that here, first motion measurement unit 111B may extract pixel data of an area including at least a pixel corresponding to the estimated position from each of foreground frame n+1 and transformed foreground frame n, based on the estimated position of the foreground estimated using foreground frame n, and measure the amount of movement of the foreground position from the extracted pixel data.

[0259] The first movement measurement unit 111B calculates the corrected position of the servo motor 15A (hereinafter, referred to as the "first foreground target position") based on the measured amount of movement of the foreground (St313A). The first movement measurement unit 111B generates first foreground target position information including the calculated first foreground target position, and outputs it to the target position correction unit 115 (St314A).

[0260] The target position correction unit 115 calculates a correction amount (an example of a first correction amount) for correcting the position of the servo motor 15A based on the first foreground target position information output from the first movement measurement unit 111B (St315A).

[0261] As described above, the high-speed vision processing unit 11E in the second embodiment converts the foreground frame n based on the estimated position of the foreground captured in the next foreground frame n+1, thereby speeding up the measurement process of the amount of movement of the foreground captured between two foreground frames. As a result, the high-speed vision processing unit 11E can perform high-speed image processing of the foreground frames captured by the high-speed camera 14, and can calculate and output in real time the amount of correction for correcting the position of the servo motor 15A relative to the foreground caused by the shaking of the high-speed camera 14, etc.

[0262] The servo control unit 13 drives the servo motor 15A of the actuator 15, which can be driven at a frequency on the order of kHz higher than the foreground frame rate of the high-speed camera 14, based on the correction amount of the target position calculated by the high-speed vision processing unit 11E, thereby correcting the position of the working device P1 (high-speed camera 14) based on the position of the servo motor 15A so that it can follow the foreground.

[0263] Next, a procedure example of the background tracking image generation process and the correction amount calculation process (step St300) of the high speed vision processing unit 11E will be described with reference to Fig. 22. Fig. 22 is a sequence diagram showing a procedure example of the background tracking image generation process and the correction amount calculation process of the high speed vision processing unit 11E in the second embodiment.

[0264] The second motion measurement unit 111C estimates the position of the background in background frame n+1 (i.e., the (n+1)th background frame) captured after background frame n (i.e., the nth background frame), and measures the amount of background movement between background frames n and n+1 based on the estimated position of the background. The second motion measurement unit 111C calculates and sets a first background transformation matrix for transforming the position of the background captured in background frame n to the position of the background captured in background frame n+1 captured after background frame n (St301B). The second motion measurement unit 111C outputs the set first background transformation matrix to the tracking image generation unit 112 (St302B).

[0265] Here, the second motion measurement unit 111C may estimate the estimated position of the background by assuming that the background or the working device P1 (high-speed camera 14) is moving linearly at a constant speed. In this case, since the background frames are captured at high speed (e.g., 100 A0 fps), the second motion measurement unit 111C can acquire the amount of change in the position of the background (i.e., the position of the high-speed camera 14) between background frame n and background frame n+1 and information on the acceleration of the background (i.e., the high-speed camera 14).

[0266] The tracking image generating unit 112A acquires the first background transformation matrix output from the second motion measuring unit 111C. The tracking projective transformation address generating unit 1121 in the tracking image generating unit 112A transforms the entire area of ​​the background frame n based on the acquired first background transformation matrix, and generates an address for tracking the background appearing in the background frame n. The tracking image generating unit 112A generates a control command requesting the reading of the background frame n based on the address, and transmits the control command to the tracking frame buffer 12A (St303B).

[0267] The tracking frame buffer 12A reads out the background frame n corresponding to the address from among the stored background frames based on the control command output from the tracking image generating unit 112A (St304B). The tracking frame buffer 12A outputs the read out background frame n to the tracking image generating unit 112A (St305B).

[0268] The tracking image generating unit 112A acquires the background frame n output from the tracking frame buffer 12A. The image conversion unit 1122 in the tracking image generating unit 112A converts the background frame n using a first background conversion matrix (St306B). The tracking image generating unit 112 outputs the converted background frame n to the second motion measuring unit 111C (St307B). Note that the background frame output to the second motion measuring unit 111C in the process of step St307B may be pixel data obtained by cutting out an area including at least a part of the background.

[0269] The high-speed camera 14 captures an image of the object Tg (St308). The high-speed camera 14 transmits frame n+1 to the second motion measurement unit 111C (St309), and separates pixel data included in the background region from frame n+1 and pixel data that also includes the background region to generate a background frame and a background frame (St316). The high-speed camera 14 transmits the generated background frame to the tracking frame buffer 12A (St317B).

[0270] The tracking frame buffer 12A writes and stores the background frame n+1 transmitted from the high-speed camera 14 (St311B).

[0271] The second motion measurement unit 111C compares background frame n+1 with the converted background frame n, and measures the amount of background movement between background frame n and background frame n+1 (i.e., the background position difference) based on the difference in the position of the background in each background frame (St312B). Note that here, the second motion measurement unit 111C may extract pixel data of an area including at least a pixel corresponding to the estimated position from each of background frame n+1 and converted background frame n based on the estimated position of the background estimated using background frame n, and measure the amount of movement of the background position from the extracted pixel data.

[0272] The second motion measurement unit 111C calculates the corrected position of the servo motor 15A (hereinafter referred to as the "first background target position") based on the measured amount of movement of the background (St313B). The second motion measurement unit 111C generates first background target position information including the calculated first background target position, and outputs it to the target position correction unit 115 (St314B).

[0273] The target position correction unit 115 calculates a correction amount (an example of a second correction amount) for correcting the position of the servo motor 15A based on the first background target position information output from the second movement measurement unit 111C (St315B).

[0274] As described above, the high-speed vision processing unit 11E in the second embodiment converts the background frame n based on the estimated position of the background in the next background frame n+1, thereby speeding up the measurement process of the amount of movement of the background between two background frames. As a result, the high-speed vision processing unit 11E can perform high-speed image processing of the background frames captured by the high-speed camera 14, and can calculate and output in real time the amount of correction for correcting the position of the servo motor 15A relative to the background (reference position) caused by the shaking of the working device P1 or the high-speed camera 14, etc.

[0275] The servo control unit 13 can correct the position of the working device P1 relative to the background in real time by driving the servo motor 15A of the actuator 15, which can be driven at a frequency on the order of kHz higher than the background frame rate of the high-speed camera 14, based on the correction amount of the target position calculated by the high-speed vision processing unit 11E.

[0276] Next, a procedure example of the foreground synthesis image generation processing (step St400A) of the high speed vision processing unit 11E will be described with reference to Fig. 23. Fig. 23 is a sequence diagram showing a procedure example of the foreground synthesis image generation processing of the high speed vision processing unit 11E in the second embodiment.

[0277] First motion measurement unit 111B calculates a second foreground transformation matrix that moves the position of the foreground in foreground frame n to the position of the foreground in foreground frame 0 based on the position of the foreground in foreground frame n, and calculates and sets a second foreground transformation matrix for transforming the position of the foreground in foreground frame n and the position of the foreground in foreground frame 0 (St401A). First motion measurement unit 111B outputs the set second foreground transformation matrix to composite image generation unit 113A (St402A). Note that foreground frame 0 here is the first foreground frame used to generate a foreground composite image, and is the foreground frame set as the reference position of the foreground to be composited by the composite process.

[0278] Synthesis image generating unit 113A acquires the second foreground transformation matrix output from first motion measuring unit 111B. Projective transformation address generating unit 1131 for image recognition in synthesis image generating unit 113A transforms the entire area of ​​foreground frame n based on the acquired second foreground transformation matrix, and generates an address for tracking the foreground appearing in foreground frame n. Synthesis image generating unit 113A generates a control command requesting the reading of foreground frame n based on the address, and transmits the control command to tracking frame buffer 12A (St403A).

[0279] Based on the control command output from the composite image generating unit 113A, the tracking frame buffer 12A reads out the foreground frame n corresponding to the address from among the stored foreground frames (St404A). The tracking frame buffer 12A outputs the read out foreground frame n to the composite image generating unit 113A (St405A).

[0280] The projective transformation address generation unit for image recognition 1131 in the image to be synthesized generation unit 113A uses the acquired second foreground transformation matrix to transform the entire foreground frame n so as to match the position of the foreground in foreground frame n to the position of the foreground in foreground frame 0 (St406A).

[0281] The image for synthesis generating unit 113A outputs the image for foreground synthesis corresponding to the foreground frame n to the frame synthesis unit 114 (St407A). Note that the image for foreground synthesis output to the frame synthesis unit 114 in the process of step St407A may be pixel data obtained by cutting out an area including at least a part of the foreground.

[0282] Frame synthesis unit 114 generates a control command requesting the reading of a foreground synthesis image synthesized with the foreground synthesis image corresponding to foreground frame n and the foreground synthesis images corresponding to foreground frames 0 to n-1, and outputs the control command to synthesis frame buffer 12B (St408A).

[0283] In addition, when the foreground synthesis image output from synthesis image generation unit 113A is a synthesis of a foreground synthesis image corresponding to foreground frame 0, frame synthesis unit 114 generates a control command requesting writing of the foreground synthesis image corresponding to foreground frame 0, and outputs the control command to synthesis frame buffer 12B.

[0284] The synthesis frame buffer 12B reads out the foreground synthesis image (St409A) based on the control command output from the frame synthesis unit 114. The synthesis frame buffer 12B outputs the read out foreground synthesis image to the frame synthesis unit 114 (St410A).

[0285] Frame composition unit 114 composes the foreground composition image output from composition frame buffer 12B with the foreground composition image corresponding to foreground frame n (St411A), generates a control command requesting writing of the foreground composition image after composition, and outputs it to composition frame buffer 12B in association with the foreground composition image (St412A). Composition frame buffer 12B executes writing of the foreground composition image output from frame composition unit 114 (St413A).

[0286] The frame composition unit 114 determines whether or not a predetermined number of foreground composition images (for example, 16 images) have been composed (St414A).

[0287] If the frame synthesis unit 114 determines in the processing of step St414A that a predetermined number of foreground synthesis images have been synthesized (St414A, YES), it generates a control command to transmit a foreground synthesis image synthesized from the predetermined number of foreground synthesis images to the low-speed vision processing device P2, and outputs the control command to the synthesis frame buffer 12B (St415A).

[0288] When the frame synthesis unit 114 determines in the process of step St414A that the predetermined number of foreground synthesis images have not been synthesized (St414A, NO), it omits the generation of a control command to transmit the foreground synthesis image synthesized with the predetermined number of foreground synthesis images to the low-speed vision processing device P2A. The high-speed vision processing unit 11E returns to the process of step St401A.

[0289] As described above, the high-speed vision processing unit 11E in the second embodiment can generate a foreground frame (foreground composite image) with an exposure time corresponding to the number of composite images by transforming and synthesizing the foreground frames captured by the high-speed camera 14 using the second foreground transformation matrix. In other words, the high-speed vision processing unit 11E can generate a foreground composite image in which the shaking (blur) caused by disturbance of the foreground frame or a short exposure time is effectively removed. As a result, the high-speed vision processing unit 11E can generate a foreground composite image suitable for the image recognition processing executed by the low-speed vision processing device P2A.

[0290] Next, a procedure example of the background synthesis image generation processing (step St400B) of the high speed vision processing unit 11E will be described with reference to Fig. 24. Fig. 24 is a sequence diagram showing a procedure example of the background synthesis image generation processing of the high speed vision processing unit 11E in the second embodiment.

[0291] The second motion measurement unit 111C calculates a second background transformation matrix that moves the position of the background in background frame n to the position of the background in background frame 0 based on the position of the background in background frame n, and calculates and sets a second background transformation matrix for transforming the position of the background in background frame n and the position of the background in background frame 0 (St401B). The second motion measurement unit 111C outputs the set second background transformation matrix to the composite image generation unit 113A (St402B). Note that the background frame 0 here is the first background frame used to generate a background composite image, and is the background frame set as the reference position of the background to be composited by the composite process.

[0292] The composite image generating unit 113A acquires the second background transformation matrix output from the second motion measuring unit 111C. The composite image generating unit 113A's projective transformation address generating unit 1131 for image recognition transforms the entire area of ​​the background frame n based on the acquired second background transformation matrix, and generates an address for tracking the background appearing in the background frame n. The composite image generating unit 113A generates a control command requesting the reading of the background frame n based on the address, and transmits the control command to the tracking frame buffer 12A (St403B).

[0293] The tracking frame buffer 12A reads out the background frame n corresponding to the address from among the stored background frames based on the control command output from the composite image generating unit 113A (St404B). The tracking frame buffer 12A outputs the read out background frame n to the composite image generating unit 113A (St405B).

[0294] The image recognition projective transformation address generation unit 1131 in the composite image generation unit 113A uses the acquired second background transformation matrix to transform the entire background frame n so as to align the position of the background appearing in background frame n with the position of the background appearing in background frame 0 (St406B).

[0295] The composite image generating unit 113A outputs the background composite image corresponding to the background frame n to the frame composite unit 114 (St407B). Note that the background composite image output to the frame composite unit 114 in the process of step St407B may be pixel data obtained by cutting out an area including at least a part of the background.

[0296] The frame synthesis unit 114 generates a control command requesting the reading of a background synthesis image synthesized with the background synthesis image corresponding to background frame n and the background synthesis images corresponding to background frames 0 to n-1, and outputs the control command to the synthesis frame buffer 12B (St408B).

[0297] In addition, when the background synthesis image output from the synthesis image generation unit 113A is a synthesis of a background synthesis image corresponding to background frame 0, the frame synthesis unit 114 generates a control command requesting writing of the background synthesis image corresponding to background frame 0 and outputs it to the synthesis frame buffer 12B.

[0298] The synthesis frame buffer 12B reads out the background synthesis image (St409B) based on the control command output from the frame synthesis unit 114. The synthesis frame buffer 12B outputs the read out background synthesis image to the frame synthesis unit 114 (St410B).

[0299] The frame synthesis unit 114 synthesizes the background synthesis image output from the synthesis frame buffer 12B with the background synthesis image corresponding to background frame n (St411B), generates a control command requesting writing of the synthesized background synthesis image, and outputs it to the synthesis frame buffer 12B in association with the background synthesis image (St412B). The synthesis frame buffer 12B executes writing of the background synthesis image output from the frame synthesis unit 114 (St413B).

[0300] The frame synthesis unit 114 determines whether or not a predetermined number of images for background synthesis (for example, 16 images) have been synthesized (St414B).

[0301] If the frame synthesis unit 114 determines in the processing of step St414B that a predetermined number of background synthesis images have been synthesized (St414B, YES), it generates a control command to transmit a background synthesis image synthesized with the predetermined number of background synthesis images to the low-speed vision processing device P2, and outputs it to the synthesis frame buffer 12B (St415B).

[0302] When the frame synthesis unit 114 determines that the predetermined number of background synthesis images have not been synthesized in the process of step St414B (St414B, NO), the frame synthesis unit 114 omits the generation of a control command to transmit a background synthesis image in which the predetermined number of background synthesis images have been synthesized to the low-speed vision processing device P2A. The high-speed vision processing unit 11E returns to the process of step St401B.

[0303] As described above, the high-speed vision processing unit 11E in the second embodiment can generate a background frame (background composite image) with an exposure time corresponding to the number of composite images by converting and synthesizing the background frames captured by the high-speed camera 14 using the second background transformation matrix. In other words, the high-speed vision processing unit 11E can generate a background composite image in which disturbances of the background frames and shaking (blur) caused by a short exposure time are effectively removed. As a result, the high-speed vision processing unit 11E can generate a background composite image suitable for image recognition processing executed by the low-speed vision processing device P2A.

[0304] As described above, the arithmetic device P11A in the second embodiment is capable of communicating between the servo motor 15A (an example of a drive device) and the high-speed camera 14 (an example of a camera), acquires a plurality of frames captured by the high-speed camera 14, generates a plurality of foreground frames (an example of a subject frame) by separating the foreground (an example of a subject) from the plurality of frames, and a plurality of background frames (an example of a reference frame) by separating the background (an example of a reference position of the camera) from the plurality of frames, measures a first amount of movement of the foreground between the plurality of foreground frames, and calculates a first correction amount (i.e., a shake correction amount of the target object Tg) for correcting the position of the servo motor 15A based on the measured first amount of movement of the foreground, and performs a first high-speed vision process of measuring a second amount of movement of the background between the plurality of background frames, and calculating a second correction amount (i.e., a shake correction amount of the target object Tg) based on the measured second amount of movement of the background. The system executes a second high-speed vision process that calculates a second correction amount (i.e., a shake correction amount of the high-speed camera 14) for correcting the position of the servo motor 15A, a first low-speed vision process that has a processing cycle longer than the processing cycles of the first high-speed vision process and the second high-speed vision process and calculates a third correction amount (i.e., a position correction amount of the servo motor 15A based on the position of the object Tg) for correcting the position of the servo motor 15A based on the recognized position of the foreground captured in at least one foreground frame, and a second low-speed vision process that calculates a fourth correction amount (i.e., a position correction amount of the servo motor 15A based on the position of the high-speed camera 14) for correcting the position of the servo motor 15A based on the recognized position of the background captured in at least one background frame, and generates a control command based on the first correction amount, the second correction amount, the third correction amount, and the fourth correction amount and outputs it to the servo motor 15A.

[0305] As a result, the arithmetic device P11A in the second embodiment can perform parallel processing of measuring the amount of movement of the foreground and background based on the foreground and background frames (parallel processing PAR11) and generating the foreground and background composite images (parallel processing PAR12), which are high-speed processing corresponding to the frame rate (e.g., 1000 fps) of the high-speed camera 14. The arithmetic device P11A can also perform a first loop processing LP1A including each of the parallel processing PAR11 and PAR12, and a second loop processing LP2A including a recognition process of the positions of the foreground and background based on the foreground and background composite images, which is low-speed processing (e.g., 60 fps) lower than the frame rate (e.g., 1000 fps) of the high-speed camera 14. In other words, the arithmetic device P11A can remove (correct) the shaking of the working device P1 or the high-speed camera 14 relative to the background (reference position) caused by disturbance by performing high-speed image processing on the foreground and background frames captured by the high-speed camera 14. Therefore, the actuator 15 can perform a predetermined task on the object Tg without temporarily stopping or slowing down the task speed until the object Tg is recognized by the image recognition process, thereby improving the task efficiency.

[0306] Moreover, the arithmetic device P11A in the second embodiment generates a first control command based on the first correction amount, the second correction amount, the third correction amount, and the fourth correction amount, or a second control command based on the first correction amount and the second correction amount, and outputs it to the servo motor 15A. As a result, the arithmetic device P11A in the second embodiment can perform removal (correction) of shaking of the working device P1 and the high-speed camera 14 relative to the background (reference position) caused by disturbance based on high-speed processing corresponding to the frame rate (e.g., 1000 fps) of the high-speed camera 14, and position correction of the servo motor 15A based on more accurate position recognition of the object Tg and the high-speed camera 14 obtained by image recognition processing (i.e., low-speed processing) at a speed (e.g., 60 fps) lower than the frame rate (e.g., 1000 fps) of the high-speed camera 14.

[0307] Moreover, the first control command in the second embodiment is output in response to the processing cycle of the first low-speed vision processing and the second low-speed vision processing. The second control command is output in response to the processing cycle of the first high-speed vision processing and the second high-speed vision processing. This allows the arithmetic device P11A in the second embodiment to correct the position of the servo motor 15A in a cycle corresponding to the frame rate of the high-speed camera 14, thereby eliminating the shaking of the high-speed camera 14.

[0308] In addition, the first amount of movement of the foreground in the second embodiment is measured by estimating the position of the foreground in the (N+1)th foreground frame captured next to the Nth (N: an integer equal to or greater than 1) foreground frame, and based on the estimated position of the foreground and the position of the foreground in the (N+1)th foreground frame. The second amount of movement of the background is measured by estimating the background in the (N+1)th background frame captured next to the Nth background frame, and based on the estimated position of the background and the background in the (N+1)th background frame. As a result, the arithmetic device P11A in the second embodiment can speed up the measurement process of the first amount of movement of the foreground between two foreground frames captured in succession and the second amount of movement of the background between two background frames captured in succession in high-speed processing, and can calculate and output in real time a correction amount for correcting the position of the servo motor 15A relative to the object Tg caused by the shaking of the high-speed camera 14 or the like.

[0309] Moreover, the arithmetic device P11A in the second embodiment transmits at least one foreground frame and at least one background frame to a low-speed vision processing device P2A (an example of an external device) capable of communicating with the arithmetic device P11A and recognizing the foreground and background, and acquires the recognized position of the foreground and the recognized position of the background from the low-speed vision processing device P2A. This allows the arithmetic device P11A in the second embodiment to perform more accurate position recognition of the object Tg included in the foreground using the foreground composite image by the low-speed vision processing device P2A. The arithmetic device P11A can correct the position of the servo motor 15A with higher accuracy by using the position of the object Tg obtained by low-speed processing and the shaking amount of the high-speed camera 14 obtained by high-speed processing.

[0310] Moreover, the calculation device P11A in the second embodiment generates a foreground composite image (an example of a subject composite image) by combining K (K: an integer of 3 or more) foreground frames, calculates a third correction amount based on the recognized position of the object Tg appearing in the foreground composite image, generates a background composite image (an example of a reference composite image) by combining K background frames, and calculates a fourth correction amount based on the recognized position of the object Tg appearing in the background composite image. As a result, the calculation device P11A in the second embodiment can correct the positions of the working device P1 and the high-speed camera 14 relative to the background (reference position) in real time by performing low-speed image processing on the background composite image obtained by combining multiple background frames, and can correct the position of the object Tg (foreground) in real time by performing low-speed image processing on the foreground composite image obtained by combining multiple foreground frames. Therefore, the calculation device P11A can generate images (foreground composite image and background composite image) that are more suitable for the image recognition processing executed by the low-speed vision processing device P2A, and can perform more accurate position recognition of the object Tg and the high-speed camera 14.

[0311] In addition, the calculation device P11A in embodiment 2, in a first low-speed vision process, estimates the position of the foreground in each of K foreground frames, measures a third amount of movement of the foreground between the 0th foreground frame and the Kth foreground frame based on the estimated position of the foreground and the position of the foreground in the 0th foreground frame that shows the background of the foreground, and executes the synthesis process K times to synthesize the Kth foreground frame with the 0th foreground frame based on the third amount of movement to generate a foreground synthetic image. In a second low-speed vision process, estimates the position of the background in each of K background frames, measures a fourth amount of movement of the background between the 0th background frame and the Kth background frame based on the estimated position of the background and the background in the 0th background frame that determines the background of the high-speed camera 14, and executes the synthesis process K times to synthesize the Kth background frame with the 0th frame based on the fourth amount of movement to generate a background synthetic image. As a result, the calculation device P11A in embodiment 2 can generate a foreground composite image and a background composite image in which blur for the object Tg, which is the recognition target in the image recognition process, is preferentially removed, thereby generating images (foreground composite image and background composite image) that are more suitable for the image recognition process executed by the low-speed vision processing device P2A.

[0312] Furthermore, the calculation device P11A in the second embodiment calculates a third correction amount based on the recognized position of the foreground and K first movement amounts corresponding to the K foreground frames used to generate the foreground composite image in the first low-speed vision process, and calculates a fourth correction amount based on the recognized position of the background and K second movement amounts corresponding to the K background frames used to generate the background composite image in the second low-speed vision process. This allows the calculation device P11A in the second embodiment to calculate the position of the high-speed camera 14 relative to the background (reference position) and the position of the object Tg relative to the position of the high-speed camera 14, and to calculate a second correction amount capable of correcting the positional deviation amount of the high-speed camera 14.

[0313] As described above, the arithmetic device P11A (an example of an image processing device) in the second embodiment includes a communication unit 10 (an example of an acquisition unit) capable of communicating between the servo motor 15A (an example of a drive device) and the high-speed camera 14 (an example of a camera) and acquiring a plurality of frames captured by the high-speed camera 14, a region division unit (an example of a separation unit) that generates a foreground frame by separating a foreground (an example of a subject) from the plurality of frames and a background frame by separating a background of the camera (an example of a reference position) from the plurality of frames, a high-speed vision processing unit 11E (an example of a first high-speed processing unit) that executes a first high-speed vision process that measures an amount of foreground movement between the plurality of foreground frames and calculates a first correction amount for correcting the position of the motor based on the measured amount of foreground movement, and a high-speed vision processing unit 11E (an example of a first high-speed processing unit) that measures an amount of background movement between the plurality of background frames and calculates a second correction amount for correcting the position of the motor based on the measured amount of background movement. The visual information processing device includes a high-speed vision processing unit 11E (an example of a second high-speed processing unit) that executes high-speed vision processing, a high-speed vision processing unit 11E (an example of a first low-speed processing unit) that executes a first low-speed vision processing that calculates a third correction amount for correcting the position of the motor based on the recognized position of the foreground at a processing cycle longer than the processing cycles of the first high-speed vision processing and the second high-speed vision processing, a high-speed vision processing unit 11E (an example of a first low-speed processing unit) that executes a second low-speed vision processing that calculates a fourth correction amount for correcting the position of the motor based on the recognized position of the background at a processing cycle longer than the processing cycles of the first high-speed vision processing and the second high-speed vision processing, and a high-speed vision processing unit 11E (an example of a control unit) that executes the first high-speed vision processing, the second high-speed vision processing, the first low-speed vision processing, and the second low-speed vision processing, and generates a control command based on the first correction amount, the second correction amount, the third correction amount, and the fourth correction amount and outputs it to the motor.

[0314] As a result, the arithmetic device P11A in the second embodiment can perform parallel processing of measuring the amount of movement of the foreground and background based on the foreground and background frames (parallel processing PAR11) and generating the foreground and background composite images (parallel processing PAR12), which are high-speed processing corresponding to the frame rate (e.g., 1000 fps) of the high-speed camera 14. The arithmetic device P11A can also perform parallel processing of a first loop processing LP1A including each of the parallel processing PAR11 and PAR12, and a second loop processing LP2A including a recognition process of the positions of the foreground and background based on the foreground and background composite images, which is low-speed processing (e.g., 60 fps) lower than the frame rate (e.g., 1000 fps) of the high-speed camera 14. That is, the arithmetic device P11A can remove (correct) the shaking of the working device P1 and the high-speed camera 14 relative to the background (reference position) caused by disturbance, by performing high-speed image processing on the foreground and background frames captured by the high-speed camera 14. Therefore, the actuator 15 can perform a predetermined task on the object Tg without temporarily stopping or slowing down the task speed until the object Tg is recognized by the image recognition process, thereby improving the task efficiency.

[0315] Although various embodiments have been described above with reference to the accompanying drawings, the present disclosure is not limited to such examples. It is clear that a person skilled in the art can conceive of various modifications, corrections, substitutions, additions, deletions, and equivalents within the scope of the claims, and it is understood that these also belong to the technical scope of the present disclosure. In addition, the components in the various embodiments described above may be arbitrarily combined within the scope of the invention. [Industrial Applicability]

[0316] INDUSTRIAL APPLICABILITY The present disclosure is useful as providing an image processing method and an image processing device that can realize high-speed imaging of an object using a high-speed camera and real-time correction of a working position with respect to the object. [Explanation of symbols]

[0317] 10. Communications Department 11, 11B, 11C, 11D, 11E High-speed vision processing unit 12. Memory 12A Tracking Frame Buffer 12B compositing frame buffer 13 Servo control section 14 High-Speed ​​Camera 15 Actuator 15A servo motor 111 Motion Measurement Unit 111B First motion measurement unit 111C Second movement measurement unit 112,112A Tracking image generation unit 113,113A Image generation unit for composition 114 Frame synthesis unit 115,115B,115C,115D,115E Target position correction section 116 Smoothing section 117 Prediction Department 118 Area division part 100,100A High-Speed ​​Image Processing System Tg Object P1 Working equipment P2, P2A Low-speed vision processing device

Claims

1. An image processing method performed by a computing device capable of communicating between a drive device and a camera that captures an image of a subject, comprising: Acquiring a plurality of frames captured by the camera; measuring a first amount of movement of the subject between the plurality of frames; a high-speed vision process for calculating a first correction amount for correcting a position of the drive device based on the measured first movement amount of the subject; A processing cycle is longer than the processing cycle of the high-speed vision processing, A low-speed vision process is executed to calculate a second correction amount for correcting a position of the drive device based on a recognized position of the subject captured in at least one of the frames; generating a control command based on at least one of the first correction amount and the second correction amount and outputting the control command to the driving device; Image processing methods.

2. The image processing method according to claim 1 , further comprising generating a first control command based on the first correction amount and the second correction amount, or a second control command based on the first correction amount, and outputting the first control command to the driving device.

3. the first control command is output in response to a processing cycle of the low-speed vision processing, The second control command is output in accordance with a processing cycle of the high-speed vision processing. The image processing method according to claim 2 .

4. transmitting at least one of the frames to an external device capable of communicating with the computing device and capable of recognizing a position of the subject; acquiring a recognition position of the subject from the external device; The image processing method according to claim 1 .

5. A composite image is generated by combining K (K: an integer of 2 or more) of the frames, calculating the second correction amount based on a recognized position of the subject appearing in the composite image; The image processing method according to claim 1 .

6. In the low speed vision processing, Estimating a position of the subject in each of the K frames; measuring a third amount of movement of the subject between the 0th frame and a Kth frame based on the estimated position of the subject and a position of the subject captured in a 0th frame indicating a reference position of the subject; repeating a synthesis process of synthesizing the K frame with the 0 frame K times based on the third amount of motion to generate the synthesized image. The image processing method according to claim 5.

7. In the low speed vision processing, calculating the second correction amount based on the recognized position of the subject and the third movement amount of the subject; The image processing method according to claim 6.

8. Acquire position information of the driving device; In the low speed vision processing, measuring the third amount of movement of the subject based on a recognized position of the subject, position information of the drive device, and a position of the subject captured in the K frame; The image processing method according to claim 6.

9. Acquire position information of the driving device; In the high-speed vision processing, estimating a position of the subject in a newest frame to be acquired next, and acquiring the newest frame; measuring the first amount of movement of the subject between two consecutive frames based on the estimated position of the subject, position information of the drive device, and the position of the subject captured in the latest frame; The image processing method according to claim 1 .

10. Calculating a third correction amount by dividing the second correction amount calculated by the low-speed vision processing by a predetermined number; omitting generation of the first control command, and generating the second control command based on the first correction amount and the third correction amount, and outputting the second control command to the drive device, the process being repeated the predetermined number of times. The image processing method according to claim 2 .

11. storing an upper correction limit for the position of the drive device that is corrected based on the first control command; when it is determined that the second correction amount calculated by the low-speed vision processing is equal to or greater than an upper correction limit for the position of the driving device, generation of the first control command is omitted, and a process of generating the second control command based on the first correction amount and the third correction amount and outputting the second control command to the driving device is repeated the predetermined number of times. The image processing method according to claim 10.

12. Estimating a recognition position of the subject to be recognized in the next low-speed vision processing; calculating a fourth amount of movement of the subject based on the recognized position of the subject captured in the at least one frame and the estimated recognized position of the subject; generating the second control command based on the first correction amount and the fourth movement amount; The image processing method according to claim 2 .

13. Calculating a third correction amount by dividing the second correction amount calculated by the low-speed vision processing by a predetermined number; Estimating a recognition position of the subject to be recognized in the next low-speed vision processing; calculating a fourth amount of movement of the subject based on the recognized position of the subject captured in the at least one frame and the estimated recognized position of the subject; generating the first control command based on the first correction amount, the third correction amount, and the fourth movement amount, and outputting the first control command to the drive device; The image processing method according to claim 2 .

14. A computing device capable of communicating between a drive device and a camera that captures an image of a subject, an acquisition unit that acquires a plurality of frames captured by the camera; a high-speed processing unit that executes high-speed vision processing to calculate a first correction amount for correcting a position of the drive device based on an amount of movement of the subject between the plurality of frames; a low-speed processing unit that executes low-speed vision processing at a processing cycle longer than the processing cycle of the high-speed vision processing, the low-speed processing calculating a second correction amount for correcting a position of the drive device based on a recognized position of the subject; a control unit that generates a control command based on at least one of the first correction amount and the second correction amount and outputs the control command to the driving device. Image processing device.

Citation Information

Patent Citations

  • Camera shake correcting method and image system

    JP2006094560A

  • Hand shake correcting method, program for hand shake correcting method, recording medium where program for hand shake correcting method is recorded, and hand shake correcting device

    JP2008005109A

  • Location estimation device, location estimation method, and program recording medium

    WO2019021412A1