Image processing method and image processing system

The synchronization of camera imaging and servo motor readout times in the image processing system enhances tracking accuracy by aligning imaging and encoder readout times, addressing positional deviations in conventional systems.

JP2024142199APending Publication Date: 2024-10-10PANASONIC INTELLECTUAL PROPERTY MANAGEMENT CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Conventional robot control systems fail to synchronize the imaging timing of a camera with the readout timing of encoder values, leading to potential positional deviations during movement control and reduced tracking accuracy of target objects.

Method used

An image processing method and system that synchronizes a camera and servo motor by aligning imaging times with encoder readout times, using a controller to adjust timing and process position information to drive the servo motor accurately.

Benefits of technology

Improves tracking accuracy for target objects by ensuring precise alignment of imaging and encoder readout times, allowing for real-time control and correction of positional deviations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024142199000001_ABST
    Figure 2024142199000001_ABST
Patent Text Reader

Abstract

To improve follow-up accuracy to an object by synchronizing a camera and a servo motor.SOLUTION: An image processing method includes at least one image processing device and at least one controller which is communicable with the image processing device and controls the servo motor for moving the position of the camera, executes time adjustment by a reference time, images a subject at a predetermined time on the basis of the reference time, acquires the position information of the servo motor at the predetermined time on the basis of the reference time, detects the subject from at least a part of pixels in a frame on the basis of the frame of the imaged subject and the position information of the servo motor, and drives the servo motor on the basis of the position of the detected subject.SELECTED DRAWING: Figure 4
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 system. [Background technology]

[0002] Patent Document 1 discloses a robot control device that controls a movable part of a robot using a second command value obtained by adding up first command values ​​that move an end point of the movable part. The robot control device tracks a target based on an image acquired by an imaging device. [Prior art documents] [Patent documents]

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

[0004] However, in the configuration of Patent Document 1, control is not executed to align the imaging timing (imaging time) of a frame captured by an imaging device with the readout timing (time) of the encoder value, so the position of the robot arm at the imaging time is unknown, and there is a possibility that a position shift occurs in the movement control that moves the current position to a target position. Similarly, when tracking a target based on the position of an endpoint captured in a frame and the position of the target, a conventional robot control device does not execute control to align the imaging timing (imaging time) of a frame with the readout timing (time) of the encoder value, so there is a possibility that the position of the endpoint captured in the frame and the position of the endpoint indicated by the readout encoder value may differ.

[0005] The present disclosure has been devised in consideration of the above-mentioned conventional circumstances, and has an object to provide an image processing method and an image processing system that synchronize a camera and a servo motor to improve the tracking accuracy of an object. [Means for solving the problem]

[0006] The present disclosure provides an image processing method performed by a system including at least one image processing device capable of acquiring frames in which a subject is captured from at least a camera that captures an image of the subject, and at least one controller capable of communicating with the image processing device and controlling a servo motor that moves the position of the camera, wherein either the image processing device or the servo motor transmits a reference time to an image processing device or the servo motor other than the image processing device itself, captures an image of the subject at a predetermined time based on the reference time, acquires position information of the servo motor at the predetermined time based on the reference time, detects the subject from at least some of the pixels of the frame based on the captured frame of the subject and the position information of the servo motor, and drives the servo motor based on the detected position of the subject.

[0007] The present disclosure also provides an image processing system comprising at least one image processing device capable of acquiring frames in which a subject is captured from at least a camera that captures an image of the subject, and at least one controller capable of communicating with the image processing device and controlling a servo motor that moves the position of the camera, wherein the image processing device and the controller perform time alignment based on a reference time, the image processing device captures an image of the subject at a predetermined time based on the reference time, the controller acquires position information of the servo motor at the predetermined time based on the reference time and transmits it to the image processing device, the image processing device detects the position of the subject from at least a portion of the pixels of the frame based on the captured frame of the subject and the position information of the servo motor and transmits it to the controller, and the controller drives the servo motor based on the transmitted position of the subject. Effect of the Invention

[0008] According to the present disclosure, the camera and servo motor can be synchronized to improve the tracking accuracy of the target object. [Brief description of the drawings]

[0009] [Figure 1] A block diagram showing an example of the overall configuration of a motor control system according to a first embodiment. [Diagram 2] FIG. 1 is a block diagram showing an example of the internal configuration of an image processing device and a servo controller according to a first embodiment. [Diagram 3] FIG. 1 is a sequence diagram showing an example of an operation procedure of the motor control system according to the first embodiment. [Figure 4] FIG. 1 is a sequence diagram showing an example of an operation procedure of the image processing device and the servo controller according to the first embodiment. [Diagram 5] 1 is a time chart showing the operation procedure of the image processing device and the servo controller according to the first embodiment; [Figure 6] FIG. 1 is a comparison diagram illustrating an example of operation processing between a conventional image processing device and a servo motor. [Figure 7] FIG. 2 is a comparison diagram illustrating an example of operation processing between an image processing device and a servo motor according to the present disclosure. [Figure 8] A block diagram showing an example of the overall configuration of a motor control system according to a second embodiment. [Figure 9] FIG. 11 is a sequence diagram showing an example of an operation procedure of a motor control system according to a second embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0010] (Background to this disclosure) In recent years, there has been a control system that uses an image processing device that captures an object with a camera and measures the position of the object in the captured frame, and a motor control device that drives a servo motor to cause a robot arm or the like to perform a predetermined task on the object. Such a control system calculates the amount of movement of the servo motor to correct the position of the robot arm relative to the object, based on the position of the object measured by the image processing device and the encoder position information read by the encoder. The control system executes drive control of the servo motor by the motor control device based on the calculated amount of movement of the servo motor, thereby making it possible to perform a predetermined task on the object.

[0011] However, conventional motor control devices are configured using a servo motor and a dedicated controller (control device) for controlling this servo motor, and the servo motor is driven by specifying position information from the controller. Since a notification of completion of the servo motor's movement is output after the movement to the specified position information is completed, it was difficult to obtain the position (encoder value) of the servo motor at a specified time. In addition, when a conventional image processing device detects an object by image processing from frames that capture the object at a high frame rate (e.g., 1000 fps), blur occurs in the captured frames, so that the image processing takes a long time and the processing load is large. As a result, conventional motor control devices have problems such as reduced accuracy in tracking the object and delayed tracking.

[0012] Therefore, in each of the embodiments described below, examples of an image processing method and an image processing system that synchronize a camera and a servo motor to improve the tracking accuracy of an 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 system 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] In the following description, the term "image processing device" may refer to a device including a camera and lighting that are connected to each image processing device so as to be able to transmit and receive data.

[0015] (Embodiment 1) An example of the overall configuration of a motor control system 100 according to the first embodiment will be described with reference to Fig. 1. Fig. 1 is a block diagram showing an example of the internal configuration of the motor control system 100 according to the first embodiment.

[0016] A motor control system 100 as an example of a system, an image processing system, and a synchronous control system includes N (N: an integer of 1 or more) servo controllers (specifically, a first servo controller S1 to an Nth servo controller SN) and K (K: an integer of 1 or more) image processing devices (specifically, a first image processing device Im1 to a Kth image processing device ImK). Note that the number N of servo controllers and the number K of image processing devices may be the same value or may be different values.

[0017] The motor control system 100 executes time alignment by using any one of the first servo controller S1 to the Nth servo controller SN and the first image processing device Im1 to the Kth image processing device ImK (i.e., a servo controller or an image processing device). The motor control system 100 synchronizes and links the first servo controller S1 to the Nth servo controller SN and the first image processing device Im1 to the Kth image processing device ImK at a synchronous time, and causes each of the first servo controller S1 to the Nth servo controller SN to track the object based on the image processing result (i.e., the position of the object) of each of the first image processing device Im1 to the Kth image processing device ImK.

