WO2023041014A1 - Image acquisition method and device, and aircraft and storage medium - Google Patents

Image acquisition method and device, and aircraft and storage medium Download PDF

Info

Publication number
WO2023041014A1
WO2023041014A1 PCT/CN2022/119236 CN2022119236W WO2023041014A1 WO 2023041014 A1 WO2023041014 A1 WO 2023041014A1 CN 2022119236 W CN2022119236 W CN 2022119236W WO 2023041014 A1 WO2023041014 A1 WO 2023041014A1
Authority
WO
WIPO (PCT)
Prior art keywords
aircraft
image acquisition
shooting
gimbal
flight
Prior art date
Application number
PCT/CN2022/119236
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 深圳市道通智能航空技术股份有限公司
Publication of WO2023041014A1 publication Critical patent/WO2023041014A1/en

Links

Images

Classifications

    • 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
    • H04N23/695Control of camera direction for changing a field of view, e.g. pan, tilt or based on tracking of objects
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D1/00Control of position, course, altitude or attitude of land, water, air or space vehicles, e.g. using automatic pilots
    • G05D1/10Simultaneous control of position or course in three dimensions
    • G05D1/101Simultaneous control of position or course in three dimensions specially adapted for aircraft
    • G05D1/106Change initiated in response to external conditions, e.g. avoidance of elevated terrain or of no-fly zones

