WO2022094772A1 - Position estimation method, following control method, device and storage medium - Google Patents

Position estimation method, following control method, device and storage medium Download PDF

Info

Publication number
WO2022094772A1
WO2022094772A1 PCT/CN2020/126243 CN2020126243W WO2022094772A1 WO 2022094772 A1 WO2022094772 A1 WO 2022094772A1 CN 2020126243 W CN2020126243 W CN 2020126243W WO 2022094772 A1 WO2022094772 A1 WO 2022094772A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
operation information
movable platform
target
moment
Prior art date
Application number
PCT/CN2020/126243
Other languages
French (fr)
Chinese (zh)
Inventor
李然
郭亚娜
许中研
王帅
Original Assignee
深圳市大疆创新科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市大疆创新科技有限公司 filed Critical 深圳市大疆创新科技有限公司
Priority to PCT/CN2020/126243 priority Critical patent/WO2022094772A1/en
Publication of WO2022094772A1 publication Critical patent/WO2022094772A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules

Definitions

  • the present application relates to the technical field related to mobile devices, and in particular, to a position estimation method, a follow-up control method, an apparatus, a movable platform, and a storage medium.
  • the target position (position frame) of the following target is determined by analyzing and processing the images collected by the aircraft to achieve the following target. Due to the large amount of calculation in image processing, the aircraft needs to have high computing power, which increases the cost of the aircraft, and also increases the power consumption of the aircraft and affects the heat dissipation of the aircraft.
  • the present application provides a position estimation method, a following control method, a device and a storage medium, so as to reduce the following cost and improve the accuracy of target following.
  • the present application provides a follow-up control method, which is applied to a movable platform, wherein the movable platform is communicatively connected to a control terminal, the movable platform includes a pan-tilt, and the pan-tilt is equipped with a photographing device, so The photographing device is used to collect images in real time, and the method includes:
  • the following target is followed according to the estimated position in the second image.
  • the present application also provides a method for position estimation, which is applied to a movable platform, wherein the movable platform is communicatively connected to a control terminal, the movable platform includes a pan-tilt, and the pan-tilt is equipped with a photographing device, The photographing device is used to collect images in real time, and the method includes:
  • An estimated position of the shooting target in the second image is generated according to the first position, the first operation information, and the second operation information.
  • the present application also provides a follow-up control device, the control device includes a memory and a processor:
  • the memory is used to store computer programs
  • the processor is configured to execute the computer program and implement the following steps when executing the computer program:
  • the following target is followed according to the estimated position in the second image.
  • the present application also provides a position estimation device, the control device includes a memory and a processor:
  • the memory is used to store computer programs
  • the processor is configured to execute the computer program and when executing the computer program, implement the following steps:
  • An estimated position of the shooting target in the second image is generated according to the first position, the first operation information, and the second operation information.
  • the present application also provides a movable platform, the movable platform includes a memory and a processor:
  • the memory is used to store computer programs
  • the processor is configured to execute the computer program and implement the following steps when executing the computer program:
  • the following target is followed according to the estimated position in the second image.
  • the application further provides a follow-up control system, the flight control system includes a movable platform and a control terminal;
  • the control terminal is configured to receive the image sent by the movable platform, and identify the first position of the following target in the image in the image, so as to send the first position to the movable platform;
  • the movable platform is configured to send the first image captured by the photographing device at the first moment to the control terminal, so that the control terminal recognizes the first image of the following target in the first image. a position is sent to the movable platform;
  • the movable platform is used to obtain the first operation information of the movable platform at the first moment;
  • the movable platform is configured to acquire the second operation information of the movable platform at the second moment when the first position is received, and acquire the second operation information of the photographing device at the second moment. image;
  • the movable platform is configured to generate an estimated position of the following target in the second image according to the first position, the first operation information and the second operation information;
  • the movable platform is used for following the following target according to the estimated position in the second image.
  • the present application also provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor implements the above-mentioned following control method, and/or location estimation methods.
  • the movable platform when following the following target, sends the collected first image to the control terminal, so that the control The terminal analyzes and processes the first image to obtain the first position of the following target in the first image, and then, when the movable platform receives the first position, obtains the second operation information of the movable platform at the second moment, and obtains The second image captured at the second moment, wherein the second moment is the moment when the movable platform receives the first position, and then conducts information according to the obtained first position, the first operation information and the second operation information After fusion, the estimated position of the following target in the second image is generated, and finally the following target is followed according to the obtained estimated position of the following target in the second image.
  • control terminal When the target is following, the control terminal is used to analyze and process the image, which reduces the requirements for the performance of the movable platform, and when processing according to the received processing results, the current position of the following target is estimated by information fusion. , which improves the accuracy of following.
  • FIG. 1 is a schematic block diagram of a follow-up control system provided by an embodiment of the present application
  • FIG. 2 is a schematic flowchart of steps of a follow-up control method provided by an embodiment of the present application
  • FIG. 3 is a schematic diagram of a target frame form provided by an embodiment of the present application.
  • FIG. 4 is a schematic diagram of another target frame form provided by an embodiment of the present application.
  • FIG. 5 is a schematic flowchart of a step of recording first operation information provided by an embodiment of the present application.
  • FIG. 6 is a schematic diagram of a scene of a target frame position provided by an embodiment of the present application.
  • FIG. 7 is a schematic flowchart of a step of following a follow target provided by an embodiment of the present application.
  • FIG. 8 is a schematic flowchart of a step of determining a position of a follow target in a world coordinate system provided by an embodiment of the present application;
  • FIG. 9 is a schematic diagram of a scene for calculating a target distance provided by an embodiment of the present application.
  • FIG. 10 is a schematic flowchart of steps of a position estimation method provided by an embodiment of the present application.
  • FIG. 11 is a schematic block diagram of a movable platform provided by an embodiment of the present application.
  • the following control method of the movable platform specifically uses the control terminal to analyze and process the images collected by the movable platform, and then the movable platform performs corresponding data processing according to the result information fed back by the control terminal. Process to achieve following to the follow target.
  • the movable platform includes an aircraft, a robot, or an autonomous vehicle, etc., and the movable platform is equipped with a photographing device.
  • the present application takes an unmanned aerial vehicle as an example of a movable platform for detailed description.
  • FIG. 1 is a schematic block diagram of a follow-up control system provided by an embodiment of the present application. The following control system in the embodiment of the present application will be described below with reference to FIG. 1 .
  • the following control system 10 includes a movable platform 100 and a control terminal 200 .
  • the movable platform 100 is connected in communication with the control terminal 200 , wherein the movable platform 100 is used for sending the acquired image to the control terminal 200 . , and make a corresponding response according to the feedback information of the control terminal 200 , the control terminal 200 is used for analyzing and processing the received image, and sending the position obtained by the analysis and processing to the movable platform 100 .
  • the control terminal 200 includes a mobile communication device, which may be, for example, a mobile phone, a laptop computer, a watch, or the like.
  • the movable platform 100 is a drone.
  • the control terminal 200 may include a processor, a display, and a display controller.
  • the display controller is electrically connected to the processor and connected to the display for controlling the display to display corresponding content, such as displaying an image.
  • the processor may be a central processing unit (Central Processing Unit, CPU), and the processor may also be other general-purpose processors, digital signal processors (Digital Signal Processors, DSP), application specific integrated circuits (application specific integrated circuits, ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
  • the processor may communicate with the display controller, eg, to generate timing signals for triggering the display controller to control the display to display relevant content.
  • the display controller may be a part of the display, or may be separate from the display.
  • the displays include LCD displays, LED displays, OLED displays, and the like.
  • the display may be a part of the control terminal 200 , for example, the control terminal 200 is a mobile phone, and the display is a display screen of the mobile phone; of course, it may also be an external display of the control terminal 200 .
  • the display controller may also be a part of the control terminal 200, or a separate part from the control terminal 200.
  • control terminal 200 can also be replaced by other devices (eg, a controller) that can have data processing capabilities and can perform data feedback.
  • devices eg, a controller
  • the movable platform 100 uses the camera set by itself to collect images, obtain the first image collected and the first moment of collecting the first image, and then Send the collected first image to the control terminal 200, so that the control terminal 200 can identify and obtain the first position in the first image, and at the same time, the movable platform 100 will obtain the first operation of itself at the first moment information, and then the movable platform 100 receives the first position sent by the control terminal 200 at the second moment, and at the same time obtains its own second operation information at the second moment and the second image captured at the second moment, and then according to The obtained first position, first running information and second running information determine the estimated position of the following target in the second image, and finally follow the following target according to the determined estimated position of the following target in the second image.
  • the number of movable platforms 100 is not limited, but each movable platform 100 independently communicates with the control terminal 200, so as to timely and accurately complete the respective following targets.
  • the number of movable platforms 100 is greater than one, for the control terminal, the image or data sent by each movable platform 100 can be marked, so that the data transmission will not be erroneously transmitted.
  • the data of the mobile platform is transmitted to the second mobile platform.
  • FIG. 2 is a schematic flowchart of steps of a follow-up control method provided by an embodiment of the present application.
  • the following control method can be applied to a movable platform, so that when the movable platform follows a target, the following target can be followed accurately and timely.
  • control method includes steps S201 to S205.
  • the movable platform is connected to the control terminal in communication, so that when the movable platform needs to perform image processing, the collected images are sent to the control terminal, so as to use the control terminal to analyze and process the image, and then receive the returned information from the control terminal. Analyzing and processing results to realize following the following target according to the received analysis and processing results.
  • the movable platform uses the mounted photographing device to capture images in real time, so when the movable platform obtains the first image captured at the first moment, the first image is sent to the location associated with the movable platform.
  • the associated control terminal so that the control terminal identifies the first position of the following target in the first image in the first image, and then sends the identified first position and related information to the movable platform.
  • the position of the following target in the collected image needs to be in a certain position, such as the middle of the image.
  • the size of the following target in the image will also vary. Restriction, the size of the following target in the image cannot be too large or too small. Therefore, when the target is followed, the position and size of the following target in the image can be controlled, such as the position and size of the target frame corresponding to the following target.
  • the control terminal analyzes and processes the first image to obtain the first position of the following target in the first image
  • the obtained first position includes the corresponding position of the following target in the first image.
  • the following target For the first target frame corresponding to the following target in the first image, the following target needs to be completely included, and other interference information should be included as little as possible.
  • a square frame can be used as the target frame of the following target in the manner shown in FIG. 3
  • a circular frame can be used as the target frame of the following target in the manner shown in FIG.
  • it is determined according to the actual selection and demand.
  • when following a target it is first necessary to determine the target currently being followed. Therefore, when determining the target to follow, it includes: acquiring an initial image captured by the photographing device, and sending the initial image to the control unit. terminal, so that the control terminal displays the initial image so as to determine the following target.
  • the movable platform When determining the following target, the movable platform first collects and acquires an initial image, wherein the initial image contains the following target that needs to be followed, and then sends the collected following target to the control terminal, and then the control terminal passes the The initial image is displayed to determine the following target to be followed.
  • the following target to be followed is determined in the initial image, it may be selected by manual operation, or may be automatically selected by the control terminal.
  • control terminal After the control terminal receives the initial image sent by the movable platform, the control terminal displays the initial image, and then the controller determines the following target to be followed in the initial image by selecting the target frame.
  • the following target is framed to complete the determination of the following target when it is determined.
  • control terminal when the control terminal automatically realizes the determination of the following target, when the control terminal receives the initial image sent by the movable platform, it can receive the input target image in advance, and then determine the required basis in the initial image according to the target image. the follow target.
  • the movable platform When the movable platform captures an image at the first moment, it will also acquire the first operation information of the movable platform.
  • the movable platform For the movable platform, it includes a pan/tilt, and the pan/tilt is also equipped with a related photographing device for capturing images in real time.
  • the collected first operation information includes the position information and attitude of the movable platform at the first moment, wherein the attitude of the movable platform includes the flight direction of the movable platform, and at the same time, the first operation information also includes The attitude information of the gimbal at the first moment.
  • the operation information of the movable platform at any time will be recorded in the relevant storage space, that is, the first operation information is pre-recorded and stored, and when it needs to be used, The first operation information corresponding to the movable platform at the first moment can be directly obtained in the relevant storage space.
  • the type and form of the storage space are not limited, and an appropriate type can be selected according to actual requirements.
  • a circular buffer can be used to store the first operation information to save computing resources, and when the first operation information is stored in this way, since the length of the storage queue is fixed, it can automatically The first running information in the storage space is updated, specifically deleting the oldest data.
  • a conventional type of storage space may be used to store the first operation information, that is, any type of storage space may be used to store the first operation information.
  • any type of storage space may be used to store the first operation information.
  • FIG. 5 is a schematic flowchart of the steps of recording the first operation information provided by an embodiment of the present application.
  • the first operation information when the first operation information is stored, it includes:
  • Step S501 collecting the first operation information of the movable platform when the photographing device photographed the first image at the first moment;
  • Step S502 marking the first operation information according to the identification tag, and storing the first operation information with the identification tag in a preset storage queue;
  • the first operation information and the first image have the same identification tag, and are used to index the first operation information corresponding to the first image from the preset storage queue.
  • each moment corresponds to different operation information. Therefore, when the photographing device of the movable platform captures the first image at the first moment, it will capture the available information at the first moment.
  • the first operation information of the mobile platform is obtained, and the relevant identification tag is obtained to identify the first operation information, and then the first operation information after the marking is completed is stored in a preset storage queue.
  • the first image collected at the first moment will also be marked with the identification tag, so that the identification tag can be directly used for indexing later.
  • the shooting device mounted on the movable platform is used for real-time shooting of images.
  • the movable platform when it completes one image shooting, it will record and store the operation information when the image is shot.
  • the queue will store operation information corresponding to several times. The operation information at different times can be obtained through index query when it needs to be used.
  • the movable platform when the camera captures an image, the movable platform will collect its own operation information when capturing the captured image.
  • the first image information at the first moment As an example, when capturing the first image, the The first operation information of the mobile platform at the first moment, and then when it is stored, since the image acquisition is real-time, there will also be a lot of operation information. Therefore, when obtaining the first operation information, it is necessary to Distinguish the first operation information from the operation information that has been collected before and the operation information to be collected later, and the method of making the distinction can be determined according to the actual situation, which is not specifically limited.
  • the first operation information when distinguishing the first operation information, is marked with a relevant identification mark, that is, each stored operation information is marked with an identification mark, and each operation information is marked with an identification mark.
  • the identifications of the operation information are all different, and are recorded and stored after the marking of the first operation information is completed.
  • the identification label may be a numerical number or other unique identification.
  • Arabic numerals can be used to mark the collected operation information in sequence, for example, the first collected operation information is 1, and the second collected operation information is 2 , and so on, to mark the collected running information.
  • the identification tag may be a time stamp.
  • the operation information is collected at different times. Due to the uniqueness of time, the timestamp corresponding to the collection of the operation information can be used as the identification label of the operation information.
  • the first operation information is marked with the identification mark
  • the first image collected at the first moment will also be marked.
  • the images corresponding to different operation information There may be differences.
  • the first image collected is sent to the associated control terminal through the movable platform, and then the control terminal determines the following target by analyzing and processing the first image.
  • the control terminal determines the following target by analyzing and processing the first image.
  • the movable platform obtains the first position, it can follow the following target based on the first position and other relevant information. The analysis needs to be completed based on the first operation information of the movable platform at the first moment.
  • the movable platform when the movable platform obtains the operation information, in addition to using the identification tag to mark the first operation information collected at the first moment, it will also use the identification tag to mark the first image, so that the movable platform can use the identification tag to mark the first image according to the
  • the used identification tags are indexed accordingly.
  • the mobile platform sends the first image collected at the first moment to the control terminal, the first image needs to carry a corresponding identification label.
  • the identification label as a time stamp as an example
  • the mobile platform sends the first image to the control terminal.
  • an image is sent to the control terminal, it includes: acquiring a first image captured by the photographing device at a first moment, and using the first moment as a time stamp; marking the first image according to the time stamp, and The first image marked with the time stamp is sent to the control terminal.
  • the collected first image is marked with a timestamp, so that when receiving the analysis and processing result of the first image by the control terminal, an index can be performed in a preset storage queue according to the marked timestamp, so as to obtain an available value.
  • the first operation information corresponding to the mobile platform at the first moment.
  • identification tags have a certain variety, they will not affect the actual index.
  • the identification tags are not limited, when the movable platform captures the first image, the acquisition of a certain identification tag will affect the first image. The image is marked, and the use status of the identification label is changed to in use, so as to avoid the situation that an identification label is used multiple times.
  • the identification label is a number
  • any number may be used as the identification label to mark the first image and the first operation information.
  • identification label is an English letter
  • any English letter may be used as the identification label to mark the first image and the first operation information.
  • the identification label is a number or English letter
  • the identification tag has a certain indexing function for the storage queue, that is, the operation information corresponding to different images is obtained through the identification tag. Therefore, when the identification tag is a timestamp, the first moment of When the first operation information of the movable platform includes: obtaining the timestamp corresponding to the first image; querying and obtaining the available time stamp from the preset storage queue according to the timestamp when the first image was taken. The first operation information of the mobile platform.
  • the control terminal When the control terminal sends the first position obtained by the analysis processing to the movable platform, the first position will carry an identification tag for marking the first image, such as a time stamp. Therefore, when acquiring the first operation information, according to The timestamp carried in the first position is queried in a preset storage queue to obtain the first operation information of the movable platform when the first image is captured.
  • the movable platform When the movable platform receives the first position sent by the control terminal, it obtains the second operation information of the movable platform at the second moment, and also obtains the first position captured by the photographing device of the movable platform at the second moment. Second image.
  • the second moment is the time information when the movable platform receives the first position.
  • the photographing device is collecting images in real time, so when the first position sent by the control terminal is received, the second operation information of the movable platform at this time can be obtained in time, and the second operation information of the movable platform can be obtained in time. A second image taken by the movable platform at the moment.
  • the mobile platform and the control terminal are connected by communication.
  • the data processing process during target tracking is placed on the control terminal, and then the mobile platform is based on the data uploaded by the control terminal.
  • the data processing result tracks the following target.
  • the mobile platform Since there is a certain delay in data transmission, that is, the mobile platform needs to transmit the data to the control terminal for processing after acquiring the relevant data, and the mobile platform is still in the running state at this time.
  • the position of the movable platform has changed. If the received result information is used to follow directly at this time, the following situation may not be accurate enough.
  • S204 Generate an estimated position of the following target in the second image according to the first position, the first operation information, and the second operation information.
  • the following target After receiving the first position sent by the control terminal, and after acquiring the first operation information and the second operation information in the storage queue, the following target will be generated according to the first position, the first operation information and the second operation information.
  • Estimated position in the second image is the position and size of the target frame following the target in the second image.
  • the mobile platform when the mobile platform receives the data sent by the control terminal, if the mobile platform directly uses the received data as the current reference for following the target, the target will follow accurately.
  • the following target it is usually determined whether and how the movable platform needs to be adjusted currently according to the positional relationship between the following target and the movable platform.
  • the position corresponding to the following target needs to be determined, and then the movable platform can be controlled to follow the following target.
  • the movable platform can be controlled to follow the following target.
  • the position corresponding to the following target at this time use the fusion of the first position, the first operation information and the second operation information to determine the estimated position of the following target in the second image, and then realize the following according to the estimated position. .
  • the following method of the movable platform to the following target is pre-set, such as simple straight line following, or complex circle follow, spiral follow, or gradual distance follow, etc.
  • the position of the target frame corresponding to the following target in the real-time captured image will be in a fixed position, such as in the middle of the image, so that the following scene can be better displayed .
  • the target frame corresponding to the following target is in the middle of the image
  • the size of the target frame also needs to be controlled at a fixed size, such as a square target frame with a fixed length and width, and a fixed radius.
  • the circular target frame of taking the target frame as a square target frame as an example, the position of the target frame in the image when accurately following is shown in Figure 6.
  • the captured image and the position of the target frame in the image will also change accordingly, such as the movement of up, down, left and right and the change of the size of the target frame.
  • the position change of the following target can be estimated and judged based on the principle of taking pictures. Specifically, when the distance between the movable platform and the following target is getting closer, the following target will become larger in the image, and also That is, the size of the target frame will become larger, and when the distance between the movable platform and the following target becomes farther, the following target will become smaller in the image, that is, the size of the target frame will become smaller. Therefore, the distance between the movable platform and the following target can be reflected by the size of the target frame.
  • determining the estimated position of the following target in the second image is obtained by fusing the first position, the first operation information and the second operation information.
  • the first position is determined based on the first image captured at the first moment, so the first position is related to the first running information at the first moment. Therefore, at the second moment
  • the estimated position of the following target in the second image is also related to the second running information at the second moment, and then the estimated position of the following target in the second image at the second moment is determined through fusion between the three.
  • the following target After the estimated position of the following target in the second image is determined, the following target will be followed according to the obtained estimated position. In fact, when the target is followed, the following is realized according to the actual position of the following target and the actual position of the movable platform itself.
  • FIG. 7 is a schematic flowchart of a step of following a follow target provided by an embodiment of the present application. Specifically, it includes steps S701 to S702.
  • the position of the movable platform in the world coordinate system can be obtained in real time, which is specifically included in the operation information of the movable platform. Therefore, when determining the position of the following target in the world coordinate system, read The position of the movable platform in the world coordinate system in the second operation information, and then by determining the relative positional relationship between the following target and the movable platform, the position of the following target in the world coordinate system is obtained.
  • the position of the following target in the world coordinate system it is obtained according to the second operation information at the second moment. Specifically, the attitude information of the gimbal included in the second operation information is obtained, and The position of the target frame in the included second image is to determine the target distance from the following target to the movable platform according to the obtained attitude information of the gimbal and the position of the target frame in the second image, and then according to the obtained The target distance and the position information of the movable platform determine the position of the following target in the world coordinate system, wherein the position information of the movable platform is the position of the movable platform in the world coordinate system.
  • the obtained attitude information mainly includes the pitch angle of the gimbal, but for the attitude information of the gimbal, it also includes the yaw angle. and roll angles, respectively represent different directions in the three-dimensional coordinates, and when determining the position of the following target in the world coordinate system, the pitch angle and the actual position of the movable platform can be obtained.
  • the relationship between the movable platform and the following target can be constructed, such as forming a horizontal line with a horizontal line. Triangular relationship, and then use the formed triangular relationship to determine the distance from the following target to the movable platform.
  • the ratio of the size is obtained, and the actual distance of the AO can be obtained according to the triangular relationship, that is, the target distance between the following target and the movable platform.
  • the position of the following target in the world coordinate system is determined according to the position information of the movable platform.
  • the position of the following target in the world coordinate system is obtained according to the target distance, direction and position information.
  • the movable platform When the position of the following target in the world coordinate system is determined, the movable platform will be controlled to follow the following target according to the obtained position according to the preset running trajectory, wherein the preset running trajectory and the pre-determined following method
  • the preset running track includes one of a revolving track, a spiral track, and an increasing track.
  • FIG. 10 is a schematic flowchart of steps of a position estimation method provided by an embodiment of the present application.
  • the position estimation method can not only reduce the calculation amount of the movable platform, but also overcome the delay between the movable platform and the control terminal, thereby improving the accuracy of the estimated position.
  • the method includes steps S1001 to S1004.
  • the position of the shooting target in the collected image is estimated to determine the actual position of the shooting target.
  • the position estimation method in addition to being used in the following control method described above to realize following the following target, it can also be applied in other different scenarios, such as target positioning by a drone or a robot.
  • target positioning by a drone or a robot.
  • the scene such as the estimated scene of the running trajectory.
  • the movable platform when following the following target, sends the collected first image to the control terminal, so that the control terminal can monitor the first image Perform analysis and processing to obtain the first position of the following target in the first image, and then when the movable platform receives the first position, obtains the second operation information of the movable platform at the second moment, and obtains the second operation information at the second moment.
  • the captured second image wherein the second moment is the moment when the movable platform receives the first position, and then performs information fusion according to the obtained first position, the first operation information and the second operation information, and generates a follow-up
  • the estimated position of the target in the second image, and finally the following target is followed according to the obtained estimated position of the following target in the second image.
  • the control terminal is used to analyze and process the image, which reduces the performance requirements of the movable platform, and when processing according to the received processing results, the current position of the following target is estimated by information fusion. , which improves the accuracy of following.
  • control method includes:
  • the following target is followed according to the position of the following target in the world coordinate system and the second running information.
  • obtaining the position of the following target in the world coordinate system according to the first position and the first operation information can be obtained by referring to the above method;
  • the ratio of the size is obtained, and the actual distance of the AO can be obtained according to the triangular relationship, that is, the target distance between the following target and the movable platform.
  • the position of the following target in the world coordinate system can be obtained.
  • the first operation information and the first image have the same identification tag, and are used to index the first operation information corresponding to the first image from the preset storage queue.
  • the identification tag includes a time stamp.
  • the sending to the control terminal the first image captured by the capturing device at the first moment includes:
  • the first image is marked according to the time stamp, and the first image marked with the time stamp is sent to the control terminal.
  • the first location sent by the control terminal includes a time stamp
  • the acquiring the first operation information of the movable platform at the first moment includes:
  • the first operation information of the movable platform when the first image is captured is queried and acquired from the preset storage queue according to the time stamp.
  • the method after querying from the preset storage queue according to the timestamp and acquiring the first operation information of the movable platform when the first image is captured, the method includes:
  • the storage queue includes a queue with a preset length for storing a preset number of first operation information.
  • the movable platform comprises a drone or a robot.
  • the following the following target according to the position of the following target in the world coordinate system includes:
  • the preset running track includes one of a circle track, a spiral track, and an increasing track.
  • FIG. 11 is a schematic block diagram of a movable platform provided by an embodiment of the present application.
  • the movable platform 21 includes a processor 211 and a memory 212, and the processor 211 and the memory 212 are connected through a bus, such as an I2C (Inter-integrated Circuit) bus.
  • I2C Inter-integrated Circuit
  • the processor 211 may be a micro-controller unit (Micro-controller Unit, MCU), a central processing unit (Central Processing Unit, CPU), or a digital signal processor (Digital Signal Processor, DSP) or the like.
  • MCU Micro-controller Unit
  • CPU Central Processing Unit
  • DSP Digital Signal Processor
  • the memory 212 may be a Flash chip, a read-only memory (ROM, Read-Only Memory) magnetic disk, an optical disk, a U disk, a mobile hard disk, and the like.
  • ROM Read-Only Memory
  • the memory 212 may be a Flash chip, a read-only memory (ROM, Read-Only Memory) magnetic disk, an optical disk, a U disk, a mobile hard disk, and the like.
  • the movable platform is connected to the control terminal in communication, the movable platform includes a pan-tilt, and the pan-tilt is equipped with a photographing device, and the photographing device is used for capturing images in real time, and the processor 211 is used for running storage A computer program in memory, and implementing the following steps when executing the computer program:
  • the following target is followed according to the estimated position in the second image.
  • the first operation information and the second operation information include position information and attitude of the movable platform, and attitude information of the gimbal.
  • the processor 211 when implementing the method, specifically implements:
  • the first operation information and the first image have the same identification tag, and are used to index the first operation information corresponding to the first image from the preset storage queue.
  • the identification tag includes a time stamp.
  • the processor 211 when the processor 211 implements the sending to the control terminal the first image captured by the photographing device at the first moment, the processor 211 specifically implements:
  • the first image is marked according to the time stamp, and the first image marked with the time stamp is sent to the control terminal.
  • the first position sent by the control terminal includes a timestamp, and when the processor 211 implements the acquiring of the first operating information of the movable platform at the first moment, the processor 211 specifically implements:
  • the acquiring the first operation information of the movable platform at the first moment includes:
  • the first operation information of the movable platform when the first image is captured is queried and acquired from the preset storage queue according to the time stamp.
  • the storage queue includes a queue with a preset length for storing a preset number of first operation information.
  • the processor 211 when implementing the method, specifically implements:
  • the initial image captured by the photographing device is acquired, and the initial image is sent to the control terminal, so that the control terminal displays the initial image, so as to determine the following target.
  • the processor 211 when the processor 211 implements the following to the following target according to the estimated position in the second image, the processor 211 specifically implements:
  • the following target is followed according to the position of the following target in the world coordinate system.
  • the first position includes the position and size of a first target frame corresponding to the following target in the first image
  • the estimated position includes the following target in the second image The position and size of the target box in the corresponding second image.
  • the processor 211 when the processor 211 determines the position of the following target in the world coordinate system according to the estimated position and the second operation information, the processor 211 specifically implements:
  • the position of the following target in the world coordinate system is determined.
  • the processor 211 when the processor 211 implements the following to the following target according to the position of the following target in the world coordinate system, the processor 211 specifically implements:
  • the preset running track includes one of a circle track, a spiral track, and an increasing track.
  • the movable platform includes a drone or a robot.
  • An embodiment of the present application provides a follow-up control device, the follow-up control device includes a memory and a processor, and the memory is used for storing a computer program; the processor is used for executing the computer program and executing the computer program.
  • the follow-up control device includes a memory and a processor, and the memory is used for storing a computer program; the processor is used for executing the computer program and executing the computer program.
  • An embodiment of the present application provides a position estimation apparatus, where the position estimation apparatus includes a memory and a processor, where the memory is used for storing a computer program; the processor is used for executing the computer program and executing the computer program.
  • the position estimation apparatus includes a memory and a processor, where the memory is used for storing a computer program; the processor is used for executing the computer program and executing the computer program.
  • Embodiments of the present application further provide a computer-readable storage medium, where the computer-readable storage medium stores a computer program, the computer program includes program instructions, and the processor executes the program instructions to implement the above implementation
  • the example provides the steps for following the control method and/or position estimation.
  • the computer-readable storage medium may be an internal storage unit of the removable platform described in any of the foregoing embodiments, such as a hard disk or a memory of the removable platform.
  • the computer-readable storage medium can also be an external storage device of the removable platform, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital) equipped on the removable platform , SD) card, flash memory card (Flash Card), etc.