[0018] Each of the first servo controller S1 to the N-th servo controller SN, which is an example of a controller, is connected to the other servo controllers other than the own servo controller and each of the first image processing device Im1 to the K-th image processing device ImK so as to be able to transmit and receive data therebetween.

[0019] Each servo motor includes an encoder, a motor driver, and a servo motor. That is, motor control system 100 includes N encoders (first encoder En1 to N-th encoder EnN), N motor drivers (first motor driver Md1 to N-th motor driver MdN), and N servo motors (first servo motor Sm1 to N-th servo motor SmN).

[0020] Each of the first image processing device Im1 to the K-th image processing device ImK is connected to other image processing devices other than its own image processing device and each of the first servo controller S1 to the N-th servo controller SN so as to be able to transmit and receive data therebetween.

[0021] Each image processing device includes a camera and a light. That is, the motor control system 100 includes K cameras (first camera C1 to K-th camera CK) and K lights (first light L1 to K-th light LK).

[0022] Next, the internal configurations of the image processing device and the servo controller in the first embodiment will be described with reference to Fig. 2. Fig. 2 is a block diagram showing an example of the internal configuration of the image processing device and the servo controller in the first embodiment. Note that, in Fig. 2, for the sake of simplicity, an example of the internal configuration of the first image processing device Im1 and the first servo controller S1, which are the minimum components of the motor control system 100, will be described.

[0023] The first image processing device Im1 includes a communication unit 10, a processor 11, and a memory 12.

[0024] The communication unit 10 is connected to the first camera C1, the first lighting L1, and the first servo controller S1 so that data can be transmitted and received between them. The communication unit 10 is configured using a communication interface circuit for transmitting and receiving data. The communication unit 10 connects the first camera C1, the first lighting L1, and the first servo controller S1 so that wired communication can be performed using a CameraLink (registered trademark) cable, an Ethernet cable, EtherCAT (registered trademark), or the like, to realize data transmission and reception.

[0025] The processor 11 is configured using a real-time operating system (hereinafter referred to as "OS") such as a Field Programmable Gate Array (hereinafter referred to as "FPGA"), and performs various processes and controls in cooperation with the memory 12. Specifically, the processor 11 refers to the programs and data stored in the memory 12 and executes the programs to realize the functions of each unit.

[0026] The processor 11 determines the timings of exposure start and end of the first camera C1 and the timings of turning on and off the first lighting, and controls each of the first camera C1 and the first lighting. Specifically, the processor 11 determines the timings of exposure start and end of the first camera C1 and the timings of turning on and off the first lighting so that the exposure time (hereinafter referred to as the "center exposure time") corresponding to half the timing of the exposure period from the exposure start timing to the exposure end timing of the first camera C1 coincides with the timing of reading out the position information of the servo motor transmitted from the first servo controller S1.

[0027] The processor 11 acquires the encoder position information of the first encoder En1 and the driving current value information of the first servo motor Sm1 transmitted from the first servo controller S1. The processor 11 estimates (predicts) the position of the object captured in the frame by a Kalman filter using the encoder position information of the first encoder En1, and acquires pixel data corresponding to the estimated position from the first camera C1. The processor 11 performs image processing using a hill climbing method on the acquired pixel data to detect the position of the object.

[0028] The processor 11 transmits information on the readout area of ​​the determined pixel data to the first camera C1. The processor 11 processes the pixel data transmitted from the first camera C1 directly without storing it in the memory 12, and measures the position of the object. The processor 11 transmits the position information of the object, which is the result of the image processing, to the first servo controller S1. This enables the processor 11 to reduce the time required for image processing and realize high-speed image processing.

[0029] 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 processor 11, and a read only memory (hereinafter referred to as "ROM") for storing programs and data that define the operation of the processor 11. The RAM temporarily stores data or information generated or acquired by the processor 11. The ROM has written therein programs that define the operation of the processor 11.

[0030] The first camera C1 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 (hereinafter referred to as "CCD") or a Complementary Metal Oxide Semiconductor (hereinafter referred to as "CMOS"), and converts an optical image formed on an imaging surface into an electrical signal. The first camera C1 captures an object at a high frame rate of, for example, 960 fps or more.

[0031] The first camera performs exposure control based on the shutter timing (exposure start command and exposure end command) sent from the processor 11. After conversion to an electrical signal by the image sensor, the first camera C1 sequentially reads pixel data included in a readout area requested by the processor 11 (for example, readout areas AR1, AR2, AR3, AR4, etc. shown in FIG. 5) and transmits the read pixel data.

[0032] The first lighting L1 is realized by at least one Light-Emitting Diode (hereinafter referred to as "LED"). The first lighting L1 controls the start and end of lighting based on a light emission start command and a light emission end command transmitted from the processor 11, respectively, to illuminate the target object.

[0033] The first servo controller S1 includes a communication unit 20, a processor 21, a memory 22, a first motor driver Md1, a first servo motor Sm1, and a first encoder En1.

[0034] The communication unit 20 is connected to the first image processing device Im1 so as to be able to transmit and receive data therebetween. The communication unit 20 is configured using a communication interface circuit for transmitting and receiving data. The communication unit 20 is connected to the first image processing device Im1 so as to be able to perform wired communication using an HDMI (registered trademark) cable or the like, thereby achieving data transmission and reception.

[0035] The processor 21 is configured using, for example, a Central Processing Unit (CPU), FPGA, etc., and performs various processes and controls in cooperation with the memory 22. Specifically, the processor 21 refers to a program stored in the memory 22 and executes the program to realize the functions of the first motor driver Md1, the first servo motor Sm1, the first encoder En1, etc.

[0036] The processor 21 acquires encoder feedback information from the first encoder En1 at the central exposure time of the first camera C1. Note that the encoder feedback information here is the rotation angle of the first servo motor Sm1. The processor 21 measures the position of the first servo motor Sm1 based on the rotation angle of the first servo motor Sm1.

[0037] The processor 21 calculates a correction amount for the position of the first servo motor Sm1 based on the position information of the object, which is the image processing result transmitted from the first image processing device Im1, and the current position information of the first servo motor Sm1. The processor 21 generates a current control command for driving the first servo motor Sm1 based on the calculated correction amount, and outputs the current control command to the first motor driver Md1.

[0038] The memory 22 has, for example, a RAM as a work memory used when executing each process of the processor 21, and a ROM for storing programs and data that define the operation of the processor 21. The RAM temporarily stores data or information generated or acquired by the processor 21. The ROM has written therein programs that define the operation of the processor 21.

[0039] The first motor driver Md1 drives (rotates) the first servo motor Sm1 based on a current control command output from the processor 21. The first motor driver Md1 obtains current feedback information indicating the difference between a movement target value of the first servo motor Sm1 corresponding to the current control command and an actual control amount of the first motor driver Md1 through feedback control. The first motor driver Md1 outputs the obtained current feedback information to the processor 21.

[0040] The first encoder En1 is capable of detecting the rotation angle of the first servo motor Sm1, and outputs (feeds back) information on the rotation angle of the first servo motor Sm1 (encoder feedback information) to the processor 21.

[0041] Next, an example of an operation procedure of the motor control system 100 according to the first embodiment will be described with reference to Fig. 3. Fig. 3 is a sequence diagram showing an example of an operation procedure of the motor control system 100 according to the first embodiment.

[0042] In the example shown in FIG. 3, the first image processing device Im1 is set as a master that synchronizes the time information of the other image processing devices (the second image processing device Im2 to the K-th image processing device ImK) and the first servo controller S1 to the N-th servo controller SN to the synchronized time (i.e., performs clock adjustment), but the device set as the master may be any one of the other devices.

[0043] The motor control system 100 executes the process of step St11 and a first loop process Lp11. The number of loops of the first loop process Lp11 may be set to any number depending on the interval at which the time adjustment process of step St11 is executed.