Definitions

  • Embodiments of the present invention relate to flight control technology, and in particular to an image acquisition method, device, aircraft and storage medium.
  • Aerial vehicles such as unmanned aerial vehicles (Unmanned Aerial Vehicle, UAV), also known as unmanned aerial vehicles, have gained more and more attention due to their advantages such as small size, light weight, flexible maneuverability, quick response, unmanned driving, and low operating requirements. Wide range of applications.
  • UAV Unmanned Aerial Vehicle
  • the aircraft may include a gimbal for image acquisition of a shooting target.
  • the invention provides an image acquisition method, device, aircraft and storage medium, so as to realize the rotating shooting of the shooting target.
  • an embodiment of the present invention provides an image acquisition method, including:
  • the shooting progress is determined during the flight, and if the shooting progress satisfies a preset requirement, it is determined that the image acquisition is completed.
  • An embodiment of the present invention provides an image acquisition method, including: determining the navigation direction of the aircraft and the rotation direction of the gimbal; while controlling the aircraft to fly based on the navigation direction, rotating the gimbal based on the rotation direction of the gimbal to photograph the target Perform image acquisition; determine the shooting progress during the flight, and if the shooting progress satisfies the preset requirements, determine to complete the image acquisition.
  • the above technical solution controls the aircraft to fly based on the navigation direction while rotating the gimbal to rotate and shoot the shooting target, realizes the image acquisition of the shooting target based on the rotating mirror, and can also determine the shooting progress during the flight of the aircraft, and When it is determined that the shooting progress meets the preset requirements, it is determined to complete the image acquisition of the shooting target, which further realizes the automation of rotating shooting, reduces the difficulty of rotating shooting based on the aircraft, and improves the applicability of the aircraft.
  • determine the navigation direction of the aircraft including:
  • the received preset heading is determined as the sailing direction, or the current pan/tilt angle direction is determined as the sailing direction.
  • the method further includes: determining a photographing target.
  • the preset heading includes approaching the shooting target or away from the shooting target, and accordingly, controlling the aircraft to fly based on the navigation direction includes:
  • the aircraft is controlled to fly based on a direction close to the shooting target, or the aircraft is controlled to fly based on a direction away from the shooting target.
  • filming progress is determined during the flight, including:
  • the shooting progress is determined based on the distance threshold or the angle threshold during the flight.
  • the shooting progress is determined during the flight, and if the shooting progress meets the preset requirements, it is determined that the image acquisition is completed, including:
  • the current gimbal angle direction is determined as the navigation direction, and the aircraft is continued to be controlled to fly based on the navigation direction.
  • an embodiment of the present invention also provides an image acquisition device, including:
  • a determination module is used to determine the navigation direction of the aircraft and the rotation direction of the gimbal
  • An acquisition module configured to control the aircraft to fly based on the navigation direction, and at the same time to rotate the gimbal based on the rotation direction of the gimbal to acquire images of the shooting target;
  • the execution module is used to determine the shooting progress during the flight, and if the shooting progress meets the preset requirements, it is determined that the image acquisition is completed.
  • the embodiment of the present invention also provides an aircraft, the aircraft comprising:
  • processors one or more processors
  • the cloud platform is used for image acquisition of the shooting target
  • the one or more processors When the one or more programs are executed by the one or more processors, the one or more processors implement the image acquisition method as described in any one of the first aspect.
  • an embodiment of the present invention also provides a storage medium containing computer-executable instructions, the computer-executable instructions are used to perform the image acquisition described in any one of the first aspects when executed by a computer processor method.
  • the above computer instructions may be stored on a computer-readable storage medium.
  • the computer-readable storage medium may be packaged together with the processor of the image acquisition device, or may be separately packaged with the processor of the image acquisition device, which is not limited in this application.
  • FIG. 1 is a flow chart of an image acquisition method provided by Embodiment 1 of the present invention.
  • FIG. 2 is a flow chart of an image acquisition method provided by Embodiment 2 of the present invention.
  • FIG. 3 is an implementation flow chart of an image acquisition method provided by Embodiment 2 of the present invention.
  • FIG. 4 is another implementation flow chart of an image acquisition method provided in Embodiment 2 of the present invention.
  • FIG. 5 is an implementation flowchart of another image acquisition method provided by Embodiment 2 of the present invention.
  • FIG. 6 is another implementation flowchart of another image acquisition method provided by Embodiment 2 of the present invention.
  • FIG. 7 is a schematic structural diagram of an image acquisition device provided in Embodiment 3 of the present invention.
  • FIG. 8 is a schematic structural diagram of an aircraft provided by Embodiment 4 of the present invention.
  • first and second in the specification and drawings of the present application are used to distinguish different objects, or to distinguish different processes for the same object, rather than to describe a specific sequence of objects.
  • the present application proposes an image acquisition method to reduce the difficulty of rotating and photographing the photographing target and facilitate user operations.
  • Fig. 1 is a flow chart of an image acquisition method provided by Embodiment 1 of the present invention. This embodiment is applicable to the case of rotating an object to be photographed. This method can be executed by an image acquisition device, as shown in Fig. 1 , specifically including follow the steps below:
  • Step 110 determine the flying direction of the aircraft and the rotation direction of the gimbal.
  • the aircraft may be a quadrotor aircraft
  • the gimbal may be a four-axis gimbal
  • the gimbal may be used to acquire target images of the shooting target.
  • the sailing direction may include sailing close to the shooting target, sailing away from the shooting target, or sailing along the direction of the gimbal angle.
  • the rotation direction of the gimbal can include clockwise rotation or counterclockwise rotation.
  • the navigation direction and rotation direction of the aircraft may be determined according to the input information of the user.
  • the input information here can only determine whether the sailing direction is close to the shooting target or far away from the shooting target.
  • the shooting target is not frame-selected before the image acquisition of the shooting target, it can be determined that the flying direction of the aircraft is to sail along the gimbal angle, and at this time, the sailing along the gimbal angle can be forward sailing.
  • the navigation direction of the aircraft and the rotation direction of the gimbal can be determined, and further the aircraft can be controlled to fly based on the navigation direction, and the gimbal can also be controlled to perform rotation based on the rotation direction of the gimbal. Rotate to take a rotating shot of the subject.
  • Step 120 while controlling the aircraft to fly based on the navigation direction, rotate the gimbal based on the rotation direction of the gimbal to acquire images of the shooting target.
  • the gimbal can also be controlled to rotate based on the rotation direction of the gimbal, so as to rotate and shoot the shooting target, realize the image acquisition of the shooting target, and further realize the Image acquisition of the shooting target.
  • controlling the aircraft to rotate the gimbal to shoot the shooting target during the flight can solve the problem that the effect of shooting the rotating mirror movement will be limited by the pitch angle of the gimbal, and control the aircraft to automatically rotate and shoot the shooting target.
  • the knot frees the user's hands, reduces the difficulty of rotating shooting, and improves the versatility of the aircraft for rotating shooting.
  • Step 130 determine the shooting progress during the flight, if the shooting progress meets the preset requirements, then determine that the image acquisition is completed.
  • the shooting progress can be determined according to the flight distance of the aircraft.
  • the distance threshold can also be determined.
  • the preset requirement may be that the flight distance is greater than or equal to the distance threshold. If the flight distance of the aircraft is greater than or equal to the distance threshold, it is determined that the shooting progress meets the preset requirement.
  • the shooting progress can also be determined according to the rotation angle of the gimbal.
  • an angle threshold can also be determined.
  • the preset requirement may be that the rotation angle is greater than or equal to the angle threshold. If the rotation angle of the pan/tilt is greater than or equal to the angle threshold, it is determined that the shooting progress meets the preset requirement. It should be noted that if the angle threshold determined according to the user input information is greater than the angle limit of the pan/tilt, then the angle limit of the pan/tilt is determined as the angle threshold.
  • the angle limit of the pan/tilt can be a fixed value determined according to the installation structure when the pan/tilt is installed.
  • the real-time flight speed can be determined, and the flight speed can be integrated to determine the moving distance, and the ratio of the moving distance to a distance threshold can be determined to determine the real-time shooting progress.
  • the real-time rotation angular velocity of the gimbal can also be determined, and the rotation angular velocity can be integrated to determine the rotation angle, and the ratio of the rotation angle to the angle threshold can be determined to determine the real-time shooting progress.
  • the rotation angle of the gimbal can also be obtained directly, and the rotation angle can be compared with the angle threshold to determine the shooting progress. At this time, the shooting progress only includes shooting unfinished and shooting completed. If the rotation angle is smaller than the angle threshold, it is determined that the shooting is not completed; if the rotation angle is greater than or equal to the angle threshold, it is determined that the shooting is completed.
  • An image acquisition method provided by Embodiment 1 of the present invention includes: determining the navigation direction of the aircraft and the rotation direction of the gimbal; while controlling the aircraft to fly based on the navigation direction, rotating the gimbal pair based on the rotation direction of the gimbal
  • the shooting target performs image acquisition; the shooting progress is determined during the flight, and if the shooting progress meets the preset requirements, it is determined that the image acquisition is completed.
  • the above technical solution controls the aircraft to fly based on the navigation direction while rotating the gimbal to rotate and shoot the shooting target, realizes the image acquisition of the shooting target based on the rotating mirror, and can also determine the shooting progress during the flight of the aircraft, and When it is determined that the shooting progress meets the preset requirements, it is determined to complete the image acquisition of the shooting target, which further realizes the automation of rotating shooting, reduces the difficulty of rotating shooting based on the aircraft, and improves the applicability of the aircraft.
  • FIG. 2 is a flow chart of an image acquisition method provided by Embodiment 2 of the present invention. This embodiment is embodied on the basis of the foregoing embodiments. As shown in Figure 2, in this embodiment, the method may also include:
  • Step 210 determine the flying direction of the aircraft and the rotation direction of the gimbal.
  • the user before controlling the aircraft to fly, the user can select a preset heading direction based on the input interface of the aircraft, and can also select a gimbal rotation direction.
  • the preset heading directions that can be selected by the user may include sailing close to the shooting target and sailing away from the shooting target, and the rotation directions of the pan/tilt that may be selected by the user may include clockwise rotation and counterclockwise rotation.
  • the navigation direction of the aircraft and the rotation direction of the gimbal can be determined, and further the aircraft can be controlled to fly based on the navigation direction, and the gimbal can also be controlled to perform rotation based on the rotation direction of the gimbal. Rotate to take a rotating shot of the subject.
  • determining the navigation direction of the aircraft includes:
  • the received preset heading is determined as the sailing direction, or the current pan/tilt angle direction is determined as the sailing direction.
  • the current gimbal angle direction can be determined according to the gimbal pitch angle and flight heading angle.
  • the preset heading direction selected by the user can be determined as the navigation direction , that is, the navigation direction can be determined as being close to the shooting target or far away from the shooting target;
  • the platform angle direction is determined as the heading direction.
  • the frame selection of the shooting target may be to determine the position of the shooting target, specifically, the position of the shooting target in the target image acquired by the pan/tilt may be determined. If there is a step of determining the shooting target before the image acquisition of the shooting target, the pan/tilt is controlled to acquire the target image of the shooting target, and the two-dimensional coordinates of the shooting target in the target image are determined to realize the determination of the shooting target.
  • a method for determining the navigation direction can be obtained.
  • the current gimbal angle direction is determined as the navigation direction, and the control of the aircraft to fly based on the navigation direction is continued.
  • the gimbal angle direction is determined as the heading direction, and the flight continues. If the aircraft was previously flying in the direction close to the shooting target, then in the process of continuing the flight, the gimbal angle direction can be determined as the navigation direction and fly close to the shooting target direction; similarly, if the aircraft was previously flying in the direction away from the shooting target, then In the process of continuing the flight, the angle direction of the gimbal can also be determined as the navigation direction, and the flight is far away from the shooting target.
  • the current gimbal angle can be The direction is determined as the navigation direction, and the control of the aircraft to fly based on the navigation direction is continued.
  • determining the navigation direction of the aircraft and the rotation direction of the gimbal it also includes:
  • the distance information input by the user based on the input interface may be determined as the distance threshold
  • the angle information input by the user based on the input interface may be determined as the angle threshold
  • the angle limit of the pan/tilt is determined as the angle threshold.
  • the user can determine the navigation direction of the aircraft, the rotation direction of the gimbal, the distance threshold and the angle threshold of the current shooting based on the input interface of the aircraft, and then according to whether the aircraft determines the shooting target before the image acquisition of the shooting target, Determine the specific direction of navigation.
  • Step 220 while controlling the aircraft to fly based on the navigation direction, rotate the gimbal based on the rotation direction of the gimbal to acquire images of the shooting target.
  • the gimbal is controlled to rotate based on the rotation direction of the gimbal, which can realize the rotation and shooting of the shooting target, realize the image acquisition of the shooting target, and further realize the image acquisition based on the rotating mirror. Image acquisition of the shooting target.
  • the preset heading includes approaching the shooting target or away from the shooting target, and accordingly, controlling the aircraft to fly based on the navigation direction includes:
  • the aircraft is controlled to fly based on a direction close to the shooting target, or the aircraft is controlled to fly based on a direction away from the shooting target.
  • the gimbal can also be controlled to rotate based on the rotation direction of the gimbal, so as to rotate and shoot the shooting target; of course, when controlling the aircraft to fly away from the shooting target While flying in the direction of the gimbal, you can also control the gimbal to rotate based on the gimbal rotation direction, so as to rotate and shoot the shooting target.
  • the image acquisition of the shooting target can be realized, and the image acquisition of the shooting target based on the rotating mirror is further realized;
  • the aircraft is controlled to rotate the gimbal to rotate and shoot the shooting target during the flight process close to or far away from the shooting target.
  • the automatic rotation shooting of the shooting target can combine and free the user's hands, reduce the difficulty of rotation shooting, and improve the versatility of the aircraft for rotation shooting.
  • Step 230 determine the shooting progress during the flight, if the shooting progress meets the preset requirements, then determine that the image acquisition is completed.
  • determining the shooting progress during the flight includes: determining the shooting progress based on the distance threshold or the angle threshold during the flight.
  • step 230 may specifically include:
  • Determine the flight speed of the aircraft during the flight integrate the flight speed to determine the flight distance, if the flight distance is greater than or equal to the distance threshold, determine that the shooting progress meets the preset requirements, and determine that the image acquisition is completed .
  • the flight speed of the aircraft may be obtained in real time during the flight of the aircraft, and meanwhile the flight speed may be integrated in real time based on time to determine the flight distance.
  • the flight distance can also be compared with the distance threshold while obtaining the flight distance. If the flying distance is less than the distance threshold, it is determined that the shooting progress does not meet the preset requirements, and the image acquisition of the shooting target is continued; if the flying distance is greater than or equal to the distance threshold, it is determined that the shooting progress meets the preset requirements, and it is determined that the image of the shooting target is completed Obtain.
  • step 230 may specifically include:
  • the rotation speed of the gimbal can be obtained in real time during the flight of the aircraft, and at the same time, the rotation speed can be integrated in real time based on the frequency to determine the rotation angle of the gimbal.
  • the frequency may be 100HZ.
  • the rotation angle and the angle threshold may also be compared. If the rotation angle is less than the angle threshold, it is determined that the shooting progress does not meet the preset requirements, and the image acquisition of the shooting target is continued; if the rotation angle is greater than or equal to the angle threshold, it is determined that the shooting progress meets the preset requirements, and it is determined that the image of the shooting target is completed Obtain.
  • the shooting progress is determined according to the flying distance of the aircraft or the rotation angle of the gimbal, which further improves the applicability of the aircraft.
  • An image acquisition method provided by Embodiment 2 of the present invention includes: determining the navigation direction of the aircraft and the rotation direction of the gimbal; while controlling the aircraft to fly based on the navigation direction, rotating the gimbal pair based on the rotation direction of the gimbal
  • the shooting target performs image acquisition; the shooting progress is determined during the flight, and if the shooting progress meets the preset requirements, it is determined that the image acquisition is completed.
  • the above technical solution controls the aircraft to fly based on the navigation direction while rotating the gimbal to rotate and shoot the shooting target, realizes the image acquisition of the shooting target based on the rotating mirror, and can also determine the shooting progress during the flight of the aircraft, and When it is determined that the shooting progress meets the preset requirements, it is determined to complete the image acquisition of the shooting target, which further realizes the automation of the rotation shooting, reduces the difficulty of the rotation shooting based on the aircraft, and improves the applicability of the aircraft.
  • FIG. 3 is an implementation flowchart of an image acquisition method provided in Embodiment 2 of the present invention, and exemplarily shows one implementation manner. As shown in Figure 3, including:
  • Step 310 Determine the received preset heading as the sailing direction, determine the rotation direction of the gimbal of the aircraft, the distance threshold and the angle threshold of the current shooting.
  • Step 320 determine the shooting target.
  • Step 330 Control the aircraft to fly in a direction close to the shooting target, or control the aircraft to fly in a direction away from the shooting target, and at the same time rotate the gimbal based on the rotation direction of the gimbal to acquire images of the shooting target .
  • Step 340 determine whether the shooting target is lost during the flight.
  • step 350 If the shooting target is lost, execute step 350; if the shooting target is not lost, return to step 330.
  • Step 350 Determine the current gimbal angle direction as the sailing direction, and control the aircraft to fly based on the sailing direction, and at the same time, rotate the gimbal based on the gimbal rotation direction to acquire images of the shooting target.
  • Step 360 Determine the flight speed of the aircraft during the flight, and integrate the flight speed to determine the flight distance.
  • Step 370 when it is determined that the flight distance is greater than or equal to the distance threshold, determine that the shooting progress meets the preset requirement, and determine that the image acquisition is completed.
  • Fig. 4 is another implementation flowchart of an image acquisition method provided by Embodiment 2 of the present invention. As shown in Fig. 4, in another implementation manner, steps 360 and 370 may be replaced by steps 380 and 390.
  • Step 380 Determine the rotation speed of the gimbal during the flight, and integrate the rotation speed to determine the rotation angle.
  • Step 390 when it is determined that the rotation angle is greater than or equal to the angle threshold, it is determined that the shooting progress meets the preset requirement, and it is determined that the image acquisition is completed.
  • Embodiment 2 of the present invention provides an implementation of an image acquisition method, which determines the received preset heading as the navigation direction, determines the rotation direction of the gimbal of the aircraft, and the distance threshold and angle threshold of the current shooting; determines the shooting target ; Control the aircraft to fly based on a direction close to the shooting target, or control the aircraft to fly based on a direction away from the shooting target, and at the same time rotate the gimbal based on the rotation direction of the gimbal to acquire images of the shooting target; Determine whether the shooting target is lost during the flight; if the shooting target is lost, then determine the current gimbal angle direction as the navigation direction, and control the aircraft to fly based on the navigation direction, while rotating the cloud based on the gimbal rotation direction The station performs image acquisition on the shooting target; if the shooting target is not lost, continue to control the aircraft to fly based on the direction close to the shooting target, or control the aircraft to fly based on the direction away from the shooting target, and at the same time based
  • the aircraft is controlled to fly in a direction close to the shooting target or in a direction away from the shooting target while rotating the gimbal to rotate and shoot the shooting target, so as to realize the image acquisition of the shooting target based on the rotating mirror.
  • the shooting progress can be determined according to the distance threshold or angle threshold during the flight of the aircraft, and the image acquisition of the shooting target can be determined when the shooting progress is determined to meet the preset requirements, which further realizes the automation of rotation shooting and reduces the need for rotation based on the aircraft.
  • the difficulty of shooting improves the applicability of the aircraft.
  • FIG. 5 is an implementation flowchart of another image acquisition method provided by Embodiment 2 of the present invention, and exemplarily shows one implementation manner. As shown in Figure 5, including:
  • Step 510 Determine the current gimbal angle direction as the navigation direction, determine the gimbal rotation direction of the aircraft, and the distance threshold and angle threshold of the current shooting.
  • Step 520 While controlling the aircraft to fly based on the navigation direction, rotate the gimbal based on the rotation direction of the gimbal to acquire images of the shooting target.
  • Step 530 Determine the flight speed of the aircraft during the flight, and integrate the flight speed to determine the flight distance.
  • Step 540 when it is determined that the flight distance is greater than or equal to the distance threshold, determine that the shooting progress meets the preset requirement, and determine that the image acquisition is completed.
  • FIG. 6 is another implementation flowchart of another image acquisition method provided by Embodiment 2 of the present invention. As shown in FIG. 6 , in another implementation manner, steps 530 and 540 may be replaced by steps 550 and 560 .
  • Step 550 Determine the rotation speed of the gimbal during the flight, and integrate the rotation speed to determine the rotation angle.
  • Step 560 When it is determined that the rotation angle is greater than or equal to the angle threshold, it is determined that the shooting progress meets the preset requirement, and it is determined that the image acquisition is completed.
  • the current gimbal angle direction is determined as the navigation direction, the gimbal rotation direction of the aircraft, the distance threshold and the angle threshold of the current shooting are determined; the aircraft is controlled While flying based on the navigation direction, rotate the gimbal based on the rotation direction of the gimbal to acquire images of the shooting target; determine the flight speed of the aircraft during the flight, and integrate the flight speed to determine the flight distance; When it is determined that the flight distance is greater than or equal to the distance threshold, it is determined that the shooting progress meets the preset requirements, and it is determined that the image acquisition is completed, or; determine the rotation speed of the gimbal during the flight, and integrate the rotation speed to obtain Determine the rotation angle; when it is determined that the rotation angle is greater than or equal to the angle threshold, it is determined that the shooting progress meets the preset requirements, and it is determined that the image acquisition is completed.
  • the above technical solution controls the aircraft to fly based on the current angle direction of the gimbal and rotates the gimbal to shoot the shooting target, and realizes the image acquisition of the shooting target based on the rotating mirror.
  • the angle threshold determines the shooting progress, and when it is determined that the shooting progress meets the preset requirements, it is determined to complete the image acquisition of the shooting target, which further realizes the automation of rotating shooting, reduces the difficulty of rotating shooting based on the aircraft, and improves the applicability of the aircraft.
  • FIG. 7 is a schematic structural diagram of an image acquisition device provided by Embodiment 3 of the present invention, and the device can be adapted to rotate an object to be photographed.
  • the device can be realized by software and/or hardware, and is generally integrated in the aircraft.
  • the device includes:
  • Determining module 710 is used for determining the sailing direction of aircraft and the rotation direction of gimbal;
  • An acquisition module 720 configured to control the aircraft to fly based on the navigation direction, and at the same time, rotate the gimbal based on the rotation direction of the gimbal to acquire images of the shooting target;
  • the execution module 730 is configured to determine the shooting progress during the flight, and if the shooting progress meets the preset requirements, it is determined that the image acquisition is completed.
  • the image acquisition device determines the navigation direction of the aircraft and the rotation direction of the gimbal; controls the aircraft to fly based on the navigation direction, and rotates the gimbal based on the rotation direction of the gimbal to acquire images of the shooting target ; Determine the shooting progress during the flight, if the shooting progress meets the preset requirements, then determine to complete the image acquisition.
  • the above technical solution controls the aircraft to fly based on the navigation direction while rotating the gimbal to rotate and shoot the shooting target, realizes the image acquisition of the shooting target based on the rotating mirror, and can also determine the shooting progress during the flight of the aircraft, and When it is determined that the shooting progress meets the preset requirements, it is determined to complete the image acquisition of the shooting target, which further realizes the automation of the rotation shooting, reduces the difficulty of the rotation shooting based on the aircraft, and improves the applicability of the aircraft.
  • the determination module 710 is specifically used for:
  • the device also includes:
  • the target determining module is used for determining the shooting target.
  • the preset course navigation direction includes approaching the shooting target or being far away from the shooting target.
  • the obtaining module 720 is specifically used for:
  • the pan-tilt is rotated based on the rotational direction of the pan-tilt to acquire images of the shooting target.
  • the determination module 710 is further configured to:
  • execution module 730 is specifically used for:
  • the execution module 730 is specifically used for:
  • the device also includes:
  • the re-determining module is configured to determine the current gimbal angle direction as the navigation direction if the shooting target is lost during the flight, and continue to control the aircraft to fly based on the navigation direction.
  • the image acquisition device provided by the embodiment of the present invention can execute the image acquisition method provided by any embodiment of the present invention, and has corresponding functional modules and beneficial effects for executing the method.
  • Fig. 8 is a schematic structural diagram of an aircraft provided by Embodiment 4 of the present invention.
  • the aircraft includes a processor 810, a memory 820 and a platform 830; the number of processors 810 in the aircraft may be one or more
  • a processor 810 is taken as an example; the processor 810, the memory 820 and the pan/tilt 830 in the aircraft can be connected through a bus or in other ways.
  • the connection through a bus is taken as an example.
  • the memory 820 can be used to store software programs, computer-executable programs and modules, such as program instructions/modules corresponding to the image acquisition method in the embodiment of the present invention (for example, the determination module in the image acquisition device 101, obtaining module 102 and executing module 103).
  • the processor 810 executes various functional applications and data processing of the aircraft by running the software programs, instructions and modules stored in the memory 820 , that is, implements the above-mentioned image acquisition method.
  • the processor 810 may include one or more central processing units (central processing unit, CPU), and may also include multiple processors 810. Each CPU in these processors 810 may be a single-core processor (single-CPU), or a multi-core processor (multi-CPU). Processor 810 herein may refer to one or more devices, circuits, and/or processing cores for processing data (eg, computer program instructions).
  • CPU central processing unit
  • processors 810 may be a single-core processor (single-CPU), or a multi-core processor (multi-CPU).
  • Processor 810 herein may refer to one or more devices, circuits, and/or processing cores for processing data (eg, computer program instructions).
  • the memory 820 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application program required by at least one function; the data storage area may store data created according to the use of the terminal, and the like.
  • the memory 820 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid-state storage devices.
  • memory 820 may further include memory located remotely relative to processor 810 , and such remote memory may be connected to the aircraft via a network. Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
  • the pan-tilt 830 is used for image acquisition of the shooting target.
  • the aircraft provided in the embodiments of the present invention can execute the image acquisition methods provided in the above embodiments, and have corresponding functions and beneficial effects.
  • Embodiment 5 of the present invention also provides a storage medium containing computer-executable instructions, the computer-executable instructions are used to execute an image acquisition method when executed by a computer processor, the method comprising:
  • the shooting progress is determined during the flight, and if the shooting progress satisfies a preset requirement, it is determined that the image acquisition is completed.
  • the computer storage medium in the embodiments of the present invention may use any combination of one or more computer-readable media.
  • the computer readable medium may be a computer readable signal medium or a computer readable storage medium.
  • a computer-readable storage medium may be, for example but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any combination thereof. More specific examples (non-exhaustive list) of computer readable storage media include: electrical connections with one or more leads, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), Erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
  • a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
  • a computer readable signal medium may include a data signal carrying computer readable program code in baseband or as part of a carrier wave. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.
  • a computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device. .
  • Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
  • Computer program code for performing the operations of the present invention may be written in one or more programming languages or combinations thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages. Programming language - such as "C" or a similar programming language.
  • the program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server.
  • the remote computer can be connected to the user computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (such as through the Internet using an Internet service provider). connect).
  • the present application also provides a computer program product, the computer program product includes computer instructions, and when the computer instructions are run on the computer, the computer is made to execute the image acquisition methods provided in Embodiment 1 and Embodiment 2.
  • each module or each step of the present invention described above can be realized by a general-purpose computing device, and they can be concentrated on a single computing device, or distributed on a network formed by multiple computing devices.
  • they can be implemented with executable program codes of computer devices, so that they can be stored in storage devices and executed by computing devices, or they can be made into individual integrated circuit modules, or a plurality of modules in them Or the steps are fabricated into a single integrated circuit module to realize.
  • the present invention is not limited to any specific combination of hardware and software.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Aviation & Aerospace Engineering (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Studio Devices (AREA)
  • Navigation (AREA)
  • Control Of Position, Course, Altitude, Or Attitude Of Moving Bodies (AREA)

Abstract

Disclosed in the present invention are an image acquisition method and device, and an aircraft and a storage medium. The method comprises: determining a navigation direction of an aircraft and a rotation direction of a gimbal; while the aircraft is controlled to fly on the basis of the navigation direction, rotating the gimbal on the basis of the rotation direction of the gimbal to perform image acquisition on a photographing target; and determining the photographing progress in a flight process, and if the photographing progress satisfies a preset requirement, determining that image acquisition is completed. According to the technical solution, while the aircraft is controlled to fly on the basis of the navigation direction, the gimbal rotates to rotationally photograph the photographing target, such that image acquisition of the photographing target based on rotation-based camera movement is achieved; and the photographing progress can be determined in the flight process of the aircraft, and when it is determined that the photographing progress satisfies the preset requirement, it is determined that image acquisition of the photographing target is completed, such that automation of rotary photographing is further achieved, the difficulty of rotary photographing on the basis of the aircraft is reduced, and the applicability of the aircraft is improved.

Description

一种图像获取方法、装置、飞行器和存储介质Image acquisition method, device, aircraft and storage medium
本申请要求于2021年9月17日提交中国专利局、申请号为2021110932799、申请名称为“一种图像获取方法、装置、飞行器和存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 2021110932799 and the application title "An image acquisition method, device, aircraft and storage medium" submitted to the China Patent Office on September 17, 2021, the entire content of which is incorporated by reference incorporated in this application.
技术领域technical field
本发明实施例涉及飞行控制技术,尤其涉及一种图像获取方法、装置、飞行器和存储介质。Embodiments of the present invention relate to flight control technology, and in particular to an image acquisition method, device, aircraft and storage medium.
背景技术Background technique
飞行器,如无人飞行器(Unmanned Aerial Vehicle,UAV),也称无人机,以其具有体积小、重量轻、机动灵活、反应快速、无人驾驶、操作要求低等优点,得到了越来越广泛的应用。飞行器可以包括云台,以对拍摄目标进行图像获取。Aerial vehicles, such as unmanned aerial vehicles (Unmanned Aerial Vehicle, UAV), also known as unmanned aerial vehicles, have gained more and more attention due to their advantages such as small size, light weight, flexible maneuverability, quick response, unmanned driving, and low operating requirements. Wide range of applications. The aircraft may include a gimbal for image acquisition of a shooting target.
现有技术中,在飞行器俯视或者仰视拍摄目标时,可以通过旋转飞行器的偏航角实现旋转运镜的效果。In the prior art, when the aircraft is looking down or looking up at the shooting target, the effect of rotating the mirror can be realized by rotating the yaw angle of the aircraft.
但是受到云台限位限制,旋转运镜的拍摄难度较大,且拍摄效果不好。However, limited by the limit of the gimbal, it is more difficult to shoot with the rotating mirror, and the shooting effect is not good.
发明内容Contents of the invention
本发明提供一种图像获取方法、装置、飞行器和存储介质,以实现对拍摄目标的旋转拍摄。The invention provides an image acquisition method, device, aircraft and storage medium, so as to realize the rotating shooting of the shooting target.
第一方面,本发明实施例提供了一种图像获取方法,包括:In a first aspect, an embodiment of the present invention provides an image acquisition method, including:
确定飞行器的航行方向和云台旋转方向;Determine the flight direction of the aircraft and the rotation direction of the gimbal;
控制所述飞行器基于所述航行方向飞行的同时,基于所述云台旋转方向旋转云台对拍摄目标进行图像获取;While controlling the aircraft to fly based on the navigation direction, rotate the gimbal based on the rotation direction of the gimbal to acquire images of the shooting target;
在飞行过程中确定拍摄进度,如果所述拍摄进度满足预设要求,则确定完成图像获取。The shooting progress is determined during the flight, and if the shooting progress satisfies a preset requirement, it is determined that the image acquisition is completed.
本发明实施例提供一种图像获取方法,包括:确定飞行器的航行方向和云台旋转方向;控制所述飞行器基于所述航行方向飞行的同时,基于所述云台旋转方向旋转云台对拍摄目标进行图像获取;在飞行过程中确定拍摄进度,如果所述拍摄进度满足预设要求,则确定完成图像获取。上述技术方案,控制飞行器基于航行方向进行飞行的同时旋转云台以对拍摄目标进行旋转拍摄,实现基于旋转运镜对拍摄目标的图像获取,还可以在飞行器的飞行过程中确定拍摄进度,并在确定拍摄进度满足预设要求时确定完成对拍摄目标的图像获取,进一步实现了旋转拍摄的自动化,降低了基于飞行器进行旋转拍摄的难度,提高飞行器的适用性。An embodiment of the present invention provides an image acquisition method, including: determining the navigation direction of the aircraft and the rotation direction of the gimbal; while controlling the aircraft to fly based on the navigation direction, rotating the gimbal based on the rotation direction of the gimbal to photograph the target Perform image acquisition; determine the shooting progress during the flight, and if the shooting progress satisfies the preset requirements, determine to complete the image acquisition. The above technical solution controls the aircraft to fly based on the navigation direction while rotating the gimbal to rotate and shoot the shooting target, realizes the image acquisition of the shooting target based on the rotating mirror, and can also determine the shooting progress during the flight of the aircraft, and When it is determined that the shooting progress meets the preset requirements, it is determined to complete the image acquisition of the shooting target, which further realizes the automation of rotating shooting, reduces the difficulty of rotating shooting based on the aircraft, and improves the applicability of the aircraft.
进一步地,确定飞行器的航行方向,包括:Further, determine the navigation direction of the aircraft, including:
将接收到的预设航向确定为所述航行方向,或者,将当前云台角度方向确定为所述航行方向。The received preset heading is determined as the sailing direction, or the current pan/tilt angle direction is determined as the sailing direction.
进一步地,在将接收到的预设航向确定为所述航行方向之前,还包括:确定拍摄目标。Further, before determining the received preset heading as the sailing direction, the method further includes: determining a photographing target.
进一步地,所述预设航向包括靠近所述拍摄目标或者远离所述拍摄目标,相应地,控制所述飞行器基于所述航行方向飞行,包括:Further, the preset heading includes approaching the shooting target or away from the shooting target, and accordingly, controlling the aircraft to fly based on the navigation direction includes:
控制所述飞行器基于靠近所述拍摄目标的方向飞行,或者,控制所述飞行器基于远离所述拍摄目标的方向飞行。The aircraft is controlled to fly based on a direction close to the shooting target, or the aircraft is controlled to fly based on a direction away from the shooting target.
进一步地,确定飞行器的航行方向和云台旋转方向的同时,还包括:Further, while determining the flight direction of the aircraft and the rotation direction of the gimbal, it also includes:
确定当前拍摄的距离阈值和角度阈值;Determine the distance threshold and angle threshold of the current shooting;
相应地,在飞行过程中确定拍摄进度,包括:Accordingly, filming progress is determined during the flight, including:
在飞行过程中基于所述距离阈值或者所述角度阈值确定所述拍摄进度。The shooting progress is determined based on the distance threshold or the angle threshold during the flight.
进一步地,在飞行过程中确定拍摄进度,如果所述拍摄进度满足预设要求,则确定完成图像获取,包括:Further, the shooting progress is determined during the flight, and if the shooting progress meets the preset requirements, it is determined that the image acquisition is completed, including:
在飞行过程中确定所述飞行器的飞行速度,对所述飞行速度进行积分以确定飞行距离,如果所述飞行距离大于或者等于所述距离阈值,则确定拍摄进度满足预设要求,确定完成图像获取;Determine the flight speed of the aircraft during the flight, integrate the flight speed to determine the flight distance, if the flight distance is greater than or equal to the distance threshold, determine that the shooting progress meets the preset requirements, and determine that the image acquisition is completed ;
或者,or,
在飞行过程中确定所述云台的旋转速度,对所述旋转速度进行积分以确定旋转角度,如果所述旋转角度大于或者等于所述角度阈值,则确定拍摄进度满足预设要求,确定完成图像获取。Determine the rotation speed of the gimbal during the flight, integrate the rotation speed to determine the rotation angle, if the rotation angle is greater than or equal to the angle threshold, determine that the shooting progress meets the preset requirements, and determine that the image is completed Obtain.
进一步地,在飞行过程中如果所述拍摄目标丢失,则将当前云台角度方向确定为所述航行方向,并继续执行控制所述飞行器基于所述航行方向飞行。Further, if the shooting target is lost during the flight, the current gimbal angle direction is determined as the navigation direction, and the aircraft is continued to be controlled to fly based on the navigation direction.
第二方面,本发明实施例还提供了一种图像获取装置,包括:In a second aspect, an embodiment of the present invention also provides an image acquisition device, including:
确定模块,用于确定飞行器的航行方向和云台旋转方向;A determination module is used to determine the navigation direction of the aircraft and the rotation direction of the gimbal;
获取模块,用于控制所述飞行器基于所述航行方向飞行的同时,基于所述云台旋转方向旋转云台对拍摄目标进行图像获取;An acquisition module, configured to control the aircraft to fly based on the navigation direction, and at the same time to rotate the gimbal based on the rotation direction of the gimbal to acquire images of the shooting target;
执行模块,用于在飞行过程中确定拍摄进度,如果所述拍摄进度满足预设 要求,则确定完成图像获取。The execution module is used to determine the shooting progress during the flight, and if the shooting progress meets the preset requirements, it is determined that the image acquisition is completed.
第三方面,本发明实施例还提供了一种飞行器,所述飞行器包括:In a third aspect, the embodiment of the present invention also provides an aircraft, the aircraft comprising:
一个或多个处理器;one or more processors;
存储装置,用于存储一个或多个程序;storage means for storing one or more programs;
云台,用于对拍摄目标进行图像获取;The cloud platform is used for image acquisition of the shooting target;
当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如第一方面中任一所述的图像获取方法。When the one or more programs are executed by the one or more processors, the one or more processors implement the image acquisition method as described in any one of the first aspect.
第四方面,本发明实施例还提供了一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行如第一方面中任一所述的图像获取方法。In a fourth aspect, an embodiment of the present invention also provides a storage medium containing computer-executable instructions, the computer-executable instructions are used to perform the image acquisition described in any one of the first aspects when executed by a computer processor method.
需要说明的是,上述计算机指令可以全部或者部分存储在计算机可读存储介质上。其中,计算机可读存储介质可以与图像获取装置的处理器封装在一起的,也可以与图像获取装置的处理器单独封装,本申请对此不做限定。It should be noted that all or part of the above computer instructions may be stored on a computer-readable storage medium. Wherein, the computer-readable storage medium may be packaged together with the processor of the image acquisition device, or may be separately packaged with the processor of the image acquisition device, which is not limited in this application.
本申请中第二方面、第三方面、第四方面的描述,可以参考第一方面的详细描述;并且,第二方面、第三方面、第四方面的描述的有益效果,可以参考第一方面的有益效果分析,此处不再赘述。For the description of the second aspect, the third aspect, and the fourth aspect in this application, you can refer to the detailed description of the first aspect; and, for the beneficial effects of the description of the second aspect, the third aspect, and the fourth aspect, you can refer to the first aspect The beneficial effect analysis will not be repeated here.
在本申请中,上述图像获取装置的名字对设备或功能模块本身不构成限定,在实际实现中,这些设备或功能模块可以以其他名称出现。只要各个设备或功能模块的功能和本申请类似,属于本申请权利要求及其等同技术的范围之内。In this application, the names of the above-mentioned image acquisition devices do not limit the equipment or functional modules themselves, and in actual implementation, these equipment or functional modules may appear with other names. As long as the functions of each device or functional module are similar to those of the present application, they fall within the scope of the claims of the present application and their equivalent technologies.
本申请的这些方面或其他方面在以下的描述中会更加简明易懂。These or other aspects of the present application will be more clearly understood in the following description.
附图说明Description of drawings
图1为本发明实施例一提供的一种图像获取方法的流程图;FIG. 1 is a flow chart of an image acquisition method provided by Embodiment 1 of the present invention;
图2为本发明实施例二提供的一种图像获取方法的流程图;FIG. 2 is a flow chart of an image acquisition method provided by Embodiment 2 of the present invention;
图3为本发明实施例二提供的一种图像获取方法的实现流程图;FIG. 3 is an implementation flow chart of an image acquisition method provided by Embodiment 2 of the present invention;
图4为本发明实施例二提供的一种图像获取方法的另一种实现流程图;FIG. 4 is another implementation flow chart of an image acquisition method provided in Embodiment 2 of the present invention;
图5为本发明实施例二提供的另一种图像获取方法的实现流程图;FIG. 5 is an implementation flowchart of another image acquisition method provided by Embodiment 2 of the present invention;
图6为本发明实施例二提供的另一种图像获取方法的另一种实现流程图;FIG. 6 is another implementation flowchart of another image acquisition method provided by Embodiment 2 of the present invention;
图7为本发明实施例三提供的一种图像获取装置的结构示意图;FIG. 7 is a schematic structural diagram of an image acquisition device provided in Embodiment 3 of the present invention;
图8为本发明实施例四提供的一种飞行器的结构示意图。FIG. 8 is a schematic structural diagram of an aircraft provided by Embodiment 4 of the present invention.
具体实施方式Detailed ways
下面结合附图和实施例对本发明作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释本发明,而非对本发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本发明相关的部分而非全部结构。The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, but not to limit the present invention. In addition, it should be noted that, for the convenience of description, only some structures related to the present invention are shown in the drawings but not all structures.
本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。The term "and/or" in this article is just an association relationship describing associated objects, which means that there can be three relationships, for example, A and/or B can mean: A exists alone, A and B exist simultaneously, and there exists alone B these three situations.
本申请的说明书以及附图中的术语“第一”和“第二”等是用于区别不同的对象,或者用于区别对同一对象的不同处理,而不是用于描述对象的特定顺序。The terms "first" and "second" in the specification and drawings of the present application are used to distinguish different objects, or to distinguish different processes for the same object, rather than to describe a specific sequence of objects.
此外,本申请的描述中所提到的术语“包括”和“具有”以及它们的任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选的还包括其他没有 列出的步骤或单元,或可选的还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。In addition, the terms "including" and "having" mentioned in the description of the present application and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but may optionally include other unlisted steps or units, or may optionally also include Other steps or elements inherent to the process, method, product or apparatus are included.
在更加详细地讨论示例性实施例之前应当提到的是,一些示例性实施例被描述成作为流程图描绘的处理或方法。虽然流程图将各项操作(或步骤)描述成顺序的处理,但是其中的许多操作可以被并行地、并发地或者同时实施。此外,各项操作的顺序可以被重新安排。当其操作完成时所述处理可以被终止,但是还可以具有未包括在附图中的附加步骤。所述处理可以对应于方法、函数、规程、子例程、子程序等等。此外,在不冲突的情况下,本发明中的实施例及实施例中的特征可以相互组合。Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowcharts describe various operations (or steps) as sequential processing, many of the operations may be performed in parallel, concurrently, or simultaneously. In addition, the order of operations can be rearranged. The process may be terminated when its operations are complete, but may also have additional steps not included in the figure. The processing may correspond to a method, function, procedure, subroutine, subroutine, or the like. In addition, the embodiments and the features in the embodiments of the present invention can be combined with each other under the condition of no conflict.
需要说明的是,本申请实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。It should be noted that, in the embodiments of the present application, words such as "exemplary" or "for example" are used as examples, illustrations or descriptions. Any embodiment or design scheme described as "exemplary" or "for example" in the embodiments of the present application shall not be interpreted as being more preferred or more advantageous than other embodiments or design schemes. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete manner.
在本申请的描述中,除非另有说明,“多个”的含义是指两个或两个以上。In the description of the present application, unless otherwise specified, the meaning of "plurality" refers to two or more.
现有技术中,飞行器在基于旋转运镜对拍摄目标进行旋转拍摄时,收到云台翻滚角的限位限制,拍摄难度较大。因此,本申请提出了一种图像获取方法,以降低对对拍摄目标旋转拍摄的难度,便于用户操作。In the prior art, when the aircraft rotates and shoots the shooting target based on the rotating mirror, it is limited by the roll angle of the gimbal, which makes shooting difficult. Therefore, the present application proposes an image acquisition method to reduce the difficulty of rotating and photographing the photographing target and facilitate user operations.
下面将结合各实施例对图像获取方法进行详细的描述。The image acquisition method will be described in detail below in conjunction with various embodiments.
实施例一Embodiment one
图1为本发明实施例一提供的一种图像获取方法的流程图,本实施例可适用于对拍摄目标进行旋转情况,该方法可以由图像获取装置来执行,如图1所示,具体包括如下步骤:Fig. 1 is a flow chart of an image acquisition method provided by Embodiment 1 of the present invention. This embodiment is applicable to the case of rotating an object to be photographed. This method can be executed by an image acquisition device, as shown in Fig. 1 , specifically including Follow the steps below:
步骤110、确定飞行器的航行方向和云台旋转方向。 Step 110, determine the flying direction of the aircraft and the rotation direction of the gimbal.
其中,飞行器可以为四旋翼飞行器,云台可以为四轴云台,云台可以用于获取拍摄目标的目标图像。航行方向可以包括靠近拍摄目标航行、远离拍摄目标航行或者沿着云台角度方向航行。云台旋转方向可以包括顺时针旋转或者逆时针旋转。Wherein, the aircraft may be a quadrotor aircraft, the gimbal may be a four-axis gimbal, and the gimbal may be used to acquire target images of the shooting target. The sailing direction may include sailing close to the shooting target, sailing away from the shooting target, or sailing along the direction of the gimbal angle. The rotation direction of the gimbal can include clockwise rotation or counterclockwise rotation.
具体地,在控制飞行器飞行之前,可以根据用户的输入信息确定飞行器的航行方向和旋转方向。当然,此处的输入信息仅可以确定航行方向为靠近拍摄目标或者远离拍摄目标。Specifically, before controlling the flight of the aircraft, the navigation direction and rotation direction of the aircraft may be determined according to the input information of the user. Of course, the input information here can only determine whether the sailing direction is close to the shooting target or far away from the shooting target.
在实际应用中,对拍摄目标进行图像获取之前,未对拍摄目标进行框选,则可以确定飞行器的航行方向为沿着云台角度航行,此时沿着云台角度航行可以为正向航行。In practical applications, if the shooting target is not frame-selected before the image acquisition of the shooting target, it can be determined that the flying direction of the aircraft is to sail along the gimbal angle, and at this time, the sailing along the gimbal angle can be forward sailing.
本发明实施例中,在控制飞行器对拍摄目标进行旋转拍摄之前,可以确定飞行器的航行方向和云台旋转方向,进一步可以控制飞行器基于航行方向进行飞行,还可以控制云台基于云台旋转方向进行旋转,以对拍摄目标进行旋转拍摄。In the embodiment of the present invention, before the aircraft is controlled to rotate and shoot the shooting target, the navigation direction of the aircraft and the rotation direction of the gimbal can be determined, and further the aircraft can be controlled to fly based on the navigation direction, and the gimbal can also be controlled to perform rotation based on the rotation direction of the gimbal. Rotate to take a rotating shot of the subject.
步骤120、控制所述飞行器基于所述航行方向飞行的同时,基于所述云台旋转方向旋转云台对拍摄目标进行图像获取。 Step 120 , while controlling the aircraft to fly based on the navigation direction, rotate the gimbal based on the rotation direction of the gimbal to acquire images of the shooting target.
具体地,在控制飞行器基于航行方向进行飞行的同时,还可以控制云台基于云台旋转方向进行旋转,以对拍摄目标进行旋转拍摄,实现对拍摄目标的图像获取,进一步实现了基于旋转运镜对拍摄目标的图像获取。Specifically, while controlling the aircraft to fly based on the navigation direction, the gimbal can also be controlled to rotate based on the rotation direction of the gimbal, so as to rotate and shoot the shooting target, realize the image acquisition of the shooting target, and further realize the Image acquisition of the shooting target.
本发明实施例中,控制飞行器在飞行过程中旋转云台对拍摄目标进行旋转拍摄,可以解决拍摄旋转运镜效果会受到云台俯仰角限制的问题,并且控制飞 行器对拍摄目标进行自动旋转拍摄可以结解放用户双手,降低了旋转拍摄的难度,提高飞行器进行旋转拍摄的泛用性。In the embodiment of the present invention, controlling the aircraft to rotate the gimbal to shoot the shooting target during the flight can solve the problem that the effect of shooting the rotating mirror movement will be limited by the pitch angle of the gimbal, and control the aircraft to automatically rotate and shoot the shooting target. The knot frees the user's hands, reduces the difficulty of rotating shooting, and improves the versatility of the aircraft for rotating shooting.
步骤130、在飞行过程中确定拍摄进度,如果所述拍摄进度满足预设要求,则确定完成图像获取。 Step 130, determine the shooting progress during the flight, if the shooting progress meets the preset requirements, then determine that the image acquisition is completed.
一方面,可以根据飞行器的飞行距离确定拍摄进度,当然,在确定飞行器的航行方向和云台旋转方向的同时,还可以确定距离阈值。此时,预设要求可以为飞行距离大于或者等于距离阈值。如果飞行器的飞行距离大于或者等于距离阈值,则确定拍摄进度满足预设要求。On the one hand, the shooting progress can be determined according to the flight distance of the aircraft. Of course, while determining the flight direction of the aircraft and the rotation direction of the gimbal, the distance threshold can also be determined. At this time, the preset requirement may be that the flight distance is greater than or equal to the distance threshold. If the flight distance of the aircraft is greater than or equal to the distance threshold, it is determined that the shooting progress meets the preset requirement.
另一方面,还可以根据云台的旋转角度确定拍摄进度,当然,在确定飞行器的航行方向和云台旋转方向的同时,还可以确定角度阈值。此时,预设要求可以为旋转角度大于或者等于角度阈值。如果云台的旋转角度大于或者等于角度阈值,则确定拍摄进度满足预设要求。需要说明的是,如果根据用户的输入信息确定的角度阈值大于云台的角度限值,则将云台的角度限值确定为角度阈值。此处云台的角度限值可以为云台安装时根据安装结构确定的固定值。On the other hand, the shooting progress can also be determined according to the rotation angle of the gimbal. Of course, while determining the flight direction of the aircraft and the rotation direction of the gimbal, an angle threshold can also be determined. At this time, the preset requirement may be that the rotation angle is greater than or equal to the angle threshold. If the rotation angle of the pan/tilt is greater than or equal to the angle threshold, it is determined that the shooting progress meets the preset requirement. It should be noted that if the angle threshold determined according to the user input information is greater than the angle limit of the pan/tilt, then the angle limit of the pan/tilt is determined as the angle threshold. Here, the angle limit of the pan/tilt can be a fixed value determined according to the installation structure when the pan/tilt is installed.
具体地,在飞行器飞行过程中,可以确定实时飞行速度,并对飞行速度进行积分,以确定移动距离,确定该移动距离和距离阈值的比值,以确定实时拍摄进度。在飞行器飞行过程中,还可以确定云台的实时旋转角速度,并对旋转角速度进行积分,以确定旋转角度,确定该旋转角度和角度阈值的比值,以确定实时拍摄进度。当然,在实际应用中,也可以直接获取云台的旋转角度,并对旋转角度和角度阈值进行比较,以确定拍摄进度,此时的拍摄进度仅包括拍摄未完成和拍摄完成。如果该旋转角度小于角度阈值,则确定拍摄未完成;如果该旋转角度大于或者等于角度阈值,则确定拍摄完成。Specifically, during the flight of the aircraft, the real-time flight speed can be determined, and the flight speed can be integrated to determine the moving distance, and the ratio of the moving distance to a distance threshold can be determined to determine the real-time shooting progress. During the flight of the aircraft, the real-time rotation angular velocity of the gimbal can also be determined, and the rotation angular velocity can be integrated to determine the rotation angle, and the ratio of the rotation angle to the angle threshold can be determined to determine the real-time shooting progress. Of course, in practical applications, the rotation angle of the gimbal can also be obtained directly, and the rotation angle can be compared with the angle threshold to determine the shooting progress. At this time, the shooting progress only includes shooting unfinished and shooting completed. If the rotation angle is smaller than the angle threshold, it is determined that the shooting is not completed; if the rotation angle is greater than or equal to the angle threshold, it is determined that the shooting is completed.
本发明实施例一提供的一种图像获取方法,包括:确定飞行器的航行方向和云台旋转方向;控制所述飞行器基于所述航行方向飞行的同时,基于所述云台旋转方向旋转云台对拍摄目标进行图像获取;在飞行过程中确定拍摄进度,如果所述拍摄进度满足预设要求,则确定完成图像获取。上述技术方案,控制飞行器基于航行方向进行飞行的同时旋转云台以对拍摄目标进行旋转拍摄,实现基于旋转运镜对拍摄目标的图像获取,还可以在飞行器的飞行过程中确定拍摄进度,并在确定拍摄进度满足预设要求时确定完成对拍摄目标的图像获取,进一步实现了旋转拍摄的自动化,降低了基于飞行器进行旋转拍摄的难度,提高飞行器的适用性。An image acquisition method provided by Embodiment 1 of the present invention includes: determining the navigation direction of the aircraft and the rotation direction of the gimbal; while controlling the aircraft to fly based on the navigation direction, rotating the gimbal pair based on the rotation direction of the gimbal The shooting target performs image acquisition; the shooting progress is determined during the flight, and if the shooting progress meets the preset requirements, it is determined that the image acquisition is completed. The above technical solution controls the aircraft to fly based on the navigation direction while rotating the gimbal to rotate and shoot the shooting target, realizes the image acquisition of the shooting target based on the rotating mirror, and can also determine the shooting progress during the flight of the aircraft, and When it is determined that the shooting progress meets the preset requirements, it is determined to complete the image acquisition of the shooting target, which further realizes the automation of rotating shooting, reduces the difficulty of rotating shooting based on the aircraft, and improves the applicability of the aircraft.
实施例二Embodiment two
图2为本发明实施例二提供的一种图像获取方法的流程图,本实施例是在上述实施例的基础上进行具体化。如图2所示,在本实施例中,该方法还可以包括:FIG. 2 is a flow chart of an image acquisition method provided by Embodiment 2 of the present invention. This embodiment is embodied on the basis of the foregoing embodiments. As shown in Figure 2, in this embodiment, the method may also include:
步骤210、确定飞行器的航行方向和云台旋转方向。 Step 210, determine the flying direction of the aircraft and the rotation direction of the gimbal.
具体地,在控制飞行器飞行之前,用户可以基于飞行器的输入界面选择预设航向方向,还可以选择云台旋转方向。可供用户选择的预设航向方向可以包括靠近拍摄目标航行和远离拍摄目标航行,可供用户选择的云台旋转方向可以包括顺时针旋转和逆时针旋转。Specifically, before controlling the aircraft to fly, the user can select a preset heading direction based on the input interface of the aircraft, and can also select a gimbal rotation direction. The preset heading directions that can be selected by the user may include sailing close to the shooting target and sailing away from the shooting target, and the rotation directions of the pan/tilt that may be selected by the user may include clockwise rotation and counterclockwise rotation.
本发明实施例中,在控制飞行器对拍摄目标进行旋转拍摄之前,可以确定飞行器的航行方向和云台旋转方向,进一步可以控制飞行器基于航行方向进行飞行,还可以控制云台基于云台旋转方向进行旋转,以对拍摄目标进行旋转拍 摄。In the embodiment of the present invention, before the aircraft is controlled to rotate and shoot the shooting target, the navigation direction of the aircraft and the rotation direction of the gimbal can be determined, and further the aircraft can be controlled to fly based on the navigation direction, and the gimbal can also be controlled to perform rotation based on the rotation direction of the gimbal. Rotate to take a rotating shot of the subject.
一种实施方式中,确定飞行器的航行方向,包括:In one embodiment, determining the navigation direction of the aircraft includes:
将接收到的预设航向确定为所述航行方向,或者,将当前云台角度方向确定为所述航行方向。The received preset heading is determined as the sailing direction, or the current pan/tilt angle direction is determined as the sailing direction.
其中,根据云台俯仰角度和飞行航向角可以确定当前云台角度方向。Among them, the current gimbal angle direction can be determined according to the gimbal pitch angle and flight heading angle.
具体地,飞行器开始飞行之后,如果在对拍摄目标进行图像获取之前,存在对拍摄目标进行框选的过程,即存在确定拍摄目标的步骤,则可以将用户选择的预设航向方向确定为航行方向,即可以将靠近拍摄目标或者远离拍摄目标确定为航行方向;如果在对拍摄目标进行图像获取之前,不存在对拍摄目标进行框选的过程,即不存在确定拍摄目标的步骤,则可以将云台角度方向确定为航向方向。Specifically, after the aircraft starts flying, if there is a process of frame-selecting the shooting target before the image acquisition of the shooting target, that is, there is a step of determining the shooting target, then the preset heading direction selected by the user can be determined as the navigation direction , that is, the navigation direction can be determined as being close to the shooting target or far away from the shooting target; The platform angle direction is determined as the heading direction.
其中,对拍摄目标进行框选可以为确定拍摄目标位置,具体可以确定拍摄目标在云台获取到的目标图像中的位置。如果在对拍摄目标进行图像获取之前,存在确定拍摄目标的步骤,则控制云台获取拍摄目标的目标图像,确定拍摄目标在目标图像中的二维坐标,实现确定拍摄目标。Wherein, the frame selection of the shooting target may be to determine the position of the shooting target, specifically, the position of the shooting target in the target image acquired by the pan/tilt may be determined. If there is a step of determining the shooting target before the image acquisition of the shooting target, the pan/tilt is controlled to acquire the target image of the shooting target, and the two-dimensional coordinates of the shooting target in the target image are determined to realize the determination of the shooting target.
本发明实施例中,根据对拍摄目标进行图像获取前是否确定拍摄目标,可以得到确定航行方向的方法。In the embodiment of the present invention, according to whether the shooting target is determined before image acquisition of the shooting target, a method for determining the navigation direction can be obtained.
优选地,在飞行过程中如果所述拍摄目标丢失,则将当前云台角度方向确定为所述航行方向,并继续执行控制所述飞行器基于所述航行方向飞行。Preferably, if the shooting target is lost during the flight, the current gimbal angle direction is determined as the navigation direction, and the control of the aircraft to fly based on the navigation direction is continued.
具体地,在飞行器基于靠近拍摄目标或者远离拍摄目标飞行过程中,如果拍摄目标丢失,则将云台角度方向确定为航向方向,继续进行飞行。如果飞行器先前基于靠近拍摄目标方向飞行,那么在继续飞行的过程中,可以将云台角 度方向确定为航行方向,并且靠近拍摄目标方向飞行;同样地,如果飞行器先前基于远离拍摄目标方向飞行,那么在继续飞行的过程中,也可以将云台角度方向确定为航行方向,并且远离拍摄目标飞行。Specifically, when the aircraft is flying close to or away from the shooting target, if the shooting target is lost, the gimbal angle direction is determined as the heading direction, and the flight continues. If the aircraft was previously flying in the direction close to the shooting target, then in the process of continuing the flight, the gimbal angle direction can be determined as the navigation direction and fly close to the shooting target direction; similarly, if the aircraft was previously flying in the direction away from the shooting target, then In the process of continuing the flight, the angle direction of the gimbal can also be determined as the navigation direction, and the flight is far away from the shooting target.
本发明实施例中,如果对拍摄目标进行图像获取前已经确定拍摄目标,且在飞行器飞行过程中,拍摄目标丢失,即拍摄目标消失在云台的可视范围内,则可以将当前云台角度方向确定为所述航行方向,并继续执行控制所述飞行器基于所述航行方向飞行。In the embodiment of the present invention, if the shooting target has been determined before the image acquisition of the shooting target, and the shooting target is lost during the flight of the aircraft, that is, the shooting target disappears within the visible range of the gimbal, then the current gimbal angle can be The direction is determined as the navigation direction, and the control of the aircraft to fly based on the navigation direction is continued.
一种实施方式中,确定飞行器的航行方向和云台旋转方向的同时,还包括:In one embodiment, while determining the navigation direction of the aircraft and the rotation direction of the gimbal, it also includes:
确定当前拍摄的距离阈值和角度阈值。Determine the distance threshold and angle threshold for the current shot.
具体地,可以将用户基于输入界面输入的距离信息确定为距离阈值,将用户基于输入界面输入的角度信息确定为角度阈值。Specifically, the distance information input by the user based on the input interface may be determined as the distance threshold, and the angle information input by the user based on the input interface may be determined as the angle threshold.
需要说明的是,如果用户输入的角度信息大于云台的角度限值,则将云台的角度限值确定为角度阈值。It should be noted that if the angle information input by the user is greater than the angle limit of the pan/tilt, the angle limit of the pan/tilt is determined as the angle threshold.
本发明实施例中,首先可以用户基于飞行器的输入界面确定飞行器的航行方向、云台旋转方向、当前拍摄的距离阈值和角度阈值,然后根据飞行器在对拍摄目标进行图像获取前是否确定拍摄目标,确定具体的航行方向。In the embodiment of the present invention, first, the user can determine the navigation direction of the aircraft, the rotation direction of the gimbal, the distance threshold and the angle threshold of the current shooting based on the input interface of the aircraft, and then according to whether the aircraft determines the shooting target before the image acquisition of the shooting target, Determine the specific direction of navigation.
步骤220、控制所述飞行器基于所述航行方向飞行的同时,基于所述云台旋转方向旋转云台对拍摄目标进行图像获取。 Step 220 , while controlling the aircraft to fly based on the navigation direction, rotate the gimbal based on the rotation direction of the gimbal to acquire images of the shooting target.
具体地,在控制飞行器基于航行方向进行飞行的同时,控制云台基于云台旋转方向进行旋转,可以实现对拍摄目标额旋转拍摄,实现对拍摄目标的图像获取,进一步实现了基于旋转运镜对拍摄目标的图像获取。Specifically, while controlling the aircraft to fly based on the navigation direction, the gimbal is controlled to rotate based on the rotation direction of the gimbal, which can realize the rotation and shooting of the shooting target, realize the image acquisition of the shooting target, and further realize the image acquisition based on the rotating mirror. Image acquisition of the shooting target.
一种实施方式中,预设航向包括靠近所述拍摄目标或者远离所述拍摄目标, 相应地,控制所述飞行器基于所述航行方向飞行,包括:In one embodiment, the preset heading includes approaching the shooting target or away from the shooting target, and accordingly, controlling the aircraft to fly based on the navigation direction includes:
控制所述飞行器基于靠近所述拍摄目标的方向飞行,或者,控制所述飞行器基于远离所述拍摄目标的方向飞行。The aircraft is controlled to fly based on a direction close to the shooting target, or the aircraft is controlled to fly based on a direction away from the shooting target.
具体地,在控制飞行器基于靠近所述拍摄目标的方向飞行的同时,还可以控制云台基于云台旋转方向进行旋转,以对拍摄目标进行旋转拍摄;当然,在控制飞行器基于远离所述拍摄目标的方向飞行的同时,也可以控制云台基于云台旋转方向进行旋转,以对拍摄目标进行旋转拍摄。当然,可以实现对拍摄目标的图像获取,进一步实现了基于旋转运镜对拍摄目标的图像获取;Specifically, while controlling the aircraft to fly in a direction close to the shooting target, the gimbal can also be controlled to rotate based on the rotation direction of the gimbal, so as to rotate and shoot the shooting target; of course, when controlling the aircraft to fly away from the shooting target While flying in the direction of the gimbal, you can also control the gimbal to rotate based on the gimbal rotation direction, so as to rotate and shoot the shooting target. Of course, the image acquisition of the shooting target can be realized, and the image acquisition of the shooting target based on the rotating mirror is further realized;
本发明实施例中,控制飞行器在靠近拍摄目标或者远离拍摄目标的飞行过程中旋转云台对拍摄目标进行旋转拍摄,可以解决拍摄旋转运镜效果会受到云台俯仰角限制的问题,并且控制飞行器对拍摄目标进行自动旋转拍摄可以结解放用户双手,降低了旋转拍摄的难度,提高飞行器进行旋转拍摄的泛用性。In the embodiment of the present invention, the aircraft is controlled to rotate the gimbal to rotate and shoot the shooting target during the flight process close to or far away from the shooting target. The automatic rotation shooting of the shooting target can combine and free the user's hands, reduce the difficulty of rotation shooting, and improve the versatility of the aircraft for rotation shooting.
步骤230、在飞行过程中确定拍摄进度,如果所述拍摄进度满足预设要求,则确定完成图像获取。 Step 230, determine the shooting progress during the flight, if the shooting progress meets the preset requirements, then determine that the image acquisition is completed.
本发明实施例中,在飞行过程中确定拍摄进度,包括:在飞行过程中基于所述距离阈值或者所述角度阈值确定所述拍摄进度。In this embodiment of the present invention, determining the shooting progress during the flight includes: determining the shooting progress based on the distance threshold or the angle threshold during the flight.
一种实施方式中,步骤230具体可以包括:In one embodiment, step 230 may specifically include:
在飞行过程中确定所述飞行器的飞行速度,对所述飞行速度进行积分以确定飞行距离,如果所述飞行距离大于或者等于所述距离阈值,则确定拍摄进度满足预设要求,确定完成图像获取。Determine the flight speed of the aircraft during the flight, integrate the flight speed to determine the flight distance, if the flight distance is greater than or equal to the distance threshold, determine that the shooting progress meets the preset requirements, and determine that the image acquisition is completed .
具体地,可以在飞行器飞行过程中实时获取飞行器的飞行速度,同时基于时间实时对飞行速度进行积分以确定飞行距离。当然,在得到飞行距离的同时也 可以比较飞行距离和距离阈值。如果飞行距离小于距离阈值,则确定拍摄进度不满足预设要求,继续对拍摄目标进行图像获取;如果飞行距离大于或者等于距离阈值,则确定拍摄进度满足预设要求,确定完成对拍摄目标的图像获取。Specifically, the flight speed of the aircraft may be obtained in real time during the flight of the aircraft, and meanwhile the flight speed may be integrated in real time based on time to determine the flight distance. Of course, the flight distance can also be compared with the distance threshold while obtaining the flight distance. If the flying distance is less than the distance threshold, it is determined that the shooting progress does not meet the preset requirements, and the image acquisition of the shooting target is continued; if the flying distance is greater than or equal to the distance threshold, it is determined that the shooting progress meets the preset requirements, and it is determined that the image of the shooting target is completed Obtain.
另一种实施方式中,步骤230具体可以包括:In another implementation manner, step 230 may specifically include:
在飞行过程中确定所述云台的旋转速度,对所述旋转速度进行积分以确定旋转角度,如果所述旋转角度大于或者等于所述角度阈值,则确定拍摄进度满足预设要求,确定完成图像获取。Determine the rotation speed of the gimbal during the flight, integrate the rotation speed to determine the rotation angle, if the rotation angle is greater than or equal to the angle threshold, determine that the shooting progress meets the preset requirements, and determine that the image is completed Obtain.
具体地,可以在飞行器飞行过程中实时获取云台的旋转速度,同时基于频率实时对旋转速度进行积分以确定云台的旋转角度。其中,频率可以为100HZ。当然,在得到云台的旋转角度的同时也可以比较旋转角度和角度阈值。如果旋转角度小于角度阈值,则确定拍摄进度不满足预设要求,继续对拍摄目标进行图像获取;如果旋转角度大于或者等于角度阈值,则确定拍摄进度满足预设要求,确定完成对拍摄目标的图像获取。Specifically, the rotation speed of the gimbal can be obtained in real time during the flight of the aircraft, and at the same time, the rotation speed can be integrated in real time based on the frequency to determine the rotation angle of the gimbal. Wherein, the frequency may be 100HZ. Certainly, while obtaining the rotation angle of the gimbal, the rotation angle and the angle threshold may also be compared. If the rotation angle is less than the angle threshold, it is determined that the shooting progress does not meet the preset requirements, and the image acquisition of the shooting target is continued; if the rotation angle is greater than or equal to the angle threshold, it is determined that the shooting progress meets the preset requirements, and it is determined that the image of the shooting target is completed Obtain.
本发明实施例中,实现了根据飞行器飞过的飞行距离或者云台转过的旋转角度确定拍摄进度,进一步提高了飞行器的适用性。In the embodiment of the present invention, it is realized that the shooting progress is determined according to the flying distance of the aircraft or the rotation angle of the gimbal, which further improves the applicability of the aircraft.
本发明实施例二提供的一种图像获取方法,包括:确定飞行器的航行方向和云台旋转方向;控制所述飞行器基于所述航行方向飞行的同时,基于所述云台旋转方向旋转云台对拍摄目标进行图像获取;在飞行过程中确定拍摄进度,如果所述拍摄进度满足预设要求,则确定完成图像获取。上述技术方案,控制飞行器基于航行方向进行飞行的同时旋转云台以对拍摄目标进行旋转拍摄,实现基于旋转运镜对拍摄目标的图像获取,还可以在飞行器的飞行过程中确定拍摄进度,并在确定拍摄进度满足预设要求时确定完成对拍摄目标的图像获取, 进一步实现了旋转拍摄的自动化,降低了基于飞行器进行旋转拍摄的难度,提高飞行器的适用性。An image acquisition method provided by Embodiment 2 of the present invention includes: determining the navigation direction of the aircraft and the rotation direction of the gimbal; while controlling the aircraft to fly based on the navigation direction, rotating the gimbal pair based on the rotation direction of the gimbal The shooting target performs image acquisition; the shooting progress is determined during the flight, and if the shooting progress meets the preset requirements, it is determined that the image acquisition is completed. The above technical solution controls the aircraft to fly based on the navigation direction while rotating the gimbal to rotate and shoot the shooting target, realizes the image acquisition of the shooting target based on the rotating mirror, and can also determine the shooting progress during the flight of the aircraft, and When it is determined that the shooting progress meets the preset requirements, it is determined to complete the image acquisition of the shooting target, which further realizes the automation of the rotation shooting, reduces the difficulty of the rotation shooting based on the aircraft, and improves the applicability of the aircraft.
图3为本发明实施例二提供的一种图像获取方法的实现流程图,示例性的给出了其中一种实现方式。如图3所示,包括:FIG. 3 is an implementation flowchart of an image acquisition method provided in Embodiment 2 of the present invention, and exemplarily shows one implementation manner. As shown in Figure 3, including:
步骤310、将接收到的预设航向确定为所述航行方向,确定飞行器的云台旋转方向、当前拍摄的距离阈值和角度阈值。Step 310: Determine the received preset heading as the sailing direction, determine the rotation direction of the gimbal of the aircraft, the distance threshold and the angle threshold of the current shooting.
步骤320、确定拍摄目标。 Step 320, determine the shooting target.
步骤330、控制所述飞行器基于靠近所述拍摄目标的方向飞行,或者,控制所述飞行器基于远离所述拍摄目标的方向飞行,同时基于所述云台旋转方向旋转云台对拍摄目标进行图像获取。Step 330: Control the aircraft to fly in a direction close to the shooting target, or control the aircraft to fly in a direction away from the shooting target, and at the same time rotate the gimbal based on the rotation direction of the gimbal to acquire images of the shooting target .
步骤340、在飞行过程中确定拍摄目标是否丢失。 Step 340, determine whether the shooting target is lost during the flight.
如果拍摄目标丢失,则执行步骤350;如果拍摄目标未丢失,则返回执行步骤330。If the shooting target is lost, execute step 350; if the shooting target is not lost, return to step 330.
步骤350、将当前云台角度方向确定为所述航行方向,并控制所述飞行器基于所述航行方向飞行,同时基于所述云台旋转方向旋转云台对拍摄目标进行图像获取。Step 350 : Determine the current gimbal angle direction as the sailing direction, and control the aircraft to fly based on the sailing direction, and at the same time, rotate the gimbal based on the gimbal rotation direction to acquire images of the shooting target.
步骤360、在飞行过程中确定所述飞行器的飞行速度,对所述飞行速度进行积分以确定飞行距离。Step 360: Determine the flight speed of the aircraft during the flight, and integrate the flight speed to determine the flight distance.
步骤370、在确定飞行距离大于或者等于所述距离阈值时,确定拍摄进度满足预设要求,确定完成图像获取。 Step 370, when it is determined that the flight distance is greater than or equal to the distance threshold, determine that the shooting progress meets the preset requirement, and determine that the image acquisition is completed.
图4为本发明实施例二提供的一种图像获取方法的另一种实现流程图,如 图4所示,另一种实现方式中,步骤360和370可以替换为步骤380和390。Fig. 4 is another implementation flowchart of an image acquisition method provided by Embodiment 2 of the present invention. As shown in Fig. 4, in another implementation manner, steps 360 and 370 may be replaced by steps 380 and 390.
步骤380、在飞行过程中确定所述云台的旋转速度,对所述旋转速度进行积分以确定旋转角度。Step 380: Determine the rotation speed of the gimbal during the flight, and integrate the rotation speed to determine the rotation angle.
步骤390、在确定旋转角度大于或者等于所述角度阈值时,确定拍摄进度满足预设要求,确定完成图像获取。 Step 390 , when it is determined that the rotation angle is greater than or equal to the angle threshold, it is determined that the shooting progress meets the preset requirement, and it is determined that the image acquisition is completed.
本发明实施例二提供的一种图像获取方法的实现方式,将接收到的预设航向确定为所述航行方向,确定飞行器的云台旋转方向、当前拍摄的距离阈值和角度阈值;确定拍摄目标;控制所述飞行器基于靠近所述拍摄目标的方向飞行,或者,控制所述飞行器基于远离所述拍摄目标的方向飞行,同时基于所述云台旋转方向旋转云台对拍摄目标进行图像获取;在飞行过程中确定拍摄目标是否丢失;如果拍摄目标丢失,则将当前云台角度方向确定为所述航行方向,并控制所述飞行器基于所述航行方向飞行,同时基于所述云台旋转方向旋转云台对拍摄目标进行图像获取;如果拍摄目标未丢失,则继续执行控制所述飞行器基于靠近所述拍摄目标的方向飞行,或者,控制所述飞行器基于远离所述拍摄目标的方向飞行,同时基于所述云台旋转方向旋转云台对拍摄目标进行图像获取;在飞行过程中确定所述飞行器的飞行速度,对所述飞行速度进行积分以确定飞行距离;在确定飞行距离大于或者等于所述距离阈值时,确定拍摄进度满足预设要求,确定完成图像获取,或者,在飞行过程中确定所述云台的旋转速度,对所述旋转速度进行积分以确定旋转角度;在确定旋转角度大于或者等于所述角度阈值时,确定拍摄进度满足预设要求,确定完成图像获取。上述技术方案,控制飞行器基于靠近所述拍摄目标的方向或者远离所述拍摄目标的方向进行飞行的同时旋转云台以对拍摄目标进行旋转拍摄,实现基于旋转运镜对拍摄目标 的图像获取,还可以在飞行器的飞行过程中根据距离阈值或者角度阈值确定拍摄进度,并在确定拍摄进度满足预设要求时确定完成对拍摄目标的图像获取,进一步实现了旋转拍摄的自动化,降低了基于飞行器进行旋转拍摄的难度,提高飞行器的适用性。Embodiment 2 of the present invention provides an implementation of an image acquisition method, which determines the received preset heading as the navigation direction, determines the rotation direction of the gimbal of the aircraft, and the distance threshold and angle threshold of the current shooting; determines the shooting target ; Control the aircraft to fly based on a direction close to the shooting target, or control the aircraft to fly based on a direction away from the shooting target, and at the same time rotate the gimbal based on the rotation direction of the gimbal to acquire images of the shooting target; Determine whether the shooting target is lost during the flight; if the shooting target is lost, then determine the current gimbal angle direction as the navigation direction, and control the aircraft to fly based on the navigation direction, while rotating the cloud based on the gimbal rotation direction The station performs image acquisition on the shooting target; if the shooting target is not lost, continue to control the aircraft to fly based on the direction close to the shooting target, or control the aircraft to fly based on the direction away from the shooting target, and at the same time based on the Rotate the cloud platform in the rotation direction of the cloud platform to acquire images of the shooting target; determine the flight speed of the aircraft during the flight, and integrate the flight speed to determine the flight distance; when the flight distance is determined to be greater than or equal to the distance threshold When it is determined that the shooting progress meets the preset requirements, it is determined that the image acquisition is completed, or, during the flight, the rotation speed of the pan/tilt is determined, and the rotation speed is integrated to determine the rotation angle; when the rotation angle is determined to be greater than or equal to the specified When the above-mentioned angle threshold is determined, it is determined that the shooting progress meets the preset requirements, and it is determined that the image acquisition is completed. In the above technical solution, the aircraft is controlled to fly in a direction close to the shooting target or in a direction away from the shooting target while rotating the gimbal to rotate and shoot the shooting target, so as to realize the image acquisition of the shooting target based on the rotating mirror. The shooting progress can be determined according to the distance threshold or angle threshold during the flight of the aircraft, and the image acquisition of the shooting target can be determined when the shooting progress is determined to meet the preset requirements, which further realizes the automation of rotation shooting and reduces the need for rotation based on the aircraft. The difficulty of shooting improves the applicability of the aircraft.
图5为本发明实施例二提供的另一种图像获取方法的实现流程图,示例性的给出了其中一种实现方式。如图5所示,包括:FIG. 5 is an implementation flowchart of another image acquisition method provided by Embodiment 2 of the present invention, and exemplarily shows one implementation manner. As shown in Figure 5, including:
步骤510、将当前云台角度方向确定为所述航行方向,确定飞行器的云台旋转方向、当前拍摄的距离阈值和角度阈值。Step 510: Determine the current gimbal angle direction as the navigation direction, determine the gimbal rotation direction of the aircraft, and the distance threshold and angle threshold of the current shooting.
步骤520、控制所述飞行器基于所述航行方向飞行的同时,基于所述云台旋转方向旋转云台对拍摄目标进行图像获取。Step 520 : While controlling the aircraft to fly based on the navigation direction, rotate the gimbal based on the rotation direction of the gimbal to acquire images of the shooting target.
步骤530、在飞行过程中确定所述飞行器的飞行速度,对所述飞行速度进行积分以确定飞行距离。Step 530: Determine the flight speed of the aircraft during the flight, and integrate the flight speed to determine the flight distance.
步骤540、在确定飞行距离大于或者等于所述距离阈值时,确定拍摄进度满足预设要求,确定完成图像获取。 Step 540, when it is determined that the flight distance is greater than or equal to the distance threshold, determine that the shooting progress meets the preset requirement, and determine that the image acquisition is completed.
图6为本发明实施例二提供的另一种图像获取方法的另一种实现流程图,如图6所示,另一种实现方式中,步骤530和540可以替换为步骤550和560。FIG. 6 is another implementation flowchart of another image acquisition method provided by Embodiment 2 of the present invention. As shown in FIG. 6 , in another implementation manner, steps 530 and 540 may be replaced by steps 550 and 560 .
步骤550、在飞行过程中确定所述云台的旋转速度,对所述旋转速度进行积分以确定旋转角度。Step 550: Determine the rotation speed of the gimbal during the flight, and integrate the rotation speed to determine the rotation angle.
步骤560、在确定旋转角度大于或者等于所述角度阈值时,确定拍摄进度满足预设要求,确定完成图像获取。Step 560: When it is determined that the rotation angle is greater than or equal to the angle threshold, it is determined that the shooting progress meets the preset requirement, and it is determined that the image acquisition is completed.
本发明实施例二提供的一种图像获取方法的实现方式,将当前云台角度方 向确定为所述航行方向,确定飞行器的云台旋转方向、当前拍摄的距离阈值和角度阈值;控制所述飞行器基于所述航行方向飞行的同时,基于所述云台旋转方向旋转云台对拍摄目标进行图像获取;在飞行过程中确定所述飞行器的飞行速度,对所述飞行速度进行积分以确定飞行距离;在确定飞行距离大于或者等于所述距离阈值时,确定拍摄进度满足预设要求,确定完成图像获取,或者,;在飞行过程中确定所述云台的旋转速度,对所述旋转速度进行积分以确定旋转角度;在确定旋转角度大于或者等于所述角度阈值时,确定拍摄进度满足预设要求,确定完成图像获取。上述技术方案,控制飞行器基于当前云台角度方向进行飞行的同时旋转云台以对拍摄目标进行旋转拍摄,实现基于旋转运镜对拍摄目标的图像获取,还可以在飞行器的飞行过程中根据距离阈值或者角度阈值确定拍摄进度,并在确定拍摄进度满足预设要求时确定完成对拍摄目标的图像获取,进一步实现了旋转拍摄的自动化,降低了基于飞行器进行旋转拍摄的难度,提高飞行器的适用性。An implementation of an image acquisition method provided by Embodiment 2 of the present invention, the current gimbal angle direction is determined as the navigation direction, the gimbal rotation direction of the aircraft, the distance threshold and the angle threshold of the current shooting are determined; the aircraft is controlled While flying based on the navigation direction, rotate the gimbal based on the rotation direction of the gimbal to acquire images of the shooting target; determine the flight speed of the aircraft during the flight, and integrate the flight speed to determine the flight distance; When it is determined that the flight distance is greater than or equal to the distance threshold, it is determined that the shooting progress meets the preset requirements, and it is determined that the image acquisition is completed, or; determine the rotation speed of the gimbal during the flight, and integrate the rotation speed to obtain Determine the rotation angle; when it is determined that the rotation angle is greater than or equal to the angle threshold, it is determined that the shooting progress meets the preset requirements, and it is determined that the image acquisition is completed. The above technical solution controls the aircraft to fly based on the current angle direction of the gimbal and rotates the gimbal to shoot the shooting target, and realizes the image acquisition of the shooting target based on the rotating mirror. Or the angle threshold determines the shooting progress, and when it is determined that the shooting progress meets the preset requirements, it is determined to complete the image acquisition of the shooting target, which further realizes the automation of rotating shooting, reduces the difficulty of rotating shooting based on the aircraft, and improves the applicability of the aircraft.
实施例三Embodiment Three
图7为本发明实施例三提供的一种图像获取装置的结构示意图,该装置可以适用于对拍摄目标进行旋转。该装置可以通过软件和/或硬件实现,并一般集成在飞行器中。FIG. 7 is a schematic structural diagram of an image acquisition device provided by Embodiment 3 of the present invention, and the device can be adapted to rotate an object to be photographed. The device can be realized by software and/or hardware, and is generally integrated in the aircraft.
如图7所示,该装置包括:As shown in Figure 7, the device includes:
确定模块710,用于确定飞行器的航行方向和云台旋转方向;Determining module 710, is used for determining the sailing direction of aircraft and the rotation direction of gimbal;
获取模块720,用于控制所述飞行器基于所述航行方向飞行的同时,基于所述云台旋转方向旋转云台对拍摄目标进行图像获取;An acquisition module 720, configured to control the aircraft to fly based on the navigation direction, and at the same time, rotate the gimbal based on the rotation direction of the gimbal to acquire images of the shooting target;
执行模块730,用于在飞行过程中确定拍摄进度,如果所述拍摄进度满足预设要求,则确定完成图像获取。The execution module 730 is configured to determine the shooting progress during the flight, and if the shooting progress meets the preset requirements, it is determined that the image acquisition is completed.
本实施例提供的图像获取装置,通过确定飞行器的航行方向和云台旋转方向;控制所述飞行器基于所述航行方向飞行的同时,基于所述云台旋转方向旋转云台对拍摄目标进行图像获取;在飞行过程中确定拍摄进度,如果所述拍摄进度满足预设要求,则确定完成图像获取。上述技术方案,控制飞行器基于航行方向进行飞行的同时旋转云台以对拍摄目标进行旋转拍摄,实现基于旋转运镜对拍摄目标的图像获取,还可以在飞行器的飞行过程中确定拍摄进度,并在确定拍摄进度满足预设要求时确定完成对拍摄目标的图像获取,进一步实现了旋转拍摄的自动化,降低了基于飞行器进行旋转拍摄的难度,提高飞行器的适用性。The image acquisition device provided in this embodiment determines the navigation direction of the aircraft and the rotation direction of the gimbal; controls the aircraft to fly based on the navigation direction, and rotates the gimbal based on the rotation direction of the gimbal to acquire images of the shooting target ; Determine the shooting progress during the flight, if the shooting progress meets the preset requirements, then determine to complete the image acquisition. The above technical solution controls the aircraft to fly based on the navigation direction while rotating the gimbal to rotate and shoot the shooting target, realizes the image acquisition of the shooting target based on the rotating mirror, and can also determine the shooting progress during the flight of the aircraft, and When it is determined that the shooting progress meets the preset requirements, it is determined to complete the image acquisition of the shooting target, which further realizes the automation of the rotation shooting, reduces the difficulty of the rotation shooting based on the aircraft, and improves the applicability of the aircraft.
在上述实施例的基础上,确定模块710,具体用于:On the basis of the above-mentioned embodiments, the determination module 710 is specifically used for:
将接收到的预设航向确定为所述航行方向,或者,将当前云台角度方向确定为所述航行方向;determining the received preset heading as the navigation direction, or determining the current PTZ angle direction as the navigation direction;
确定云台旋转方向。Determine the rotation direction of the gimbal.
在上述实施例的基础上,该装置还包括:On the basis of the foregoing embodiments, the device also includes:
目标确定模块,用于确定拍摄目标。The target determining module is used for determining the shooting target.
在上述实施例的基础上,所述预设航向航行方向包括靠近所述拍摄目标或者远离所述拍摄目标,相应地,获取模块720,具体用于:On the basis of the above-mentioned embodiments, the preset course navigation direction includes approaching the shooting target or being far away from the shooting target. Correspondingly, the obtaining module 720 is specifically used for:
控制所述飞行器基于靠近所述拍摄目标的方向飞行,或者,控制所述飞行器基于远离所述拍摄目标的方向飞行;controlling the aircraft to fly based on a direction close to the shooting target, or controlling the aircraft to fly based on a direction away from the shooting target;
同时基于所述云台旋转方向旋转云台对拍摄目标进行图像获取。At the same time, the pan-tilt is rotated based on the rotational direction of the pan-tilt to acquire images of the shooting target.
在上述实施例的基础上,确定模块710,还用于:On the basis of the above embodiments, the determination module 710 is further configured to:
确定当前拍摄的距离阈值和角度阈值;Determine the distance threshold and angle threshold of the current shooting;
相应地,执行模块730,具体用于:Correspondingly, the execution module 730 is specifically used for:
在飞行过程中基于所述距离阈值或者所述角度阈值确定所述拍摄进度;determining the shooting progress based on the distance threshold or the angle threshold during the flight;
如果所述拍摄进度满足预设要求,则确定完成图像获取。If the shooting progress satisfies the preset requirement, it is determined that the image acquisition is completed.
在上述实施例的基础上,执行模块730,具体用于:On the basis of the above embodiments, the execution module 730 is specifically used for:
在飞行过程中确定所述飞行器的飞行速度,对所述飞行速度进行积分以确定飞行距离,如果所述飞行距离大于或者等于所述距离阈值,则确定拍摄进度满足预设要求,确定完成图像获取;Determine the flight speed of the aircraft during the flight, integrate the flight speed to determine the flight distance, if the flight distance is greater than or equal to the distance threshold, determine that the shooting progress meets the preset requirements, and determine that the image acquisition is completed ;
或者,or,
在飞行过程中确定所述云台的旋转速度,对所述旋转速度进行积分以确定旋转角度,如果所述旋转角度大于或者等于所述角度阈值,则确定拍摄进度满足预设要求,确定完成图像获取。Determine the rotation speed of the gimbal during the flight, integrate the rotation speed to determine the rotation angle, if the rotation angle is greater than or equal to the angle threshold, determine that the shooting progress meets the preset requirements, and determine that the image is completed Obtain.
在上述实施例的基础上,该装置还包括:On the basis of the foregoing embodiments, the device also includes:
重新确定模块,用于在飞行过程中如果所述拍摄目标丢失,则将当前云台角度方向确定为所述航行方向,并继续执行控制所述飞行器基于所述航行方向飞行。The re-determining module is configured to determine the current gimbal angle direction as the navigation direction if the shooting target is lost during the flight, and continue to control the aircraft to fly based on the navigation direction.
本发明实施例所提供的图像获取装置可执行本发明任意实施例所提供的图像获取方法,具备执行方法相应的功能模块和有益效果。The image acquisition device provided by the embodiment of the present invention can execute the image acquisition method provided by any embodiment of the present invention, and has corresponding functional modules and beneficial effects for executing the method.
实施例四Embodiment four
图8为本发明实施例四提供的一种飞行器的结构示意图,如图8所示,该 飞行器包括处理器810、存储器820和云台830;飞行器中处理器810的数量可以是一个或多个,图8中以一个处理器810为例;飞行器中的处理器810、存储器820和云台830可以通过总线或其他方式连接,图8中以通过总线连接为例。Fig. 8 is a schematic structural diagram of an aircraft provided by Embodiment 4 of the present invention. As shown in Fig. 8, the aircraft includes a processor 810, a memory 820 and a platform 830; the number of processors 810 in the aircraft may be one or more In FIG. 8, a processor 810 is taken as an example; the processor 810, the memory 820 and the pan/tilt 830 in the aircraft can be connected through a bus or in other ways. In FIG. 8, the connection through a bus is taken as an example.
存储器820作为一种计算机可读存储介质,可用于存储软件程序、计算机可执行程序以及模块,如本发明实施例中的图像获取方法对应的程序指令/模块(例如,图像获取装置中的确定模块101、获取模块102和执行模块103)。处理器810通过运行存储在存储器820中的软件程序、指令以及模块,从而执行飞行器的各种功能应用以及数据处理,即实现上述的图像获取方法。The memory 820, as a computer-readable storage medium, can be used to store software programs, computer-executable programs and modules, such as program instructions/modules corresponding to the image acquisition method in the embodiment of the present invention (for example, the determination module in the image acquisition device 101, obtaining module 102 and executing module 103). The processor 810 executes various functional applications and data processing of the aircraft by running the software programs, instructions and modules stored in the memory 820 , that is, implements the above-mentioned image acquisition method.
处理器810可以包括一个或多个中央处理器(central processing unit,CPU),还可以包括多个处理器810。这些处理器810中的每一个CPU可以是一个单核处理器(single-CPU),也可以是一个多核处理器(multi-CPU)。这里的处理器810可以指一个或多个设备、电路、和/或用于处理数据(例如计算机程序指令)的处理核。The processor 810 may include one or more central processing units (central processing unit, CPU), and may also include multiple processors 810. Each CPU in these processors 810 may be a single-core processor (single-CPU), or a multi-core processor (multi-CPU). Processor 810 herein may refer to one or more devices, circuits, and/or processing cores for processing data (eg, computer program instructions).
存储器820可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序;存储数据区可存储根据终端的使用所创建的数据等。此外,存储器820可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实例中,存储器820可进一步包括相对于处理器810远程设置的存储器,这些远程存储器可以通过网络连接至飞行器。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 820 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application program required by at least one function; the data storage area may store data created according to the use of the terminal, and the like. In addition, the memory 820 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid-state storage devices. In some examples, memory 820 may further include memory located remotely relative to processor 810 , and such remote memory may be connected to the aircraft via a network. Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
云台830,用于对拍摄目标进行图像获取。The pan-tilt 830 is used for image acquisition of the shooting target.
本发明实施例提供的飞行器可以执行上述实施例提供的图像获取方法,具备相应的功能和有益效果。The aircraft provided in the embodiments of the present invention can execute the image acquisition methods provided in the above embodiments, and have corresponding functions and beneficial effects.
实施例五Embodiment five
本发明实施例五还提供一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行一种图像获取方法,该方法包括:Embodiment 5 of the present invention also provides a storage medium containing computer-executable instructions, the computer-executable instructions are used to execute an image acquisition method when executed by a computer processor, the method comprising:
确定飞行器的航行方向和云台旋转方向;Determine the flight direction of the aircraft and the rotation direction of the gimbal;
控制所述飞行器基于所述航行方向飞行的同时,基于所述云台旋转方向旋转云台对拍摄目标进行图像获取;While controlling the aircraft to fly based on the navigation direction, rotate the gimbal based on the rotation direction of the gimbal to acquire images of the shooting target;
在飞行过程中确定拍摄进度,如果所述拍摄进度满足预设要求,则确定完成图像获取。The shooting progress is determined during the flight, and if the shooting progress satisfies a preset requirement, it is determined that the image acquisition is completed.
本发明实施例的计算机存储介质,可以采用一个或多个计算机可读的介质的任意组合。计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质。计算机可读存储介质例如可以是但不限于:电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本文件中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。The computer storage medium in the embodiments of the present invention may use any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer-readable storage medium may be, for example but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any combination thereof. More specific examples (non-exhaustive list) of computer readable storage media include: electrical connections with one or more leads, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), Erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。A computer readable signal medium may include a data signal carrying computer readable program code in baseband or as part of a carrier wave. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device. .
计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:无线、电线、光缆、RF等等,或者上述的任意合适的组合。Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
可以以一种或多种程序设计语言或其组合来编写用于执行本发明操作的计算机程序代码,程序设计语言包括面向对象的程序设计语言,诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络,包括局域网(LAN)或广域网(WAN),连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for performing the operations of the present invention may be written in one or more programming languages or combinations thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages. Programming language - such as "C" or a similar programming language. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In cases involving a remote computer, the remote computer can be connected to the user computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (such as through the Internet using an Internet service provider). connect).
当然,本申请还提供一种计算机程序产品,该计算机程序产品包括计算机指令,当计算机指令在计算机上运行时,使得计算机执行如实施例一和实施例二所提供的图像获取方法。Of course, the present application also provides a computer program product, the computer program product includes computer instructions, and when the computer instructions are run on the computer, the computer is made to execute the image acquisition methods provided in Embodiment 1 and Embodiment 2.
本领域普通技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个计算装置上,或者分布在多个计算 装置所组成的网络上,可选地,他们可以用计算机装置可执行的程序代码来实现,从而可以将它们存储在存储装置中由计算装置来执行,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件的结合。Those of ordinary skill in the art should understand that each module or each step of the present invention described above can be realized by a general-purpose computing device, and they can be concentrated on a single computing device, or distributed on a network formed by multiple computing devices. Optionally, they can be implemented with executable program codes of computer devices, so that they can be stored in storage devices and executed by computing devices, or they can be made into individual integrated circuit modules, or a plurality of modules in them Or the steps are fabricated into a single integrated circuit module to realize. As such, the present invention is not limited to any specific combination of hardware and software.
注意,上述仅为本发明的较佳实施例及所运用技术原理。本领域技术人员会理解,本发明不限于这里的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本发明的保护范围。因此,虽然通过以上实施例对本发明进行了较为详细的说明,但是本发明不仅仅限于以上实施例,在不脱离本发明构思的情况下,还可以包括更多其他等效实施例,而本发明的范围由所附的权利要求范围决定。Note that the above are only preferred embodiments of the present invention and applied technical principles. Those skilled in the art will understand that the present invention is not limited to the specific embodiments herein, and various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the protection scope of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and can also include more other equivalent embodiments without departing from the concept of the present invention, and the present invention The scope is determined by the scope of the appended claims.