Abstract

A position estimation method and apparatus, a following control method and apparatus, a device and a storage medium. The following control method comprises: sending to a control terminal a first image captured by a photographing apparatus at a first moment, so that the control terminal identifies a first position, in the first image, of a following target in the image and sends the first position to a movable platform (S101); acquiring first operation information of the movable platform at the first moment (S102); upon receiving the first position, acquiring second operation information of the movable platform at a second moment, and acquiring a second image captured by the photographing apparatus at the second moment (S103); generating an estimated position of the following target in the second image according to the first position, the first operation information and the second operation information (S104); and following the following target according to the estimated position in the second image (S105).

Description

位置估计方法、跟随控制方法、设备及存储介质Position estimation method, following control method, device and storage medium 技术领域technical field
本申请涉及可移动设备相关的技术领域,尤其涉及一种位置估计方法、跟随控制方法、装置、可移动平台及存储介质。The present application relates to the technical field related to mobile devices, and in particular, to a position estimation method, a follow-up control method, an apparatus, a movable platform, and a storage medium.
背景技术Background technique
在使用可移动平台进行目标跟随时,比如使用飞行器进行目标跟随,是通过对飞行器所采集到的图像进行分析处理,确定跟随目标的目标位置(位置框)以实现对跟随目标的跟随。由于图像处理计算量较大,因此需要飞行器具有较高的计算能力,增加了飞行器的成本,同时还会增加飞行器的功耗以及影响飞行器的散热。When using a movable platform to follow a target, such as using an aircraft to follow the target, the target position (position frame) of the following target is determined by analyzing and processing the images collected by the aircraft to achieve the following target. Due to the large amount of calculation in image processing, the aircraft needs to have high computing power, which increases the cost of the aircraft, and also increases the power consumption of the aircraft and affects the heat dissipation of the aircraft.
发明内容SUMMARY OF THE INVENTION
基于此,本申请提供了一种位置估计方法、跟随控制方法、设备及存储介质,以降低跟随成本,并提高目标跟随的准确性。Based on this, the present application provides a position estimation method, a following control method, a device and a storage medium, so as to reduce the following cost and improve the accuracy of target following.
第一方面,本申请提供了一种跟随控制方法,应用于可移动平台,所述可移动平台与控制终端通信连接,所述可移动平台包括云台,所述云台搭载有拍摄装置,所述拍摄装置用于实时采集图像,所述方法包括:In a first aspect, the present application provides a follow-up control method, which is applied to a movable platform, wherein the movable platform is communicatively connected to a control terminal, the movable platform includes a pan-tilt, and the pan-tilt is equipped with a photographing device, so The photographing device is used to collect images in real time, and the method includes:
向所述控制终端发送所述拍摄装置第一时刻所拍摄的第一图像,以使所述控制终端识别所述图像中的跟随目标在所述第一图像中的第一位置发送给所述可移动平台;Send the first image captured by the photographing device at the first moment to the control terminal, so that the control terminal recognizes the first position of the following target in the image in the first image and sends the image to the control terminal. mobile platform;
获取所述第一时刻下所述可移动平台的第一运行信息;obtaining the first operation information of the movable platform at the first moment;
当接收到所述第一位置时,获取第二时刻下的所述可移动平台的第二运行信息,以及获取第二时刻下所述拍摄装置所述拍摄的第二图像;When the first position is received, obtain the second operation information of the movable platform at the second moment, and obtain the second image captured by the photographing device at the second moment;
根据所述第一位置、第一运行信息以及第二运行信息,生成所述跟随目标在所述第二图像中的估计位置;generating an estimated position of the following target in the second image according to the first position, the first operation information and the second operation information;
根据所述第二图像中的估计位置对所述跟随目标进行跟随。The following target is followed according to the estimated position in the second image.
第二方面,本申请还提供了一种位置估计方法,应用于可移动平台,所述可移动平台与控制终端通信连接,所述可移动平台包括云台,所述云台搭载有拍摄装置,所述拍摄装置用于实时采集图像,所述方法包括:In a second aspect, the present application also provides a method for position estimation, which is applied to a movable platform, wherein the movable platform is communicatively connected to a control terminal, the movable platform includes a pan-tilt, and the pan-tilt is equipped with a photographing device, The photographing device is used to collect images in real time, and the method includes:
向所述控制终端发送所述拍摄装置第一时刻所拍摄的第一图像,以使所述控制终端识别所述图像中的拍摄目标在所述第一图像中的第一位置发送给所述可移动平台;Send the first image captured by the photographing device at the first moment to the control terminal, so that the control terminal recognizes the first position of the photographing target in the image in the first image and sends it to the available mobile platform;
获取所述第一时刻下所述可移动平台的第一运行信息;obtaining the first operation information of the movable platform at the first moment;
当接收到所述第一位置时,获取第二时刻下的所述可移动平台的第二运行信息,以及获取第二时刻下所述拍摄装置所述拍摄的第二图像;When the first position is received, obtain the second operation information of the movable platform at the second moment, and obtain the second image captured by the photographing device at the second moment;
根据所述第一位置、第一运行信息以及第二运行信息,生成所述拍摄目标在所述第二图像中的估计位置。An estimated position of the shooting target in the second image is generated according to the first position, the first operation information, and the second operation information.
第三方面,本申请还提供了一种跟随控制装置,所述控制装置包括存储器和处理器:In a third aspect, the present application also provides a follow-up control device, the control device includes a memory and a processor:
所述存储器用于存储计算机程序;the memory is used to store computer programs;
所述处理器,用于执行所述计算机程序并在执行所述计算机程序时,实现如下步骤:The processor is configured to execute the computer program and implement the following steps when executing the computer program:
向所述控制终端发送所述拍摄装置第一时刻所拍摄的第一图像,以使所述控制终端识别所述图像中的跟随目标在所述第一图像中的第一位置发送给所述可移动平台;Send the first image captured by the photographing device at the first moment to the control terminal, so that the control terminal recognizes the first position of the following target in the image in the first image and sends the image to the control terminal. mobile platform;
获取所述第一时刻下所述可移动平台的第一运行信息;obtaining the first operation information of the movable platform at the first moment;
当接收到所述第一位置时,获取第二时刻下的所述可移动平台的第二运行信息,以及获取第二时刻下所述拍摄装置所述拍摄的第二图像;When the first position is received, obtain the second operation information of the movable platform at the second moment, and obtain the second image captured by the photographing device at the second moment;
根据所述第一位置、第一运行信息以及第二运行信息,生成所述跟随目标在所述第二图像中的估计位置;generating an estimated position of the following target in the second image according to the first position, the first operation information and the second operation information;
根据所述第二图像中的估计位置对所述跟随目标进行跟随。The following target is followed according to the estimated position in the second image.
第四方面,本申请还提供了一种位置估计装置,所述控制装置包括存储器和处理器:In a fourth aspect, the present application also provides a position estimation device, the control device includes a memory and a processor:
所述存储器用于存储计算机程序;the memory is used to store computer programs;
所述处理器,用于执行所述计算机程序并在执行所述计算机程序时,实 现如下步骤:The processor is configured to execute the computer program and when executing the computer program, implement the following steps:
向所述控制终端发送所述拍摄装置第一时刻所拍摄的第一图像,以使所述控制终端识别所述图像中的拍摄目标在所述第一图像中的第一位置发送给所述可移动平台;Send the first image captured by the photographing device at the first moment to the control terminal, so that the control terminal recognizes the first position of the photographing target in the image in the first image and sends it to the available mobile platform;
获取所述第一时刻下所述可移动平台的第一运行信息;obtaining the first operation information of the movable platform at the first moment;
当接收到所述第一位置时,获取第二时刻下的所述可移动平台的第二运行信息,以及获取第二时刻下所述拍摄装置所述拍摄的第二图像;;When receiving the first position, obtain the second operation information of the movable platform at the second moment, and obtain the second image captured by the photographing device at the second moment;
根据所述第一位置、第一运行信息以及第二运行信息,生成所述拍摄目标在所述第二图像中的估计位置。An estimated position of the shooting target in the second image is generated according to the first position, the first operation information, and the second operation information.
第五方面,本申请还提供了一种可移动平台,所述可移动平台包括存储器和处理器:In a fifth aspect, the present application also provides a movable platform, the movable platform includes a memory and a processor:
所述存储器用于存储计算机程序;the memory is used to store computer programs;
所述处理器,用于执行所述计算机程序并在执行所述计算机程序时,实现如下步骤:The processor is configured to execute the computer program and implement the following steps when executing the computer program:
向所述控制终端发送所述拍摄装置第一时刻所拍摄的第一图像,以使所述控制终端识别所述图像中的跟随目标在所述第一图像中的第一位置发送给所述可移动平台;Send the first image captured by the photographing device at the first moment to the control terminal, so that the control terminal recognizes the first position of the following target in the image in the first image and sends the image to the control terminal. mobile platform;
获取所述第一时刻下所述可移动平台的第一运行信息;obtaining the first operation information of the movable platform at the first moment;
当接收到所述第一位置时,获取第二时刻下的所述可移动平台的第二运行信息,以及获取第二时刻下所述拍摄装置所述拍摄的第二图像;When the first position is received, obtain the second operation information of the movable platform at the second moment, and obtain the second image captured by the photographing device at the second moment;
根据所述第一位置、第一运行信息以及第二运行信息,生成所述跟随目标在所述第二图像中的估计位置;generating an estimated position of the following target in the second image according to the first position, the first operation information and the second operation information;
根据所述第二图像中的估计位置对所述跟随目标进行跟随。The following target is followed according to the estimated position in the second image.
第六方面,本申请还提供了一种跟随控制系统,所述飞行控制系统包括可移动平台和控制终端;In a sixth aspect, the application further provides a follow-up control system, the flight control system includes a movable platform and a control terminal;
所述控制终端用于接收所述可移动平台发送的图像,并识别所述图像中的跟随目标在所述图像中的第一位置,以将所述第一位置发送至所述可移动平台;The control terminal is configured to receive the image sent by the movable platform, and identify the first position of the following target in the image in the image, so as to send the first position to the movable platform;
所述可移动平台用于向所述控制终端发送所述拍摄装置第一时刻所拍摄的第一图像,以使所述控制终端识别所述图像中的跟随目标在所述第一图 像中的第一位置发送给所述可移动平台;The movable platform is configured to send the first image captured by the photographing device at the first moment to the control terminal, so that the control terminal recognizes the first image of the following target in the first image. a position is sent to the movable platform;
所述可移动平台用于获取所述第一时刻下所述可移动平台的第一运行信息;The movable platform is used to obtain the first operation information of the movable platform at the first moment;
所述可移动平台用于当接收到所述第一位置时,获取第二时刻下的所述可移动平台的第二运行信息,以及获取第二时刻下所述拍摄装置所述拍摄的第二图像;The movable platform is configured to acquire the second operation information of the movable platform at the second moment when the first position is received, and acquire the second operation information of the photographing device at the second moment. image;
所述可移动平台用于根据所述第一位置、第一运行信息以及第二运行信息,生成所述跟随目标在所述第二图像中的估计位置;The movable platform is configured to generate an estimated position of the following target in the second image according to the first position, the first operation information and the second operation information;
所述可移动平台用于根据所述第二图像中的估计位置对所述跟随目标进行跟随。The movable platform is used for following the following target according to the estimated position in the second image.
第七方面,本申请还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时使所述处理器实现上述的跟随控制方法,和/或位置估计方法。In a seventh aspect, the present application also provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor implements the above-mentioned following control method, and/or location estimation methods.
本申请实施例提供的位置估计方法、跟随控制方法、装置、可移动平台及存储介质,在对跟随目标进行跟随时,可移动平台将所采集到的第一图像发送给控制终端,以使得控制终端对第一图像进行分析处理得到跟随目标在第一图像中的第一位置,然后可移动平台在接收到第一位置时,获取在第二时刻下可移动平台的第二运行信息,以及获取在第二时刻时所拍摄到的第二图像,其中,第二时刻为可移动平台接收到第一位置的时刻,进而根据所得到的第一位置、第一运行信息以及第二运行信息进行信息融合,生成得到跟随目标在第二图像中的估计位置,最后根据所得到的跟随目标在第二图像中的估计位置对跟随目标进行跟随。实现了在目标跟随时,通过控制终端进行图像的分析处理,降低对可移动平台性能的要求,并在根据所接收到的处理结果进行处理时,通过信息融合以对跟随目标的当前位置进行估计,提高了跟随的准确性。In the position estimation method, following control method, device, movable platform, and storage medium provided by the embodiments of the present application, when following the following target, the movable platform sends the collected first image to the control terminal, so that the control The terminal analyzes and processes the first image to obtain the first position of the following target in the first image, and then, when the movable platform receives the first position, obtains the second operation information of the movable platform at the second moment, and obtains The second image captured at the second moment, wherein the second moment is the moment when the movable platform receives the first position, and then conducts information according to the obtained first position, the first operation information and the second operation information After fusion, the estimated position of the following target in the second image is generated, and finally the following target is followed according to the obtained estimated position of the following target in the second image. When the target is following, the control terminal is used to analyze and process the image, which reduces the requirements for the performance of the movable platform, and when processing according to the received processing results, the current position of the following target is estimated by information fusion. , which improves the accuracy of following.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本申请。It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not limiting of the present application.
附图说明Description of drawings
为了更清楚地说明本申请实施例技术方案,下面将对实施例描述中所需要 使用的附图作简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the technical solutions of the embodiments of the present application more clearly, the following briefly introduces the accompanying drawings used in the description of the embodiments. For those of ordinary skill, other drawings can also be obtained from these drawings without any creative effort.
图1是本申请一实施例提供的一种跟随控制系统的示意性框图;FIG. 1 is a schematic block diagram of a follow-up control system provided by an embodiment of the present application;
图2是本申请一实施例提供的一种跟随控制方法的步骤示意流程图;2 is a schematic flowchart of steps of a follow-up control method provided by an embodiment of the present application;
图3是本申请一实施例提供的一种目标框形式的示意图;3 is a schematic diagram of a target frame form provided by an embodiment of the present application;
图4是本申请一实施例提供的另一种目标框形式的示意图。FIG. 4 is a schematic diagram of another target frame form provided by an embodiment of the present application.
图5是本申请一实施例提供的记录第一运行信息的步骤的流程示意图;5 is a schematic flowchart of a step of recording first operation information provided by an embodiment of the present application;
图6是本申请一实施例提供的目标框位置的场景示意图;6 is a schematic diagram of a scene of a target frame position provided by an embodiment of the present application;
图7是本申请一实施例提供的对跟随目标进行跟随的步骤的流程示意图;7 is a schematic flowchart of a step of following a follow target provided by an embodiment of the present application;
图8是本申请一实施例提供的确定跟随目标的在世界坐标系下的位置的步骤的流程示意图;8 is a schematic flowchart of a step of determining a position of a follow target in a world coordinate system provided by an embodiment of the present application;
图9是本申请一实施例提供的目标距离计算的场景示意图;9 is a schematic diagram of a scene for calculating a target distance provided by an embodiment of the present application;
图10是本申请一实施例提供的一种位置估计方法的步骤的流程示意图;10 is a schematic flowchart of steps of a position estimation method provided by an embodiment of the present application;
图11是本申请一实施例提供的可移动平台的示意性框图。FIG. 11 is a schematic block diagram of a movable platform provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
附图中所示的流程图仅是示例说明,不是必须包括所有的内容和操作/步骤,也不是必须按所描述的顺序执行。例如,有的操作/步骤还可以分解、组合或部分合并,因此实际执行的顺序有可能根据实际情况改变。The flowcharts shown in the figures are for illustration only, and do not necessarily include all contents and operations/steps, nor do they have to be performed in the order described. For example, some operations/steps can also be decomposed, combined or partially combined, so the actual execution order may be changed according to the actual situation.
下面结合附图,对本申请的一些实施方式作详细说明。在不冲突的情况下,下述的实施例及实施例中的特征可以相互组合。Some embodiments of the present application will be described in detail below with reference to the accompanying drawings. The embodiments described below and features in the embodiments may be combined with each other without conflict.
本申请实施例提供的可移动平台的跟随控制方法,具体是利用控制终端对可移动平台所采集到的图像进行分析处理,然后可移动平台根据控制终端进行 处理所反馈的结果信息进行相应的数据处理,以实现对跟随目标的跟随。The following control method of the movable platform provided by the embodiment of the present application specifically uses the control terminal to analyze and process the images collected by the movable platform, and then the movable platform performs corresponding data processing according to the result information fed back by the control terminal. Process to achieve following to the follow target.
示例性的,可移动平台包括飞行器、机器人或自动驾驶车辆等,可移动平台上搭载有拍摄装置,为便于描述,本申请以无人机为可移动平台为例来进行详细介绍。Exemplarily, the movable platform includes an aircraft, a robot, or an autonomous vehicle, etc., and the movable platform is equipped with a photographing device. For ease of description, the present application takes an unmanned aerial vehicle as an example of a movable platform for detailed description.
请参阅图1,图1是本申请一实施例提供的一种跟随控制系统的示意性框图。以下将结合图1,对本申请实施例中的跟随控制系统进行说明。Please refer to FIG. 1 . FIG. 1 is a schematic block diagram of a follow-up control system provided by an embodiment of the present application. The following control system in the embodiment of the present application will be described below with reference to FIG. 1 .
如图1所示,该跟随控制系统10包括可移动平台100和控制终端200,可移动平台100与控制终端200通信连接,其中,可移动平台100用于将所获取的图像发送给控制终端200,以及根据控制终端200的反馈信息进行相应的响应,控制终端200用于对所接收到的图像进行分析处理,并将分析处理所得到的位置发送给可移动平台100。As shown in FIG. 1 , the following control system 10 includes a movable platform 100 and a control terminal 200 . The movable platform 100 is connected in communication with the control terminal 200 , wherein the movable platform 100 is used for sending the acquired image to the control terminal 200 . , and make a corresponding response according to the feedback information of the control terminal 200 , the control terminal 200 is used for analyzing and processing the received image, and sending the position obtained by the analysis and processing to the movable platform 100 .
控制终端200包括移动通信设备,该移动通信设备可例如为手机、便携式电脑或者手表等。可移动平台100为无人机。The control terminal 200 includes a mobile communication device, which may be, for example, a mobile phone, a laptop computer, a watch, or the like. The movable platform 100 is a drone.
控制终端200可包括处理器、显示器和显示器控制器。所述显示器控制器与所述处理器电连接,以及与显示器连接,用于控制所述显示器显示相应内容,比如显示图像画面。The control terminal 200 may include a processor, a display, and a display controller. The display controller is electrically connected to the processor and connected to the display for controlling the display to display corresponding content, such as displaying an image.
其中,该处理器可以是中央处理单元(Central Processing Unit,CPU),该处理器还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(application specific integrated circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。Wherein, the processor may be a central processing unit (Central Processing Unit, CPU), and the processor may also be other general-purpose processors, digital signal processors (Digital Signal Processors, DSP), application specific integrated circuits (application specific integrated circuits, ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
处理器可以与显示器控制器进行通信,比如,生成定时信号用于触发显示器控制器以控制显示器显示相关内容。The processor may communicate with the display controller, eg, to generate timing signals for triggering the display controller to control the display to display relevant content.
可以理解的是,所述显示器控制器可以是所述显示器的一部分,也可以与所述显示器分离。所述显示器包括LCD显示器、LED显示器和OLED显示器等。It can be understood that the display controller may be a part of the display, or may be separate from the display. The displays include LCD displays, LED displays, OLED displays, and the like.
可以理解的是,所述显示器可以是控制终端200的一部分,比如控制终端200为手机,显示器为手机的显示屏;当然,也可以是控制终端200的外接显示器。相应地,所述显示器控制器也可以是控制终端200的一部分,或者是与 控制终端200的分离部分。It can be understood that the display may be a part of the control terminal 200 , for example, the control terminal 200 is a mobile phone, and the display is a display screen of the mobile phone; of course, it may also be an external display of the control terminal 200 . Correspondingly, the display controller may also be a part of the control terminal 200, or a separate part from the control terminal 200.
此外,根据本申请的一实施方式,控制终端200也可以由其他可以具有数据处理能力且可以进行数据反馈的装置(例如,控制器)代替。In addition, according to an embodiment of the present application, the control terminal 200 can also be replaced by other devices (eg, a controller) that can have data processing capabilities and can perform data feedback.
在跟随控制系统中,在需要对跟随目标进行跟随时,可移动平台100利用自身所设置的拍摄装置进行图像的采集,获取所采集到的第一图像以及采集第一图像的第一时刻,进而将所采集到的第一图像发送至控制终端200,以使得控制终端200对第一图像中的第一位置进行识别和获取,同时可移动平台100会获取自身在第一时刻时的第一运行信息,然后可移动平台100接收控制终端200在第二时刻所发送的第一位置,同时获取自身在第二时刻的第二运行信息,以及在第二时刻所拍摄到的第二图像,进而根据所得到的第一位置、第一运行信息和第二运行信息确定跟随目标在第二图像中的估计位置,最后根据所确定的跟随目标在第二图像中的估计位置实现对跟随目标的跟随。In the following control system, when the following target needs to be followed, the movable platform 100 uses the camera set by itself to collect images, obtain the first image collected and the first moment of collecting the first image, and then Send the collected first image to the control terminal 200, so that the control terminal 200 can identify and obtain the first position in the first image, and at the same time, the movable platform 100 will obtain the first operation of itself at the first moment information, and then the movable platform 100 receives the first position sent by the control terminal 200 at the second moment, and at the same time obtains its own second operation information at the second moment and the second image captured at the second moment, and then according to The obtained first position, first running information and second running information determine the estimated position of the following target in the second image, and finally follow the following target according to the determined estimated position of the following target in the second image.
在一实施例中,可移动平台100的数量不限,但每个可移动平台100独立与控制终端200进行通信连接,以及时准确的完成各自对跟随目标的跟随。而在可移动平台100的数量大于一时,对于控制终端而言,可以对每个可移动平台100所发送的图像或者数据进行标注,以使得数据的传输不会出现误传输,如将第一可移动平台的数据传输给第二可移动平台。In one embodiment, the number of movable platforms 100 is not limited, but each movable platform 100 independently communicates with the control terminal 200, so as to timely and accurately complete the respective following targets. When the number of movable platforms 100 is greater than one, for the control terminal, the image or data sent by each movable platform 100 can be marked, so that the data transmission will not be erroneously transmitted. The data of the mobile platform is transmitted to the second mobile platform.
请参阅图2,图2是本申请一实施例提供的一种跟随控制方法的步骤示意流程图。该跟随控制方法可应用于可移动平台,以在可移动平台进行目标跟随时,能及时准确的对跟随目标进行跟随。Please refer to FIG. 2 , which is a schematic flowchart of steps of a follow-up control method provided by an embodiment of the present application. The following control method can be applied to a movable platform, so that when the movable platform follows a target, the following target can be followed accurately and timely.
如图2所示,该跟随控制方法包括步骤S201至步骤S205。As shown in FIG. 2 , the following control method includes steps S201 to S205.
S201、向所述控制终端发送所述拍摄装置第一时刻所拍摄的第一图像,以使所述控制终端识别所述第一图像中的跟随目标在所述第一图像中的第一位置发送给所述可移动平台。S201. Send to the control terminal the first image captured by the photographing device at the first moment, so that the control terminal recognizes the first position of the following target in the first image and sends the image to the movable platform.
可移动平台与控制终端通信连接,进而使得可移动平台在需要进行图像处理时,将所采集到的图像发送给控制终端,以利用控制终端进行图像的分析和处理,进而接收控制终端所返回的分析处理结果,以根据所接收到的分析处理结果实现对跟随目标的跟随。The movable platform is connected to the control terminal in communication, so that when the movable platform needs to perform image processing, the collected images are sent to the control terminal, so as to use the control terminal to analyze and process the image, and then receive the returned information from the control terminal. Analyzing and processing results to realize following the following target according to the received analysis and processing results.
在一实施例中,可移动平台利用所搭载的拍摄装置实时进行图像的采集,因此在可移动平台得到在第一时刻所拍摄的第一图像时,将第一图像发送给 与可移动平台所关联的控制终端,以使得控制终端识别第一图像中的跟随目标在第一图像中的第一位置,进而将所识别得到的第一位置以及相关的信息发送给可移动平台。In one embodiment, the movable platform uses the mounted photographing device to capture images in real time, so when the movable platform obtains the first image captured at the first moment, the first image is sent to the location associated with the movable platform. The associated control terminal, so that the control terminal identifies the first position of the following target in the first image in the first image, and then sends the identified first position and related information to the movable platform.
由于在进行目标跟随时,需要使得跟随目标在所采集到的图像中的位置处于一定的位置,比如图像的中间,同时为了保证目标跟随的展示效果,跟随目标在图像中的大小也会有所限制,对于跟随目标在图像中大小不能过大也不能过小,因此,在进行目标跟随时,可以控制跟随目标在图像中的位置以及大小,如跟随目标所对应的目标框的位置和大小。Because when the target is followed, the position of the following target in the collected image needs to be in a certain position, such as the middle of the image. At the same time, in order to ensure the display effect of the target following, the size of the following target in the image will also vary. Restriction, the size of the following target in the image cannot be too large or too small. Therefore, when the target is followed, the position and size of the following target in the image can be controlled, such as the position and size of the target frame corresponding to the following target.
因此,在一实施例中,控制终端在对第一图像进行分析处理以得到跟随目标在第一图像中的第一位置时,所得到的第一位置包括跟随目标在第一图像中所对应的第一目标框的位置和大小。Therefore, in an embodiment, when the control terminal analyzes and processes the first image to obtain the first position of the following target in the first image, the obtained first position includes the corresponding position of the following target in the first image. The position and size of the first target box.
对于跟随目标在第一图像中所对应的第一目标框而言,需要将跟随目标完全包含在内,并且尽可能少的包含有其他的干扰信息,以跟随目标为人物为例,在确定跟随目标的目标框时,可以按照图3所示的方式,用一个方形框作为跟随目标的目标框,还可以按照图4所示的方式,用一个圆框作为跟随目标的目标框。具体不作限制,根据实际的选择和需求所确定。For the first target frame corresponding to the following target in the first image, the following target needs to be completely included, and other interference information should be included as little as possible. When the target frame of the target is used, a square frame can be used as the target frame of the following target in the manner shown in FIG. 3 , or a circular frame can be used as the target frame of the following target in the manner shown in FIG. There is no specific limitation, and it is determined according to the actual selection and demand.
在一实施例中,在进行目标跟随时,首先需要确定当前所跟随的目标,因此确定跟随目标时,包括:获取所述拍摄装置所拍摄的初始图像,并将所述初始图像至所述控制终端,以使所述控制终端显示所述初始图像,以便确定跟随目标。In one embodiment, when following a target, it is first necessary to determine the target currently being followed. Therefore, when determining the target to follow, it includes: acquiring an initial image captured by the photographing device, and sending the initial image to the control unit. terminal, so that the control terminal displays the initial image so as to determine the following target.
在确定跟随目标时,可移动平台首先会进行初始图像的采集和获取,其中初始图像中包含有所需要进行跟随的跟随目标,然后将所采集到的跟随目标发送给控制终端,进而控制终端通过将初始图像进行显示,以确定所需要跟随的跟随目标。而在初始图像中确定所需要跟随的跟随目标时,可以是人为的进行操作选取的,还可以是控制终端自动选择的。When determining the following target, the movable platform first collects and acquires an initial image, wherein the initial image contains the following target that needs to be followed, and then sends the collected following target to the control terminal, and then the control terminal passes the The initial image is displayed to determine the following target to be followed. When the following target to be followed is determined in the initial image, it may be selected by manual operation, or may be automatically selected by the control terminal.
比如,在控制终端接收到可移动平台所发送的初始图像之后,控制终端将初始图像进行显示,然后控制人员通过目标框的选择在初始图像中确定需要跟随的跟随目标,如直接使用目标框将跟随目标框住,以在确定时完成对跟随目标的确定。For example, after the control terminal receives the initial image sent by the movable platform, the control terminal displays the initial image, and then the controller determines the following target to be followed in the initial image by selecting the target frame. The following target is framed to complete the determination of the following target when it is determined.
再比如,在控制终端自动实现对跟随目标的确定时,控制终端在接收到 可移动平台所发送的初始图像时,预先可以接收输入的目标图像,进而根据目标图像在初始图像中确定所需要根据的跟随目标。For another example, when the control terminal automatically realizes the determination of the following target, when the control terminal receives the initial image sent by the movable platform, it can receive the input target image in advance, and then determine the required basis in the initial image according to the target image. the follow target.
S202、获取所述第一时刻下所述可移动平台的第一运行信息。S202. Acquire first operation information of the movable platform at the first moment.
可移动平台在第一时刻进行图像的拍摄时,还将会获取可移动平台的第一运行信息。对于可移动平台而言,其包括有云台,且云台上也搭载有相关的拍摄装置,以用于实时采集图像。When the movable platform captures an image at the first moment, it will also acquire the first operation information of the movable platform. For the movable platform, it includes a pan/tilt, and the pan/tilt is also equipped with a related photographing device for capturing images in real time.
对于所采集到的第一运行信息,包含有可移动平台在第一时刻时的位置信息和姿态,其中可移动平台的姿态包含可移动平台的飞行方向,同时,第一运行信息中还包含有云台在第一时刻时的姿态信息。The collected first operation information includes the position information and attitude of the movable platform at the first moment, wherein the attitude of the movable platform includes the flight direction of the movable platform, and at the same time, the first operation information also includes The attitude information of the gimbal at the first moment.
在一实施例中,对于可移动平台在任意时刻时的运行信息,在相关的存储空间中都会有所记录,也就是第一运行信息是预先所记录和存储好的,在需要使用的时候,直接可以在相关的存储空间中得到可移动平台在第一时刻时所对应的第一运行信息。In one embodiment, the operation information of the movable platform at any time will be recorded in the relevant storage space, that is, the first operation information is pre-recorded and stored, and when it needs to be used, The first operation information corresponding to the movable platform at the first moment can be directly obtained in the relevant storage space.
对于记录和存储第一运行信息的存储空间,存储空间的类型和形式不作限制,可以根据实际的需求选择合适的类型。For the storage space for recording and storing the first operation information, the type and form of the storage space are not limited, and an appropriate type can be selected according to actual requirements.
比如,可以采用循环buffer来对第一运行信息进行存储,以节省运算资源,而在按照此方式对第一运行信息进行存储时,由于存储队列的长度固定,因此在一定程度上可以自动的对存储空间中的第一运行信息进行更新,具体为将最旧的数据删除。For example, a circular buffer can be used to store the first operation information to save computing resources, and when the first operation information is stored in this way, since the length of the storage queue is fixed, it can automatically The first running information in the storage space is updated, specifically deleting the oldest data.
再比如,可以采用常规类型的存储空间对第一运行信息进行存储,也就是任意类型的存储空间都可以用来实现对第一运行信息的存储。在使用常规类型的存储空间进行记录和存储时,由于存储空间的内存有限,并不能无限制的进行数据的存储,因此在可移动平台对第一运行信息的获取之后,将会删除第一运行信息。以使得存储空间具有更加充足的使用空间,避免数据记录和存储的异常情况出现。For another example, a conventional type of storage space may be used to store the first operation information, that is, any type of storage space may be used to store the first operation information. When using a conventional type of storage space for recording and storage, due to the limited memory of the storage space, data storage cannot be performed without limitation. Therefore, after the mobile platform obtains the first operation information, the first operation will be deleted. information. In order to make the storage space have more sufficient space for use, and avoid abnormal situations of data recording and storage.
在一实施例中,由于第一运行信息是预先需要进行记录和存储的,因此,参照图5,图5是本申请一实施例提供的记录第一运行信息的步骤的流程示意图。In one embodiment, since the first operation information needs to be recorded and stored in advance, referring to FIG. 5 , FIG. 5 is a schematic flowchart of the steps of recording the first operation information provided by an embodiment of the present application.
其中,在对第一运行信息进行存储时,包括:Wherein, when the first operation information is stored, it includes:
步骤S501、采集所述拍摄装置第一时刻拍摄所述第一图像时所述可移 动平台的第一运行信息;Step S501, collecting the first operation information of the movable platform when the photographing device photographed the first image at the first moment;
步骤S502、根据识别标识对所述第一运行信息进行标记,并将具有所述识别标签的所述第一运行信息存储在预设的存储队列中;Step S502, marking the first operation information according to the identification tag, and storing the first operation information with the identification tag in a preset storage queue;
其中,所述第一运行信息与所述第一图像具有相同的识别标签,用于从所述预设的存储队列中索引所述第一图像对应的第一运行信息。The first operation information and the first image have the same identification tag, and are used to index the first operation information corresponding to the first image from the preset storage queue.
在可移动平台的运行过程中,每一时刻都会对应着不同的运行信息,因此,在可移动平台的拍摄装置在第一时刻进行第一图像的拍摄时,将会采集在第一时刻时可移动平台的第一运行信息,然后获取相关的识别标签对第一运行信息进行标识,进而将标记完成之后的第一运行信息存储在预设的存储队列中。During the operation of the movable platform, each moment corresponds to different operation information. Therefore, when the photographing device of the movable platform captures the first image at the first moment, it will capture the available information at the first moment. The first operation information of the mobile platform is obtained, and the relevant identification tag is obtained to identify the first operation information, and then the first operation information after the marking is completed is stored in a preset storage queue.
同时,在使用识别标签对第一运行信息进行标记时,还将使用该识别标签对第一时刻所采集到的第一图像进行标记,以便后续可以直接使用该识别标签进行索引。At the same time, when the first operation information is marked with the identification tag, the first image collected at the first moment will also be marked with the identification tag, so that the identification tag can be directly used for indexing later.
可移动平台上所搭载的拍摄装置是用于进行图像的实时拍摄,而在实际应用中,可移动平台完成一次图像的拍摄,便会将拍摄图像时的运行信息进行记录和存储,因此在存储队列中会存储有若干时刻所对应的运行信息。而不同时刻的运行信息在需要被使用的使用,通过索引查询即可以得到。The shooting device mounted on the movable platform is used for real-time shooting of images. In practical applications, when the movable platform completes one image shooting, it will record and store the operation information when the image is shot. The queue will store operation information corresponding to several times. The operation information at different times can be obtained through index query when it needs to be used.
在实际应用中,在拍摄装置拍摄图像时,可移动平台会在获取拍摄图像的时候采集自身的运行信息,以在第一时刻采集第一图像信息为例,在采集第一图像时,获取可移动平台在第一时刻时的第一运行信息,然后在进行存储时,由于图像的采集是实时的,那么对于运行信息而言,也会存在有很多,因此在得到第一运行信息时,需要将第一运行信息与之前已经采集到的运行信息和后续还将要采集的运行信息进行区分,而对于进行区分的方式方法可以根据实际情况来确定,具体不作限制。In practical applications, when the camera captures an image, the movable platform will collect its own operation information when capturing the captured image. Taking capturing the first image information at the first moment as an example, when capturing the first image, the The first operation information of the mobile platform at the first moment, and then when it is stored, since the image acquisition is real-time, there will also be a lot of operation information. Therefore, when obtaining the first operation information, it is necessary to Distinguish the first operation information from the operation information that has been collected before and the operation information to be collected later, and the method of making the distinction can be determined according to the actual situation, which is not specifically limited.
在一实施例中,在对第一运行信息做区分时,利用相关的识别标识对第一运行信息进行标记,也就是对于所存储的每一个运行信息都会使用一个识别标识进行标记,且每个运行信息的识别标识都不同,并且在完成对第一运行信息的标记之后进行记录和存储。In one embodiment, when distinguishing the first operation information, the first operation information is marked with a relevant identification mark, that is, each stored operation information is marked with an identification mark, and each operation information is marked with an identification mark. The identifications of the operation information are all different, and are recorded and stored after the marking of the first operation information is completed.
其中,识别标签可以是数字编号,还可以是其他的唯一标识。Wherein, the identification label may be a numerical number or other unique identification.
比如,在识别标签为数字编号时,可以使用阿拉伯数字依次对所采集到 的运行信息进行标记,如,所采集到的第一个运行信息为1、所采集到的第二个运行信息为2、依此类推以实现对所采集到的运行信息进行标记。For example, when the identification label is a numerical number, Arabic numerals can be used to mark the collected operation information in sequence, for example, the first collected operation information is 1, and the second collected operation information is 2 , and so on, to mark the collected running information.
在一实施例中,识别标签可以是时间戳。在实际应用中,运行信息是在不同的时刻所采集到的,由于时间的唯一性,因此可以之间使用采集运行信息时所对应的时间戳作为运行信息的识别标签。In one embodiment, the identification tag may be a time stamp. In practical applications, the operation information is collected at different times. Due to the uniqueness of time, the timestamp corresponding to the collection of the operation information can be used as the identification label of the operation information.
同时,在使用识别标识对第一运行信息进行标记时,还将对在第一时刻所采集到的第一图像进行标记,在可移动平台的实际运行过程中,不同的运行信息所对应的图像可能会有所不同,为了保证跟随的准确性,在进行分析处理时,需要准确的获取当前所进行分析处理的图像所对应的拍摄状态,如可移动平台的运行信息。At the same time, when the first operation information is marked with the identification mark, the first image collected at the first moment will also be marked. During the actual operation of the movable platform, the images corresponding to different operation information There may be differences. In order to ensure the accuracy of the following, during the analysis and processing, it is necessary to accurately obtain the shooting status corresponding to the image currently being analyzed and processed, such as the operation information of the movable platform.
在一实施例中,在实现对跟随目标的跟踪时,是通过可移动平台将所采集到的第一图像发送给所关联的控制终端,然后控制终端通过对第一图像的分析处理确定跟随目标在第一图像中所对应的第一位置,进而可移动平台在得到第一位置的时候,基于第一位置以及其他的相关信息实现对跟随目标的跟随,同时在实现对跟随目标的跟随时,需要基于第一时刻时可移动平台的第一运行信息进行分析完成。In one embodiment, when the tracking of the following target is realized, the first image collected is sent to the associated control terminal through the movable platform, and then the control terminal determines the following target by analyzing and processing the first image. At the first position corresponding to the first image, when the movable platform obtains the first position, it can follow the following target based on the first position and other relevant information. The analysis needs to be completed based on the first operation information of the movable platform at the first moment.
另外,可移动平台在获取运行信息时,除了使用识别标签对第一时刻所采集到的第一运行信息进行标记之外,还将使用识别标签对第一图像进行标记,使得可移动平台可以根据所使用的识别标签进行相应的索引。In addition, when the movable platform obtains the operation information, in addition to using the identification tag to mark the first operation information collected at the first moment, it will also use the identification tag to mark the first image, so that the movable platform can use the identification tag to mark the first image according to the The used identification tags are indexed accordingly.
因此,在可以移动平台将第一时刻所采集到的第一图像发送给控制终端时,第一图像上需要携带有相应的识别标签,以识别标签为时间戳为例,可移动平台在将第一图像发送给控制终端时,包括:获取所述拍摄装置第一时刻拍摄的第一图像,并将所述第一时刻作为时间戳;根据所述时间戳对所述第一图像进行标记,并将标记有所述时间戳的所述第一图像发送给所述控制终端。Therefore, when the mobile platform sends the first image collected at the first moment to the control terminal, the first image needs to carry a corresponding identification label. Taking the identification label as a time stamp as an example, the mobile platform sends the first image to the control terminal. When an image is sent to the control terminal, it includes: acquiring a first image captured by the photographing device at a first moment, and using the first moment as a time stamp; marking the first image according to the time stamp, and The first image marked with the time stamp is sent to the control terminal.
使用时间戳对所采集到的第一图像进行标记,使得在接收到控制终端对第一图像的分析处理结果时,可以根据进行标记的时间戳在预设的存储队列中进行索引,以得到可移动平台在第一时刻时所对应的第一运行信息。The collected first image is marked with a timestamp, so that when receiving the analysis and processing result of the first image by the control terminal, an index can be performed in a preset storage queue according to the marked timestamp, so as to obtain an available value. The first operation information corresponding to the mobile platform at the first moment.
需要说明的是,虽然识别标签具有一定的多样性,但是并不会对实际的索引产生影响,在不限制识别标签时,可移动平台在拍摄第一图像时,获取 某一个识别标签对第一图像进行标记,同时将该识别标签的使用状态变更为使用中,以避免出现一个识别标签多次被使用的情况。It should be noted that although the identification tags have a certain variety, they will not affect the actual index. When the identification tags are not limited, when the movable platform captures the first image, the acquisition of a certain identification tag will affect the first image. The image is marked, and the use status of the identification label is changed to in use, so as to avoid the situation that an identification label is used multiple times.
比如,识别标签为数字,可以使用任意一个数字作为识别标签对第一图像以及第一运行信息进行标记。For example, if the identification label is a number, any number may be used as the identification label to mark the first image and the first operation information.
再比如,识别标签为英文字母,可以使用任意一个英文字母作为识别标签对第一图像以及第一运行信息进行标记。For another example, if the identification label is an English letter, any English letter may be used as the identification label to mark the first image and the first operation information.
在识别标签为数字或者英文字母时,不会对识别标签的选择有任何限制,仅仅只会限制每一个数字或者英文字母被使用一次,只有在所标记的运行信息和图像无效时,才可以被再次使用。When the identification label is a number or English letter, there will be no restrictions on the selection of the identification label. It only restricts each number or English letter to be used once. Only when the marked running information and image are invalid, it can be used. use again.
在一实施例中,识别标签对于存储队列而言,具有一定的索引作用,也就是通过识别标签获取不同的图像所对应的运行信息,因此,在识别标签为时间戳时,获取第一时刻下可移动平台的第一运行信息时,包括:获取所述第一图像所对应的时间戳;根据所述时间戳从所述预设的存储队列查询并获取拍摄所述第一图像时所述可移动平台的第一运行信息。In one embodiment, the identification tag has a certain indexing function for the storage queue, that is, the operation information corresponding to different images is obtained through the identification tag. Therefore, when the identification tag is a timestamp, the first moment of When the first operation information of the movable platform includes: obtaining the timestamp corresponding to the first image; querying and obtaining the available time stamp from the preset storage queue according to the timestamp when the first image was taken. The first operation information of the mobile platform.
在控制终端将进行分析处理得到的第一位置发送给可移动平台时,第一位置中会携带有对第一图像进行标记的识别标签,如时间戳,因此在获取第一运行信息时,根据第一位置中所携带的时间戳,预设的存储队列中进行查询,以得到拍摄第一图像时可移动平台的第一运行信息。When the control terminal sends the first position obtained by the analysis processing to the movable platform, the first position will carry an identification tag for marking the first image, such as a time stamp. Therefore, when acquiring the first operation information, according to The timestamp carried in the first position is queried in a preset storage queue to obtain the first operation information of the movable platform when the first image is captured.
S203、当接收到所述第一位置时,获取第二时刻下的所述可移动平台的第二运行信息,以及获取第二时刻下所述拍摄装置所述拍摄的第二图像。S203. When the first position is received, obtain the second operation information of the movable platform at the second moment, and obtain the second image captured by the photographing device at the second moment.
可移动平台在接收到控制终端发送的第一位置时,获取在第二时刻时可移动平台的第二运行信息,同时还将获取在第二时刻时可移动平台的拍摄装置所拍摄到的第二图像。When the movable platform receives the first position sent by the control terminal, it obtains the second operation information of the movable platform at the second moment, and also obtains the first position captured by the photographing device of the movable platform at the second moment. Second image.
其中,第二时刻为可移动平台接收到第一位置的时间信息。Wherein, the second moment is the time information when the movable platform receives the first position.
对于可移动平台而言,拍摄装置是实时进行着图像的采集,因此在接收到控制终端所发送的第一位置时,可以及时的获取此时可移动平台的第二运行信息,以及在第二时刻时可移动平台所拍摄的第二图像。For the movable platform, the photographing device is collecting images in real time, so when the first position sent by the control terminal is received, the second operation information of the movable platform at this time can be obtained in time, and the second operation information of the movable platform can be obtained in time. A second image taken by the movable platform at the moment.
在实际应用中,可移动平台与控制终端之间通信连接,在可移动平台进行目标跟踪时,将目标跟踪时的数据处理过程放置在控制终端上进行,然后可移动平台根据控制终端所上传的数据处理结果对跟随目标进行跟踪。In practical applications, the mobile platform and the control terminal are connected by communication. When the mobile platform performs target tracking, the data processing process during target tracking is placed on the control terminal, and then the mobile platform is based on the data uploaded by the control terminal. The data processing result tracks the following target.
由于数据传输时存在一定的延时,也就是可移动平台在获取了相关的数据之后需要将数据传输给控制终端进行处理,且此时可移动平台依旧处于运行状态,因此在可移动平台接收到控制终端所返回的数据处理结果时,可移动平台的位置已经发生了变化,若此时直接使用所接收到的结果信息进行跟随,会出现跟随不够准确的情况。Since there is a certain delay in data transmission, that is, the mobile platform needs to transmit the data to the control terminal for processing after acquiring the relevant data, and the mobile platform is still in the running state at this time. When controlling the data processing result returned by the terminal, the position of the movable platform has changed. If the received result information is used to follow directly at this time, the following situation may not be accurate enough.
S204、根据所述第一位置、第一运行信息以及第二运行信息,生成所述跟随目标在所述第二图像中的估计位置。S204. Generate an estimated position of the following target in the second image according to the first position, the first operation information, and the second operation information.
在接收到控制终端发送的第一位置,以及在存储队列中获取了第一运行信息和第二运行信息之后,将会根据第一位置、第一运行信息以及第二运行信息生成跟随目标在第二图像中的估计位置。其中,估计位置是跟随目标在第二图像中的目标框的位置以及大小。After receiving the first position sent by the control terminal, and after acquiring the first operation information and the second operation information in the storage queue, the following target will be generated according to the first position, the first operation information and the second operation information. Estimated position in the second image. Wherein, the estimated position is the position and size of the target frame following the target in the second image.
考虑到数据传输的延时问题,使得可移动平台在接收到控制终端所发送的数据时,若直接使用所接收到的数据作为当前对跟随目标进行跟随的参考,会导致目标跟随准确。而在对跟随目标进行跟随时,通常是根据跟随目标与可移动平台之间的位置关系来确定可移动平台当前是否需要进行调节以及如何进行调节。Considering the delay of data transmission, when the mobile platform receives the data sent by the control terminal, if the mobile platform directly uses the received data as the current reference for following the target, the target will follow accurately. When the following target is followed, it is usually determined whether and how the movable platform needs to be adjusted currently according to the positional relationship between the following target and the movable platform.
因此,在接收到第一位置时,需要确定跟随目标此时所对应的位置,进而才能控制可移动平台的对跟随目标的进行跟随。对于跟随目标此时所对应的位置,利用第一位置、第一运行信息以及第二运行信息的融合,来确定跟随目标在第二图像中的估计位置,进而根据估计位置实现对跟随目标的跟随。Therefore, when the first position is received, the position corresponding to the following target needs to be determined, and then the movable platform can be controlled to follow the following target. For the position corresponding to the following target at this time, use the fusion of the first position, the first operation information and the second operation information to determine the estimated position of the following target in the second image, and then realize the following according to the estimated position. .
在实际的跟随过程中,可移动平台对跟随目标的跟随方式是预先所设定好的,比如简单的直线跟随,或者复杂的环绕跟随、螺旋跟随或者渐远跟随等。而在对跟随目标进行跟随时,跟随目标所对应的目标框在实时所采集到的图像中的位置会在一个固定的位置,比如在图像的中间,这样可以对跟随的场景更好的进行展示。In the actual following process, the following method of the movable platform to the following target is pre-set, such as simple straight line following, or complex circle follow, spiral follow, or gradual distance follow, etc. When following the following target, the position of the target frame corresponding to the following target in the real-time captured image will be in a fixed position, such as in the middle of the image, so that the following scene can be better displayed .
同时,在进行目标跟随时,还会时刻保证跟随目标所对应的目标框在图像的中间,且目标框的大小也需要控制在一个固定的大小,比如长宽固定的方形目标框,以及半径固定的圆形目标框,以目标框为方形目标框为例,准确跟随时目标框在图像中的位置如图6所示。在跟随目标与可移动平台之间的相对位置关系发生变化时,所采集到的图像以及图像中的目标框的位置也 会发生相应的变化,比如上下左右的移动以及目标框大小的变化。At the same time, when following the target, it will always ensure that the target frame corresponding to the following target is in the middle of the image, and the size of the target frame also needs to be controlled at a fixed size, such as a square target frame with a fixed length and width, and a fixed radius. The circular target frame of , taking the target frame as a square target frame as an example, the position of the target frame in the image when accurately following is shown in Figure 6. When the relative positional relationship between the tracking target and the movable platform changes, the captured image and the position of the target frame in the image will also change accordingly, such as the movement of up, down, left and right and the change of the size of the target frame.
对于目标框的变化,基于拍照的原理可以对跟随目标的位置变化进行估计和判断,具体地,在可移动平台与跟随目标之间的距离变近时,跟随目标在图像中会变大,也就是目标框的大小会变大,而在可移动平台与跟随目标之间的距离变远时,跟随目标在图像中会变小,也就是目标框的大小会变小。因此可移动平台与跟随目标之间的距离远近可以通过目标框的大小来体现。For the change of the target frame, the position change of the following target can be estimated and judged based on the principle of taking pictures. Specifically, when the distance between the movable platform and the following target is getting closer, the following target will become larger in the image, and also That is, the size of the target frame will become larger, and when the distance between the movable platform and the following target becomes farther, the following target will become smaller in the image, that is, the size of the target frame will become smaller. Therefore, the distance between the movable platform and the following target can be reflected by the size of the target frame.
在一实施例中,确定跟随目标在第二图像中的估计位置,是将第一位置、第一运行信息以及第二运行信息进行融合所得到的。实际上,在目标跟随过程中,第一位置是基于第一时刻所拍摄的第一图像所确定的,因此第一位置与第一时刻的第一运行信息相关的,因此,在第二时刻时跟随目标在第二图像中的估计位置也与第二时刻的第二运行信息相关,进而通过三者之间的融合确定在第二时刻时跟随目标在第二图像中的估计位置。In one embodiment, determining the estimated position of the following target in the second image is obtained by fusing the first position, the first operation information and the second operation information. In fact, during the target following process, the first position is determined based on the first image captured at the first moment, so the first position is related to the first running information at the first moment. Therefore, at the second moment The estimated position of the following target in the second image is also related to the second running information at the second moment, and then the estimated position of the following target in the second image at the second moment is determined through fusion between the three.
S205、根据所述第二图像中的估计位置对所述跟随目标进行跟随。S205. Follow the following target according to the estimated position in the second image.
在确定了跟随目标在第二图像中的估计位置之后,将会根据所得到的估计位置对跟随目标进行跟随。实际上,在进行目标跟随时,根据跟随目标的实际位置以及可移动平台自身的实际位置,来实现对跟随目标的跟随的。After the estimated position of the following target in the second image is determined, the following target will be followed according to the obtained estimated position. In fact, when the target is followed, the following is realized according to the actual position of the following target and the actual position of the movable platform itself.
因此,在根据第二图像中的估计位置对跟随目标进行跟随时,首先需要根据估计位置确定跟随目标的实际位置,也就是在世界空间中的位置,然后根据实际位置进行跟随。Therefore, when following the following target according to the estimated position in the second image, it is first necessary to determine the actual position of the following target according to the estimated position, that is, the position in the world space, and then follow according to the actual position.
具体地,参照图7,图7是本申请一实施例提供的对跟随目标进行跟随的步骤的流程示意图。具体包括步骤S701至步骤S702。Specifically, referring to FIG. 7 , FIG. 7 is a schematic flowchart of a step of following a follow target provided by an embodiment of the present application. Specifically, it includes steps S701 to S702.
S701、根据所述估计位置以及所述第二运行信息,确定所述跟随目标在世界坐标系下的位置;S701. Determine the position of the following target in the world coordinate system according to the estimated position and the second operation information;
S702、根据所述跟随目标在世界坐标系下的位置对所述跟随目标进行跟随。S702. Follow the following target according to the position of the following target in the world coordinate system.
在确定跟随目标在第二图像中的估计位置之后,由于可移动平台的目标跟随是基于跟随目标的实际位置来实现的,因此在得到估计位置后,根据估计位置以及可移动平台的第二运行信息,确定跟随目标在世界坐标系下的位置,然后根据所得到的跟随目标在世界坐标系下的位置对跟随目标进行跟随。After determining the estimated position of the following target in the second image, since the target following of the movable platform is realized based on the actual position of the following target, after obtaining the estimated position, according to the estimated position and the second operation of the movable platform information, determine the position of the following target in the world coordinate system, and then follow the following target according to the obtained position of the following target in the world coordinate system.
在实际应用中,对于可移动平台的在世界坐标系下的位置是可以实时获 取的,具体包含在可移动平台的运行信息中,因此在确定跟随目标在世界坐标系下的位置时,读取第二运行信息中可移动平台在世界坐标系下的位置,进而通过确定跟随目标与可移动平台之间的相对位置关系去,得到跟随目标在世界坐标系下的位置。In practical applications, the position of the movable platform in the world coordinate system can be obtained in real time, which is specifically included in the operation information of the movable platform. Therefore, when determining the position of the following target in the world coordinate system, read The position of the movable platform in the world coordinate system in the second operation information, and then by determining the relative positional relationship between the following target and the movable platform, the position of the following target in the world coordinate system is obtained.
在一实施例中,参照图8,在确定跟随目标在世界坐标系下的位置时,包括:In one embodiment, referring to FIG. 8 , when determining the position of the following target in the world coordinate system, it includes:
S801、根据所述云台的姿态信息和所述第二图像中的目标框的位置,确定所述跟随目标到所述可移动平台的目标距离;S801. Determine the target distance from the following target to the movable platform according to the attitude information of the PTZ and the position of the target frame in the second image;
S802、根据所述目标距离和所述可移动平台的位置信息,确定所述跟随目标在世界坐标系下的位置。S802. Determine the position of the following target in the world coordinate system according to the target distance and the position information of the movable platform.
在确定跟随目标在世界坐标系下的位置时,是根据第二时刻的第二运行信息所得到的,具体地,获取第二运行信息中所包含的云台的姿态信息,以及获取估计位置中所包含的第二图像中的目标框的位置,以根据所得到的云台的姿态信息和第二图像中的目标框的位置,确定跟随目标到可移动平台的目标距离,然后根据所得到的目标距离和可移动平台的位置信息,确定跟随目标在世界坐标系下的位置,其中,可移动平台的位置信息为可移动平台在世界坐标系下的位置。When determining the position of the following target in the world coordinate system, it is obtained according to the second operation information at the second moment. Specifically, the attitude information of the gimbal included in the second operation information is obtained, and The position of the target frame in the included second image is to determine the target distance from the following target to the movable platform according to the obtained attitude information of the gimbal and the position of the target frame in the second image, and then according to the obtained The target distance and the position information of the movable platform determine the position of the following target in the world coordinate system, wherein the position information of the movable platform is the position of the movable platform in the world coordinate system.
在一实施例中,在获取第二运行信息中所包含的云台的姿态信息时,所获取的姿态信息主要包括云台pitch角,但是对于云台的姿态信息而言,还包括有yaw角和roll角,分别代表在三维坐标中的不同方向,而在确定跟随目标在世界坐标系下的位置时,通过pitch角以及可移动平台的实际位置可以得到。In one embodiment, when acquiring the attitude information of the gimbal included in the second operation information, the obtained attitude information mainly includes the pitch angle of the gimbal, but for the attitude information of the gimbal, it also includes the yaw angle. and roll angles, respectively represent different directions in the three-dimensional coordinates, and when determining the position of the following target in the world coordinate system, the pitch angle and the actual position of the movable platform can be obtained.
在根据云台的姿态信息和第二图像中的目标框的位置,确定跟随目标与可移动平台之间的目标距离时,可以构建可移动平台与跟随目标之间的关系,比如和水平线构成一个三角关系,进而利用所构成的三角关系确定跟随目标到可移动平台的距离。When determining the target distance between the following target and the movable platform according to the attitude information of the gimbal and the position of the target frame in the second image, the relationship between the movable platform and the following target can be constructed, such as forming a horizontal line with a horizontal line. Triangular relationship, and then use the formed triangular relationship to determine the distance from the following target to the movable platform.
例如,在如图9的一个跟随场景中,跟随目标与可移动平台之间的距离的可以按照如下方式所得到,假设跟随目标的高度为L,即L=2AB,L为经验身高,可以提前设置。可移动平台位于O点,可移动平台的云台姿态中的pitch角为θ,也就是∠AOC=θ,∠AOB可以由所述第二图像中的目标 框的大小占所述第二图像整体大小的比例得出,根据三角关系可以得到AO的实际距离,也就是跟随目标与可移动平台之间的目标距离。For example, in a following scene as shown in Figure 9, the distance between the following target and the movable platform can be obtained as follows, assuming that the height of the following target is L, that is, L=2AB, L is the experience height, which can be advanced in advance set up. The movable platform is located at point O, and the pitch angle in the gimbal posture of the movable platform is θ, that is, ∠AOC=θ, and ∠AOB can be accounted for by the size of the target frame in the second image as a whole in the second image. The ratio of the size is obtained, and the actual distance of the AO can be obtained according to the triangular relationship, that is, the target distance between the following target and the movable platform.
在得到的跟随目标与可移动平台之间的目标距离之后,根据可移动平台的位置信息来确定跟随目标在世界坐标系下的位置。通过获取跟随目标相较于可移动平台的方向,进而根据目标距离和方向以及位置信息得到跟随目标在世界坐标系下的位置。After the obtained target distance between the following target and the movable platform, the position of the following target in the world coordinate system is determined according to the position information of the movable platform. By obtaining the direction of the following target compared to the movable platform, the position of the following target in the world coordinate system is obtained according to the target distance, direction and position information.
而在确定了跟随目标在世界坐标系下的位置时,将根据所得到的位置按照预设的运行轨迹控制可移动平台对跟随目标进行跟随,其中预设的运行轨迹与预先所确定的跟随方式相对应,如预设运行轨迹包括环绕轨迹、螺旋轨迹、渐远轨迹中的一种。When the position of the following target in the world coordinate system is determined, the movable platform will be controlled to follow the following target according to the obtained position according to the preset running trajectory, wherein the preset running trajectory and the pre-determined following method Correspondingly, for example, the preset running track includes one of a revolving track, a spiral track, and an increasing track.
参照图10,图10是本申请一实施例提供的一种位置估计方法的步骤的流程示意图。该位置估计方法不仅可以降低可移动平台的计算量,同时还可以克服可移动平台和控制终端之间延迟,进而提高估计位置的准确性。其中,该方法包括步骤S1001至步骤S1004。Referring to FIG. 10 , FIG. 10 is a schematic flowchart of steps of a position estimation method provided by an embodiment of the present application. The position estimation method can not only reduce the calculation amount of the movable platform, but also overcome the delay between the movable platform and the control terminal, thereby improving the accuracy of the estimated position. Wherein, the method includes steps S1001 to S1004.
S1001、向所述控制终端发送所述拍摄装置第一时刻所拍摄的第一图像,以使所述控制终端识别所述图像中的拍摄目标在所述第一图像中的第一位置发送给所述可移动平台;S1001. Send to the control terminal the first image captured by the photographing device at the first moment, so that the control terminal recognizes the first position of the photographing target in the image in the first image and sends the image to the control terminal. said removable platform;
S1002、获取所述第一时刻下所述可移动平台的第一运行信息;S1002, acquiring first operation information of the movable platform at the first moment;
S1003、当接收到所述第一位置时,获取第二时刻下的所述可移动平台的第二运行信息,以及获取第二时刻下所述拍摄装置所述拍摄的第二图像;S1003. When the first position is received, obtain second operation information of the movable platform at a second moment, and obtain a second image captured by the photographing device at the second moment;
S1004、根据所述第一位置、第一运行信息以及第二运行信息,生成所述拍摄目标在所述第二图像中的估计位置。S1004. Generate an estimated position of the shooting target in the second image according to the first position, the first operation information, and the second operation information.
其中,在进行位置估计时,对所采集到的图像中的拍摄目标的位置进行估计,以确定拍摄目标的实际位置。Wherein, during the position estimation, the position of the shooting target in the collected image is estimated to determine the actual position of the shooting target.
需要说明的是,在进行位置估计时,与前述方案跟随控制方法中的部分步骤和实现方式相同,具体如步骤S201至步骤S204,因此,该位置估计方法的具体实现过程可以参照步骤S201至步骤S204中所描述的实施例,在此不做细致描述。It should be noted that when performing position estimation, some steps and implementation methods are the same as those in the following control method of the previous solution, specifically steps S201 to S204. Therefore, the specific implementation process of the position estimation method can refer to steps S201 to S201. The embodiment described in S204 is not described in detail here.
在一实施例中,对于位置估计方法,除了可以使用在上述描述的跟随控制方法中,以实现对跟随目标的跟随,还可以应用在其他不同的场景中,比 如无人机或者机器人进行目标定位的场景中,再比如运行轨迹的预估的场景中。In one embodiment, for the position estimation method, in addition to being used in the following control method described above to realize following the following target, it can also be applied in other different scenarios, such as target positioning by a drone or a robot. In the scene, such as the estimated scene of the running trajectory.
在上述描述的位置估计方法、跟随控制方法、设备以及存储介质中,在对跟随目标进行跟随时,可移动平台将所采集到的第一图像发送给控制终端,以使得控制终端对第一图像进行分析处理得到跟随目标在第一图像中的第一位置,然后可移动平台在接收到第一位置时,获取在第二时刻下可移动平台的第二运行信息,以及获取在第二时刻时所拍摄到的第二图像,其中,第二时刻为可移动平台接收到第一位置的时刻,进而根据所得到的第一位置、第一运行信息以及第二运行信息进行信息融合,生成得到跟随目标在第二图像中的估计位置,最后根据所得到的跟随目标在第二图像中的估计位置对跟随目标进行跟随。实现了在目标跟随时,通过控制终端进行图像的分析处理,降低对可移动平台性能的要求,并在根据所接收到的处理结果进行处理时,通过信息融合以对跟随目标的当前位置进行估计,提高了跟随的准确性。In the above-described position estimation method, following control method, device and storage medium, when following the following target, the movable platform sends the collected first image to the control terminal, so that the control terminal can monitor the first image Perform analysis and processing to obtain the first position of the following target in the first image, and then when the movable platform receives the first position, obtains the second operation information of the movable platform at the second moment, and obtains the second operation information at the second moment. The captured second image, wherein the second moment is the moment when the movable platform receives the first position, and then performs information fusion according to the obtained first position, the first operation information and the second operation information, and generates a follow-up The estimated position of the target in the second image, and finally the following target is followed according to the obtained estimated position of the following target in the second image. When the target is following, the control terminal is used to analyze and process the image, which reduces the performance requirements of the movable platform, and when processing according to the received processing results, the current position of the following target is estimated by information fusion. , which improves the accuracy of following.
在另一实施例中,所述跟随控制方法包括:In another embodiment, the following control method includes:
向所述控制终端发送所述拍摄装置第一时刻所拍摄的第一图像,以使所述控制终端识别所述图像中的跟随目标在所述第一图像中的第一位置发送给所述可移动平台;Send the first image captured by the photographing device at the first moment to the control terminal, so that the control terminal recognizes the first position of the following target in the image in the first image and sends the image to the control terminal. mobile platform;
获取所述第一时刻下所述可移动平台的第一运行信息;obtaining the first operation information of the movable platform at the first moment;
当接收到所述第一位置时,获取第二时刻下的所述可移动平台的第二运行信息;When receiving the first position, obtain second operation information of the movable platform at a second moment;
根据所述第一位置以及第一运行信息,获取所述跟随目标在世界坐标系中的位置;obtaining the position of the following target in the world coordinate system according to the first position and the first running information;
根据所述跟随目标在世界坐标系中的位置以及所述第二运行信息,对所述跟随目标进行跟随。The following target is followed according to the position of the following target in the world coordinate system and the second running information.
其中,所述根据所述第一位置以及第一运行信息,获取所述跟随目标在世界坐标系中的位置可以参照以上方法获取;Wherein, obtaining the position of the following target in the world coordinate system according to the first position and the first operation information can be obtained by referring to the above method;
即,如图9所述,跟随目标与可移动平台之间的距离的可以按照如下方式所得到,假设跟随目标的高度为L,即L=2AB,L为经验身高,可以提前设置。可移动平台位于O点,可移动平台的云台姿态中的pitch角为θ,也就是∠AOC=θ,∠AOB可以由所述第二图像中的目标框的大小占所述第二 图像整体大小的比例得出,根据三角关系可以得到AO的实际距离,也就是跟随目标与可移动平台之间的目标距离。根据可移动平台的GPS位置,可以获取所述跟随目标在世界坐标系中的位置。That is, as shown in FIG. 9 , the distance between the following target and the movable platform can be obtained as follows, assuming that the height of the following target is L, that is, L=2AB, L is the empirical height, which can be set in advance. The movable platform is located at point O, and the pitch angle in the gimbal posture of the movable platform is θ, that is, ∠AOC=θ, and ∠AOB can be accounted for by the size of the target frame in the second image as a whole in the second image. The ratio of the size is obtained, and the actual distance of the AO can be obtained according to the triangular relationship, that is, the target distance between the following target and the movable platform. According to the GPS position of the movable platform, the position of the following target in the world coordinate system can be obtained.
在一实施例中,采集所述拍摄装置第一时刻拍摄所述第一图像时所述可移动平台的第一运行信息;In an embodiment, collecting the first operation information of the movable platform when the photographing device photographs the first image at the first moment;
根据识别标签对所述第一运行信息进行标记,并将具有所述识别标签的所述第一运行信息存储在预设的存储队列中;Mark the first operation information according to the identification tag, and store the first operation information with the identification tag in a preset storage queue;
其中,所述第一运行信息与所述第一图像具有相同的识别标签,用于从所述预设的存储队列中索引所述第一图像对应的第一运行信息。The first operation information and the first image have the same identification tag, and are used to index the first operation information corresponding to the first image from the preset storage queue.
在一实施例中,所述识别标签包括时间戳。In one embodiment, the identification tag includes a time stamp.
在一实施例中,所述向所述控制终端发送所述拍摄装置第一时刻所拍摄的第一图像,包括:In an embodiment, the sending to the control terminal the first image captured by the capturing device at the first moment includes:
获取所述拍摄装置第一时刻拍摄的第一图像,并将所述第一时刻作为时间戳;acquiring a first image captured by the photographing device at a first moment, and using the first moment as a timestamp;
根据所述时间戳对所述第一图像进行标记,并将标记有所述时间戳的所述第一图像发送给所述控制终端。The first image is marked according to the time stamp, and the first image marked with the time stamp is sent to the control terminal.
在一实施例中,所述控制终端发送的第一位置包括时间戳;In an embodiment, the first location sent by the control terminal includes a time stamp;
所述获取所述第一时刻下所述可移动平台的第一运行信息,包括:The acquiring the first operation information of the movable platform at the first moment includes:
获取所述第一图像所对应的时间戳;obtaining the timestamp corresponding to the first image;
根据所述时间戳从所述预设的存储队列查询并获取拍摄所述第一图像时所述可移动平台的第一运行信息。The first operation information of the movable platform when the first image is captured is queried and acquired from the preset storage queue according to the time stamp.
在一实施例中,所述根据所述时间戳从所述预设的存储队列查询并获取拍摄所述第一图像时所述可移动平台的第一运行信息之后,包括:In one embodiment, after querying from the preset storage queue according to the timestamp and acquiring the first operation information of the movable platform when the first image is captured, the method includes:
删除所述第一运行信息。Delete the first operation information.
在一实施例中,所述存储队列包括预设长度的队列,用于存储预设数量的第一运行信息。In one embodiment, the storage queue includes a queue with a preset length for storing a preset number of first operation information.
在一实施例中,所述可移动平台包括无人机或机器人。In one embodiment, the movable platform comprises a drone or a robot.
在一实施例中,所述根据所述跟随目标在世界坐标系下的位置对所述跟随目标进行跟随,包括:In an embodiment, the following the following target according to the position of the following target in the world coordinate system includes:
根据所述跟随目标在世界坐标系下的位置,按照预设运行轨迹对所述跟 随目标进行跟随;According to the position of the following target in the world coordinate system, follow the following target according to the preset running track;
其中,所述预设运行轨迹包括环绕轨迹、螺旋轨迹、渐远轨迹中的一种。Wherein, the preset running track includes one of a circle track, a spiral track, and an increasing track.
请参阅图11,图11是本申请一实施例提供的可移动平台的示意性框图。该可移动平台21包括处理器211和存储器212,处理器211和存储器212通过总线连接,该总线比如为I2C(Inter-integrated Circuit)总线。Please refer to FIG. 11 , which is a schematic block diagram of a movable platform provided by an embodiment of the present application. The movable platform 21 includes a processor 211 and a memory 212, and the processor 211 and the memory 212 are connected through a bus, such as an I2C (Inter-integrated Circuit) bus.
具体地,处理器211可以是微控制单元(Micro-controller Unit,MCU)、中央处理单元(Central Processing Unit,CPU)或数字信号处理器(Digital Signal Processor,DSP)等。Specifically, the processor 211 may be a micro-controller unit (Micro-controller Unit, MCU), a central processing unit (Central Processing Unit, CPU), or a digital signal processor (Digital Signal Processor, DSP) or the like.
具体地,存储器212可以是Flash芯片、只读存储器(ROM,Read-Only Memory)磁盘、光盘、U盘或移动硬盘等。Specifically, the memory 212 may be a Flash chip, a read-only memory (ROM, Read-Only Memory) magnetic disk, an optical disk, a U disk, a mobile hard disk, and the like.
其中,所述可移动平台与控制终端通信连接,所述可移动平台包括云台,所述云台搭载有拍摄装置,所述拍摄装置用于实时采集图像,所述处理器211用于运行存储在存储器中的计算机程序,并在执行所述计算机程序时实现如下步骤:Wherein, the movable platform is connected to the control terminal in communication, the movable platform includes a pan-tilt, and the pan-tilt is equipped with a photographing device, and the photographing device is used for capturing images in real time, and the processor 211 is used for running storage A computer program in memory, and implementing the following steps when executing the computer program:
向所述控制终端发送所述拍摄装置第一时刻所拍摄的第一图像,以使所述控制终端识别所述第一图像中的跟随目标在所述第一图像中的第一位置发送给所述可移动平台;Send the first image captured by the photographing device at the first moment to the control terminal, so that the control terminal recognizes the first position of the following target in the first image in the first image and sends it to the control terminal. said removable platform;
获取所述第一时刻下所述可移动平台的第一运行信息;obtaining the first operation information of the movable platform at the first moment;
当接收到所述第一位置时,获取第二时刻下的所述可移动平台的第二运行信息,以及获取第二时刻下所述拍摄装置所述拍摄的第二图像;When the first position is received, obtain the second operation information of the movable platform at the second moment, and obtain the second image captured by the photographing device at the second moment;
根据所述第一位置、第一运行信息以及第二运行信息,生成所述跟随目标在所述第二图像中的估计位置;generating an estimated position of the following target in the second image according to the first position, the first operation information and the second operation information;
根据所述第二图像中的估计位置对所述跟随目标进行跟随。The following target is followed according to the estimated position in the second image.
在一些实施例中,所述第一运行信息和所述第二运行信息包括所述可移动平台的位置信息以及姿态,以及所述云台的姿态信息。In some embodiments, the first operation information and the second operation information include position information and attitude of the movable platform, and attitude information of the gimbal.
在一些实施例中,所述处理器211在实现所述方法时,具体实现:In some embodiments, when implementing the method, the processor 211 specifically implements:
采集所述拍摄装置第一时刻拍摄所述第一图像时所述可移动平台的第一运行信息;collecting the first operation information of the movable platform when the photographing device photographed the first image at the first moment;
根据识别标签对所述第一运行信息进行标记,并将具有所述识别标签的所述第一运行信息存储在预设的存储队列中;Mark the first operation information according to the identification tag, and store the first operation information with the identification tag in a preset storage queue;
其中,所述第一运行信息与所述第一图像具有相同的识别标签,用于从所述预设的存储队列中索引所述第一图像对应的第一运行信息。The first operation information and the first image have the same identification tag, and are used to index the first operation information corresponding to the first image from the preset storage queue.
在一些实施例中,所述识别标签包括时间戳。In some embodiments, the identification tag includes a time stamp.
在一些实施例中,所述处理器211在实现所述向所述控制终端发送所述拍摄装置第一时刻所拍摄的第一图像时,具体实现:In some embodiments, when the processor 211 implements the sending to the control terminal the first image captured by the photographing device at the first moment, the processor 211 specifically implements:
获取所述拍摄装置第一时刻拍摄的第一图像,并将所述第一时刻作为时间戳;acquiring a first image captured by the photographing device at a first moment, and using the first moment as a timestamp;
根据所述时间戳对所述第一图像进行标记,并将标记有所述时间戳的所述第一图像发送给所述控制终端。The first image is marked according to the time stamp, and the first image marked with the time stamp is sent to the control terminal.
在一些实施例中,控制终端发送的第一位置包括时间戳,所述处理器211在实现所述获取所述第一时刻下所述可移动平台的第一运行信息时,具体实现:In some embodiments, the first position sent by the control terminal includes a timestamp, and when the processor 211 implements the acquiring of the first operating information of the movable platform at the first moment, the processor 211 specifically implements:
所述获取所述第一时刻下所述可移动平台的第一运行信息,包括:The acquiring the first operation information of the movable platform at the first moment includes:
获取所述第一图像所对应的时间戳;obtaining the timestamp corresponding to the first image;
根据所述时间戳从所述预设的存储队列查询并获取拍摄所述第一图像时所述可移动平台的第一运行信息。The first operation information of the movable platform when the first image is captured is queried and acquired from the preset storage queue according to the time stamp.
在一些实施例中,所述处理器211在实现所述根据所述时间戳从所述预设的存储队列查询并获取拍摄所述第一图像时所述可移动平台的第一运行信息之后,具体实现:In some embodiments, after the processor 211 implements the query from the preset storage queue according to the timestamp and obtains the first operation information of the movable platform when the first image is captured, Implementation:
删除所述第一运行信息。Delete the first operation information.
在一些实施例中,所述存储队列包括预设长度的队列,用于存储预设数量的第一运行信息。In some embodiments, the storage queue includes a queue with a preset length for storing a preset number of first operation information.
在一些实施例中,所述处理器211在实现所述方法时,具体实现:In some embodiments, when implementing the method, the processor 211 specifically implements:
获取所述拍摄装置所拍摄的初始图像,并将所述初始图像至所述控制终端,以使所述控制终端显示所述初始图像,以便确定跟随目标。The initial image captured by the photographing device is acquired, and the initial image is sent to the control terminal, so that the control terminal displays the initial image, so as to determine the following target.
在一些实施例中,所述处理器211在实现所述根据所述第二图像中的估计位置对所述跟随目标进行跟随时,具体实现:In some embodiments, when the processor 211 implements the following to the following target according to the estimated position in the second image, the processor 211 specifically implements:
根据所述估计位置以及所述第二运行信息,确定所述跟随目标在世界坐标系下的位置;determining the position of the following target in the world coordinate system according to the estimated position and the second operation information;
根据所述跟随目标在世界坐标系下的位置对所述跟随目标进行跟随。The following target is followed according to the position of the following target in the world coordinate system.
在一些实施例中,所述第一位置包括所述跟随目标在所述第一图像中对应 的第一目标框的位置和大小,以及所述估计位置包括所述跟随目标在所述第二图像中对应的第二图像中的目标框的位置和大小。In some embodiments, the first position includes the position and size of a first target frame corresponding to the following target in the first image, and the estimated position includes the following target in the second image The position and size of the target box in the corresponding second image.
在一些实施例中,所述处理器211在实现所述根据所述估计位置以及所述第二运行信息,确定所述跟随目标在世界坐标系下的位置时,具体实现:In some embodiments, when the processor 211 determines the position of the following target in the world coordinate system according to the estimated position and the second operation information, the processor 211 specifically implements:
根据所述云台的姿态信息和所述第二图像中的目标框的位置,确定所述跟随目标到所述可移动平台的目标距离;Determine the target distance from the following target to the movable platform according to the attitude information of the PTZ and the position of the target frame in the second image;
根据所述目标距离和所述可移动平台的位置信息,确定所述跟随目标在世界坐标系下的位置。According to the target distance and the position information of the movable platform, the position of the following target in the world coordinate system is determined.
在一些实施例中,所述处理器211在实现所述根据所述跟随目标在世界坐标系下的位置对所述跟随目标进行跟随时,具体实现:In some embodiments, when the processor 211 implements the following to the following target according to the position of the following target in the world coordinate system, the processor 211 specifically implements:
根据所述跟随目标在世界坐标系下的位置,按照预设运行轨迹对所述跟随目标进行跟随;According to the position of the following target in the world coordinate system, follow the following target according to the preset running trajectory;
其中,所述预设运行轨迹包括环绕轨迹、螺旋轨迹、渐远轨迹中的一种。Wherein, the preset running track includes one of a circle track, a spiral track, and an increasing track.
在一些实施例中,所述可移动平台包括无人机或机器人。In some embodiments, the movable platform includes a drone or a robot.
本申请的实施例中化提供一种跟随控制装置,所述跟随控制装置包括存储器和处理器,所述存储器用于存储计算机程序;所述处理器,用于执行所述计算机程序并在执行所述计算机程序时,实现上述所述的跟随控制方法。An embodiment of the present application provides a follow-up control device, the follow-up control device includes a memory and a processor, and the memory is used for storing a computer program; the processor is used for executing the computer program and executing the computer program. When the computer program is executed, the following control method described above is realized.
本申请的实施例中化提供一种位置估计装置,所述位置估计装置包括存储器和处理器,所述存储器用于存储计算机程序;所述处理器,用于执行所述计算机程序并在执行所述计算机程序时,实现上述所述的位置估计方法。An embodiment of the present application provides a position estimation apparatus, where the position estimation apparatus includes a memory and a processor, where the memory is used for storing a computer program; the processor is used for executing the computer program and executing the computer program. When the computer program is executed, the position estimation method described above is realized.
本申请的实施例中还提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序中包括程序指令,所述处理器执行所述程序指令,实现上述实施例提供的跟随控制方法和/或位置估计的步骤。Embodiments of the present application further provide a computer-readable storage medium, where the computer-readable storage medium stores a computer program, the computer program includes program instructions, and the processor executes the program instructions to implement the above implementation The example provides the steps for following the control method and/or position estimation.
其中,所述计算机可读存储介质可以是前述任一实施例所述的可移动平台的内部存储单元,例如所述可移动平台的硬盘或内存。所述计算机可读存储介质也可以是所述可移动平台的外部存储设备,例如所述可移动平台上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。The computer-readable storage medium may be an internal storage unit of the removable platform described in any of the foregoing embodiments, such as a hard disk or a memory of the removable platform. The computer-readable storage medium can also be an external storage device of the removable platform, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital) equipped on the removable platform , SD) card, flash memory card (Flash Card), etc.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到 各种等效的修改或替换,这些修改或替换都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。The above are only specific embodiments of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art can easily think of various equivalents within the technical scope disclosed in the present application. Modifications or substitutions shall be covered by the protection scope of this application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (43)

  1. 一种跟随控制方法,其特征在于,应用于可移动平台,所述可移动平台与控制终端通信连接,所述可移动平台包括云台,所述云台搭载有拍摄装置,所述拍摄装置用于实时采集图像,所述方法包括:A following control method, characterized in that it is applied to a movable platform, the movable platform is connected to a control terminal in communication, the movable platform includes a pan/tilt, and the pan/tilt is equipped with a photographing device, and the photographing device uses In real-time acquisition of images, the method includes:
    向所述控制终端发送所述拍摄装置第一时刻所拍摄的第一图像,以使所述控制终端识别所述第一图像中的跟随目标在所述第一图像中的第一位置发送给所述可移动平台;Send the first image captured by the photographing device at the first moment to the control terminal, so that the control terminal recognizes the first position of the following target in the first image in the first image and sends it to the control terminal. said removable platform;
    获取所述第一时刻下所述可移动平台的第一运行信息;obtaining the first operation information of the movable platform at the first moment;
    当接收到所述第一位置时,获取第二时刻下的所述可移动平台的第二运行信息,以及获取第二时刻下所述拍摄装置所述拍摄的第二图像;When receiving the first position, acquiring the second operation information of the movable platform at the second moment, and acquiring the second image captured by the photographing device at the second moment;
    根据所述第一位置、第一运行信息以及第二运行信息,生成所述跟随目标在所述第二图像中的估计位置;generating an estimated position of the following target in the second image according to the first position, the first operation information and the second operation information;
    根据所述第二图像中的估计位置对所述跟随目标进行跟随。The following target is followed according to the estimated position in the second image.
  2. 根据权利要求1所述的方法,其特征在于,所述第一运行信息和所述第二运行信息包括所述可移动平台的位置信息以及姿态,以及所述云台的姿态信息。The method according to claim 1, wherein the first operation information and the second operation information include position information and attitude of the movable platform, and attitude information of the PTZ.
  3. 根据权利要求1所述的方法,其特征在于,所述方法包括:The method of claim 1, wherein the method comprises:
    采集所述拍摄装置第一时刻拍摄所述第一图像时所述可移动平台的第一运行信息;collecting the first operation information of the movable platform when the photographing device photographed the first image at the first moment;
    根据识别标签对所述第一运行信息进行标记,并将具有所述识别标签的所述第一运行信息存储在预设的存储队列中;Mark the first operation information according to the identification tag, and store the first operation information with the identification tag in a preset storage queue;
    其中,所述第一运行信息与所述第一图像具有相同的识别标签,用于从所述预设的存储队列中索引所述第一图像对应的第一运行信息。The first operation information and the first image have the same identification tag, and are used to index the first operation information corresponding to the first image from the preset storage queue.
  4. 根据权利要求3所述的方法,其特征在于,所述识别标签包括时间戳。4. The method of claim 3, wherein the identification tag includes a time stamp.
  5. 根据权利要求4所述的方法,其特征在于,所述向所述控制终端发送所述拍摄装置第一时刻所拍摄的第一图像,包括:The method according to claim 4, wherein the sending to the control terminal the first image captured by the capturing device at the first moment comprises:
    获取所述拍摄装置第一时刻拍摄的第一图像,并将所述第一时刻作为时 间戳;Acquiring the first image taken by the photographing device at the first moment, and using the first moment as a time stamp;
    根据所述时间戳对所述第一图像进行标记,并将标记有所述时间戳的所述第一图像发送给所述控制终端。The first image is marked according to the time stamp, and the first image marked with the time stamp is sent to the control terminal.
  6. 根据权利要求3所述的方法,其特征在于,所述控制终端发送的第一位置包括时间戳;The method according to claim 3, wherein the first position sent by the control terminal includes a time stamp;
    所述获取所述第一时刻下所述可移动平台的第一运行信息,包括:The acquiring the first operation information of the movable platform at the first moment includes:
    获取所述第一图像所对应的时间戳;obtaining the timestamp corresponding to the first image;
    根据所述时间戳从所述预设的存储队列查询并获取拍摄所述第一图像时所述可移动平台的第一运行信息。The first operation information of the movable platform when the first image is captured is queried and acquired from the preset storage queue according to the time stamp.
  7. 根据权利要求6所述的方法,其特征在于,所述根据所述时间戳从所述预设的存储队列查询并获取拍摄所述第一图像时所述可移动平台的第一运行信息之后,包括:The method according to claim 6, wherein after querying from the preset storage queue according to the time stamp and acquiring the first operation information of the movable platform when the first image is captured, include:
    删除所述第一运行信息。Delete the first operation information.
  8. 根据权利要求3所述的方法,其特征在于,所述存储队列包括预设长度的队列,用于存储预设数量的第一运行信息。The method according to claim 3, wherein the storage queue comprises a queue with a preset length for storing a preset number of first operation information.
  9. 根据权利要求1所述的方法,其特征在于,所述方法包括:The method of claim 1, wherein the method comprises:
    获取所述拍摄装置所拍摄的初始图像,并将所述初始图像至所述控制终端,以使所述控制终端显示所述初始图像,以便确定跟随目标。The initial image captured by the photographing device is acquired, and the initial image is sent to the control terminal, so that the control terminal displays the initial image, so as to determine the following target.
  10. 根据权利要求2所述的方法,其特征在于,所述根据所述第二图像中的估计位置对所述跟随目标进行跟随,包括:The method according to claim 2, wherein the following the tracking target according to the estimated position in the second image comprises:
    根据所述估计位置以及所述第二运行信息,确定所述跟随目标在世界坐标系下的位置;determining the position of the following target in the world coordinate system according to the estimated position and the second operation information;
    根据所述跟随目标在世界坐标系下的位置对所述跟随目标进行跟随。The following target is followed according to the position of the following target in the world coordinate system.
  11. 根据权利要求10所述的方法,其特征在于,所述第一位置包括所述跟随目标在所述第一图像中对应的第一目标框的位置和大小,以及所述估计位置包括所述跟随目标在所述第二图像中对应的第二图像中的目标框的位置和大小。The method according to claim 10, wherein the first position comprises the position and size of a first target frame corresponding to the following target in the first image, and the estimated position comprises the following The position and size of the target frame in the second image corresponding to the target in the second image.
  12. 根据权利要求11所述的方法,其特征在于,所述根据所述估计位置以及所述第二运行信息,确定所述跟随目标在世界坐标系下的位置,包括:The method according to claim 11, wherein the determining the position of the following target in the world coordinate system according to the estimated position and the second operation information comprises:
    根据所述云台的姿态信息和所述第二图像中的目标框的位置,确定所述 跟随目标到所述可移动平台的目标距离;Determine the target distance from the following target to the movable platform according to the attitude information of the PTZ and the position of the target frame in the second image;
    根据所述目标距离和所述可移动平台的位置信息,确定所述跟随目标在世界坐标系下的位置。According to the target distance and the position information of the movable platform, the position of the following target in the world coordinate system is determined.
  13. 根据权利要求10所述的方法,其特征在于,所述根据所述跟随目标在世界坐标系下的位置对所述跟随目标进行跟随,包括:The method according to claim 10, wherein the following the following target according to the position of the following target in the world coordinate system comprises:
    根据所述跟随目标在世界坐标系下的位置,按照预设运行轨迹对所述跟随目标进行跟随;According to the position of the following target in the world coordinate system, follow the following target according to the preset running trajectory;
    其中,所述预设运行轨迹包括环绕轨迹、螺旋轨迹、渐远轨迹中的一种。Wherein, the preset running track includes one of a circle track, a spiral track, and an increasing track.
  14. 根据权利要求1至13中任一项所述的方法,其特征在于,所述可移动平台包括无人机或机器人。The method of any one of claims 1 to 13, wherein the movable platform comprises a drone or a robot.
  15. 一种位置估计方法,其特征在于,应用于可移动平台,所述可移动平台与控制终端通信连接,所述可移动平台包括云台,所述云台搭载有拍摄装置,所述拍摄装置用于实时采集图像,所述方法包括:A position estimation method, characterized in that it is applied to a movable platform, the movable platform is connected to a control terminal in communication, the movable platform includes a pan/tilt, and the pan/tilt is equipped with a photographing device, and the photographing device uses In real-time acquisition of images, the method includes:
    向所述控制终端发送所述拍摄装置第一时刻所拍摄的第一图像,以使所述控制终端识别所述图像中的拍摄目标在所述第一图像中的第一位置发送给所述可移动平台;Send the first image captured by the photographing device at the first moment to the control terminal, so that the control terminal recognizes the first position of the photographing target in the image in the first image and sends it to the available mobile platform;
    获取所述第一时刻下所述可移动平台的第一运行信息;obtaining the first operation information of the movable platform at the first moment;
    当接收到所述第一位置时,获取第二时刻下的所述可移动平台的第二运行信息,以及获取第二时刻下所述拍摄装置所述拍摄的第二图像;When the first position is received, obtain the second operation information of the movable platform at the second moment, and obtain the second image captured by the photographing device at the second moment;
    根据所述第一位置、第一运行信息以及第二运行信息,生成所述拍摄目标在所述第二图像中的估计位置。An estimated position of the shooting target in the second image is generated according to the first position, the first operation information, and the second operation information.
  16. 根据权利要求15所述的方法,其特征在于,所述第一运行信息和所述第二运行信息包括所述可移动平台的位置信息以及姿态,以及所述云台的姿态信息。The method according to claim 15, wherein the first operation information and the second operation information include position information and attitude of the movable platform, and attitude information of the PTZ.
  17. 根据权利要求16所述的方法,其特征在于,所述方法包括:The method of claim 16, wherein the method comprises:
    采集所述拍摄装置第一时刻拍摄所述第一图像时所述可移动平台的第一运行信息;collecting the first operation information of the movable platform when the photographing device photographed the first image at the first moment;
    根据识别标签对所述第一运行信息进行标记,并将具有所述识别标签的所述第一运行信息存储在预设的存储队列中;Mark the first operation information according to the identification tag, and store the first operation information with the identification tag in a preset storage queue;
    其中,所述第一运行信息与所述第一图像具有相同的识别标签,用于从 所述预设的存储队列中索引所述第一图像对应的第一运行信息。Wherein, the first operation information and the first image have the same identification label, and are used to index the first operation information corresponding to the first image from the preset storage queue.
  18. 根据权利要求17所述的方法,其特征在于,所述识别标签包括时间戳。18. The method of claim 17, wherein the identification tag includes a time stamp.
  19. 根据权利要求18所述的方法,其特征在于,所述向所述控制终端发送所述拍摄装置第一时刻所拍摄的第一图像,包括:The method according to claim 18, wherein the sending to the control terminal the first image captured by the capturing device at the first moment comprises:
    获取所述拍摄装置第一时刻拍摄的第一图像,并将拍摄所述第一图像的时间作为时间戳;acquiring a first image captured by the capturing device at the first moment, and using the time at which the first image was captured as a time stamp;
    根据所述时间戳对所述第一图像进行标记,并将标记有所述时间戳的所述第一图像发送给所述控制终端。The first image is marked according to the time stamp, and the first image marked with the time stamp is sent to the control terminal.
  20. 根据权利要求17所述的方法,其特征在于,所述控制终端发送的第一位置包括时间戳;The method according to claim 17, wherein the first position sent by the control terminal includes a time stamp;
    所述获取所述第一时刻下所述可移动平台的第一运行信息,包括:The acquiring the first operation information of the movable platform at the first moment includes:
    获取所述第一图像所对应的时间戳;obtaining the timestamp corresponding to the first image;
    根据所述时间戳从所述预设的存储队列查询并获取拍摄所述第一图像时所述可移动平台的第一运行信息。The first operation information of the movable platform when the first image is captured is queried and acquired from the preset storage queue according to the time stamp.
  21. 根据权利要求20所述的方法,其特征在于,所述根据所述时间戳从所述预设的存储队列查询并获取拍摄所述第一图像时所述可移动平台的第一运行信息之后,包括:The method according to claim 20, wherein after querying from the preset storage queue according to the time stamp and acquiring the first operation information of the movable platform when the first image is captured, include:
    删除所述第一运行信息。Delete the first operation information.
  22. 根据权利要求17所述的方法,其特征在于,所述存储队列包括预设长度的队列,用于存储预设数量的第一运行信息。The method according to claim 17, wherein the storage queue comprises a queue with a preset length for storing a preset number of first operation information.
  23. 根据权利要求14所述的方法,其特征在于,所述方法包括:The method of claim 14, wherein the method comprises:
    获取所述拍摄装置所拍摄的初始图像,并将所述初始图像至所述控制终端,以使所述控制终端显示所述初始图像,以便确定拍摄目标。An initial image captured by the photographing device is acquired, and the initial image is sent to the control terminal, so that the control terminal displays the initial image, so as to determine a photographing target.
  24. 根据权利要求15所述的方法,其特征在于,所述第一位置包括所述拍摄目标在所述第一图像中对应的目标框的位置和大小,以及所述估计位置包括所述拍摄目标在所述第二图像中对应的目标框的位置和大小。The method according to claim 15, wherein the first position includes the position and size of a target frame corresponding to the shooting target in the first image, and the estimated position includes the shooting target at The position and size of the corresponding target frame in the second image.
  25. 根据权利要求15至24中任一项所述的方法,其特征在于,所述可移动平台包括无人机或机器人。The method of any one of claims 15 to 24, wherein the movable platform comprises a drone or a robot.
  26. 一种跟随控制装置,其特征在于,所述控制装置包括存储器和处理 器:A follow-up control device, characterized in that the control device comprises a memory and a processor:
    所述存储器用于存储计算机程序;the memory is used to store computer programs;
    所述处理器,用于执行所述计算机程序并在执行所述计算机程序时,实现如下步骤:The processor is configured to execute the computer program and implement the following steps when executing the computer program:
    向所述控制终端发送所述拍摄装置第一时刻所拍摄的第一图像,以使所述控制终端识别所述图像中的跟随目标在所述第一图像中的第一位置发送给所述可移动平台;Send the first image captured by the photographing device at the first moment to the control terminal, so that the control terminal recognizes the first position of the following target in the image in the first image and sends the image to the control terminal. mobile platform;
    获取所述第一时刻下所述可移动平台的第一运行信息;obtaining the first operation information of the movable platform at the first moment;
    当接收到所述第一位置时,获取第二时刻下的所述可移动平台的第二运行信息,以及获取第二时刻下所述拍摄装置所述拍摄的第二图像;When the first position is received, obtain the second operation information of the movable platform at the second moment, and obtain the second image captured by the photographing device at the second moment;
    根据所述第一位置、第一运行信息以及第二运行信息,生成所述跟随目标在所述第二图像中的估计位置;generating an estimated position of the following target in the second image according to the first position, the first operation information and the second operation information;
    根据所述第二图像中的估计位置对所述跟随目标进行跟随。The following target is followed according to the estimated position in the second image.
  27. 一种位置估计装置,其特征在于,所述控制装置包括存储器和处理器:A position estimation device, characterized in that the control device includes a memory and a processor:
    所述存储器用于存储计算机程序;the memory is used to store computer programs;
    所述处理器,用于执行所述计算机程序并在执行所述计算机程序时,实现如下步骤:The processor is configured to execute the computer program and implement the following steps when executing the computer program:
    向所述控制终端发送所述拍摄装置第一时刻所拍摄的第一图像,以使所述控制终端识别所述图像中的拍摄目标在所述第一图像中的第一位置发送给所述可移动平台;Send the first image captured by the photographing device at the first moment to the control terminal, so that the control terminal recognizes the first position of the photographing target in the image in the first image and sends it to the available mobile platform;
    获取所述第一时刻下所述可移动平台的第一运行信息;obtaining the first operation information of the movable platform at the first moment;
    当接收到所述第一位置时,获取第二时刻下的所述可移动平台的第二运行信息,以及获取第二时刻下所述拍摄装置所述拍摄的第二图像;;When receiving the first position, obtain the second operation information of the movable platform at the second moment, and obtain the second image captured by the photographing device at the second moment;
    根据所述第一位置、第一运行信息以及第二运行信息,生成所述拍摄目标在所述第二图像中的估计位置。An estimated position of the shooting target in the second image is generated according to the first position, the first operation information, and the second operation information.
  28. 一种可移动平台,其特征在于,所述可移动平台包括存储器和处理器:A movable platform, characterized in that the movable platform includes a memory and a processor:
    所述存储器用于存储计算机程序;the memory is used to store computer programs;
    所述处理器,用于执行所述计算机程序并在执行所述计算机程序时,实 现如下步骤:The processor is configured to execute the computer program and when executing the computer program, implement the following steps:
    向所述控制终端发送所述拍摄装置第一时刻所拍摄的第一图像,以使所述控制终端识别所述图像中的跟随目标在所述第一图像中的第一位置发送给所述可移动平台;Send the first image captured by the photographing device at the first moment to the control terminal, so that the control terminal recognizes the first position of the following target in the image in the first image and sends the image to the control terminal. mobile platform;
    获取所述第一时刻下所述可移动平台的第一运行信息;obtaining the first operation information of the movable platform at the first moment;
    当接收到所述第一位置时,获取第二时刻下的所述可移动平台的第二运行信息,以及获取第二时刻下所述拍摄装置所述拍摄的第二图像;When the first position is received, obtain the second operation information of the movable platform at the second moment, and obtain the second image captured by the photographing device at the second moment;
    根据所述第一位置、第一运行信息以及第二运行信息,生成所述跟随目标在所述第二图像中的估计位置;generating an estimated position of the following target in the second image according to the first position, the first operation information and the second operation information;
    根据所述第二图像中的估计位置对所述跟随目标进行跟随。The following target is followed according to the estimated position in the second image.
  29. 根据权利要求28所述的可移动平台,其特征在于,所述第一运行信息和所述第二运行信息包括所述可移动平台的位置信息以及姿态,以及所述云台的姿态信息。The movable platform according to claim 28, wherein the first operation information and the second operation information include position information and attitude of the movable platform, and attitude information of the pan/tilt head.
  30. 根据权利要求28所述的可移动平台,其特征在于,所述方法包括:The movable platform of claim 28, wherein the method comprises:
    采集所述拍摄装置第一时刻拍摄所述第一图像时所述可移动平台的第一运行信息;collecting the first operation information of the movable platform when the photographing device photographed the first image at the first moment;
    根据识别标签对所述第一运行信息进行标记,并将具有所述识别标签的所述第一运行信息存储在预设的存储队列中;Mark the first operation information according to the identification tag, and store the first operation information with the identification tag in a preset storage queue;
    其中,所述第一运行信息与所述第一图像具有相同的识别标签,用于从所述预设的存储队列中索引所述第一图像对应的第一运行信息。The first operation information and the first image have the same identification tag, and are used to index the first operation information corresponding to the first image from the preset storage queue.
  31. 根据权利要求30所述的可移动平台,其特征在于,所述识别标签包括时间戳。31. The movable platform of claim 30, wherein the identification tag includes a time stamp.
  32. 根据权利要求31所述的可移动平台,其特征在于,所述向所述控制终端发送所述拍摄装置第一时刻所拍摄的第一图像,包括:The movable platform according to claim 31, wherein the sending to the control terminal the first image captured by the capturing device at the first moment comprises:
    获取所述拍摄装置第一时刻拍摄的第一图像,并将所述第一时刻作为时间戳;acquiring a first image captured by the photographing device at a first moment, and using the first moment as a timestamp;
    根据所述时间戳对所述第一图像进行标记,并将标记有所述时间戳的所述第一图像发送给所述控制终端。The first image is marked according to the time stamp, and the first image marked with the time stamp is sent to the control terminal.
  33. 根据权利要求30所述的可移动平台,其特征在于,所述控制终端发送的第一位置包括时间戳;The movable platform according to claim 30, wherein the first position sent by the control terminal includes a time stamp;
    所述获取所述第一时刻下所述可移动平台的第一运行信息,包括:The acquiring the first operation information of the movable platform at the first moment includes:
    获取所述第一图像所对应的时间戳;obtaining the timestamp corresponding to the first image;
    根据所述时间戳从所述预设的存储队列查询并获取拍摄所述第一图像时所述可移动平台的第一运行信息。The first operation information of the movable platform when the first image is captured is queried and acquired from the preset storage queue according to the time stamp.
  34. 根据权利要求33所述的可移动平台,其特征在于,所述根据所述时间戳从所述预设的存储队列查询并获取拍摄所述第一图像时所述可移动平台的第一运行信息之后,包括:The movable platform according to claim 33, wherein the first operation information of the movable platform when the first image is captured is inquired and acquired from the preset storage queue according to the timestamp. After that, include:
    删除所述第一运行信息。Delete the first operation information.
  35. 根据权利要求30所述的可移动平台,其特征在于,所述存储队列包括预设长度的队列,用于存储预设数量的第一运行信息。The movable platform according to claim 30, wherein the storage queue comprises a queue with a preset length for storing a preset number of first operation information.
  36. 根据权利要求28所述的可移动平台,其特征在于,所述方法包括:The movable platform of claim 28, wherein the method comprises:
    获取所述拍摄装置所拍摄的初始图像,并将所述初始图像至所述控制终端,以使所述控制终端显示所述初始图像,以便确定跟随目标。The initial image captured by the photographing device is acquired, and the initial image is sent to the control terminal, so that the control terminal displays the initial image, so as to determine the following target.
  37. 根据权利要求29所述的可移动平台,其特征在于,所述根据所述第二图像中的估计位置对所述跟随目标进行跟随,包括:The movable platform according to claim 29, wherein the following the tracking target according to the estimated position in the second image comprises:
    根据所述估计位置以及所述第二运行信息,确定所述跟随目标在世界坐标系下的位置;determining the position of the following target in the world coordinate system according to the estimated position and the second operation information;
    根据所述跟随目标在世界坐标系下的位置对所述跟随目标进行跟随。The following target is followed according to the position of the following target in the world coordinate system.
  38. 根据权利要求37所述的可移动平台,其特征在于,所述第一位置包括所述跟随目标在所述第一图像中对应的第一目标框的位置和大小,以及所述估计位置包括所述跟随目标在所述第二图像中对应的第二图像中的目标框的位置和大小。The movable platform according to claim 37, wherein the first position includes the position and size of the first target frame corresponding to the following target in the first image, and the estimated position includes the the position and size of the target frame in the second image corresponding to the following target in the second image.
  39. 根据权利要求38所述的可移动平台,其特征在于,所述根据所述估计位置以及所述第二运行信息,确定所述跟随目标在世界坐标系下的位置,包括:The movable platform according to claim 38, wherein determining the position of the following target in the world coordinate system according to the estimated position and the second operation information comprises:
    根据所述云台的姿态信息和所述第二图像中的目标框的位置,确定所述跟随目标到所述可移动平台的目标距离;Determine the target distance from the following target to the movable platform according to the attitude information of the PTZ and the position of the target frame in the second image;
    根据所述目标距离和所述可移动平台的位置信息,确定所述跟随目标在世界坐标系下的位置。According to the target distance and the position information of the movable platform, the position of the following target in the world coordinate system is determined.
  40. 根据权利要求37所述的可移动平台,其特征在于,所述根据所述 跟随目标在世界坐标系下的位置对所述跟随目标进行跟随,包括:The movable platform according to claim 37, wherein, the following target is followed according to the position of the following target in the world coordinate system, comprising:
    根据所述跟随目标在世界坐标系下的位置,按照预设运行轨迹对所述跟随目标进行跟随;According to the position of the following target in the world coordinate system, follow the following target according to the preset running trajectory;
    其中,所述预设运行轨迹包括环绕轨迹、螺旋轨迹、渐远轨迹中的一种。Wherein, the preset running track includes one of a circle track, a spiral track, and an increasing track.
  41. 根据权利要求28至40中任一项所述的可移动平台,其特征在于,所述可移动平台包括无人机或机器人。The movable platform of any one of claims 28 to 40, wherein the movable platform comprises a drone or a robot.
  42. 一种跟随控制系统,其特征在于,所述飞行控制系统包括可移动平台和控制终端;A following control system, characterized in that the flight control system includes a movable platform and a control terminal;
    所述控制终端用于接收所述可移动平台发送的图像,并识别所述图像中的跟随目标在所述图像中的第一位置,以将所述第一位置发送至所述可移动平台;The control terminal is configured to receive the image sent by the movable platform, and identify the first position of the following target in the image in the image, so as to send the first position to the movable platform;
    所述可移动平台用于向所述控制终端发送所述拍摄装置第一时刻所拍摄的第一图像,以使所述控制终端识别所述图像中的跟随目标在所述第一图像中的第一位置发送给所述可移动平台;The movable platform is configured to send the first image captured by the photographing device at the first moment to the control terminal, so that the control terminal recognizes the first image of the following target in the first image. a position is sent to the movable platform;
    所述可移动平台用于获取所述第一时刻下所述可移动平台的第一运行信息;The movable platform is used to obtain the first operation information of the movable platform at the first moment;
    所述可移动平台用于当接收到所述第一位置时,获取第二时刻下的所述可移动平台的第二运行信息,以及获取第二时刻下所述拍摄装置所述拍摄的第二图像;The movable platform is configured to acquire the second operation information of the movable platform at the second moment when the first position is received, and acquire the second information captured by the photographing device at the second moment. image;
    所述可移动平台用于根据所述第一位置、第一运行信息以及第二运行信息,生成所述跟随目标在所述第二图像中的估计位置;The movable platform is configured to generate an estimated position of the following target in the second image according to the first position, the first operation information and the second operation information;
    所述可移动平台用于根据所述第二图像中的估计位置对所述跟随目标进行跟随。The movable platform is used for following the following target according to the estimated position in the second image.
  43. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时,实现如权利要求1至14中任一项所述的跟随控制方法,和/或实现如权利要求15至25所述的位置估计方法。A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following control according to any one of claims 1 to 14 is realized method, and/or implement a position estimation method as claimed in claims 15 to 25.