[0044] The first image processing device Im1 transmits synchronized time information to each of the other image processing devices (the second image processing device Im2 to the K-th image processing device ImK) and the first servo controller S1 to the N-th servo controller SN, and repeatedly performs time adjustment for each device at a predetermined interval (St11). If the time information in step St11 cannot be simultaneously received by each device, the motor control system 100 may determine that the time adjustment (synchronization) process has failed, proceed to a first loop process Lp11, and postpone the time adjustment process until the process of the next step St11.

[0045] Also, as shown by the dashed line, when the first servo controller S1 is set as the master, the first servo controller S1 transmits synchronized time information to each of the first image processing device Im1 to the Kth image processing device ImK and the second servo controller (not shown) to the Nth servo controller SN, and performs time synchronization for each device (St11A).

[0046] Each of the first image processing device Im1 to the K-th image processing device ImK performs imaging processing of an object using each of the first camera C1 to the K-th camera CK and the first lighting device L1 to the K-th lighting device LK (St100).

[0047] Each of the first servo controller S1 to the Nth servo controller SN executes a servo motor position acquisition process to acquire position information of each of the first servo motor Sm1 to the Nth servo motor SmN at the exposure center time T0 of the first camera C1 to the Kth camera CK (St200).

[0048] Each of the first servo controller S1 to the N-th servo controller SN transmits the acquired position information of the servo motor to the other servo controllers and the first image processing device Im1 to the K-th image processing device ImK (St12, St13).

[0049] For example, the first servo controller S1 transmits position information of the first servo motor Sm1 to the second servo controller (not shown) through the N-th servo controller SN and the first image processing device Im1 through the K-th image processing device ImK (St12).

[0050] Furthermore, for example, the N-th servo controller SN transmits position information of the N-th servo motor SmN to each of the first servo controller S1 to the (N-1)-th servo controller (not shown) and the first image processing device Im1 to the K-th image processing device ImK (St13).

[0051] In the sequence shown in FIG. 3, for ease of explanation, the process in which the first servo controller S1 transmits position information of the first servo motor Sm1 is shown in step St12, and the process in which the Nth servo controller SN transmits position information of the Nth servo motor SmN is shown in step St13, but the processes in steps St12 and St13 may be executed at approximately the same time.

[0052] The motor control system 100 executes, in parallel, a second loop process Lp21 by each of the first image processing device Im1 to the K-th image processing device ImK, and a third loop process Lp22 by each of the first servo controller S1 to the N-th servo controller SN.

[0053] In the second loop process Lp21, each of the first image processing device Im1 to the Kth image processing device ImK performs image processing approximately simultaneously based on the frame captured in the processing of step St100 and the position information of each of the first servo motor Sm1 to the Nth servo motor SmN acquired in steps St12 to St13 (St300).

[0054] In the third loop process Lp22, the first servo controller S1 to the Nth servo controller SN execute a process of driving the first servo motor Sm1 to the Nth servo motor SmN, and a process of acquiring the position information of the first servo motor Sm1 to the Nth servo motor SmN (St400). The first servo controller S1 to the Nth servo controller SN transmit the acquired position information of the servo motor to each of the other servo controllers (St14).

[0055] Each of the first image processing device Im1 to the K-th image processing device ImK transmits the position information of the object, which is the image processing result obtained by the image processing in step St300, to the other image processing devices and the first servo controller S1 to the N-th servo controller SN, respectively (St15, St16).

[0056] For example, the first image processing device Im1 performs image processing on a frame (pixel data) captured by the first camera C1, and transmits the position information of the object, which is the result of the image processing, to the second image processing device (not shown) through the Kth image processing device ImK and the first servo controller S1 through the Nth servo controller SN (St15).

[0057] Furthermore, for example, the Kth image processing device ImK performs image processing on the frame (pixel data) captured by the Kth camera CK, and transmits the position information of the object, which is the result of the image processing, to the first image processing device Im1 to the (K-1)th image processing device (not shown) and the first servo controller S1 to the Nth servo controller SN (St16).

[0058] Next, an example of the operation procedure of the image processing devices and the servo controllers will be described with reference to Fig. 4. Fig. 4 is a sequence diagram showing an example of the operation procedure of the image processing devices (specifically, the first image processing device Im1 to the K-th image processing device ImK) and the servo controllers (specifically, the first servo controller S1 to the N-th servo controller SN) in the first embodiment.

[0059] In the example shown in Fig. 4, the operation procedure executed in the first loop process Lp11 shown in Fig. 3 will be described in detail. In addition, in Fig. 4, for the sake of simplicity, the processes of steps St13 and St16 are omitted in order to explain an example of the operation procedure executed between the first image processing device Im1, which is the minimum configuration of the motor control system 100, and the first servo controller S1.

[0060] First, the imaging process in step St100 will be described. The imaging process in step St100 is executed at a cycle of, for example, 1 kHz.

[0061] The first image processing device Im1 determines the exposure start and end timings of the first camera C1 and the light emission start and end timings of the first illumination L1 (St101).

[0062] The first image processing device Im1 determines the exposure midpoint time T0 and the timings of the light emission start and end based on the synchronized time. For example, the exposure midpoint time T0 may be determined at a predetermined cycle (for example, 1 kHz).

[0063] This allows each of the first image processing device Im1 to the Kth image processing device ImK to prevent deviations in image capturing time due to shutter opening and closing times, etc. Therefore, each of the first image processing device Im1 to the Kth image processing device ImK can align the exposure central time T0 of all cameras (the first camera C1 to the Kth camera CK).

[0064] The first image processing device Im1 generates an exposure start command for the first camera C1 based on the determined exposure median time T0, and transmits the generated exposure start command to the first camera C1 based on the timing of the exposure start of the first camera C1 (St102). The first image processing device Im1 also generates a light emission start command for the first lighting L1 based on the determined exposure median time T0, and transmits the generated light emission start command to the first lighting L1 based on the timing of the light emission start of the first lighting L1 (St103). Note that the processing order of steps St102 and St103 may be reversed.

[0065] The first lighting L1 starts emitting light based on the light emission start command transmitted from the first image processing device Im1 (St104).

[0066] The first camera C1 starts exposure based on the exposure start command transmitted from the first image processing device Im1 (St105).

[0067] The first image processing device Im1 generates an exposure end command for the first camera C1, and transmits the generated exposure end command to the first camera C1 based on the timing of the exposure end of the first camera C1 (St106). The first camera C1 ends the exposure based on the exposure end command transmitted from the first image processing device Im1.

[0068] The first image processing device Im1 also generates a light emission end command for the first lighting device L1 and transmits the generated light emission end command to the first lighting device L1 based on the timing of the end of light emission of the first lighting device L1 (St107). The first lighting device L1 ends light emission based on the light emission end command transmitted from the first image processing device Im1.

[0069] 4 is an example, and is not limited to the order of steps St102 and St103 and the order of steps St106 and St107. The light emission period during which the first illumination L1 emits light may be substantially the same as the exposure period of the first camera C1, or may be longer than the exposure period.

[0070] Next, the servo motor position acquisition process in step St200 will be described. The servo motor position acquisition process in step St200 is executed in a cycle corresponding to the imaging process in step St100, for example, in a cycle of 1 kHz.

[0071] The first servo controller S1 generates an A / D conversion start command that requests the first encoder En1 to obtain position information of the first servo motor Sm1, and outputs the command to the first encoder En1 (St201).

[0072] The first encoder En1 acquires an electronic signal (analog signal) indicating the position information of the first servo motor Sm1 at the timing of the exposure central time T0 of the first image processing device Im1 and converts it into a digital signal (St202). The first encoder En1 outputs the position information of the first servo motor Sm1 to the first servo controller S1 (St203).