Claims (10)

  1. 一种图像获取方法,其特征在于,包括:An image acquisition method, characterized in that, comprising:
    确定飞行器的航行方向和云台旋转方向;Determine the flight direction of the aircraft and the rotation direction of the gimbal;
    控制所述飞行器基于所述航行方向飞行的同时,基于所述云台旋转方向旋转云台对拍摄目标进行图像获取;While controlling the aircraft to fly based on the navigation direction, rotate the gimbal based on the rotation direction of the gimbal to acquire images of the shooting target;
    在飞行过程中确定拍摄进度,如果所述拍摄进度满足预设要求,则确定完成图像获取。The shooting progress is determined during the flight, and if the shooting progress satisfies a preset requirement, it is determined that the image acquisition is completed.
  2. 根据权利要求1所述的图像获取方法,其特征在于,确定飞行器的航行方向,包括:The image acquisition method according to claim 1, wherein determining the navigation direction of the aircraft comprises:
    将接收到的预设航向确定为所述航行方向,或者,将当前云台角度方向确定为所述航行方向。The received preset heading is determined as the sailing direction, or the current pan/tilt angle direction is determined as the sailing direction.
  3. 根据权利要求2所述的图像获取方法,其特征在于,在将接收到的预设航向确定为所述航行方向之前,还包括:确定拍摄目标。The image acquisition method according to claim 2, further comprising: determining a shooting target before determining the received preset heading as the navigation direction.
  4. 根据权利要求2所述的图像获取方法,其特征在于,所述预设航向包括靠近所述拍摄目标或者远离所述拍摄目标,相应地,控制所述飞行器基于所述航行方向飞行,包括:The image acquisition method according to claim 2, wherein the preset heading includes approaching the shooting target or away from the shooting target, and correspondingly, controlling the aircraft to fly based on the navigation direction includes:
    控制所述飞行器基于靠近所述拍摄目标的方向飞行,或者,控制所述飞行器基于远离所述拍摄目标的方向飞行。The aircraft is controlled to fly based on a direction close to the shooting target, or the aircraft is controlled to fly based on a direction away from the shooting target.
  5. 根据权利要求1所述的图像获取方法,其特征在于,确定飞行器的航行方向和云台旋转方向的同时,还包括:The image acquisition method according to claim 1, wherein, while determining the navigation direction of the aircraft and the rotation direction of the gimbal, it also includes:
    确定当前拍摄的距离阈值和角度阈值;Determine the distance threshold and angle threshold of the current shooting;
    相应地,在飞行过程中确定拍摄进度,包括:Accordingly, filming progress is determined during the flight, including:
    在飞行过程中基于所述距离阈值或者所述角度阈值确定所述拍摄进度。The shooting progress is determined based on the distance threshold or the angle threshold during the flight.
  6. 根据权利要求5所述的图像获取方法,其特征在于,在飞行过程中确定拍摄进度,如果所述拍摄进度满足预设要求,则确定完成图像获取,包括:The image acquisition method according to claim 5, wherein the shooting progress is determined during the flight, and if the shooting progress satisfies preset requirements, it is determined that the image acquisition is completed, including:
    在飞行过程中确定所述飞行器的飞行速度,对所述飞行速度进行积分以确定飞行距离,如果所述飞行距离大于或者等于所述距离阈值,则确定拍摄进度满足预设要求,确定完成图像获取;Determine the flight speed of the aircraft during the flight, integrate the flight speed to determine the flight distance, if the flight distance is greater than or equal to the distance threshold, determine that the shooting progress meets the preset requirements, and determine that the image acquisition is completed ;
    或者,or,
    在飞行过程中确定所述云台的旋转速度,对所述旋转速度进行积分以确定旋转角度,如果所述旋转角度大于或者等于所述角度阈值,则确定拍摄进度满足预设要求,确定完成图像获取。Determine the rotation speed of the gimbal during the flight, integrate the rotation speed to determine the rotation angle, if the rotation angle is greater than or equal to the angle threshold, determine that the shooting progress meets the preset requirements, and determine that the image is completed Obtain.
  7. 根据权利要求3所述的图像获取方法,其特征在于,在飞行过程中如果所述拍摄目标丢失,则将当前云台角度方向确定为所述航行方向,并继续执行控制所述飞行器基于所述航行方向飞行。The image acquisition method according to claim 3, wherein if the shooting target is lost during the flight, the current gimbal angle direction is determined as the navigation direction, and the control of the aircraft is continued based on the Navigation direction to fly.
  8. 一种图像获取装置,其特征在于,包括:An image acquisition device, characterized in that it comprises:
    确定模块,用于确定飞行器的航行方向和云台旋转方向;A determination module is used to determine the navigation direction of the aircraft and the rotation direction of the gimbal;
    获取模块,用于控制所述飞行器基于所述航行方向飞行的同时,基于所述云台旋转方向旋转云台对拍摄目标进行图像获取;An acquisition module, configured to control the aircraft to fly based on the navigation direction, and at the same time to rotate the gimbal based on the rotation direction of the gimbal to acquire images of the shooting target;
    执行模块,用于在飞行过程中确定拍摄进度,如果所述拍摄进度满足预设要求,则确定完成图像获取。The execution module is used to determine the shooting progress during the flight, and if the shooting progress meets the preset requirements, it is determined that the image acquisition is completed.
  9. 一种飞行器,其特征在于,所述飞行器包括:An aircraft, characterized in that the aircraft comprises:
    一个或多个处理器;one or more processors;
    存储装置,用于存储一个或多个程序;storage means for storing one or more programs;
    云台,用于对拍摄目标进行图像获取;The cloud platform is used for image acquisition of the shooting target;
    当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如权利要求1-7中任一所述的图像获取方法。When the one or more programs are executed by the one or more processors, the one or more processors are made to implement the image acquisition method according to any one of claims 1-7.
  10. 一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行如权利要求1-7中任一所述的图像获取方法。A storage medium containing computer-executable instructions for performing the image acquisition method according to any one of claims 1-7 when executed by a computer processor.