PCT/CN2020/126243 2020-11-03 2020-11-03 Position estimation method, following control method, device and storage medium WO2022094772A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/126243 WO2022094772A1 (en) 2020-11-03 2020-11-03 Position estimation method, following control method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/126243 WO2022094772A1 (en) 2020-11-03 2020-11-03 Position estimation method, following control method, device and storage medium

Publications (1)

Publication Number Publication Date
WO2022094772A1 true WO2022094772A1 (en) 2022-05-12

Family

ID=81458478

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/126243 WO2022094772A1 (en) 2020-11-03 2020-11-03 Position estimation method, following control method, device and storage medium

Country Status (1)

Country Link
WO (1) WO2022094772A1 (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108259703A (en) * 2017-12-31 2018-07-06 深圳市秦墨科技有限公司 A kind of holder with clapping control method, device and holder
CN108762310A (en) * 2018-05-23 2018-11-06 深圳市乐为创新科技有限公司 A kind of unmanned plane of view-based access control model follows the control method and system of flight
CN108874269A (en) * 2017-05-12 2018-11-23 北京臻迪科技股份有限公司 A kind of method for tracking target, apparatus and system
CN111316325A (en) * 2019-03-08 2020-06-19 深圳市大疆创新科技有限公司 Shooting device parameter calibration method, equipment and storage medium
CN111345029A (en) * 2019-05-30 2020-06-26 深圳市大疆创新科技有限公司 Target tracking method and device, movable platform and storage medium
US10706296B2 (en) * 2017-08-01 2020-07-07 Denso Corporation Vehicle safety determination apparatus, method, and computer-readable storage medium
US20200336668A1 (en) * 2019-04-16 2020-10-22 At&T Intellectual Property I, L.P. Selecting spectator viewpoints in volumetric video presentations of live events

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108874269A (en) * 2017-05-12 2018-11-23 北京臻迪科技股份有限公司 A kind of method for tracking target, apparatus and system
US10706296B2 (en) * 2017-08-01 2020-07-07 Denso Corporation Vehicle safety determination apparatus, method, and computer-readable storage medium
CN108259703A (en) * 2017-12-31 2018-07-06 深圳市秦墨科技有限公司 A kind of holder with clapping control method, device and holder
CN108762310A (en) * 2018-05-23 2018-11-06 深圳市乐为创新科技有限公司 A kind of unmanned plane of view-based access control model follows the control method and system of flight
CN111316325A (en) * 2019-03-08 2020-06-19 深圳市大疆创新科技有限公司 Shooting device parameter calibration method, equipment and storage medium
US20200336668A1 (en) * 2019-04-16 2020-10-22 At&T Intellectual Property I, L.P. Selecting spectator viewpoints in volumetric video presentations of live events
CN111345029A (en) * 2019-05-30 2020-06-26 深圳市大疆创新科技有限公司 Target tracking method and device, movable platform and storage medium

Similar Documents

Publication Publication Date Title
CN109492507B (en) Traffic light state identification method and device, computer equipment and readable medium
WO2019242262A1 (en) Augmented reality-based remote guidance method and device, terminal, and storage medium
US20200372672A1 (en) Image-based localization
CN110310326B (en) Visual positioning data processing method and device, terminal and computer readable storage medium
CN108932051B (en) Augmented reality image processing method, apparatus and storage medium
WO2018098824A1 (en) Photographing control method and apparatus, and control device
WO2020228643A1 (en) Interactive control method and apparatus, electronic device and storage medium
US20220122279A1 (en) Imaging method and imaging control apparatus
US11102413B2 (en) Camera area locking
US8897543B1 (en) Bundle adjustment based on image capture intervals
WO2021223124A1 (en) Position information obtaining method and device, and storage medium
CN109891189A (en) That plans is photogrammetric
CN110245641A (en) A kind of target tracking image pickup method, device, electronic equipment
WO2021168838A1 (en) Position information determining method, device, and storage medium
CN110378898B (en) Beacon positioning method, device, storage medium and equipment
CN113696188B (en) Hand-eye calibration data acquisition method and device, electronic equipment and storage medium
WO2022213833A1 (en) Method and apparatus for image synchronization, electronic device, and computer storage medium
CN103327251B (en) A kind of multimedia photographing process method, device and terminal equipment
CN109345567B (en) Object motion track identification method, device, equipment and storage medium
TW201738846A (en) A light field camera and a control method thereof
WO2022094772A1 (en) Position estimation method, following control method, device and storage medium
JP2016194784A (en) Image management system, communication terminal, communication system, image management method, and program
CN115619869A (en) Positioning method and device of automatic guided transport vehicle and automatic guided transport vehicle
WO2019100216A1 (en) 3d modeling method, electronic device, storage medium and program product
CN112990187A (en) Target position information generation method based on handheld terminal image

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20960235

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20960235

Country of ref document: EP

Kind code of ref document: A1