[0073] Thus, each of the first servo controller S1 to the Nth servo controller SN can similarly acquire position information of each of the servo motors (the first servo motor Sm1 to the Nth servo motor SmN) at the same time as the exposure median time T0 based on the synchronized time. In other words, the motor control system 100 can synchronize the imaging times of all the cameras and the acquisition times of the position information of all the servo motors to the same time (=exposure median time T0).

[0074] The first servo controller S1 transmits the position information of the first servo motor Sm1 acquired by the first encoder En1 to the first image processing device Im1 (St12).

[0075] Next, the image processing of step St300 will be described. The image processing of step St300 is executed at a cycle of, for example, 1 kHz.

[0076] The first image processing device Im1 estimates the position of the object in the frame captured next to the previous frame using a Kalman filter based on the frame rate of the first camera C1, the position information of the first servo motor Sm1 transmitted from the first servo controller S1, and the position of the object detected in the previous frame. The first image processing device Im1 requests the first camera C1 to read and transmit pixel data including at least one pixel corresponding to the estimated position of the object.

[0077] The first camera C1 converts the light incident from the lens during exposure into an electrical signal (analog signal) and performs A / D conversion processing to convert it into a digital signal. The first camera C1 reads out pixel data and transmits it to the first image processing device Im1 (St301).

[0078] The first image processing device Im1 executes image processing before recording the pixel data transmitted from the first camera C1 in the memory 12 (St302). The first image processing device Im1 sequentially executes object detection processing by a hill-climbing method on the pixel data transmitted from the first camera C1. The first image processing device Im1 calculates an evaluation value indicating the likelihood that the detection part detected from the pixel data is the object. The first image processing device Im1 requests the first camera C1 to read pixel data including at least one pixel located in the vicinity of a pixel with a higher calculated evaluation value by the hill-climbing method.

[0079] The first camera C1 reads out pixel data based on the request transmitted from the first image processing device Im1, and transmits the pixel data to the first image processing device Im1 (St301).

[0080] The first image processing device Im1 executes image processing before recording the pixel data transmitted from the first camera C1 in the memory 12 (St302). The first image processing device Im1 repeatedly executes the pixel data reading process by the first camera C1 in step St301 and the object detection process by the first image processing device Im1 in step St302 until there is no improvement in the evaluation value by the hill-climbing method, that is, until it is determined that the object has been detected.

[0081] The first image processing device Im1 transmits the position information of the detected object, which is the image processing result, to the first servo controller S1 (St15). The first image processing device Im1 also records in the memory 12 the frames acquired from the first camera C1, the address number indicating the image capturing order of the frames by the first camera C1, the position information of the detected object, and the position information of the servo motor in association with each other.

[0082] This allows the first image processing device Im1 to calculate the amount of movement of the servo motor between two frames based on the position information of the object in the previous frame, the position information of the first servo motor Sm1 at the imaging time (=exposure central time T0) of the previous frame, and the position information of the first servo motor Sm1 at the imaging time (=exposure central time T0) of the next frame. The first image processing device Im1 can estimate the position of the object in the next frame with higher accuracy based on the amount of movement of the servo motor between the two frames.

[0083] Therefore, the first image processing device Im1 can estimate the position of an object that will appear in the next frame with even greater accuracy than before, thereby effectively selecting the pixels to be subjected to image processing, reducing the number of pixels subjected to image processing using the hill-climbing method, and further shortening the time required to detect the object.

[0084] Furthermore, the first image processing device Im1 can treat two frames captured consecutively by the first camera C1 capturing images at a high frame rate as frames captured by a stereo camera, based on the amount of movement of the servo motor between the two frames. Therefore, the first image processing device Im1 can measure the position of the object in a direction substantially perpendicular to the image sensor of the first camera C1 (i.e., the distance between the image sensor and the depth). This allows the first image processing device Im1 to measure the distance between the first camera C1 and the object.

[0085] Furthermore, when the object is moving, the first image processing device Im1 can measure the moving speed and moving distance of the object based on two frames captured consecutively by the first camera C1 capturing images at a high frame rate and the amount of movement of the servo motor between the two frames. When the object is not moving, the first image processing device Im1 can measure (identify) the amount of movement, moving speed, etc. of the object as disturbance acting on the object based on two frames captured consecutively and the amount of movement of the servo motor between the two frames. Note that the identification of disturbance will be described in detail later with reference to Figs. 6 and 7.

[0086] In addition, when the object is not moving at a constant speed in a straight line, the first image processing device Im1 can measure changes in the object's movement amount, acceleration, etc. based on two consecutive frames captured and the movement amount of the servo motor between the two frames.

[0087] Next, a description will be given of the motor drive process and servo motor position acquisition process in step St400. The motor drive process and servo motor position acquisition process in step St400 are executed at a cycle of, for example, several tens of kHz.

[0088] The first servo controller S1 generates a current control command and outputs it to the first motor driver Md1 (St401). The first motor driver Md1 drives the first servo motor Sm1 based on the current control command output from the first servo controller S1 (St402).

[0089] The first servo controller S1 generates an A / D conversion start command and outputs it to the first encoder En1 (St403). The first encoder En1 acquires an electronic signal (analog signal) indicating the position information of the first servo motor Sm1 based on the A / D conversion start command output from the first servo controller S1 and converts it into a digital signal (St404). The first encoder En1 outputs the position information of the first servo motor Sm1 to the first servo controller S1 (St405).

[0090] 3 is repeatedly executed at a faster cycle than the other processes. In the process of step St400, the motor control system 100 corrects the current position of the first servo motor Sm1 based on the position information of the object obtained in the processes of steps St100 to St300, and moves (tracks) the position of the first servo motor Sm1 to match the position of the object.

[0091] Next, the operation procedure of the image processing device and the servo controller will be described with reference to a time chart in FIG. 5. FIG. 5 is a time chart showing the operation procedure of the image processing device and the servo controller in the first embodiment. Note that the read cycle and the number of times of the encoder shown in FIG. 5 are merely examples and are not limited thereto.

[0092] In the example shown in FIG. 5, for simplicity, an example of an operational procedure executed between the first image processing device Im1, which is the minimum configuration of the motor control system 100, and the first servo controller S1 will be described.

[0093] The first camera C1 captures an object by exposing so that the exposure central time t=0 (zero), and sequentially reads out pixel data included in the readout area AR1 of the first frame Img1 from time t=t1. The first image processing device Im1 acquires the pixel data read out from the first camera C1 and sequentially processes the images. The first image processing device Im1 transmits position information of the detected object to the first servo controller S1.

[0094] The first servo controller S1 drives the first motor driver Md1 while the first camera C1 is capturing an image of the object and the first image processing device Im1 is detecting the object, and also repeatedly executes the acquisition (reading) of position information of the first servo motor Sm1 by the first encoder En1 at a period of several tens of kHz. Note that the image Ps1 shows the state of the first motor driver Md1 at time t=0 (zero).

[0095] The first servo controller S1 obtains position information of the first servo motor Sm1 at the timing of the exposure central time t=1, and transmits it to the first image processing device Im1.

[0096] The first camera C1 captures an object by exposing so that the exposure central time t=1. The first image processing device Im1 estimates the position of the object in the second frame Img2 based on the position information of the object detected in the first frame Img1 and the position information of the first servo motor Sm1 transmitted from the first servo controller S1, and determines a readout area AR2 from which pixel data is read out from the second frame Img2. The first image processing device Im1 requests the first camera C1 to read out the readout area AR2.

[0097] The first camera C1 sequentially reads out pixel data included in the readout area AR2 of the second frame Img2 from time t=t2. The first image processing device Im1 acquires the pixel data read out from the first camera C1 and sequentially processes the image. The first image processing device Im1 transmits position information of the detected object to the first servo controller S1.