PCT/CN2022/119236 2021-09-17 2022-09-16 Image acquisition method and device, and aircraft and storage medium WO2023041014A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111093279.9 2021-09-17
CN202111093279.9A CN113784050B (en) 2021-09-17 2021-09-17 Image acquisition method and device, aircraft and storage medium

Publications (1)

Publication Number Publication Date
WO2023041014A1 true WO2023041014A1 (en) 2023-03-23

Family

ID=78851772

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/119236 WO2023041014A1 (en) 2021-09-17 2022-09-16 Image acquisition method and device, and aircraft and storage medium

Country Status (2)

Country Link
CN (1) CN113784050B (en)
WO (1) WO2023041014A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113784050B (en) * 2021-09-17 2023-12-12 深圳市道通智能航空技术股份有限公司 Image acquisition method and device, aircraft and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108521812A (en) * 2017-05-19 2018-09-11 深圳市大疆创新科技有限公司 Control method, unmanned plane and the machine readable storage medium of unmanned plane
CN112154649A (en) * 2019-07-30 2020-12-29 深圳市大疆创新科技有限公司 Aerial survey method, shooting control method, aircraft, terminal, system and storage medium
CN112650267A (en) * 2016-10-17 2021-04-13 深圳市大疆创新科技有限公司 Flight control method and device for aircraft and aircraft
CN112698661A (en) * 2021-03-22 2021-04-23 成都睿铂科技有限责任公司 Aerial survey data acquisition method, device and system for aircraft and storage medium
CN113784050A (en) * 2021-09-17 2021-12-10 深圳市道通智能航空技术股份有限公司 Image acquisition method and device, aircraft and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104828256B (en) * 2015-04-21 2016-09-28 杨珊珊 A kind of intelligent multi-control flight capture apparatus and flight control method thereof
WO2018214078A1 (en) * 2017-05-24 2018-11-29 深圳市大疆创新科技有限公司 Photographing control method and device
WO2019067695A1 (en) * 2017-10-01 2019-04-04 Airspace Systems, Inc. Flight control using computer vision
CN109871027B (en) * 2017-12-05 2022-07-01 深圳市九天创新科技有限责任公司 Oblique photography method and system
CN109917799B (en) * 2019-03-06 2020-01-31 特斯联(北京)科技有限公司 Manned unmanned aerial vehicle flight method and system applied to scenic spot air sightseeing
CN112995516B (en) * 2019-05-30 2022-07-29 深圳市道通智能航空技术股份有限公司 Focusing method and device, aerial camera and unmanned aerial vehicle

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112650267A (en) * 2016-10-17 2021-04-13 深圳市大疆创新科技有限公司 Flight control method and device for aircraft and aircraft
CN108521812A (en) * 2017-05-19 2018-09-11 深圳市大疆创新科技有限公司 Control method, unmanned plane and the machine readable storage medium of unmanned plane
CN112154649A (en) * 2019-07-30 2020-12-29 深圳市大疆创新科技有限公司 Aerial survey method, shooting control method, aircraft, terminal, system and storage medium
CN112698661A (en) * 2021-03-22 2021-04-23 成都睿铂科技有限责任公司 Aerial survey data acquisition method, device and system for aircraft and storage medium
CN113784050A (en) * 2021-09-17 2021-12-10 深圳市道通智能航空技术股份有限公司 Image acquisition method and device, aircraft and storage medium