[0098] While the first camera C1 is capturing an image of the object and the first image processing device Im1 is detecting the object, the first servo controller S1 drives the first motor driver Md1 based on the position information of the object detected from the first frame Img1, and repeatedly acquires (reads) the position information of the first servo motor Sm1 by the first encoder En1 at a cycle of several tens of kHz. Note that the image Ps2 shows the state of the first motor driver Md1 at time t=1.

[0099] The first servo controller S1 obtains position information of the first servo motor Sm1 at the timing of the exposure central time t=2, and transmits it to the first image processing device Im1.

[0100] The first camera C1 captures an image of the object by exposing so that the exposure median time becomes t = 2. The first image processing device Im1 measures the movement amount and movement speed of the object and the movement amount and movement speed of the first servo motor Sm1 between the exposure median times t = 1 and 2, based on the position information of the object detected in the first frame Img1 and the second frame Img2, and the position information of the first servo motor Sm1 corresponding to each frame transmitted from the first servo controller S1.

[0101] The first image processing device Im1 estimates the position of the object captured in the third frame Img3 using the calculated movement amount and movement speed of the object between exposure central times t=1-2 and the movement amount and movement speed of the first servo motor Sm1. The first image processing device Im1 determines a readout area AR3 from which pixel data is read out from the third frame Img3. The first image processing device Im1 requests the first camera C1 to read out the readout area AR3.

[0102] The first camera C1 sequentially reads out pixel data included in the readout area AR3 of the third frame Img3 from time t=t3. The first image processing device Im1 acquires the pixel data read out from the first camera C1 and sequentially processes the image. The first image processing device Im1 transmits position information of the detected object to the first servo controller S1.

[0103] While the first camera C1 is capturing an image of the object and the first image processing device Im1 is detecting the object, the first servo controller S1 drives the first motor driver Md1 based on the position information of the object corresponding to the second frame Img2, and repeatedly acquires (reads) the position information of the first servo motor Sm1 by the first encoder En1 at a cycle of several tens of kHz. Note that an image Ps3 shows the state of the first motor driver Md1 at time t=2. An image Ps4 shows the state of the first motor driver Md1 at time t=3.

[0104] The first servo controller S1 obtains position information of the first servo motor Sm1 at the timing of the exposure central time t=3, and transmits it to the first image processing device Im1.

[0105] The first camera C1 captures an image of the object by exposing so that the exposure median time is t = 4. The first image processing device Im1 calculates the movement amount and movement speed of the object and the movement amount and movement speed of the first servo motor Sm1 between the exposure median times t = 2 and t = 3, based on the position information of the object detected in the second frame Img2 and the third frame Img3 and the position information of the first servo motor Sm1 corresponding to each frame transmitted from the first servo controller S1.

[0106] The first image processing device Im1 estimates the position of the object captured in the fourth frame Img4 using the calculated movement amount and movement speed of the object between the exposure central times t=2 and t=3, and the movement amount and movement speed of the first servo motor Sm1. The first image processing device Im1 determines a readout area AR4 from which pixel data is read out from the fourth frame Img4. The first image processing device Im1 requests the first camera C1 to read out the readout area AR4.

[0107] As described above, the motor control system 100 according to the first embodiment can track an object in real time using each of the first servo motor Sm1 to the N-th servo motor SmN.

[0108] Next, a process of identifying a disturbance will be described with reference to Fig. 6 and Fig. 7. Fig. 6 is a comparative diagram for explaining an example of an operation process between a conventional image processing device and a servo motor. Fig. 7 is a comparative diagram for explaining an example of an operation process between an image processing device and a servo motor of the present disclosure.

[0109] In the examples shown in Fig. 6 and Fig. 7, one camera is provided on a dolly Tr driven by one servo motor. The servo motor moves the dolly Tr so as to follow the position of the object Tg imaged and measured by the camera, and an example is described in which the object Tg approaching the globe Gr is caught. In addition, in the examples shown in Fig. 6 and Fig. 7, illustrations of an image processing device, lighting, a servo controller, an encoder, a servo motor, etc. are omitted.

[0110] 6 and 7, the disturbance is wind blowing toward the right side of the paper, and moves the object Tg 20 cm to the right side of the paper between the exposure central time t = 11 and the exposure central time t = 12. For simplicity of explanation, an example will be described in which the disturbance acts only on the object Tg and not on the cart Tr.

[0111] First, with reference to FIG. 6, the operation process of the image processing device and the servo motor when the imaging time (exposure central time t=11, 12, 13) at which the object is imaged is not synchronized with the acquisition time of the servo motor position information will be described.

[0112] The camera captures an image of an object Tg so that the exposure central time t=11 is achieved. The image processing device detects the object Tg from a frame Img11 captured by the camera. In the frame Img11 shown in FIG. 6, the image processing device detects the object Tg at a position shifted 1 m to the right of the paper surface from the center of the camera's angle of view, that is, the estimated position Tg11 of the object Tg, which is the center position of the frame Img11 captured by the camera. The image processing device transmits position information of the object Tg to the servo controller.

[0113] The servo controller generates a current control command for moving the position of the cart Tr 1 m to the right of the paper based on the position information of the target object Tg transmitted from the image processing device. The servo controller outputs the generated current control command to the motor driver. The motor driver drives the servo motor based on the current control command so that the cart Tr moves 1 m to the right of the paper.

[0114] The object Tg moves 20 cm to the right side of the paper due to disturbance between the exposure central time t=11 and the exposure central time t=12.

[0115] The camera captures an image of the object Tg so that the exposure central time t=12 is reached. The image processing device detects the object Tg from a frame Img12 captured by the camera. In the frame Img12 shown in Fig. 6, the image processing device detects the object Tg at a position shifted 70 cm to the right of the estimated position Tg12 of the object Tg on the page.

[0116] However, the image processing device does not know how far the cart Tr has moved at the time when the camera is at the center of the exposure time t = 12. Therefore, the conventional image processing device cannot transmit accurate information to the servo controller of the cart Tr as to how far it should move.

[0117] At the exposure midpoint time t=12, the servo motor continues to move the carriage Tr based on the position of the object Tg detected at the exposure midpoint time t=11, that is, to a position 1 m to the right of the page.

[0118] The camera captures an image of the object Tg so that the exposure central time t=13 is reached. The image processing device detects the object Tg from a frame Img13 captured by the camera. In the frame Img13 shown in Fig. 6, the image processing device detects the object Tg at a position shifted 20 cm to the right of the estimated position Tg13 of the object Tg on the page.

[0119] The servo motor at the exposure midpoint time t=13 stops when the movement of the dolly Tr based on the position of the target object Tg detected at the exposure midpoint time t=11, that is, the movement to a position 1 m to the right of the paper surface, is completed. The servo controller generates a notification that the movement of the dolly Tr to a position 1 m to the right of the paper surface by the servo motor is completed, and transmits it to the image processing device.

[0120] As described above, if the imaging time (exposure median time t=11, 12, 13) and the acquisition time of the servo motor position information are not synchronized, the servo controller, once acquiring the position information of the object Tg from the image processing device, continues to execute drive control of the servo motor based on the position information of the object Tg until the movement of the dolly Tr is completed. However, if a disturbance acts on the object Tg, the object Tg moves 20 cm to the right side of the page due to the disturbance during the period from exposure median time t=11 to exposure median time t=13 while the dolly Tr is moving.

[0121] Therefore, at the time of the exposure median time t=13, the object Tg has moved 20 cm to the right of the page due to disturbance, so it was difficult for the servo controller to make the positions of the cart Tr and the globe Gr follow the object Tg. Also, the image processing device does not receive feedback of the position information of the servo motor from the servo controller until the servo motor completes its movement of 1 m to the right of the page at the exposure median time t=13. Therefore, the estimation accuracy of the image processing device in estimating the position of the object Tg in the next frame decreases. As the estimation accuracy of the position of the object Tg decreases, the image processing device has to process more images to detect the object Tg in the next frame, and the time required for image processing becomes longer.

[0122] Next, with reference to FIG. 7, the operation process of the image processing device and the servo motor when the imaging time (exposure central time t=11, 12, 13) at which the object is imaged is synchronized with the acquisition time of the position information of the servo motor will be described.

[0123] The camera captures an object Tg at exposure median time t=11. The image processing device detects the object Tg from a frame Img21 captured by the camera. In the frame Img21 shown in Fig. 7, the image processing device detects the object Tg at a position shifted 1 m to the right of the paper surface from the center of the camera's angle of view, that is, the estimated position Tg21 of the object Tg, which is the center position of the frame Img21 captured by the camera. The image processing device transmits position information of the object Tg to the servo controller.

[0124] The servo controller generates a current control command for moving the position of the cart Tr 1 m to the right of the paper based on the position information of the target object Tg transmitted from the image processing device. The servo controller outputs the generated current control command to the motor driver. The motor driver drives the servo motor based on the current control command so that the cart Tr moves 1 m to the right of the paper.

[0125] The object Tg moves 20 cm to the right side of the paper due to disturbance between the exposure central time t=11 and the exposure central time t=12.

[0126] The camera captures an image of the object Tg at the exposure median time t=12. The image processing device detects the object Tg from the frame Img22 captured by the camera. In the frame Img22 shown in Fig. 7, the image processing device detects the object Tg at a position shifted 70 cm to the right of the estimated position Tg22 of the object Tg on the page. The image processing device transmits the position information of the object Tg to the servo controller.

[0127] The servo controller reads out the encoder value from the encoder at the exposure central time t = 12. The servo controller notifies the image processing device that the dolly Tr has advanced 50 cm to the right of the page at the exposure central time t = 12.

[0128] Furthermore, the servo controller performs a correction based on the position information of the target object Tg transmitted from the image processing device to add another 20 cm to the right of the position of the cart Tr at the next exposure central time t=13 (i.e., the target position) on the paper. The servo controller generates a current control command to move the position of the cart Tr 70 cm to the right of the paper. The servo controller outputs the generated current control command to the motor driver. Based on the current control command, the motor driver drives the servo motor so that the cart Tr moves 70 cm to the right of the paper.

[0129] The camera captures an image of an object Tg at time t=13. The image processing device detects the object Tg from a frame Img23 captured by the camera. In the frame Img23 shown in Fig. 7, the image processing device detects the object Tg at an estimated position Tg23 of the object Tg.

[0130] The servo motor at time t=13 stops when the movement of the dolly Tr based on the position of the target object Tg detected at time t=11, that is, the movement to a position 1.2 m to the right of the page, is completed. The servo controller generates a notification that the movement of the dolly Tr by the servo motor to a position 1.2 m to the right of the page has been completed, and transmits it to the image processing device.

[0131] As described above, when the imaging time (exposure median time t=11, 12, 13) and the acquisition time of the servo motor position information are synchronized, the servo controller transmits (notifies) the position of the dolly Tr to the image processing device at each exposure median time, and acquires the position information of the object Tg from the image processing device. This allows the servo controller to correct the target position of the dolly Tr based on the latest position of the object Tg. The servo controller can drive and control the servo motor based on the corrected target position of the dolly Tr.

[0132] Therefore, even if an external disturbance acts on the object Tg, the servo controller can drive the servo motor in accordance with the position shift of the object Tg caused by the disturbance (a movement of 20 cm to the right on the page), and can make the cart Tr and the globe Gr follow the movement of the object Tg, allowing the globe Gr to catch the object Tg.

[0133] Furthermore, the image processing device can calculate the amount of movement of the cart Tr between two successive exposure center times by the encoder value feedback from the servo controller, and therefore can identify the influence of the disturbance on the object Tg (for example, the amount of movement, moving speed, acceleration, etc. of the object Tg due to the disturbance). By identifying the influence of the disturbance on the object Tg, the image processing device can improve the estimation accuracy of the estimated position of the object Tg that will appear in the next frame. By improving the estimation accuracy of the estimated position, the image processing device can further reduce the image processing range for detecting the object Tg in the next frame, and further shorten the time required for image processing.

[0134] (Modification of the first embodiment) The motor control system 100 according to the first embodiment shows an example in which any one of the first servo controller S1 to the Nth servo controller SN or the first image processing device Im1 to the Kth image processing device ImK is set as a master and executes time adjustment of the first servo controller S1 to the Nth servo controller SN and the first image processing device Im1 to the Kth image processing device ImK. The motor control system 200 according to the modified example of the first embodiment shows an example in which an external master M1 connected to each of the first servo controller S1 to the Nth servo controller SN and the first image processing device Im1 to the Kth image processing device ImK so as to be able to communicate therewith is set as a master and executes time adjustment of the first servo controller S1 to the Nth servo controller SN and the first image processing device Im1 to the Kth image processing device ImK.

[0135] Motor control system 200 according to the modified example of embodiment 1 has substantially the same configuration as motor control system 100 according to embodiment 1. Therefore, in the following description of motor control system 200 according to the modified example of embodiment 1, the same components as those in motor control system 100 according to embodiment 1 are given the same reference numerals, and description thereof will be omitted.

[0136] An example of the overall configuration of a motor control system 200 according to a modification of the first embodiment will be described with reference to Fig. 8. Fig. 8 is a block diagram showing an example of the internal configuration of a motor control system 200 according to a modification of the first embodiment.

[0137] The motor control system 200 includes an external master M1, N servo controllers (specifically, a first servo controller S1 to an N-th servo controller SN), and K image processing devices (specifically, a first image processing device Im1 to a K-th image processing device ImK).

[0138] The motor control system 200 performs time adjustment by the external master M1. The motor control system 200 synchronizes and cooperates each of the first servo controller S1 to the Nth servo controller SN with each of the first image processing devices Im1 to the Kth image processing devices ImK by the time adjustment by the external master M1, and causes each of the first servo controller S1 to the Nth servo controller SN to track the object based on the image processing results (i.e., the position of the object) of each of the first image processing devices Im1 to the Kth image processing devices ImK.

[0139] Each of the first servo controller S1 to the N-th servo controller SN is connected to the external master M1 to enable data transmission and reception between the external master M1 and the other servo controllers other than the respective servo controllers and the first image processing device Im1 to the K-th image processing device ImK.

[0140] Each of the first image processing device Im1 to the K-th image processing device ImK is connected to the external master M1 and each of the other image processing devices other than the image processing device itself and the first servo controller S1 to the N-th servo controller SN so as to be able to transmit and receive data therebetween.

[0141] An external master M1, as an example of an external device, is connected to each of the first servo controller S1 to the Nth servo controller SN and the first image processing device Im1 to the Kth image processing device ImK so as to be able to send and receive data therebetween, and transmits synchronized time information to each of the first servo controller S1 to the Nth servo controller SN and the first image processing device Im1 to the Kth image processing device ImK at the same time to perform time adjustment.

[0142] Next, an example of an operation procedure of motor control system 200 according to a modification of embodiment 1 will be described with reference to Fig. 9. Fig. 9 is a sequence diagram showing an example of an operation procedure of motor control system 200 according to a modification of embodiment 1. Note that the operation procedure of motor control system 200 shown in Fig. 9 is substantially similar to the operation procedure of motor control system 100 shown in Fig. 3, so only different processing (step St21) will be described.

[0143] The motor control system 200 executes the process of step St21 and a first loop process Lp11. The number of loops of the first loop process Lp11 may be set to any number depending on the interval at which the time adjustment process of step St21 is executed.

[0144] The external master M1 transmits the synchronized time information to each of the other image processing devices (the first image processing device Im1 to the K-th image processing device ImK) and the first servo controller S1 to the N-th servo controller SN, and repeatedly performs time adjustment for each device at a predetermined interval (St21). If the synchronized time information in step St21 cannot be simultaneously received by each device, the motor control system 200 may determine that the time adjustment (synchronization) process has failed, proceed to a first loop process Lp11, and postpone the time adjustment (synchronization) process until the processing of the next step St21.

[0145] As described above, the motor control system 200 according to the modification of the first embodiment can track an object in real time using each of the first servo motor Sm1 to the N-th servo motor SmN.

[0146] As described above, the motor control systems 100, 200 (an example of a synchronous control system) according to the first embodiment and the modified example of the first embodiment include at least one image processing device (first image processing device Im1 to K-th image processing device ImK) capable of acquiring frames in which an object (an example of a subject) is captured from at least a camera (first camera C1 to K-th camera CK) that captures an image of the object, and at least one servo controller capable of communicating with the image processing device and controlling a servo motor (first servo motor Sm1 to N-th servo motor SmN) that moves the position of the camera, and executes a first process of performing time alignment based on the synchronous time, determining an exposure median time (an example of a median time) of an exposure period in which the camera is exposed based on the synchronous time, and capturing an image of the object based on the determined exposure median time, and a second process of acquiring the position of the servo motor at the median time based on the synchronous time, detecting the object from the frame based on the position of the servo motor at the median time and the frame in which the object is captured, and driving the servo motor based on the position of the detected object.

[0147] As a result, the motor control systems 100 and 200 according to the first embodiment and the modified example of the first embodiment can obtain the image capture time of an object captured at the center of a frame and the position of the servo motor at the image capture time of the object even in a frame in which blurring occurs, and can therefore measure the position of the object with higher accuracy.Moreover, the motor control systems 100 and 200 can control the servo motor to follow the object based on the measured position of the object.

[0148] Furthermore, the motor control systems 100 and 200 according to the first embodiment and the modified example of the first embodiment calculate a correction amount for the servo motor position based on the difference between the position of the object at the median time and the position of the servo motor. This allows the motor control systems 100 and 200 according to the first embodiment and the modified example of the first embodiment to control the servo motor to follow the object based on the correction amount for the servo motor position relative to the position of the servo motor at the image capture time of the object.

[0149] Furthermore, the motor control systems 100 and 200 according to the first embodiment and the modified example of the first embodiment measure the moving speed of the object based on the difference between the position of the object and the position of the servo motor at the median time. As a result, the motor control systems 100 and 200 according to the first embodiment and the modified example of the first embodiment capture images and obtain the position of the servo motor at the exposure median time, and therefore can obtain information such as the moving speed, moving amount, and acceleration of the object. Therefore, the motor control systems 100 and 200 can control the servo motor so that it can follow the position of the moving object.

[0150] Furthermore, the motor control systems 100 and 200 according to the first embodiment and the modified example of the first embodiment measure disturbance acting on the object based on the difference between the position of the object and the position of the servo motor at the median time. As a result, the motor control systems 100 and 200 according to the first embodiment and the modified example of the first embodiment capture images and acquire the position of the servo motor at the exposure median time, and therefore can acquire information such as the moving speed, moving amount, and acceleration of the object due to disturbance acting on the object. Therefore, the motor control systems 100 and 200 can control the servo motor to follow the position of the object even when a disturbance acts on the object.

[0151] In the motor control systems 100 and 200 according to the first embodiment and the modified example of the first embodiment, either the image processing device or the servo controller transmits a synchronization time to the image processing device or the servo controller other than the own device. This allows the motor control systems 100 and 200 according to the first embodiment and the modified example of the first embodiment to execute time adjustment (synchronization) between the first image processing device Im1 to the K-th image processing device ImK and the first servo motor Sm1 to the N-th servo motor SmN.

[0152] Moreover, the motor control system 100 according to the first embodiment further includes an external master M1 (an example of an external device) communicably connected to the image processing device and the servo controller. The external master M1 transmits a synchronization time to each of the image processing device and the servo controller. This allows the motor control system 100 according to the first embodiment to execute time adjustment (synchronization) between the first image processing device Im1 to the K-th image processing device ImK and the first servo motor Sm1 to the N-th servo motor SmN.

[0153] Furthermore, the camera frame rate is 960 fps or more in motor control system 200 according to the modification of embodiment 1. As a result, motor control system 200 according to the modification of embodiment 1 can adjust the position of the servo motor at a cycle of 1 kHz based on the position of the detected object, and can adjust the servo motor to follow the position of the object.

[0154] As described above, the motor control system 100, 200 (an example of a synchronous control system) according to the first embodiment and the modified example of the first embodiment includes at least one image processing device (first image processing device Im1 to K-th image processing device ImK) capable of acquiring frames of an object (an example of a subject) from at least a camera (first camera C1 to K-th camera CK) that captures the object (an example of a subject), and at least one servo controller (an example of a controller, first servo controller S1 to N-th servo controller SN) that can communicate with the image processing device and controls a servo motor (first servo motor Sm1 to N-th servo motor SmN) that moves the position of the camera. The image processing device and the servo controller perform time alignment based on the synchronous time. The image processing device determines a center time of an exposure period in which the camera is exposed based on the synchronous time, acquires a frame captured by exposing based on the determined center time from the camera, and performs a first process of detecting the object from at least some detection pixels of the frame. The servo controller performs a second process of acquiring a position of the servo motor at the center time based on the synchronous time and transmitting it to the image processing device. The image processing device detects the position of the object from the frame based on the position of the servo motor at the central time and the frame in which the object is imaged, and transmits the position to the servo controller. The servo controller drives the servo motor based on the transmitted position of the object.

[0155] As a result, the motor control systems 100 and 200 according to the first embodiment and the modified example of the first embodiment can obtain the image capture time of an object captured at the center of a frame and the position of the servo motor at the image capture time of the object even in a frame in which blurring occurs, and can therefore measure the position of the object with higher accuracy.Moreover, the motor control systems 100 and 200 can control the servo motor to follow the object based on the measured position of the object.

[0156] As described above, the motor control systems 100, 200 (an example of a system) according to the first embodiment and the modified example of the first embodiment include at least one image processing device (first image processing device Im1 to K-th image processing device ImK) capable of acquiring frames of an object (an example of a subject) from at least a camera (first camera C1 to K-th camera CK) that captures an image of the object, and at least one servo controller (an example of a controller, first servo controller S1 to N-th servo controller SN) capable of communicating with the image processing device and controlling servo motors (first servo motor Sm1 to N-th servo motor SmN) that move the position of the camera, and perform time alignment based on a synchronized time (an example of a reference time), capture an image of the object at a mid-exposure time (an example of a specified time) based on the synchronized time, acquire position information of the servo motor at the mid-exposure time based on the synchronized time, and detect the object from at least some of the pixels of the frame based on the frame of the captured object and the position information of the servo motor.

[0157] As a result, the motor control systems 100, 200 according to embodiment 1 and the modified example of embodiment 1 can control the servo motor to follow the object based on the position of the object detected from a frame captured by the camera and the position of the servo motor at the time the frame was captured.

[0158] Moreover, the motor control system 100, 200 according to the first embodiment and the modified example of the first embodiment executes in parallel the reading of at least some pixels based on the position information of the servo motor and the detection of the object based on at least some of the pixels that have been read. As a result, the motor control system 100, 200 according to the first embodiment and the modified example of the first embodiment can execute the reading of the pixels for which the object is to be detected next while detecting the object from at least some pixels, for example, so that the detection of the object can be executed without waiting for the reading of the pixels of the entire frame, and the time required for the detection of the object (image processing) can be shortened. Furthermore, the motor control system 100, 200 executes the reading of the pixels and the detection of the object based on the position information of the servo motor, so that the total number of pixels that are image-processed before the detection of the object can be reduced, and the time required for the detection of the object (image processing) and the processing load due to the image processing can be shortened.

[0159] Moreover, the motor control system 100, 200 according to the first embodiment and the modified example of the first embodiment estimates the position of an object captured in a frame based on the difference between the position of the servo motor corresponding to the frame and the position of the servo motor corresponding to the previous frame captured consecutively to the frame, and determines a part of pixels for detecting the object based on the estimated position of the object. As a result, the motor control system 100, 200 according to the first embodiment and the modified example of the first embodiment can estimate the position of the object captured in the latest frame of two consecutively captured frames with high accuracy based on the movement amount of the servo motor between the two consecutively captured frames. The motor control system 100, 200 selects the pixel where the object detection (image processing) is performed based on the estimated position of the object, so that the total number of pixels that are subjected to image processing until the object is detected can be reduced, and the time required for the object detection (image processing) and the processing load due to the image processing can be reduced.

[0160] Furthermore, the motor control systems 100 and 200 according to the first embodiment and the modified example of the first embodiment perform image processing using a hill climbing method on pixels, and when it is determined that no object is detected from the pixels, the motor control systems 100 and 200 repeatedly determine at least a portion of pixels to be read out next by the hill climbing method and detect the object based on the portion of pixels to be read out next until the object is detected. As a result, the motor control systems 100 and 200 according to the first embodiment and the modified example of the first embodiment select pixels located near pixels that are more likely to be the object among the pixels that have been image-processed as pixels on which object detection (image processing) is performed, so that the total number of pixels that are image-processed before the object is detected can be reduced, and the time required for object detection (image processing) can be shortened and the processing load due to image processing can be reduced.

[0161] Furthermore, the motor control systems 100 and 200 according to the first embodiment and the modified example of the first embodiment measure the distance between the image sensor of the camera and the object based on the position of the servo motor corresponding to the frame and the position of the servo motor corresponding to the previous frame captured consecutively to the frame. As a result, the motor control systems 100 and 200 according to the first embodiment and the modified example of the first embodiment can measure the position of the object in the vertical direction relative to the image sensor of the camera based on the positions of the servo motors in each of the two frames captured consecutively, using the two frames captured instead of the two frames captured by the stereo camera.

[0162] In the motor control systems 100 and 200 according to the first embodiment and the modified example of the first embodiment, either the image processing device or the servo controller transmits a synchronization time to the image processing device or the servo controller other than the own device. This allows the motor control systems 100 and 200 according to the first embodiment and the modified example of the first embodiment to execute time adjustment (synchronization) between the first image processing device Im1 to the K-th image processing device ImK and the first servo motor Sm1 to the N-th servo motor SmN.

[0163] Moreover, the motor control system 100 according to the first embodiment further includes an external master M1 (an example of an external device) communicably connected to the image processing device and the servo controller. The external master M1 transmits a synchronization time to each of the image processing device and the servo controller. This allows the motor control system 100 according to the first embodiment to execute time adjustment (synchronization) between the first image processing device Im1 to the K-th image processing device ImK and the first servo motor Sm1 to the N-th servo motor SmN.

[0164] Furthermore, the camera frame rate is 960 fps or more in motor control system 200 according to the modification of embodiment 1. As a result, motor control system 200 according to the modification of embodiment 1 can adjust the position of the servo motor at a cycle of 1 kHz based on the position of the detected object, and can adjust the servo motor to follow the position of the object.

[0165] As described above, the motor control system 100, 200 (an example of an image processing system) according to the first embodiment and the modified example of the first embodiment includes at least one image processing device (first image processing device Im1 to K-th image processing device ImK) capable of acquiring frames of an object (an example of a subject) from at least a camera (first camera C1 to K-th camera CK) that captures the object (an example of a subject), and at least one servo controller (an example of a controller, first servo controller S1 to N-th servo controller SN) that can communicate with the image processing device and controls a servo motor (first servo motor Sm1 to N-th servo motor SmN) that moves the position of the camera. The image processing device and the servo controller perform time alignment based on a synchronous time (an example of a reference time). The image processing device captures an object at a central time of exposure (an example of a predetermined time) based on the synchronous time. The servo controller acquires position information of the servo motor at the central time of exposure based on the synchronous time and transmits the information to the image processing device. The image processing device detects the position of the object from at least some pixels of the frame based on the captured frame of the subject and the position information of the servo motor, and transmits the position information to the servo controller. The servo controller drives the servo motor based on the transmitted position of the object.

[0166] As a result, the motor control systems 100, 200 according to embodiment 1 and the modified example of embodiment 1 can control the servo motor to follow the object based on the position of the object detected from a frame captured by the camera and the position of the servo motor at the time the frame was captured.

[0167] 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]

[0168] The present disclosure is useful as providing an image processing method and an image processing system that synchronize a camera and a servo motor to improve the tracking accuracy of an object. [Explanation of symbols]

[0169] 10,20 Communications Department 11,21 Processor 12,22 Memory 100,200 Motor Control System C1 First Camera CK Kth Camera En1 First Encoder EnN Nth encoder Im1 First image processing device ImK Kth image processing device L1 First lighting LK No. K Lighting M1 External Master Md1 First motor driver MdN Nth motor driver S1 First servo controller SN Nth servo controller Sm1 1st servo motor SmN Nth servo motor

Claims

1. At least one image processing device capable of acquiring frames of an object captured by at least a camera that captures the object; and at least one controller capable of communicating with the image processing device and controlling a servo motor that moves the position of the camera, Execute time adjustment based on the reference time, capturing an image of the subject at a predetermined time based on the reference time; acquiring position information of the servo motor at the predetermined time based on the reference time; Detecting the subject from at least some pixels of the frame based on the captured frame of the subject and position information of the servo motor; Driving the servo motor based on the detected position of the subject. Image processing methods.

2. reading out the at least some of the pixels based on position information of the servo motor and detecting the object based on the at least some of the pixels that have been read out are executed in parallel. The image processing method according to claim 1 .

3. estimating a position of the subject captured in the frame based on a difference between a position of the servo motor corresponding to the frame and a position of the servo motor corresponding to a previous frame captured consecutively to the frame; determining the portion of pixels for detecting the object based on the estimated position of the object; The image processing method according to claim 1 .

4. performing image processing using a hill-climbing method on the pixels, and when it is determined that the subject is not detected from the pixels, repeatedly determining at least a portion of pixels to be read out next by the hill-climbing method and detecting the subject based on the portion of pixels to be read out next, until the subject is detected; The image processing method according to claim 2 .

5. measuring a distance between an image sensor of the camera and the subject based on a position of the servo motor corresponding to the frame and a position of the servo motor corresponding to a frame immediately preceding the frame captured successively to the frame; The image processing method according to claim 1 .

6. Either the image processing device or the controller transmits the reference time to the image processing device or the controller other than the image processing device itself. The image processing method according to claim 1 .

7. The system comprises: an external device communicably connected to the image processing device and the controller; the external device transmits the reference time to each of the image processing device and the controller; The image processing method according to claim 1 .

8. The frame rate of the camera is 960 fps or more. The image processing method according to claim 1 .

9. At least one image processing device capable of acquiring frames of an object captured by at least a camera that captures the object; At least one controller capable of communicating with the image processing device and controlling a servo motor that moves the position of the camera, The image processing device and the controller include: Execute time adjustment based on the reference time, The image processing device includes: capturing an image of the subject at a predetermined time based on the reference time; The controller: acquiring position information of the servo motor at the predetermined time based on the reference time and transmitting the position information to the image processing device; The image processing device includes: Detecting a position of the subject from at least some pixels of the frame based on the captured frame of the subject and position information of the servo motor, and transmitting the position information to the controller; The controller: Driving the servo motor based on the transmitted position of the subject. Image processing system.

Citation Information

Patent Citations

  • Robot control device, robot system, robot, robot control method, and program

    JP2015074063A