Also Published As

Publication number Publication date
CN113784050A (en) 2021-12-10
CN113784050B (en) 2023-12-12

Similar Documents

Publication Publication Date Title
US11573562B2 (en) Magic wand interface and other user interaction paradigms for a flying digital assistant
US11644832B2 (en) User interaction paradigms for a flying digital assistant
US11288767B2 (en) Course profiling and sharing
US11789467B2 (en) Method, apparatus, terminal, and storage medium for elevation surrounding flight control
CN105242685B (en) A kind of accompanying flying unmanned plane system and method
WO2023036260A1 (en) Image acquisition method and apparatus, and aerial vehicle and storage medium
WO2018120350A1 (en) Method and device for positioning unmanned aerial vehicle
CN105045279A (en) System and method for automatically generating panorama photographs through aerial photography of unmanned aerial aircraft
WO2020211814A1 (en) Orbiting flight control method and device, and terminal and storage medium
US20210120176A1 (en) Method of controlling gimbal, gimbal and uav
US11240434B2 (en) Removing aerial camera drones from a primary camera's field of view
WO2019128275A1 (en) Photographing control method and device, and aircraft
WO2019227333A1 (en) Group photograph photographing method and apparatus
WO2023041014A1 (en) Image acquisition method and device, and aircraft and storage medium
WO2019047576A1 (en) Method and system for automatically controlling camera of self-driving vehicle
JP6265576B1 (en) Imaging control apparatus, shadow position specifying apparatus, imaging system, moving object, imaging control method, shadow position specifying method, and program
CN110291013B (en) Control method of cradle head, cradle head and unmanned aerial vehicle
US12007763B2 (en) Magic wand interface and other user interaction paradigms for a flying digital assistant
CN113942656A (en) Control method of cradle head, cradle head and unmanned aerial vehicle
CN111443733A (en) Unmanned aerial vehicle flight control method and device and unmanned aerial vehicle
WO2022205294A1 (en) Method and apparatus for controlling unmanned aerial vehicle, unmanned aerial vehicle, and storage medium

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE