WO2021134715A1 - Control method and device, unmanned aerial vehicle and storage medium - Google Patents

Control method and device, unmanned aerial vehicle and storage medium Download PDF

Info

Publication number
WO2021134715A1
WO2021134715A1 PCT/CN2019/130971 CN2019130971W WO2021134715A1 WO 2021134715 A1 WO2021134715 A1 WO 2021134715A1 CN 2019130971 W CN2019130971 W CN 2019130971W WO 2021134715 A1 WO2021134715 A1 WO 2021134715A1
Authority
WO
WIPO (PCT)
Prior art keywords
target
target plane
shooting
measured
image
Prior art date
Application number
PCT/CN2019/130971
Other languages
French (fr)
Chinese (zh)
Inventor
周游
刘洁
杜劼熹
Original Assignee
深圳市大疆创新科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市大疆创新科技有限公司 filed Critical 深圳市大疆创新科技有限公司
Priority to CN201980095056.0A priority Critical patent/CN113646606A/en
Priority to PCT/CN2019/130971 priority patent/WO2021134715A1/en
Publication of WO2021134715A1 publication Critical patent/WO2021134715A1/en

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B11/00Measuring arrangements characterised by the use of optical techniques

Definitions

  • the present invention relates to the field of control technology, in particular to a control method, equipment, unmanned aerial vehicle and storage medium.
  • the commonly used measurement method is to use the position information of the Global Positioning System (GPS) or the high-precision real-time dynamic differential technology (Real-time kinematic, RTK).
  • GPS Global Positioning System
  • RTK Real-time dynamic differential technology
  • the positioning system performs measurement.
  • the measurement process is more troublesome and requires professional instruments and equipment.
  • the measurement methods are even more limited. Therefore, how to more effectively control the UAV to measure the distance of the object to be measured is of great significance.
  • the embodiments of the present invention provide a control method, equipment, unmanned aerial vehicle and storage medium, which can measure the size of the object to be measured by controlling the shooting posture of the shooting device without the need for professional equipment, thereby improving the flexibility and effectiveness of the measurement .
  • an embodiment of the present invention provides a control method, including:
  • the size parameter of the target plane or the object to be measured on the target plane is determined according to the target image and the distance.
  • an embodiment of the present invention provides a control device, including a memory and a processor
  • the memory is used to store programs
  • the processor is used to call the program, and when the program is executed, it is used to perform the following operations:
  • the size parameter of the target plane or the object to be measured on the target plane is determined according to the target image and the distance.
  • an embodiment of the present invention provides a drone, including:
  • the power system configured on the fuselage is used to provide the moving power for the UAV
  • the size parameter of the target plane or the object to be measured on the target plane is determined according to the target image and the distance.
  • an embodiment of the present invention provides a computer-readable storage medium that stores a computer program, and when the computer program is executed by a processor, the method described in the first aspect is implemented.
  • the embodiment of the present invention can control the shooting posture of the shooting device according to the initial image obtained by the shooting device of the drone to shoot the target object, so that the shooting direction of the shooting device is substantially perpendicular to the target plane of the target object.
  • the target image obtained by the shooting device shooting the target plane and the distance between the shooting device and the target plane are acquired, so as to determine the distance between the shooting device and the target plane.
  • Fig. 1 is a schematic structural diagram of a control system provided by an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of a control method provided by an embodiment of the present invention.
  • FIG. 3 is a schematic diagram of controlling the shooting posture of a shooting device according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of a measurement method provided by an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of determining a size parameter of an object to be measured according to an embodiment of the present invention.
  • FIG. 6 is a schematic flowchart of another control method provided by an embodiment of the present invention.
  • Figure 7a is a schematic diagram of a feature point provided by an embodiment of the present invention.
  • FIG. 7b is a schematic diagram of obtaining a target image according to an embodiment of the present invention.
  • FIG. 8 is a schematic flowchart of another control method provided by an embodiment of the present invention.
  • Fig. 9 is a schematic structural diagram of a control device provided by an embodiment of the present invention.
  • the control method provided in the embodiments of the present invention can be executed by a control system, where the control system can include a control device and a drone; in some embodiments, the control device can be installed on the drone, In some embodiments, the control device may be spatially independent from the drone. In some embodiments, the control device may be a component of the drone, that is, the drone includes a control device. In some embodiments, the control device may include, but is not limited to, one or more of a smart phone, a tablet computer, a laptop computer, and a wearable device. In some embodiments, the control method can also be applied to other movable devices such as unmanned vehicles, unmanned boats, VR/AR glasses, and movable robots including camera devices.
  • control system provided by the embodiment of the present invention will be schematically described below with reference to FIG. 1.
  • FIG. 1 is a schematic structural diagram of a control system provided by an embodiment of the present invention.
  • the control system includes: a control device 11 and an unmanned aerial vehicle 12.
  • the drone 12 includes a power system 121, and the power system 121 is used to provide power for the drone 12 to move; in some embodiments, the drone 12 is mounted on A pan/tilt 122 is mounted on the pan/tilt 122, and a camera 123 is mounted on the pan/tilt 122.
  • the drone 12 and the control device 11 are independent of each other.
  • the control device 11 can be set in a cloud server, which is connected to the drone 12 and/or other devices on the drone 12 (such as the PTZ 122). ) Establish a communication connection.
  • the control device 11 may be a controller.
  • the photographing device 123 includes, but is not limited to, a camera, a camera, an image acquisition sensor, and the like.
  • the control device 11 may obtain the initial image obtained by the photographing device 123 of the drone 12 photographing the target object, and control the photographing posture of the photographing device 123 according to the initial image, so that the photographing direction of the photographing device 123
  • the target plane is substantially perpendicular to the target object, and in response to the shooting direction of the shooting device 123 being substantially perpendicular to the target plane, the target image obtained by the shooting device 123 shooting the target plane and the distance between the shooting device 123 and the target plane are acquired, so that according to the target The image and distance determine the target plane or the size parameters of the object to be measured on the target plane.
  • FIG. 2 is a schematic flowchart of a control method provided by an embodiment of the present invention. The method may be executed by a control device, and the specific explanation of the control device is as described above. Specifically, the method of the embodiment of the present invention includes the following steps.
  • S201 Acquire an initial image obtained by photographing a target object by a photographing device of a drone, wherein the photographing device is carried on a pan-tilt of the drone.
  • control device may obtain the initial image obtained by shooting the target object by the camera of the drone, wherein the camera is carried on the pan/tilt of the drone.
  • S202 Control the shooting posture of the shooting device according to the initial image, so that the shooting direction of the shooting device is substantially perpendicular to the target plane of the target object.
  • control device may control the shooting posture of the shooting device according to the initial image, so that the shooting direction of the shooting device is substantially perpendicular to the target plane of the target object.
  • the shooting direction of the shooting device is substantially perpendicular to the target plane of the target object means that the shooting direction of the shooting device is 90 degrees to the target plane of the target object within a specified error range.
  • the control device can control the shooting attitude of the camera according to the initial image according to the The initial image controls one or more of the position of the drone, the attitude of the drone, and the attitude of the pan/tilt to control the shooting attitude of the camera.
  • the attitude of the drone includes any one or more of the pitch angle, roll angle, and yaw angle of the drone.
  • the control device when controlling the shooting posture of the shooting device according to the initial image, may acquire multiple feature points in the area image corresponding to the target plane, wherein the initial image includes the An image of the area corresponding to the target plane, and controlling the shooting posture of the shooting device according to the positions of the plurality of feature points on the initial image.
  • the multiple feature points may be multiple feature points selected by the user in the region image corresponding to the target plane; in some embodiments, the multiple feature points include at least three the above.
  • the positions of the multiple feature points may be arbitrary position points (such as vertices of a polygon) of the regional image, which is not specifically limited here.
  • the control device when acquiring multiple feature points in the area image corresponding to the target plane, may determine the area image corresponding to the target plane from the initial image, and run a feature point extraction algorithm to A plurality of feature points are extracted from the regional image.
  • the feature point extraction algorithm can automatically extract multiple feature points from the regional image.
  • control device may also send the initial image to the control terminal communicatively connected with the drone, so that the display device of the control terminal displays the initial image and obtains the control terminal
  • the sent target plane indication information where the target plane indication information is determined by the control terminal detecting the user's target area selection operation on the display device.
  • the target area selection operation includes, but is not limited to, a frame selection operation.
  • the control terminal may include, but is not limited to, smart phones, tablets, laptops, wearable devices, etc.; in some embodiments, the display device of the control terminal may be the Control the user interface of the terminal.
  • the display device has a touch function (such as a touch screen).
  • control device when it acquires multiple feature points in the area image corresponding to the target plane, it may send the initial image to the control terminal communicatively connected with the drone, so that the The display device of the control terminal displays the initial image, and obtains characteristic point indication information sent by the control terminal, where the characteristic point indication information is determined by the control terminal detecting the user's characteristic point selection operation on the display device .
  • the feature point selection operation includes, but is not limited to, a click operation.
  • the user can determine the target plane of the target object from the initial image through different operation methods such as box selection or click operation according to requirements, which improves the flexibility of determining the target plane and improves the user experience.
  • control device when the control device controls the shooting posture of the photographing device according to the positions of the plurality of feature points on the initial image, it may be based on the positions of the plurality of feature points on the initial image.
  • the normal vector of the target plane is determined, and the shooting attitude of the camera is controlled according to the normal vector.
  • the control device determines the normal vector of the target plane based on the positions of the multiple feature points on the initial image, it is assumed that the three feature points P k and P k that are not on a straight line are used. +1 and P k+2 constitute the target plane, the plane usage vector , Then the normal vector of the target plane can be calculated by the following formula (1):
  • the purpose is to control the shooting posture of the photographing device according to the normal vector so that the optical axis direction of the photographing device is parallel to the normal vector of the target plane.
  • the number of the feature points is 3; when the control device controls the shooting posture of the shooting device according to the positions of the multiple feature points on the initial image, it may be based on the 3 feature points.
  • the location of the feature point on the initial image determines the location of the space point corresponding to the 3 feature points, and the rotation matrix is determined according to the location of the space point corresponding to the 3 feature points, wherein the rotation matrix is
  • the 3 projection pixels of the 3 spatial points projected onto the initial image satisfy: the U axis coordinate of the first projection pixel is equal to the U axis coordinate of the second projection pixel, and the V axis coordinate of the first projection pixel is equal to The V-axis coordinates of the third projection pixel; and controlling the shooting posture of the shooting device according to the rotation matrix.
  • the U axis is the abscissa in the camera coordinate system
  • the V axis is the ordinate in the camera coordinate system.
  • the connecting line between the first space point and the second space point in the space points corresponding to the three characteristic points is substantially perpendicular to the connecting line between the second space point and the third space point.
  • the display device of the control terminal may display prompt information, where the prompt information is used to prompt the user to select the three characteristic points from the image displayed by the display device.
  • the rotation matrix can be converted into an angle, and the position of the drone and the attitude of the pan/tilt can be controlled to control the shooting attitude of the shooting device, so that the optical axis of the shooting device is perpendicular to the target plane, that is, the optical axis is perpendicular to the target.
  • the normal vectors of the plane are parallel.
  • control device when the control device determines the rotation matrix according to the positions of the spatial points corresponding to the three feature points, it can obtain the parameters of the photographing device, and according to the positions of the spatial points corresponding to the three feature points And the parameters of the photographing device determine the rotation matrix.
  • the parameters of the photographing device include focal length and optical center.
  • FIG. 3 is a schematic diagram of controlling the shooting attitude of a shooting device according to an embodiment of the present invention, as shown in FIG. As shown in 3, assuming that 3 feature points are determined on the initial image 31, and these 3 feature points are x 1 , x 2 , x 3 , taking x 1 as an example, normalized to the camera coordinate system is the following formula (2.1):
  • c x and c y are the positions of the optical center of the photographing device (such as a camera), f is the focal length, and u 1 and ⁇ 1 are the abscissa and ordinate of x 1 on the image, and the unit is pixel.
  • x 2 is normalized to the camera coordinate system as the following formula (2.2):
  • u 2 and ⁇ 2 are the abscissa and ordinate of x 2 on the image, and the unit is pixel.
  • x 3 is normalized to the camera coordinate system as the following formula (2.3):
  • u 3 and ⁇ 3 are the abscissa and ordinate of x 3 on the image, and the unit is pixel.
  • a rotation matrix R can be determined according to the following formula (3):
  • the ordinate on the image is in pixels.
  • the rotation matrix R is determined, the rotation matrix is converted into an angle, and one or more of the position of the drone, the attitude of the gimbal, and the attitude of the drone are controlled to make the adjusted x′ 1 x′ 2 ⁇ x′ 1 x′ 3 , and the shooting direction of the shooting device is basically perpendicular to the target plane at this time, and a target image 32 with the shooting direction of the shooting device shown in FIG. 3 substantially perpendicular to the target plane is obtained.
  • the rotation matrix can be determined according to the positions of the three feature points on the initial image and the parameters of the shooting device, thereby helping to control the shooting posture of the shooting device according to the rotation matrix.
  • S203 In response to the photographing direction of the photographing device being substantially perpendicular to the target plane, acquire a target image obtained by photographing the target plane by the photographing device and the distance between the photographing device and the target plane.
  • control device may respond to the shooting direction of the shooting device being substantially perpendicular to the target plane, acquiring the target image obtained by the shooting device shooting the target plane, and the distance between the shooting device and the target plane. distance.
  • the drone includes a distance measuring device carried on the pan/tilt, wherein the measuring direction of the distance measuring unit is substantially parallel to the optical axis direction of the photographing device; the control device is acquiring When determining the distance between the imaging device and the target plane, the distance between the imaging device and the target plane can be measured by the distance measuring device.
  • the distance measuring device is a laser distance measuring device.
  • the distance measuring device and the photographing device are installed together, and both are carried on the pan/tilt of the drone, and move with the rotation of the pan/tilt.
  • S204 Determine a target plane or a size parameter of the object to be measured on the target plane according to the target image and the distance.
  • control device may determine the target plane or the size parameter of the object to be measured on the target plane according to the target image and the distance.
  • the size parameter includes one or more of length, width, and area.
  • FIG. 4 can be used as an example for description.
  • FIG. 4 is a schematic diagram of a measurement method provided by an embodiment of the present invention. As shown in Figure 4, assuming that the shooting direction of the camera 41 is substantially perpendicular to the target plane, measuring the object to be measured 421 on the ground 42 to obtain the target image 43, the object to be measured 431 is determined from the target image 43, the focal length of the camera 41 is f, The distance between the camera 41 and the ground 42 measured by the device (not shown in Fig. 4) is z, and the length of the object to be measured 431 on the target image 43 is d1 and the area is s1. Then the measured distance on the ground 42 can be calculated
  • the real length d2 of the object 421 is the following formula (4)
  • the real area s2 is the following formula (5):
  • control device when the control device determines the size parameter of the target plane or the object to be measured on the target plane according to the target image and the distance, it may be based on the target plane or the object to be measured on the target plane. The number of pixels of the image and the distance determine the target plane or the size parameter of the object to be measured on the target plane.
  • each pixel contains a size parameter
  • the control device can determine the target plane composed of multiple pixels according to the number of pixels of the target plane or the object to be measured in the target image and the size parameter of each pixel. Or the size parameter of the object to be measured on the target plane.
  • the control device when determining the size parameter of the object to be measured on the target plane according to the target image and the distance, may recognize the target image to determine the object to be measured; or , Receiving the object-to-be-measured indication information sent by the control terminal of the drone, and determining the object-to-be-measured according to the object-to-be-measured indication information, wherein the object-to-be-measured indication information is that the control terminal displays the target image by detecting the user Control the selection operation of the object to be measured on the display device of the terminal; thereby determining the size parameter of the determined object to be measured according to the target image and the distance.
  • the object to be measured may be a target image.
  • the target image may include an object to be measured.
  • the object to be measured may be a target object.
  • the object to be tested may not be a target object.
  • control device when the control device determines the determined size parameter of the object to be measured according to the target image and the distance, it can acquire the circumscribed polygonal area of the object to be measured in the target image, and The size parameter of the object to be measured is determined according to the circumscribed polygonal area and the distance.
  • Figure 5 is a schematic diagram of determining the size parameters of the object to be measured according to an embodiment of the present invention.
  • the control device can According to the curve 51 (such as a dam crack), the circumscribed polygonal area 53 (such as a rectangle) corresponding to the curve 51 is determined on the target image 52, and according to the circumscribed polygonal area 53 and the distance between the shooting device and the target plane Determine the size parameters of the curve 51 (such as the length and width of the rectangle).
  • control device may also send the target image to the control terminal communicatively connected with the drone so that the display device of the control terminal displays the target image, and obtains the control terminal to send
  • the indication information of the object to be tested is determined by the control terminal detecting the user's selection operation of the object to be tested on the display device.
  • the user can independently select the object to be tested from the display device of the control terminal that displays the target image according to requirements, thereby improving the flexibility of selecting the object to be tested and improving the user experience.
  • control device may also place the target image in a preset recognition model of the object to be measured to obtain the object-to-be-measured indication information output by the model, and determine the object according to the indication information of the object-to-be-measured The object to be measured on the target plane.
  • the preset object-to-be-tested recognition model can automatically recognize the object-to-be-tested indication information, thereby improving the efficiency of determining the object to be tested, and meeting the user's intelligence and automation requirements for determining the object to be tested.
  • the embodiment of the present invention can control the shooting posture of the shooting device according to the initial image obtained by the shooting device of the drone to shoot the target object, so that the shooting direction of the shooting device is substantially perpendicular to the target plane of the target object.
  • the target image obtained by the shooting device shooting the target plane and the distance between the shooting device and the target plane are acquired, so as to determine the distance between the shooting device and the target plane.
  • FIG. 6 is a schematic flowchart of another control method provided by an embodiment of the present invention.
  • the method may be executed by a control device, wherein the specific explanation of the control device is as described above.
  • the difference between the embodiment of the present invention and the embodiment described in FIG. 2 is that the embodiment of the present invention is a schematic description of manually or automatically selecting multiple feature points, thereby controlling the shooting posture of the shooting device according to the position information of the multiple feature points.
  • the method of the embodiment of the present invention includes the following steps.
  • S601 Acquire an initial image obtained by photographing a target object by a camera of the drone, where the camera is carried on the pan/tilt of the drone.
  • control device may obtain the initial image obtained by shooting the target object by the camera of the drone, wherein the camera is carried on the pan/tilt of the drone.
  • S602 Acquire multiple feature points in an area image corresponding to a target plane, where the initial image includes an area image corresponding to the target plane.
  • the control device may acquire multiple feature points in the area image corresponding to the target plane, where the initial image includes the area image corresponding to the target plane of the target object.
  • the multiple feature points may be multiple feature points selected by the user in the region image corresponding to the target plane; in some embodiments, the multiple feature points include at least three Or 3 or more.
  • the positions of the multiple feature points may be arbitrary position points (such as vertices of a polygon) of the regional image, which is not specifically limited here.
  • FIG. 7a is a schematic diagram of a feature point provided by an embodiment of the present invention.
  • the control device can obtain 4 feature points selected by the user on the display device of the control terminal that displays the initial image. , which are respectively a feature point 711, a feature point 712, a feature point 713, and a feature point 714, where the initial image includes the area image 73 corresponding to the target plane 72 of the target object.
  • the control device when acquiring multiple feature points in the area image corresponding to the target plane, may determine the area image corresponding to the target plane from the initial image, and run a feature point extraction algorithm to obtain the Multiple feature points are extracted from the regional image.
  • the feature point algorithm includes feature point extraction rules.
  • the extraction rule may be the extraction of corner points (such as the vertices of a polygon).
  • control device can determine the area image 73 corresponding to the target plane 72 after acquiring the initial image obtained by the shooting device shooting the target object, and run the feature point extraction algorithm to extract the feature points from the area image 73 711, feature point 712, feature point 713, feature point 714.
  • control device may also send the initial image to the control terminal communicatively connected with the drone, so that the display device of the control terminal displays the initial image and obtains the control terminal
  • the sent target plane indication information where the target plane indication information is determined by the control terminal detecting the user's target area selection operation on the display device.
  • the user when the target area selection operation is a frame selection operation, the user can frame and select the closed area including the target object on the display device according to the position of the target object displayed on the display device of the control terminal. , And generate target plane indication information, where the target plane indication information is used to indicate that the enclosed area including the target object selected by the frame selection operation box is determined to be the target plane of the target object.
  • the control device sends the acquired initial image to the control terminal, and displays the initial image on the display interface of the control terminal, the user can display the initial image on the display interface according to the position of the target object on the initial image of the display interface.
  • the enclosed area including the target object is selected by frame, and target plane indication information is generated.
  • the control terminal may send the generated target plane indication information to the control device, so that the control device can determine, according to the indication of the target plane indication information, that the enclosed area including the target object selected by the frame selection operation is the target object The target plane.
  • the user can select the target plane of the target object from the initial image according to requirements, which improves the flexibility of determining the target plane and improves the user experience.
  • control device when it acquires multiple feature points in the area image corresponding to the target plane, it may send the initial image to the control terminal communicatively connected with the drone, so that the control terminal
  • the display device of the display device displays the initial image, and obtains the characteristic point indication information sent by the control terminal, where the characteristic point indication information is determined by the control terminal detecting a user's characteristic point selection operation on the display device.
  • the feature point selection operation includes, but is not limited to, a click operation.
  • the feature point selection operation is a click operation
  • the user can click 3 or more feature points according to the position of the target object displayed on the display device of the control terminal, so that the control terminal can According to the position information and/or click sequence of 3 or more characteristic points determined by the user on the display interface, the characteristic point indication information is generated, wherein the characteristic point indication information is used to indicate that the determination is based on the 3
  • the location information of one or more feature points and/or the closed area including the target object generated by the click sequence is the target plane of the target object.
  • control device sends the acquired initial image to the control terminal, and displays the initial image on the display interface of the control terminal, the user can display the initial image on the display interface according to the position of the target object on the initial image of the display interface.
  • the control terminal may send the generated characteristic point indication information to the control device, so that the control device can determine the enclosed area generated by the four characteristic points as the target plane of the target object according to the indication of the characteristic point indication information.
  • the user can select multiple feature points from the initial image by clicking according to requirements, so as to generate feature point indication information based on the multiple feature points, and send the feature point indication information to the control device.
  • the instruction control device generates a target plane according to the multiple feature points, thereby improving the flexibility of determining the target plane and improving the user experience.
  • S603 Control the shooting posture of the shooting device according to the positions of the multiple feature points on the initial image, so that the shooting direction of the shooting device is substantially perpendicular to the target plane of the target object.
  • control device may control the shooting posture of the shooting device according to the positions of the multiple feature points on the initial image, so that the shooting direction of the shooting device is substantially perpendicular to the direction of the target object. Target plane.
  • control device may control one or more of the position of the drone, the attitude of the drone, and the attitude of the pan/tilt according to the positions of the multiple feature points on the initial image. , To control the shooting posture of the shooting device.
  • the control device can use the feature points 711
  • the position of the feature point 712, the feature point 713, and the feature point 714 on the initial image adjust one or more of the position of the drone, the attitude of the drone, and the attitude of the pan/tilt to control the camera
  • the posture is taken, and the adjusted area image 74 is obtained.
  • control device when the control device controls the shooting posture of the photographing device according to the positions of the plurality of feature points on the initial image, it may be based on the positions of the plurality of feature points on the initial image.
  • the normal vector of the target plane is determined, and the shooting attitude of the camera is controlled according to the normal vector.
  • S604 In response to the photographing direction of the photographing device being substantially perpendicular to the target plane, acquire a target image obtained by photographing the target plane by the photographing device and the distance between the photographing device and the target plane.
  • control device may respond to the shooting direction of the shooting device being substantially perpendicular to the target plane, acquiring the target image obtained by the shooting device shooting the target plane, and the distance between the shooting device and the target plane. distance.
  • Fig. 7b is a schematic diagram of obtaining a target image according to an embodiment of the present invention. As shown in Fig. 7b, after adjusting the shooting posture of the camera, the camera 75 photographs the object 76 included in the area image 74 in Fig. 7a. The shooting direction of the shooting device 75 may be substantially perpendicular to the target plane of the area image to obtain the target image 77 obtained by the shooting device 75 shooting the target plane.
  • control device to obtain the distance between the imaging device and the target plane is as described above, and will not be repeated here.
  • S605 Determine a target plane or a size parameter of the object to be measured on the target plane according to the target image and the distance.
  • control device may determine the target plane or the size parameter of the object to be measured on the target plane according to the target image and the distance.
  • the specific implementation is as described above and will not be repeated here.
  • the embodiment of the present invention can acquire multiple feature points of the region image corresponding to the target plane of the initial image according to the initial image obtained by the drone's shooting device shooting the target object, and control the shooting according to the positions of the multiple feature points on the initial image
  • the shooting posture of the device so that the shooting direction of the shooting device is substantially perpendicular to the target plane of the target object, so that in response to the shooting direction of the shooting device being substantially perpendicular to the target plane, the target image, the shooting device and the target obtained by the shooting device shooting the target plane are acquired.
  • the distance between the planes determines the target plane or the size parameter of the object to be measured on the target plane according to the target image and the distance.
  • feature points can be manually selected according to requirements to improve the flexibility of feature point selection, and feature points can be automatically extracted according to a preset feature point extraction algorithm, which simplifies user operations and improves the efficiency of feature point selection. Improve the user experience, thereby helping to improve the flexibility and effectiveness of measurement.
  • FIG. 8 is a schematic flowchart of another control method provided by an embodiment of the present invention.
  • the method may be executed by a control device, and the specific explanation of the control device is as described above.
  • the difference between the embodiment of the present invention and FIG. 6 is that the embodiment of the present invention is a schematic description of controlling the shooting posture of the shooting device through the position information of three feature points.
  • the method of the embodiment of the present invention includes the following steps .
  • S801 Acquire an initial image obtained by photographing a target object by a photographing device of a drone, wherein the photographing device is carried on a pan/tilt of the drone.
  • control device may obtain the initial image obtained by shooting the target object by the camera of the drone, wherein the camera is carried on the pan/tilt of the drone.
  • S802 Acquire 3 feature points in the area image corresponding to the target plane, where the initial image includes the area image corresponding to the target plane, and the 3 feature points are based on the characteristics of the user on the display device of the control terminal Click the selection operation to confirm.
  • the control device can acquire 3 feature points in the area image corresponding to the target plane, where the initial image includes the area image corresponding to the target plane, and the 3 feature points are based on the user's control
  • the feature point selection operation on the display device of the terminal is determined.
  • the feature point selection operation includes, but is not limited to, a click operation, a press operation, and the like.
  • control device can obtain that the user can click and select any three feature points that are not on a straight line on the display device of the control terminal that displays the initial image.
  • S803 Determine the positions of the spatial points corresponding to the 3 characteristic points according to the positions of the 3 characteristic points on the initial image.
  • control device may determine the positions of the spatial points corresponding to the three characteristic points according to the positions of the three characteristic points on the initial image.
  • the positions of the three feature points on the initial image include position coordinates of the three feature points on the initial image respectively, wherein the position coordinates include an abscissa u and an ordinate v.
  • the positions of the spatial points corresponding to the three feature points are three-dimensional coordinates determined according to the horizontal and vertical coordinates of the three feature points in the initial image.
  • a feature point in an example x 1, x 1 assume the position coordinates on the original image is (u, v, 1), it is determined that the three-dimensional coordinates x 1 (x w, y w, 1 ) must satisfy the following formula (6.1):
  • R is the rotation matrix
  • T is the displacement matrix
  • K is obtained according to the following formula (6.2):
  • ⁇ x fm x
  • ⁇ y fm y
  • f is the focal length
  • m x and m y are the number of pixels per unit distance in the x and y directions
  • is the distortion parameter between the x and y axes
  • c x And c y are the optical centers.
  • S804 Determine a rotation matrix according to the positions of the spatial points corresponding to the three feature points.
  • the control device may determine the rotation matrix according to the positions of the spatial points corresponding to the three characteristic points.
  • the rotation matrix projects the 3 spatial points onto the 3 projection pixels on the initial image, so that: the U axis coordinate of the first projection pixel is equal to the U of the second projection pixel. Axis coordinate, the V axis coordinate of the first projection pixel is equal to the V axis coordinate of the third projection pixel.
  • the specific implementation is as described above and will not be repeated here.
  • S805 Control the shooting posture of the shooting device according to the rotation matrix, so that the shooting direction of the shooting device is substantially perpendicular to the target plane of the target object.
  • control device may control the shooting posture of the shooting device according to the rotation matrix, so that the shooting direction of the shooting device is substantially perpendicular to the target plane of the target object.
  • control device can convert the rotation matrix into an angle, and adjust one or more of the position of the drone, the attitude of the PTZ, and the attitude of the drone to make the light of the adjusted camera
  • the axis direction is parallel to the normal vector of the target plane, that is, the shooting direction of the shooting device is substantially perpendicular to the target plane.
  • the rotation matrix is determined by the positions of the spatial points corresponding to the three feature points and the parameters of the shooting device, thereby helping to control the shooting posture of the shooting device according to the rotation matrix.
  • S806 In response to the photographing direction of the photographing device being substantially perpendicular to the target plane, acquire a target image obtained by photographing the target plane by the photographing device and the distance between the photographing device and the target plane.
  • control device may respond to the shooting direction of the shooting device being substantially perpendicular to the target plane, acquiring the target image obtained by the shooting device shooting the target plane, and the distance between the shooting device and the target plane. distance.
  • the specific implementation is as described above and will not be repeated here.
  • S807 Determine the target plane or the size parameter of the object to be measured on the target plane according to the target image and the distance.
  • control device may determine the target plane or the size parameter of the object to be measured on the target plane according to the target image and the distance.
  • the specific implementation is as described above and will not be repeated here.
  • the three feature points of the area image corresponding to the target plane of the initial image can be obtained from the initial image obtained by shooting the target object by the camera of the drone, and the location of the three feature points on the initial image can be determined.
  • the positions of the spatial points of the characteristic points and the shooting posture are such that the shooting direction of the shooting device is substantially perpendicular to the target plane of the target object, so that in response to the shooting direction of the shooting device being substantially perpendicular to the target plane, the shooting target plane of the shooting device is obtained.
  • the size parameter of the target plane or the object to be measured on the target plane is determined according to the target image and the distance.
  • feature points can be manually selected according to requirements to improve the flexibility of feature point selection, and feature points can be automatically extracted according to a preset feature point extraction algorithm, which simplifies user operations and improves the efficiency of feature point selection. Improve the user experience, thereby helping to improve the flexibility and effectiveness of measurement.
  • FIG. 9 is a schematic structural diagram of a control device according to an embodiment of the present invention.
  • the control device includes: a memory 901 and a processor 902.
  • control device further includes a data interface 903, and the data interface 903 is used to transfer data information between the control device and other devices.
  • the memory 901 may include a volatile memory (volatile memory); the memory 901 may also include a non-volatile memory (non-volatile memory); the memory 901 may also include a combination of the foregoing types of memories.
  • the processor 902 may be a central processing unit (CPU).
  • the processor 902 may further include a hardware chip.
  • the above-mentioned hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof.
  • the above-mentioned PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), or any combination thereof.
  • the memory 901 is used to store program instructions, and the processor 902 can call a program stored in the memory 901 to perform the following steps:
  • the size parameter of the target plane or the object to be measured on the target plane is determined according to the target image and the distance.
  • the size parameter includes one or more of length, width, and area.
  • processor 902 controls the shooting posture of the shooting device according to the initial image, it is specifically configured to:
  • the unmanned aerial vehicle includes a distance measuring device carried on the pan/tilt, wherein the measuring direction of the distance measuring unit is substantially parallel to the optical axis direction of the photographing device; the processor 902 obtains the When the distance between the photographing device and the target plane is described, it is specifically used for:
  • the distance between the photographing device and the target plane is measured by the distance measuring device.
  • the distance measuring device is a laser distance measuring device.
  • processor 902 controls the shooting posture of the shooting device according to the initial image, it is specifically configured to:
  • the shooting posture of the shooting device is controlled according to the positions of the plurality of feature points on the initial image.
  • the processor 902 acquires multiple feature points in the region image corresponding to the target plane, it is specifically configured to:
  • processor 902 is further configured to:
  • Acquire target plane indication information sent by the control terminal where the target plane indication information is determined by the control terminal detecting a user's target area selection operation on the display device.
  • the processor 902 acquires multiple feature points in the region image corresponding to the target plane, it is specifically configured to:
  • processor 902 controls the shooting posture of the shooting device according to the positions of the multiple feature points on the initial image, it is specifically configured to:
  • the shooting posture of the shooting device is controlled according to the normal vector.
  • the number of the feature points is three; when the processor 902 controls the shooting posture of the shooting device according to the positions of the multiple feature points on the initial image, it is specifically configured to:
  • the rotation matrix is determined according to the positions of the spatial points corresponding to the three feature points, wherein the rotation matrix projects the three spatial points onto the initial image and the three projection pixels satisfy the following requirements:
  • the U-axis coordinate of is equal to the U-axis coordinate of the second projection pixel, and the V-axis coordinate of the first projection pixel is equal to the V-axis coordinate of the third projection pixel;
  • the shooting posture of the shooting device is controlled according to the rotation matrix.
  • the processor 902 determines the positions of the spatial points corresponding to the 3 characteristic points according to the positions of the 3 characteristic points on the initial image, it is specifically configured to:
  • the location of the spatial point corresponding to the three feature points is determined according to the locations of the three feature points on the initial image.
  • the processor 902 determines the size parameter of the target plane or the object to be measured on the target plane according to the target image and the distance, it is specifically configured to:
  • the size parameter of the target plane or the object to be measured on the target plane is determined according to the number of pixels of the target plane or the object to be measured in the target image and the distance.
  • the processor 902 determines the size parameter of the object to be measured on the target plane according to the target image and the distance, it is specifically configured to:
  • the size parameter of the determined object to be measured is determined according to the target image and the distance.
  • processor 902 determines the determined size parameter of the object to be measured according to the target image and the distance, it is specifically configured to:
  • the size parameter of the object to be measured is determined according to the circumscribed polygonal area and the distance.
  • processor 902 is further configured to:
  • the object to be measured indication information sent by the control terminal, where the object to be measured indication information is determined by the control terminal detecting the user's selection operation of the object to be measured on the display device.
  • processor 902 is further configured to:
  • the object to be measured on the target plane is determined according to the indication information of the object to be measured.
  • the embodiment of the present invention can control the shooting posture of the shooting device according to the initial image obtained by the shooting device of the drone to shoot the target object, so that the shooting direction of the shooting device is substantially perpendicular to the target plane of the target object.
  • the target image obtained by the shooting device shooting the target plane and the distance between the shooting device and the target plane are acquired, so as to determine the distance between the shooting device and the target plane.
  • the embodiment of the present invention also provides an unmanned aerial vehicle, including: a fuselage; a power system configured on the fuselage to provide moving power for the vertical take-off and landing unmanned aerial vehicle; and a processor for acquiring the unmanned aerial vehicle
  • the size parameter includes one or more of length, width, and area.
  • the processor controls the shooting posture of the shooting device according to the initial image, it is specifically configured to:
  • the unmanned aerial vehicle includes a distance measuring device carried on the pan/tilt, wherein the measuring direction of the distance measuring unit is substantially parallel to the optical axis direction of the photographing device; the processor obtains the When the distance between the photographing device and the target plane is specifically used for:
  • the distance between the photographing device and the target plane is measured by the distance measuring device.
  • the distance measuring device is a laser distance measuring device.
  • the processor controls the shooting posture of the shooting device according to the initial image, it is specifically configured to:
  • the shooting posture of the shooting device is controlled according to the positions of the plurality of feature points on the initial image.
  • the processor acquires multiple feature points in the region image corresponding to the target plane, it is specifically configured to:
  • processor is also used for:
  • Acquire target plane indication information sent by the control terminal where the target plane indication information is determined by the control terminal detecting a user's target area selection operation on the display device.
  • the processor acquires multiple feature points in the region image corresponding to the target plane, it is specifically configured to:
  • the processor controls the shooting posture of the shooting device according to the positions of the multiple feature points on the initial image, it is specifically configured to:
  • the shooting posture of the shooting device is controlled according to the normal vector.
  • the number of the feature points is three; when the processor controls the shooting posture of the shooting device according to the positions of the multiple feature points on the initial image, it is specifically configured to:
  • the rotation matrix is determined according to the positions of the spatial points corresponding to the three feature points, wherein the rotation matrix projects the three spatial points onto the initial image and the three projection pixels satisfy the following requirements:
  • the U-axis coordinate of is equal to the U-axis coordinate of the second projection pixel, and the V-axis coordinate of the first projection pixel is equal to the V-axis coordinate of the third projection pixel;
  • the shooting posture of the shooting device is controlled according to the rotation matrix.
  • the processor determines the positions of the spatial points corresponding to the 3 characteristic points according to the positions of the 3 characteristic points on the initial image, it is specifically configured to:
  • the location of the spatial point corresponding to the three feature points is determined according to the locations of the three feature points on the initial image.
  • the processor determines the size parameter of the target plane or the object to be measured on the target plane according to the target image and the distance, it is specifically configured to:
  • the size parameter of the target plane or the object to be measured on the target plane is determined according to the number of pixels of the target plane or the object to be measured in the target image and the distance.
  • the processor determines the size parameter of the object to be measured on the target plane according to the target image and the distance, it is specifically configured to:
  • the size parameter of the determined object to be measured is determined according to the target image and the distance.
  • the processor determines the determined size parameter of the object to be measured according to the target image and the distance, it is specifically configured to:
  • the size parameter of the object to be measured is determined according to the circumscribed polygonal area and the distance.
  • processor is also used for:
  • the object to be measured indication information sent by the control terminal, where the object to be measured indication information is determined by the control terminal detecting the user's selection operation of the object to be measured on the display device.
  • processor is also used for:
  • the object to be measured on the target plane is determined according to the indication information of the object to be measured.
  • the embodiment of the present invention can control the shooting posture of the shooting device according to the initial image obtained by the shooting device of the drone to shoot the target object, so that the shooting direction of the shooting device is substantially perpendicular to the target plane of the target object.
  • the target image obtained by the shooting device shooting the target plane and the distance between the shooting device and the target plane are acquired, so as to determine the distance between the shooting device and the target plane.
  • the embodiment of the present invention also provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, the computer program is executed by a processor to achieve the present invention corresponding to Figure 2, Figure 6 or Figure 8
  • the method described in the embodiment can also implement the device corresponding to the embodiment of the present invention shown in FIG. 9, which is not repeated here.
  • the computer-readable storage medium may be an internal storage unit of the device described in any of the foregoing embodiments, such as a hard disk or memory of the device.
  • the computer-readable storage medium may also be an external storage device of the device, such as a plug-in hard disk equipped on the device, a Smart Media Card (SMC), or a Secure Digital (SD) card. , Flash Card, etc.
  • the computer-readable storage medium may also include both an internal storage unit of the device and an external storage device.
  • the computer-readable storage medium is used to store the computer program and other programs and data required by the terminal.
  • the computer-readable storage medium can also be used to temporarily store data that has been output or will be output.

Abstract

A control method and device, an unmanned aerial vehicle and a storage medium. The method comprises: acquiring an initial image obtained by means of a photographic apparatus (123) of an unmanned aerial vehicle (12) photographing a target object, wherein the photographic apparatus (123) is carried on a gimbal (122) of the unmanned aerial vehicle (12); controlling the photographic attitude of the photographic apparatus (123) according to the initial image, so that the photographic direction of the photographic apparatus (123) is substantially perpendicular to a target plane of the target object; in response to the photographic direction of the photographic apparatus (123) being substantially perpendicular to the target plane, acquiring a target image obtained by means of the photographic apparatus (123) photographing the target plane, and the distance between the photographic apparatus (123) and the target plane; and determining, according to the target image and the distance, a target plane or size parameters of an object to be measured on the target plane. By means of the method, the size of an object to be measured can be measured by means of controlling the photographic attitude of the photographic apparatus (123) without the need for a specialized instrument and device, thereby simplifying user operations, improving the flexibility and effectiveness of measurement and improving the user experience.

Description

一种控制方法、设备、无人机及存储介质Control method, equipment, unmanned aerial vehicle and storage medium 技术领域Technical field
本发明涉及控制技术领域,尤其涉及一种控制方法、设备、无人机及存储介质。The present invention relates to the field of control technology, in particular to a control method, equipment, unmanned aerial vehicle and storage medium.
背景技术Background technique
随着现在科技的发展,无人机被应用在越来越多的场景中,使无人机自主飞行操作,是无人机技术发展的目标。对于一些行业应用需要测量一些建筑、标志的距离或尺寸等,常用的测量方法是使用全球定位系统(Global Positioning System,GPS)的位置信息,或高精度实时动态差分技术(Real-time kinematic,RTK)定位系统进行测量,测量过程较为麻烦,且需要专业的仪器设备,对于一些较难以到达的地点,测量手段更是受到了局限。因此,如何更有效地控制无人机对待测物体进行测距具有十分重要的意义。With the development of current technology, drones are used in more and more scenarios. Making drones fly autonomously is the goal of the development of drone technology. For some industrial applications that need to measure the distance or size of some buildings, signs, etc., the commonly used measurement method is to use the position information of the Global Positioning System (GPS) or the high-precision real-time dynamic differential technology (Real-time kinematic, RTK). ) The positioning system performs measurement. The measurement process is more troublesome and requires professional instruments and equipment. For some difficult-to-reach places, the measurement methods are even more limited. Therefore, how to more effectively control the UAV to measure the distance of the object to be measured is of great significance.
发明内容Summary of the invention
本发明实施例提供了一种控制方法、设备、无人机及存储介质,可以无需专业的仪器设备通过控制拍摄装置的拍摄姿态对待测物体的尺寸进行测量,提高了测量的灵活性和有效性。The embodiments of the present invention provide a control method, equipment, unmanned aerial vehicle and storage medium, which can measure the size of the object to be measured by controlling the shooting posture of the shooting device without the need for professional equipment, thereby improving the flexibility and effectiveness of the measurement .
第一方面,本发明实施例提供了一种控制方法,包括:In the first aspect, an embodiment of the present invention provides a control method, including:
获取无人机的拍摄装置拍摄目标对象得到的初始图像,其中,所述拍摄装置承载在所述无人机的云台上;Acquiring an initial image obtained by photographing a target object by a photographing device of a drone, wherein the photographing device is carried on a pan/tilt of the drone;
根据所述初始图像控制所述拍摄装置的拍摄姿态,以使所述拍摄装置的拍摄方向基本垂直于所述目标对象的目标平面;Controlling the shooting posture of the shooting device according to the initial image so that the shooting direction of the shooting device is substantially perpendicular to the target plane of the target object;
响应于所述拍摄装置的拍摄方向基本垂直于所述目标平面,获取所述拍摄装置拍摄目标平面得到的目标图像、所述拍摄装置与所述目标平面之间的距离;In response to the photographing direction of the photographing device being substantially perpendicular to the target plane, acquiring a target image obtained by photographing the target plane by the photographing device and the distance between the photographing device and the target plane;
根据所述目标图像和所述距离确定目标平面或所述目标平面上的待测对象的尺寸参数。The size parameter of the target plane or the object to be measured on the target plane is determined according to the target image and the distance.
第二方面,本发明实施例提供了一种控制设备,包括存储器和处理器;In the second aspect, an embodiment of the present invention provides a control device, including a memory and a processor;
所述存储器,用于存储程序;The memory is used to store programs;
所述处理器,用于调用所述程序,当所述程序被执行时,用于执行以下操作:The processor is used to call the program, and when the program is executed, it is used to perform the following operations:
获取无人机的拍摄装置拍摄目标对象得到的初始图像,其中,所述拍摄装置承载在所述无人机的云台上;Acquiring an initial image obtained by photographing a target object by a photographing device of a drone, wherein the photographing device is carried on a pan/tilt of the drone;
根据所述初始图像控制所述拍摄装置的拍摄姿态,以使所述拍摄装置的拍摄方向基本垂直于所述目标对象的目标平面;Controlling the shooting posture of the shooting device according to the initial image so that the shooting direction of the shooting device is substantially perpendicular to the target plane of the target object;
响应于所述拍摄装置的拍摄方向基本垂直于所述目标平面,获取所述拍摄装置拍摄目标平面得到的目标图像、所述拍摄装置与所述目标平面之间的距离;In response to the photographing direction of the photographing device being substantially perpendicular to the target plane, acquiring a target image obtained by photographing the target plane by the photographing device and the distance between the photographing device and the target plane;
根据所述目标图像和所述距离确定目标平面或所述目标平面上的待测对象的尺寸参数。The size parameter of the target plane or the object to be measured on the target plane is determined according to the target image and the distance.
第三方面,本发明实施例提供了一种无人机,包括:In the third aspect, an embodiment of the present invention provides a drone, including:
机身;body;
配置在机身上的动力系统,用于为所述无人机提供移动的动力;The power system configured on the fuselage is used to provide the moving power for the UAV;
处理器,用于:Processor for:
获取无人机的拍摄装置拍摄目标对象得到的初始图像,其中,所述拍摄装置承载在所述无人机的云台上;Acquiring an initial image obtained by photographing a target object by a photographing device of a drone, wherein the photographing device is carried on a pan/tilt of the drone;
根据所述初始图像控制所述拍摄装置的拍摄姿态,以使所述拍摄装置的拍摄方向基本垂直于所述目标对象的目标平面;Controlling the shooting posture of the shooting device according to the initial image so that the shooting direction of the shooting device is substantially perpendicular to the target plane of the target object;
响应于所述拍摄装置的拍摄方向基本垂直于所述目标平面,获取所述拍摄装置拍摄目标平面得到的目标图像、所述拍摄装置与所述目标平面之间的距离;In response to the photographing direction of the photographing device being substantially perpendicular to the target plane, acquiring a target image obtained by photographing the target plane by the photographing device and the distance between the photographing device and the target plane;
根据所述目标图像和所述距离确定目标平面或所述目标平面上的待测对象的尺寸参数。The size parameter of the target plane or the object to be measured on the target plane is determined according to the target image and the distance.
第四方面,本发明实施例提供了一种计算机可读存储介质,该计算机可读存储介质存储有计算机程序,该计算机程序被处理器执行时实现如上述第一方面所述的方法。In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium that stores a computer program, and when the computer program is executed by a processor, the method described in the first aspect is implemented.
本发明实施例可以根据无人机的拍摄装置拍摄目标对象得到的初始图像控制拍摄装置的拍摄姿态,以使拍摄装置的拍摄方向基本垂直于目标对象的目 标平面,其中,拍摄装置承载在无人机的云台上,并响应于拍摄装置的拍摄方向基本垂直于目标平面,获取拍摄装置拍摄目标平面得到的目标图像、拍摄装置与目标平面之间的距离,从而根据目标图像和所述距离确定目标平面或所述目标平面上的待测对象的尺寸参数。通过这种实施方式,可以实现无需专业的仪器设备通过控制拍摄装置的拍摄姿态对待测物体的尺寸进行测量,简化了用户操作,提高了测量的灵活性和有效性,提升了用户体验。The embodiment of the present invention can control the shooting posture of the shooting device according to the initial image obtained by the shooting device of the drone to shoot the target object, so that the shooting direction of the shooting device is substantially perpendicular to the target plane of the target object. On the camera’s PTZ, and in response to the shooting direction of the shooting device being substantially perpendicular to the target plane, the target image obtained by the shooting device shooting the target plane and the distance between the shooting device and the target plane are acquired, so as to determine the distance between the shooting device and the target plane. The target plane or the size parameter of the object to be measured on the target plane. Through this embodiment, it is possible to measure the size of the object to be measured by controlling the shooting posture of the shooting device without the need for professional equipment, which simplifies user operations, improves the flexibility and effectiveness of measurement, and improves user experience.
附图说明Description of the drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following will briefly introduce the drawings that need to be used in the embodiments. Obviously, the drawings in the following description are only some of the present invention. Embodiments, for those of ordinary skill in the art, without creative work, other drawings can be obtained based on these drawings.
图1是本发明实施例提供的一种控制系统的结构示意图;Fig. 1 is a schematic structural diagram of a control system provided by an embodiment of the present invention;
图2是本发明实施例提供的一种控制方法的流程示意图;2 is a schematic flowchart of a control method provided by an embodiment of the present invention;
图3是本发明实施例提供的一种控制拍摄装置的拍摄姿态的示意图;3 is a schematic diagram of controlling the shooting posture of a shooting device according to an embodiment of the present invention;
图4是本发明实施例提供的一种测量方法的示意图;FIG. 4 is a schematic diagram of a measurement method provided by an embodiment of the present invention;
图5是本发明实施例提供的一种确定待测对象尺寸参数的示意图;FIG. 5 is a schematic diagram of determining a size parameter of an object to be measured according to an embodiment of the present invention;
图6是本发明实施例提供的另一种控制方法的流程示意图;FIG. 6 is a schematic flowchart of another control method provided by an embodiment of the present invention;
图7a是本发明实施例提供的一种特征点的示意图;Figure 7a is a schematic diagram of a feature point provided by an embodiment of the present invention;
图7b是本发明实施例提供的一种获取目标图像的示意图;FIG. 7b is a schematic diagram of obtaining a target image according to an embodiment of the present invention;
图8是本发明实施例提供的又一种控制方法的流程示意图;FIG. 8 is a schematic flowchart of another control method provided by an embodiment of the present invention;
图9是本发明实施例提供的一种控制设备的结构示意图。Fig. 9 is a schematic structural diagram of a control device provided by an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following clearly describes the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present invention.
下面结合附图,对本发明的一些实施方式作详细说明。在不冲突的情况下,下述的实施例及实施例中的特征可以相互组合。In the following, some embodiments of the present invention will be described in detail with reference to the accompanying drawings. In the case of no conflict, the following embodiments and features in the embodiments can be combined with each other.
本发明实施例中提供的控制方法可以由一种控制系统执行,其中,所述控制系统可以包括控制设备和无人机;在某些实施例中,所述控制设备可以安装在无人机上,在某些实施例中,所述控制设备可以在空间上独立于无人机,在某些实施例中,所述控制设备可以是无人机的部件,即所述无人机包括控制设备。在某些实施例中,所述控制设备可以包括但不限于智能手机、平板电脑、膝上型电脑和穿戴式设备中的一种或者多种。在某些实施例中,所述控制方法还可以应用于包括拍摄装置的无人车、无人船、VR/AR眼镜、可移动机器人等其他可移动设备。The control method provided in the embodiments of the present invention can be executed by a control system, where the control system can include a control device and a drone; in some embodiments, the control device can be installed on the drone, In some embodiments, the control device may be spatially independent from the drone. In some embodiments, the control device may be a component of the drone, that is, the drone includes a control device. In some embodiments, the control device may include, but is not limited to, one or more of a smart phone, a tablet computer, a laptop computer, and a wearable device. In some embodiments, the control method can also be applied to other movable devices such as unmanned vehicles, unmanned boats, VR/AR glasses, and movable robots including camera devices.
下面结合附图1对本发明实施例提供的控制系统进行示意性说明。The control system provided by the embodiment of the present invention will be schematically described below with reference to FIG. 1.
请参见图1,图1是本发明实施例提供的一种控制系统的结构示意图,所述控制系统包括:控制设备11和无人机12。在某些实施例中,所述无人机12包括动力系统121,所述动力系统121用于为无人机12提供移动的动力;在某些实施例中,所述无人机12上挂载了云台122,所述云台122上承载了拍摄装置123。在某些实施例中,无人机12和控制设备11彼此独立,例如控制设备11可以设置在云端服务器中,与无人机12和/或无人机12上的其他设备(如云台122)建立通信连接。在某些实施例中,所述控制设备11可以为控制器。在某些实施例中,所述拍摄装置123包括但不限于相机、摄像头、图像采集传感器等。Please refer to FIG. 1, which is a schematic structural diagram of a control system provided by an embodiment of the present invention. The control system includes: a control device 11 and an unmanned aerial vehicle 12. In some embodiments, the drone 12 includes a power system 121, and the power system 121 is used to provide power for the drone 12 to move; in some embodiments, the drone 12 is mounted on A pan/tilt 122 is mounted on the pan/tilt 122, and a camera 123 is mounted on the pan/tilt 122. In some embodiments, the drone 12 and the control device 11 are independent of each other. For example, the control device 11 can be set in a cloud server, which is connected to the drone 12 and/or other devices on the drone 12 (such as the PTZ 122). ) Establish a communication connection. In some embodiments, the control device 11 may be a controller. In some embodiments, the photographing device 123 includes, but is not limited to, a camera, a camera, an image acquisition sensor, and the like.
本发明实施例中,所述控制设备11可以获取无人机12的拍摄装置123拍摄目标对象得到的初始图像,并根据该初始图像控制拍摄装置123的拍摄姿态,以使拍摄装置123的拍摄方向基本垂直于目标对象的目标平面,响应于拍摄装置123的拍摄方向基本垂直于目标平面,获取拍摄装置123拍摄目标平面得到的目标图像以及拍摄装置123与目标平面之间的距离,从而根据该目标图像和距离确定目标平面或目标平面上的待测对象的尺寸参数。In the embodiment of the present invention, the control device 11 may obtain the initial image obtained by the photographing device 123 of the drone 12 photographing the target object, and control the photographing posture of the photographing device 123 according to the initial image, so that the photographing direction of the photographing device 123 The target plane is substantially perpendicular to the target object, and in response to the shooting direction of the shooting device 123 being substantially perpendicular to the target plane, the target image obtained by the shooting device 123 shooting the target plane and the distance between the shooting device 123 and the target plane are acquired, so that according to the target The image and distance determine the target plane or the size parameters of the object to be measured on the target plane.
下面以无人机为例结合附图对本发明实施例提供的控制方法进行示意性说明。The control method provided by the embodiments of the present invention will be schematically described below by taking a drone as an example in conjunction with the accompanying drawings.
具体请参见图2,图2是本发明实施例提供的一种控制方法的流程示意图,所述方法可以由控制设备执行,其中,控制设备的具体解释如前所述。具体地, 本发明实施例的所述方法包括如下步骤。Please refer to FIG. 2 for details. FIG. 2 is a schematic flowchart of a control method provided by an embodiment of the present invention. The method may be executed by a control device, and the specific explanation of the control device is as described above. Specifically, the method of the embodiment of the present invention includes the following steps.
S201:获取无人机的拍摄装置拍摄目标对象得到的初始图像,其中,所述拍摄装置承载在所述无人机的云台上。S201: Acquire an initial image obtained by photographing a target object by a photographing device of a drone, wherein the photographing device is carried on a pan-tilt of the drone.
本发明实施例中,控制设备可以获取无人机的拍摄装置拍摄目标对象得到的初始图像,其中,所述拍摄装置承载在所述无人机的云台上。In the embodiment of the present invention, the control device may obtain the initial image obtained by shooting the target object by the camera of the drone, wherein the camera is carried on the pan/tilt of the drone.
S202:根据所述初始图像控制所述拍摄装置的拍摄姿态,以使所述拍摄装置的拍摄方向基本垂直于所述目标对象的目标平面。S202: Control the shooting posture of the shooting device according to the initial image, so that the shooting direction of the shooting device is substantially perpendicular to the target plane of the target object.
本发明实施例中,控制设备可以根据所述初始图像控制所述拍摄装置的拍摄姿态,以使所述拍摄装置的拍摄方向基本垂直于所述目标对象的目标平面。在某些实施例中,所述拍摄装置的拍摄方向基本垂直于所述目标对象的目标平面是指在指定的误差范围内拍摄装置的拍摄方向与目标对象的目标平面成90度。In the embodiment of the present invention, the control device may control the shooting posture of the shooting device according to the initial image, so that the shooting direction of the shooting device is substantially perpendicular to the target plane of the target object. In some embodiments, the shooting direction of the shooting device is substantially perpendicular to the target plane of the target object means that the shooting direction of the shooting device is 90 degrees to the target plane of the target object within a specified error range.
在一个实施例中,由于拍摄装置承载在无人机的云台上,且随云台的转动而动,因此,控制设备在根据所述初始图像控制拍摄装置的拍摄姿态时,可以根据所述初始图像控制无人机的位置、无人机的姿态和所述云台的姿态中的一种或多种,以控制所述拍摄装置的拍摄姿态。在某些实施例中,所述无人机的姿态包括无人机的俯仰角、横滚角、偏航角中的任意一种或多种。In one embodiment, since the camera is carried on the drone's pan/tilt and moves with the rotation of the pan/tilt, the control device can control the shooting attitude of the camera according to the initial image according to the The initial image controls one or more of the position of the drone, the attitude of the drone, and the attitude of the pan/tilt to control the shooting attitude of the camera. In some embodiments, the attitude of the drone includes any one or more of the pitch angle, roll angle, and yaw angle of the drone.
在一个实施例中,控制设备在根据所述初始图像控制所述拍摄装置的拍摄姿态时,可以获取所述目标平面对应的区域图像中的多个特征点,其中,所述初始图像包括所述目标平面对应的区域图像,并根据所述多个特征点在所述初始图像上的位置控制所述拍摄装置的拍摄姿态。在某些实施例中,所述多个特征点可以是用户在所述目标平面对应的区域图像中选取的多个特征点;在某些实施例中,所述多个特征点包括至少3个以上。在某些实施例中,所述多个特征点的位置可以为区域图像的任意位置点(如多边形的顶点),在此不做具体限定。通过这种实施方式,控制设备可以获取用户根据需求选取的多个特征点,从而提高了特征点选取的灵活性,提升了用户体验。In one embodiment, when controlling the shooting posture of the shooting device according to the initial image, the control device may acquire multiple feature points in the area image corresponding to the target plane, wherein the initial image includes the An image of the area corresponding to the target plane, and controlling the shooting posture of the shooting device according to the positions of the plurality of feature points on the initial image. In some embodiments, the multiple feature points may be multiple feature points selected by the user in the region image corresponding to the target plane; in some embodiments, the multiple feature points include at least three the above. In some embodiments, the positions of the multiple feature points may be arbitrary position points (such as vertices of a polygon) of the regional image, which is not specifically limited here. Through this implementation manner, the control device can obtain multiple feature points selected by the user according to requirements, thereby improving the flexibility of feature point selection and improving user experience.
在一个实施例中,控制设备在获取所述目标平面对应的区域图像中的多个特征点时,可以从所述初始图像中确定所述目标平面对应的区域图像,并运行特征点提取算法以从所述区域图像中提取多个特征点。通过特征点提取算法可以自动从所述区域图像中提取多个特征点。In one embodiment, when acquiring multiple feature points in the area image corresponding to the target plane, the control device may determine the area image corresponding to the target plane from the initial image, and run a feature point extraction algorithm to A plurality of feature points are extracted from the regional image. The feature point extraction algorithm can automatically extract multiple feature points from the regional image.
在一个实施例中,控制设备还可以将所述初始图像发送给与所述无人机通信连接的控制终端,以使所述控制终端的显示装置显示所述初始图像,并获取所述控制终端发送的目标平面指示信息,其中,所述目标平面指示信息是控制终端检测用户在所述显示装置上的目标区域选择操作确定的。在某些实施例中,所述目标区域选择操作包括但不限于框选操作。在某些实施例中,所述控制终端可以包括但不限于智能手机、平板电脑、膝上型电脑、穿戴式设备等;在某些实施例中,所述控制终端的显示装置可以为所述控制终端的用户界面,在某些实施例中,所述显示装置具有触摸功能(如触摸显示屏)。In an embodiment, the control device may also send the initial image to the control terminal communicatively connected with the drone, so that the display device of the control terminal displays the initial image and obtains the control terminal The sent target plane indication information, where the target plane indication information is determined by the control terminal detecting the user's target area selection operation on the display device. In some embodiments, the target area selection operation includes, but is not limited to, a frame selection operation. In some embodiments, the control terminal may include, but is not limited to, smart phones, tablets, laptops, wearable devices, etc.; in some embodiments, the display device of the control terminal may be the Control the user interface of the terminal. In some embodiments, the display device has a touch function (such as a touch screen).
在一个实施例中,控制设备在获取所述目标平面对应的区域图像中的多个特征点时,可以将所述初始图像发送给与所述无人机通信连接的控制终端,以使所述控制终端的显示装置显示所述初始图像,并获取所述控制终端发送的特征点指示信息,其中,所述特征点指示信息是控制终端检测用户在所述显示装置上的特征点选择操作确定的。在某些实施例中,所述特征点选择操作包括但不限于点击操作。In one embodiment, when the control device acquires multiple feature points in the area image corresponding to the target plane, it may send the initial image to the control terminal communicatively connected with the drone, so that the The display device of the control terminal displays the initial image, and obtains characteristic point indication information sent by the control terminal, where the characteristic point indication information is determined by the control terminal detecting the user's characteristic point selection operation on the display device . In some embodiments, the feature point selection operation includes, but is not limited to, a click operation.
可见,通过这种实施方式,用户可以根据需求通过框选操作或点击操作等不同的操作方式从初始图像中确定出目标对象的目标平面,提高了确定目标平面的灵活性,提升了用户体验。It can be seen that through this implementation manner, the user can determine the target plane of the target object from the initial image through different operation methods such as box selection or click operation according to requirements, which improves the flexibility of determining the target plane and improves the user experience.
在一个实施例中,控制设备在根据所述多个特征点在所述初始图像上的位置控制所述拍摄装置的拍摄姿态时,可以根据所述多个特征点在所述初始图像上的位置确定所述目标平面的法向量,并根据所述法向量控制所述拍摄装置的拍摄姿态。In one embodiment, when the control device controls the shooting posture of the photographing device according to the positions of the plurality of feature points on the initial image, it may be based on the positions of the plurality of feature points on the initial image. The normal vector of the target plane is determined, and the shooting attitude of the camera is controlled according to the normal vector.
在一个实施例中,控制设备在根据所述多个特征点在所述初始图像上的位置确定所述目标平面的法向量时,假设根据不在一条直线上的3个特征点P k、P k+1、P k+2构成目标平面,平面用法向量
Figure PCTCN2019130971-appb-000001
表示,则可以通过如下公式(1)计算得到所述目标平面的法向量:
In one embodiment, when the control device determines the normal vector of the target plane based on the positions of the multiple feature points on the initial image, it is assumed that the three feature points P k and P k that are not on a straight line are used. +1 and P k+2 constitute the target plane, the plane usage vector
Figure PCTCN2019130971-appb-000001
, Then the normal vector of the target plane can be calculated by the following formula (1):
Figure PCTCN2019130971-appb-000002
Figure PCTCN2019130971-appb-000002
通过确定所述目标平面的法向量,目的在于根据所述法向量控制所述拍摄装置的拍摄姿态,以使拍摄装置的光轴方向与所述目标平面的法向量平行。By determining the normal vector of the target plane, the purpose is to control the shooting posture of the photographing device according to the normal vector so that the optical axis direction of the photographing device is parallel to the normal vector of the target plane.
在一个实施例中,所述特征点的数量为3个;控制设备在根据所述多个特 征点在所述初始图像上的位置控制所述拍摄装置的拍摄姿态时,可以根据所述3个特征点在所述初始图像上的位置确定所述3个特征点对应的空间点的位置,并根据所述3个特征点对应的空间点的位置确定旋转矩阵,其中,所述旋转矩阵将所述3个空间点投影到所述初始图像上的3个投影像素点满足:第一投影像素点的U轴坐标等于第二投影像素点的U轴坐标,第一投影像素点的V轴坐标等于第三投影像素点的V轴坐标;以及根据所述旋转矩阵控制所述拍摄装置的拍摄姿态。在某些实施例中,所述U轴为相机坐标系下的横坐标,所述V轴为相机坐标系下的纵坐标。其中,所述3个特征点对应的空间点中第一空间点与第二空间点之间的连接线基本上垂直于第二空间点与第三空间点之间的连接线。在某些情况中,所述控制终端的显示装置可以显示提示信息,其中,所述提示信息用于提示用户从所述显示装置显示的图像上选中所述3个特征点。In an embodiment, the number of the feature points is 3; when the control device controls the shooting posture of the shooting device according to the positions of the multiple feature points on the initial image, it may be based on the 3 feature points. The location of the feature point on the initial image determines the location of the space point corresponding to the 3 feature points, and the rotation matrix is determined according to the location of the space point corresponding to the 3 feature points, wherein the rotation matrix is The 3 projection pixels of the 3 spatial points projected onto the initial image satisfy: the U axis coordinate of the first projection pixel is equal to the U axis coordinate of the second projection pixel, and the V axis coordinate of the first projection pixel is equal to The V-axis coordinates of the third projection pixel; and controlling the shooting posture of the shooting device according to the rotation matrix. In some embodiments, the U axis is the abscissa in the camera coordinate system, and the V axis is the ordinate in the camera coordinate system. Wherein, the connecting line between the first space point and the second space point in the space points corresponding to the three characteristic points is substantially perpendicular to the connecting line between the second space point and the third space point. In some cases, the display device of the control terminal may display prompt information, where the prompt information is used to prompt the user to select the three characteristic points from the image displayed by the display device.
通过确定旋转矩阵可以将旋转矩阵转化为角度,控制无人机的位置以及控制云台的姿态来控制所述拍摄装置的拍摄姿态,从而使得拍摄装置的光轴与目标平面垂直即光轴与目标平面的法向量平行。By determining the rotation matrix, the rotation matrix can be converted into an angle, and the position of the drone and the attitude of the pan/tilt can be controlled to control the shooting attitude of the shooting device, so that the optical axis of the shooting device is perpendicular to the target plane, that is, the optical axis is perpendicular to the target. The normal vectors of the plane are parallel.
在一个实施例中,控制设备在根据所述3个特征点对应的空间点的位置确定旋转矩阵时,可以获取所述拍摄装置的参数,并根据所述3个特征点对应的空间点的位置和所述拍摄装置的参数确定旋转矩阵。在某些实施例中,所述拍摄装置的参数包括焦距和光心。In one embodiment, when the control device determines the rotation matrix according to the positions of the spatial points corresponding to the three feature points, it can obtain the parameters of the photographing device, and according to the positions of the spatial points corresponding to the three feature points And the parameters of the photographing device determine the rotation matrix. In some embodiments, the parameters of the photographing device include focal length and optical center.
具体可以结合图3和公式(2.1)、公式(2.2)、公式(2.3)、公式(3)进行说明,图3是本发明实施例提供的一种控制拍摄装置的拍摄姿态的示意图,如图3所示,假设在初始图像31上确定出3个特征点,且这3个特征点分别为x 1、x 2、x 3,以x 1为例,归一化到相机坐标系为如下公式(2.1): Specifically, it can be described in conjunction with FIG. 3 and formula (2.1), formula (2.2), formula (2.3), and formula (3). FIG. 3 is a schematic diagram of controlling the shooting attitude of a shooting device according to an embodiment of the present invention, as shown in FIG. As shown in 3, assuming that 3 feature points are determined on the initial image 31, and these 3 feature points are x 1 , x 2 , x 3 , taking x 1 as an example, normalized to the camera coordinate system is the following formula (2.1):
Figure PCTCN2019130971-appb-000003
Figure PCTCN2019130971-appb-000003
其中,c x、c y为拍摄装置(如相机)的光心位置,f为焦距,u 1,ν 1分别为x 1在图像上的横坐标和纵坐标,单位为像素。 Among them, c x and c y are the positions of the optical center of the photographing device (such as a camera), f is the focal length, and u 1 and ν 1 are the abscissa and ordinate of x 1 on the image, and the unit is pixel.
同理,x 2归一化到相机坐标系为如下公式(2.2): Similarly, x 2 is normalized to the camera coordinate system as the following formula (2.2):
Figure PCTCN2019130971-appb-000004
Figure PCTCN2019130971-appb-000004
其中,u 2、ν 2分别为x 2在图像上的横坐标和纵坐标,单位为像素。 Among them, u 2 and ν 2 are the abscissa and ordinate of x 2 on the image, and the unit is pixel.
同理,x 3归一化到相机坐标系为如下公式(2.3): Similarly, x 3 is normalized to the camera coordinate system as the following formula (2.3):
Figure PCTCN2019130971-appb-000005
Figure PCTCN2019130971-appb-000005
其中,u 3、ν 3分别为x 3在图像上的横坐标和纵坐标,单位为像素。 Among them, u 3 and ν 3 are the abscissa and ordinate of x 3 on the image, and the unit is pixel.
如果x 1x 2⊥x 1x 3,则可以根据如下公式(3)确定一个旋转矩阵R: If x 1 x 2 ⊥x 1 x 3 , a rotation matrix R can be determined according to the following formula (3):
Figure PCTCN2019130971-appb-000006
Figure PCTCN2019130971-appb-000006
其中,x′ 1=Rx 1,x' 2=Rx 2,x' 3=Rx 3,x′ 1(u)表示x′ 1在图像上的横坐标,x′ 1(v)表示x′ 1在图像上的纵坐标,单位均为像素。 Wherein, x '1 = Rx 1, x' 2 = Rx 2, x '3 = Rx 3, x' 1 (u) represented by x '1 on the abscissa in the image, x' 1 (v) represented by x '1 The ordinate on the image is in pixels.
在确定出旋转矩阵R后,将旋转矩阵转化为角度,并控制无人机的位置、云台的姿态、无人机的姿态中的一种或多种,使得调整后的x′ 1x′ 2⊥x′ 1x′ 3,且此时所述拍摄装置的拍摄方向基本垂直于所述目标平面,得到图3所示的拍摄装置的拍摄方向基本垂直于目标平面的目标图像32。 After the rotation matrix R is determined, the rotation matrix is converted into an angle, and one or more of the position of the drone, the attitude of the gimbal, and the attitude of the drone are controlled to make the adjusted x′ 1 x′ 2 ⊥x′ 1 x′ 3 , and the shooting direction of the shooting device is basically perpendicular to the target plane at this time, and a target image 32 with the shooting direction of the shooting device shown in FIG. 3 substantially perpendicular to the target plane is obtained.
可见,通过根据3个特征点在初始图像上的位置和拍摄装置的参数,可以确定旋转矩阵,从而有助于根据所述旋转矩阵控制拍摄装置的拍摄姿态。It can be seen that the rotation matrix can be determined according to the positions of the three feature points on the initial image and the parameters of the shooting device, thereby helping to control the shooting posture of the shooting device according to the rotation matrix.
S203:响应于所述拍摄装置的拍摄方向基本垂直于所述目标平面,获取所述拍摄装置拍摄目标平面得到的目标图像、所述拍摄装置与所述目标平面之间的距离。S203: In response to the photographing direction of the photographing device being substantially perpendicular to the target plane, acquire a target image obtained by photographing the target plane by the photographing device and the distance between the photographing device and the target plane.
本发明实施例中,控制设备可以响应于所述拍摄装置的拍摄方向基本垂直于所述目标平面,获取所述拍摄装置拍摄目标平面得到的目标图像、所述拍摄 装置与所述目标平面之间的距离。In the embodiment of the present invention, the control device may respond to the shooting direction of the shooting device being substantially perpendicular to the target plane, acquiring the target image obtained by the shooting device shooting the target plane, and the distance between the shooting device and the target plane. distance.
在一个实施例中,所述无人机包括承载在所述云台上的测距装置,其中,所述测距单元的测量方向与所述拍摄装置的光轴方向基本平行;控制设备在获取所述拍摄装置与所述目标平面之间的距离时,可以通过所述测距装置测量所述拍摄装置与所述目标平面之间的距离。在某些实施例中,所述测距装置为激光测距装置。在某些实施例中,所述测距装置与拍摄装置安装在一起,且均承载在无人机的云台上,随云台的转动而动。In one embodiment, the drone includes a distance measuring device carried on the pan/tilt, wherein the measuring direction of the distance measuring unit is substantially parallel to the optical axis direction of the photographing device; the control device is acquiring When determining the distance between the imaging device and the target plane, the distance between the imaging device and the target plane can be measured by the distance measuring device. In some embodiments, the distance measuring device is a laser distance measuring device. In some embodiments, the distance measuring device and the photographing device are installed together, and both are carried on the pan/tilt of the drone, and move with the rotation of the pan/tilt.
S204:根据所述目标图像和所述距离确定目标平面或所述目标平面上的待测对象的尺寸参数。S204: Determine a target plane or a size parameter of the object to be measured on the target plane according to the target image and the distance.
本发明实施例中,控制设备可以根据所述目标图像和所述距离确定目标平面或所述目标平面上的待测对象的尺寸参数。在某些实施例中,所述尺寸参数包括长度、宽度、面积中的一种或多种。In the embodiment of the present invention, the control device may determine the target plane or the size parameter of the object to be measured on the target plane according to the target image and the distance. In some embodiments, the size parameter includes one or more of length, width, and area.
在一个实施例中,具体可以图4为例进行说明,图4是本发明实施例提供的一种测量方法的示意图。如图4所示,假设相机41的拍摄方向基本垂直于目标平面测量地面42上的待测对象421得到目标图像43,从目标图像43上确定待测对象431,相机41的焦距为f,测距装置(图4中未示出)测量得到的相机41与地面42的距离为z,目标图像43上待测对象431的长度为d1、面积为s1,则可以计算出地面42上的待测对象421的真实长度d2为如下公式(4),以及真实面积s2为如下公式(5):In an embodiment, FIG. 4 can be used as an example for description. FIG. 4 is a schematic diagram of a measurement method provided by an embodiment of the present invention. As shown in Figure 4, assuming that the shooting direction of the camera 41 is substantially perpendicular to the target plane, measuring the object to be measured 421 on the ground 42 to obtain the target image 43, the object to be measured 431 is determined from the target image 43, the focal length of the camera 41 is f, The distance between the camera 41 and the ground 42 measured by the device (not shown in Fig. 4) is z, and the length of the object to be measured 431 on the target image 43 is d1 and the area is s1. Then the measured distance on the ground 42 can be calculated The real length d2 of the object 421 is the following formula (4), and the real area s2 is the following formula (5):
Figure PCTCN2019130971-appb-000007
Figure PCTCN2019130971-appb-000007
Figure PCTCN2019130971-appb-000008
Figure PCTCN2019130971-appb-000008
在一个实施例中,控制设备在根据所述目标图像和所述距离确定目标平面或所述目标平面上的待测对象的尺寸参数时,可以根据所述目标平面或所述待测对象在目标图像的像素数量和所述距离确定目标平面或所述目标平面上的待测对象的尺寸参数。In one embodiment, when the control device determines the size parameter of the target plane or the object to be measured on the target plane according to the target image and the distance, it may be based on the target plane or the object to be measured on the target plane. The number of pixels of the image and the distance determine the target plane or the size parameter of the object to be measured on the target plane.
在一种实施方式中,每个像素包含了尺寸参数,控制设备可以根据目标平面或所述待测对象在目标图像的像素数量和每个像素的尺寸参数,确定由多个像素组成的目标平面或目标平面上的待测对象的尺寸参数。In an embodiment, each pixel contains a size parameter, and the control device can determine the target plane composed of multiple pixels according to the number of pixels of the target plane or the object to be measured in the target image and the size parameter of each pixel. Or the size parameter of the object to be measured on the target plane.
在一个实施例中,控制设备在根据所述目标图像和所述距离确定所述目标平面上的待测对象的尺寸参数时,可以对所述目标图像进行识别以确定所述待测对象;或者,接收所述无人机的控制终端发送的待测对象指示信息,根据所述待测对象指示信息确定待测对象,其中,所述待测对象指示信息是控制终端通过检测用户对显示目标图像的控制终端的显示装置的待测对象选择操作;从而根据所述目标图像和所述距离确定所述确定的待测对象的尺寸参数。在某些实施例中,所述待测对象可以为目标图像,在某些实施例中,所述目标图像可以包括待测对象,在某些实施例中,所述待测对象可以为目标对象,在其他实施例中,所述待测对象也可以不为目标对象。In one embodiment, when determining the size parameter of the object to be measured on the target plane according to the target image and the distance, the control device may recognize the target image to determine the object to be measured; or , Receiving the object-to-be-measured indication information sent by the control terminal of the drone, and determining the object-to-be-measured according to the object-to-be-measured indication information, wherein the object-to-be-measured indication information is that the control terminal displays the target image by detecting the user Control the selection operation of the object to be measured on the display device of the terminal; thereby determining the size parameter of the determined object to be measured according to the target image and the distance. In some embodiments, the object to be measured may be a target image. In some embodiments, the target image may include an object to be measured. In some embodiments, the object to be measured may be a target object. In other embodiments, the object to be tested may not be a target object.
在一个实施例中,控制设备在根据所述目标图像和所述距离确定所述确定的待测对象的尺寸参数时,可以获取所述待测对象在所述目标图像中的外接多边形区域,并根据所述外接多边形区域和所述距离确定所述待测对象的尺寸参数。In one embodiment, when the control device determines the determined size parameter of the object to be measured according to the target image and the distance, it can acquire the circumscribed polygonal area of the object to be measured in the target image, and The size parameter of the object to be measured is determined according to the circumscribed polygonal area and the distance.
以图5为例,图5是本发明实施例提供的一种确定待测对象尺寸参数的示意图,如图5所示,假设待测对象为51曲线(如大坝裂缝),则控制设备可以根据该曲线51(如大坝裂缝)在目标图像52上确定出与该曲线51对应的外接多边形区域53(如矩形),并根据所述外接多边形区域53和拍摄装置与目标平面之间的距离确定该曲线51的尺寸参数(如矩形的长和宽)。Taking Figure 5 as an example, Figure 5 is a schematic diagram of determining the size parameters of the object to be measured according to an embodiment of the present invention. As shown in Figure 5, assuming that the object to be measured is curve 51 (such as a dam crack), the control device can According to the curve 51 (such as a dam crack), the circumscribed polygonal area 53 (such as a rectangle) corresponding to the curve 51 is determined on the target image 52, and according to the circumscribed polygonal area 53 and the distance between the shooting device and the target plane Determine the size parameters of the curve 51 (such as the length and width of the rectangle).
在一个实施例中,控制设备还可以将所述目标图像发送给与所述无人机通信连接的控制终端以使所述控制终端的显示装置显示所述目标图像,并获取所述控制终端发送的待测对象指示信息,其中,所述待测对象指示信息是控制终端检测用户在所述显示装置上的待测对象选择操作确定的。In one embodiment, the control device may also send the target image to the control terminal communicatively connected with the drone so that the display device of the control terminal displays the target image, and obtains the control terminal to send The indication information of the object to be tested is determined by the control terminal detecting the user's selection operation of the object to be tested on the display device.
通过这种实施方式,用户可以根据需求从显示目标图像的控制终端的显示装置上自主选择待测对象,从而提高了选取待测对象的灵活性,提升了用户体验。Through this embodiment, the user can independently select the object to be tested from the display device of the control terminal that displays the target image according to requirements, thereby improving the flexibility of selecting the object to be tested and improving the user experience.
在一个实施例中,控制设备还可以将所述目标图像处于预设的待测对象识别模型中以获取所述模型输出的待测对象指示信息,并根据所述待测对象指示信息确定所述目标平面上的待测对象。通过预设的待测对象识别模型可以自动识别出待测对象指示信息,从而提高确定待测对象的效率,满足了用户对确定待测对象的智能化和自动化需求。In one embodiment, the control device may also place the target image in a preset recognition model of the object to be measured to obtain the object-to-be-measured indication information output by the model, and determine the object according to the indication information of the object-to-be-measured The object to be measured on the target plane. The preset object-to-be-tested recognition model can automatically recognize the object-to-be-tested indication information, thereby improving the efficiency of determining the object to be tested, and meeting the user's intelligence and automation requirements for determining the object to be tested.
本发明实施例可以根据无人机的拍摄装置拍摄目标对象得到的初始图像控制拍摄装置的拍摄姿态,以使拍摄装置的拍摄方向基本垂直于目标对象的目标平面,其中,拍摄装置承载在无人机的云台上,并响应于拍摄装置的拍摄方向基本垂直于目标平面,获取拍摄装置拍摄目标平面得到的目标图像、拍摄装置与目标平面之间的距离,从而根据目标图像和所述距离确定目标平面或所述目标平面上的待测对象的尺寸参数。通过这种实施方式,可以无需专业的仪器设备,降低了成本,直接通过控制拍摄装置的拍摄姿态对待测物体的尺寸进行测量,简化了用户操作,提高了测量的灵活性和有效性,提升了用户体验。The embodiment of the present invention can control the shooting posture of the shooting device according to the initial image obtained by the shooting device of the drone to shoot the target object, so that the shooting direction of the shooting device is substantially perpendicular to the target plane of the target object. On the camera’s PTZ, and in response to the shooting direction of the shooting device being substantially perpendicular to the target plane, the target image obtained by the shooting device shooting the target plane and the distance between the shooting device and the target plane are acquired, so as to determine the distance between the shooting device and the target plane. The target plane or the size parameter of the object to be measured on the target plane. Through this implementation mode, professional instruments and equipment are not required, cost is reduced, and the size of the object to be measured is directly measured by controlling the shooting posture of the shooting device, which simplifies user operations, improves the flexibility and effectiveness of measurement, and improves user experience.
具体请参见图6,图6是本发明实施例提供的另一种控制方法的流程示意图,所述方法可以由控制设备执行,其中,控制设备的具体解释如前所述。本发明实施例与图2所述实施例的区别在于,本发明实施例是对通过手动或自动选取多个特征点,从而根据多个特征点的位置信息控制拍摄装置的拍摄姿态的示意性说明,具体地,本发明实施例的所述方法包括如下步骤。Please refer to FIG. 6 for details. FIG. 6 is a schematic flowchart of another control method provided by an embodiment of the present invention. The method may be executed by a control device, wherein the specific explanation of the control device is as described above. The difference between the embodiment of the present invention and the embodiment described in FIG. 2 is that the embodiment of the present invention is a schematic description of manually or automatically selecting multiple feature points, thereby controlling the shooting posture of the shooting device according to the position information of the multiple feature points. Specifically, the method of the embodiment of the present invention includes the following steps.
S601:获取无人机的拍摄装置拍摄目标对象得到的初始图像,其中,所述拍摄装置承载在所述无人机的云台上。S601: Acquire an initial image obtained by photographing a target object by a camera of the drone, where the camera is carried on the pan/tilt of the drone.
本发明实施例中,控制设备可以获取无人机的拍摄装置拍摄目标对象得到的初始图像,其中,所述拍摄装置承载在所述无人机的云台上。具体实施例及举例如前所述,此处不再赘述。In the embodiment of the present invention, the control device may obtain the initial image obtained by shooting the target object by the camera of the drone, wherein the camera is carried on the pan/tilt of the drone. The specific embodiments and examples are described above, and will not be repeated here.
S602:获取目标平面对应的区域图像中的多个特征点,其中,所述初始图像包括所述目标平面对应的区域图像。S602: Acquire multiple feature points in an area image corresponding to a target plane, where the initial image includes an area image corresponding to the target plane.
本发明实施例中,控制设备可以获取目标平面对应的区域图像中的多个特征点,其中,所述初始图像包括所述目标对象的目标平面对应的区域图像。在某些实施例中,所述多个特征点可以是用户在所述目标平面对应的区域图像中选取的多个特征点;在某些实施例中,所述多个特征点包括至少3个或3个以上。在某些实施例中,所述多个特征点的位置可以为区域图像的任意位置点(如多边形的顶点),在此不做具体限定。In the embodiment of the present invention, the control device may acquire multiple feature points in the area image corresponding to the target plane, where the initial image includes the area image corresponding to the target plane of the target object. In some embodiments, the multiple feature points may be multiple feature points selected by the user in the region image corresponding to the target plane; in some embodiments, the multiple feature points include at least three Or 3 or more. In some embodiments, the positions of the multiple feature points may be arbitrary position points (such as vertices of a polygon) of the regional image, which is not specifically limited here.
以图7a为例,图7a是本发明实施例提供的一种特征点的示意图,如图7a所示,控制设备可以获取用户在显示初始图像的控制终端的显示装置上选取的4个特征点,分别为特征点711、特征点712、特征点713、特征点714, 其中,所述初始图像包括目标对象的目标平面72对应的区域图像73。Taking FIG. 7a as an example, FIG. 7a is a schematic diagram of a feature point provided by an embodiment of the present invention. As shown in FIG. 7a, the control device can obtain 4 feature points selected by the user on the display device of the control terminal that displays the initial image. , Which are respectively a feature point 711, a feature point 712, a feature point 713, and a feature point 714, where the initial image includes the area image 73 corresponding to the target plane 72 of the target object.
在一个实施例中,控制设备在获取目标平面对应的区域图像中的多个特征点时,可以从所述初始图像中确定所述目标平面对应的区域图像,并运行特征点提取算法以从所述区域图像中提取多个特征点。在某些实施例中,所述特征点算法中包括了特征点的提取规则,在一个示例中,所述提取规则可以为提取角点(如多边形的顶点)等。In one embodiment, when acquiring multiple feature points in the area image corresponding to the target plane, the control device may determine the area image corresponding to the target plane from the initial image, and run a feature point extraction algorithm to obtain the Multiple feature points are extracted from the regional image. In some embodiments, the feature point algorithm includes feature point extraction rules. In one example, the extraction rule may be the extraction of corner points (such as the vertices of a polygon).
以图7a为例,控制设备可以在获取到拍摄装置拍摄目标对象得到的初始图像之后,可以确定目标平面72对应的区域图像73,并运行特征点提取算法,从区域图像73中提取出特征点711、特征点712、特征点713、特征点714。Taking Figure 7a as an example, the control device can determine the area image 73 corresponding to the target plane 72 after acquiring the initial image obtained by the shooting device shooting the target object, and run the feature point extraction algorithm to extract the feature points from the area image 73 711, feature point 712, feature point 713, feature point 714.
通过这种实施方式,可以避免用户手动选取特征点,实现了用户对选取特征点的自动化和智能化需求,提高了选取特征点的效率,提升了用户体验。Through this implementation manner, it is possible to avoid the user from manually selecting feature points, to achieve the user's automation and intelligence requirements for selecting feature points, to improve the efficiency of selecting feature points, and to improve user experience.
在一个实施例中,控制设备还可以将所述初始图像发送给与所述无人机通信连接的控制终端,以使所述控制终端的显示装置显示所述初始图像,并获取所述控制终端发送的目标平面指示信息,其中,所述目标平面指示信息是控制终端检测用户在所述显示装置上的目标区域选择操作确定的。In an embodiment, the control device may also send the initial image to the control terminal communicatively connected with the drone, so that the display device of the control terminal displays the initial image and obtains the control terminal The sent target plane indication information, where the target plane indication information is determined by the control terminal detecting the user's target area selection operation on the display device.
在一种实施方式中,当所述目标区域选择操作为框选操作时,用户可以根据目标对象在控制终端的显示装置上显示的位置在显示装置上框选出包括所述目标对象的封闭区域,并生成目标平面指示信息,其中,所述目标平面指示信息用于指示确定框选操作框选出的包括目标对象的封闭区域为所述目标对象的目标平面。In one embodiment, when the target area selection operation is a frame selection operation, the user can frame and select the closed area including the target object on the display device according to the position of the target object displayed on the display device of the control terminal. , And generate target plane indication information, where the target plane indication information is used to indicate that the enclosed area including the target object selected by the frame selection operation box is determined to be the target plane of the target object.
例如,假设控制设备将获取到的初始图像发送给控制终端,并在控制终端的显示界面上显示所述初始图像,用户可以根据显示界面的初始图像上目标对象的位置,在所述显示界面上框选出包括所述目标对象的封闭区域,并生成目标平面指示信息。控制终端可以将生成的目标平面指示信息发送给控制设备,以使控制设备可以根据所述目标平面指示信息的指示确定由所述框选操作框选的包括目标对象的封闭区域为所述目标对象的目标平面。For example, assuming that the control device sends the acquired initial image to the control terminal, and displays the initial image on the display interface of the control terminal, the user can display the initial image on the display interface according to the position of the target object on the initial image of the display interface. The enclosed area including the target object is selected by frame, and target plane indication information is generated. The control terminal may send the generated target plane indication information to the control device, so that the control device can determine, according to the indication of the target plane indication information, that the enclosed area including the target object selected by the frame selection operation is the target object The target plane.
可见,通过这种实施方式,用户可以根据需求从初始图像中框选出目标对象的目标平面,提高了确定目标平面的灵活性,提升了用户体验。It can be seen that through this implementation manner, the user can select the target plane of the target object from the initial image according to requirements, which improves the flexibility of determining the target plane and improves the user experience.
在一个实施例中,控制设备在获取目标平面对应的区域图像中的多个特征点时,可以将所述初始图像发送给与所述无人机通信连接的控制终端,以使所 述控制终端的显示装置显示所述初始图像,并获取所述控制终端发送的特征点指示信息,其中,所述特征点指示信息是控制终端检测用户在所述显示装置上的特征点选择操作确定的。在某些实施例中,所述特征点选择操作包括但不限于点击操作。In one embodiment, when the control device acquires multiple feature points in the area image corresponding to the target plane, it may send the initial image to the control terminal communicatively connected with the drone, so that the control terminal The display device of the display device displays the initial image, and obtains the characteristic point indication information sent by the control terminal, where the characteristic point indication information is determined by the control terminal detecting a user's characteristic point selection operation on the display device. In some embodiments, the feature point selection operation includes, but is not limited to, a click operation.
在一种实施方式中,当所述特征点选择操作为点击操作时,用户可以根据目标对象在控制终端的显示装置上显示的位置点击3个或3个以上的特征点,以使控制终端可以根据用户在显示界面上的点击操作确定的3个或3个以上的特征点的位置信息和/或点击顺序生成特征点指示信息,其中,所述特征点指示信息用于指示确定根据所述3个或3个以上的特征点的位置信息和/或点击顺序生成的包括目标对象的封闭区域为所述目标对象的目标平面。In one embodiment, when the feature point selection operation is a click operation, the user can click 3 or more feature points according to the position of the target object displayed on the display device of the control terminal, so that the control terminal can According to the position information and/or click sequence of 3 or more characteristic points determined by the user on the display interface, the characteristic point indication information is generated, wherein the characteristic point indication information is used to indicate that the determination is based on the 3 The location information of one or more feature points and/or the closed area including the target object generated by the click sequence is the target plane of the target object.
例如,假设控制设备将获取到的初始图像发送给控制终端,并在控制终端的显示界面上显示所述初始图像,用户可以根据显示界面的初始图像上目标对象的位置,在所述显示界面上点击4个特征点,从而根据这4个特征点生成特征点指示信息。控制终端可以将生成的特征点指示信息发送给控制设备,以使控制设备可以根据所述特征点指示信息的指示确定由这4个特征点生成的封闭区域为所述目标对象的目标平面。For example, assuming that the control device sends the acquired initial image to the control terminal, and displays the initial image on the display interface of the control terminal, the user can display the initial image on the display interface according to the position of the target object on the initial image of the display interface. Click 4 feature points to generate feature point indication information based on these 4 feature points. The control terminal may send the generated characteristic point indication information to the control device, so that the control device can determine the enclosed area generated by the four characteristic points as the target plane of the target object according to the indication of the characteristic point indication information.
可见,通过这种实施方式,用户可以根据需求通过点击操作从初始图像中选取出多个特征点,以根据多个特征点生成特征点指示信息,并将特征点指示信息发送给控制设备,以指示控制设备根据该多个特征点生成目标平面,从而提高了确定目标平面的灵活性,提升了用户体验。It can be seen that through this implementation, the user can select multiple feature points from the initial image by clicking according to requirements, so as to generate feature point indication information based on the multiple feature points, and send the feature point indication information to the control device. The instruction control device generates a target plane according to the multiple feature points, thereby improving the flexibility of determining the target plane and improving the user experience.
S603:根据所述多个特征点在所述初始图像上的位置控制所述拍摄装置的拍摄姿态,以使所述拍摄装置的拍摄方向基本垂直于所述目标对象的目标平面。S603: Control the shooting posture of the shooting device according to the positions of the multiple feature points on the initial image, so that the shooting direction of the shooting device is substantially perpendicular to the target plane of the target object.
本发明实施例中,控制设备可以根据所述多个特征点在所述初始图像上的位置控制所述拍摄装置的拍摄姿态,以使所述拍摄装置的拍摄方向基本垂直于所述目标对象的目标平面。In the embodiment of the present invention, the control device may control the shooting posture of the shooting device according to the positions of the multiple feature points on the initial image, so that the shooting direction of the shooting device is substantially perpendicular to the direction of the target object. Target plane.
在一个实施例中,控制设备可以根据所述多个特征点在所述初始图像上的位置控制无人机的位置、无人机的姿态和所述云台的姿态中的一种或多种,以控制所述拍摄装置的拍摄姿态。In an embodiment, the control device may control one or more of the position of the drone, the attitude of the drone, and the attitude of the pan/tilt according to the positions of the multiple feature points on the initial image. , To control the shooting posture of the shooting device.
以图7a为例,控制设备在确定出目标平面72对应的区域图像73,以及 从区域图像73中提取出特征点711、特征点712、特征点713、特征点714之后,可以根据特征点711、特征点712、特征点713、特征点714在初始图像上的位置调整无人机的位置、无人机的姿态和所述云台的姿态中的一种或多种,以控制拍摄装置的拍摄姿态,得到调整后的区域图像74。Taking FIG. 7a as an example, after determining the area image 73 corresponding to the target plane 72, and extracting the feature points 711, 712, 713, and 714 from the area image 73, the control device can use the feature points 711 The position of the feature point 712, the feature point 713, and the feature point 714 on the initial image adjust one or more of the position of the drone, the attitude of the drone, and the attitude of the pan/tilt to control the camera The posture is taken, and the adjusted area image 74 is obtained.
在一个实施例中,控制设备在根据所述多个特征点在所述初始图像上的位置控制所述拍摄装置的拍摄姿态时,可以根据所述多个特征点在所述初始图像上的位置确定所述目标平面的法向量,并根据所述法向量控制所述拍摄装置的拍摄姿态。具体实施例如前所述,此处不再赘述。In one embodiment, when the control device controls the shooting posture of the photographing device according to the positions of the plurality of feature points on the initial image, it may be based on the positions of the plurality of feature points on the initial image. The normal vector of the target plane is determined, and the shooting attitude of the camera is controlled according to the normal vector. The specific implementation is as described above and will not be repeated here.
S604:响应于所述拍摄装置的拍摄方向基本垂直于所述目标平面,获取所述拍摄装置拍摄目标平面得到的目标图像、所述拍摄装置与所述目标平面之间的距离。S604: In response to the photographing direction of the photographing device being substantially perpendicular to the target plane, acquire a target image obtained by photographing the target plane by the photographing device and the distance between the photographing device and the target plane.
本发明实施例中,控制设备可以响应于所述拍摄装置的拍摄方向基本垂直于所述目标平面,获取所述拍摄装置拍摄目标平面得到的目标图像、所述拍摄装置与所述目标平面之间的距离。In the embodiment of the present invention, the control device may respond to the shooting direction of the shooting device being substantially perpendicular to the target plane, acquiring the target image obtained by the shooting device shooting the target plane, and the distance between the shooting device and the target plane. distance.
在一个实施例中,具体可以结合图7a和图7b为例对控制设备响应于所述拍摄装置的拍摄方向基本垂直于所述目标平面,获取所述拍摄装置拍摄目标平面得到的目标图像进行说明。图7b是本发明实施例提供的一种获取目标图像的示意图,如图7b所示,在调整拍摄装置的拍摄姿态后,拍摄装置75在拍摄图7a中区域图像74包括的待测对象76时,拍摄装置75的拍摄方向可以基本垂直于区域图像的目标平面,以获取拍摄装置75拍摄目标平面得到的目标图像77。In an embodiment, it may be specifically described with reference to FIG. 7a and FIG. 7b that the control device obtains the target image obtained by the shooting device shooting the target plane in response to the shooting direction of the shooting device being substantially perpendicular to the target plane. . Fig. 7b is a schematic diagram of obtaining a target image according to an embodiment of the present invention. As shown in Fig. 7b, after adjusting the shooting posture of the camera, the camera 75 photographs the object 76 included in the area image 74 in Fig. 7a. The shooting direction of the shooting device 75 may be substantially perpendicular to the target plane of the area image to obtain the target image 77 obtained by the shooting device 75 shooting the target plane.
在某些实施例中,所述控制设备获取拍摄装置与目标平面之间的距离的实施例如前所述,此处不再赘述。In some embodiments, the implementation of the control device to obtain the distance between the imaging device and the target plane is as described above, and will not be repeated here.
S605:根据所述目标图像和所述距离确定目标平面或所述目标平面上的待测对象的尺寸参数。S605: Determine a target plane or a size parameter of the object to be measured on the target plane according to the target image and the distance.
本发明实施例中,控制设备可以根据所述目标图像和所述距离确定目标平面或所述目标平面上的待测对象的尺寸参数。具体实施例如前所述,此处不再赘述。In the embodiment of the present invention, the control device may determine the target plane or the size parameter of the object to be measured on the target plane according to the target image and the distance. The specific implementation is as described above and will not be repeated here.
本发明实施例可以根据无人机的拍摄装置拍摄目标对象得到的初始图像获取该初始图像的目标平面对应的区域图像的多个特征点,并根据多个特征点 在初始图像上的位置控制拍摄装置的拍摄姿态,以使拍摄装置的拍摄方向基本垂直于目标对象的目标平面,从而响应于拍摄装置的拍摄方向基本垂直于目标平面,获取拍摄装置拍摄目标平面得到的目标图像、拍摄装置与目标平面之间的距离,根据目标图像和所述距离确定目标平面或所述目标平面上的待测对象的尺寸参数。通过这种实施方式,可以根据需求手动选取特征点以提高选取特征点的灵活性,还可以根据预设的特征点提取算法自动提取特征点,简化了用户操作,提高了选取特征点的效率,提升了用户体验,从而有助于提高测量的灵活性和有效性。The embodiment of the present invention can acquire multiple feature points of the region image corresponding to the target plane of the initial image according to the initial image obtained by the drone's shooting device shooting the target object, and control the shooting according to the positions of the multiple feature points on the initial image The shooting posture of the device so that the shooting direction of the shooting device is substantially perpendicular to the target plane of the target object, so that in response to the shooting direction of the shooting device being substantially perpendicular to the target plane, the target image, the shooting device and the target obtained by the shooting device shooting the target plane are acquired. The distance between the planes determines the target plane or the size parameter of the object to be measured on the target plane according to the target image and the distance. Through this implementation, feature points can be manually selected according to requirements to improve the flexibility of feature point selection, and feature points can be automatically extracted according to a preset feature point extraction algorithm, which simplifies user operations and improves the efficiency of feature point selection. Improve the user experience, thereby helping to improve the flexibility and effectiveness of measurement.
具体请参见图8,图8是本发明实施例提供的又一种控制方法的流程示意图,所述方法可以由控制设备执行,其中,控制设备的具体解释如前所述。本发明实施例与图6的区别在于,本发明实施例是对通过3个特征点的位置信息控制拍摄装置的拍摄姿态的示意性说明,具体地,本发明实施例的所述方法包括如下步骤。Please refer to FIG. 8 for details. FIG. 8 is a schematic flowchart of another control method provided by an embodiment of the present invention. The method may be executed by a control device, and the specific explanation of the control device is as described above. The difference between the embodiment of the present invention and FIG. 6 is that the embodiment of the present invention is a schematic description of controlling the shooting posture of the shooting device through the position information of three feature points. Specifically, the method of the embodiment of the present invention includes the following steps .
S801:获取无人机的拍摄装置拍摄目标对象得到的初始图像,其中,所述拍摄装置承载在所述无人机的云台上。S801: Acquire an initial image obtained by photographing a target object by a photographing device of a drone, wherein the photographing device is carried on a pan/tilt of the drone.
本发明实施例中,控制设备可以获取无人机的拍摄装置拍摄目标对象得到的初始图像,其中,所述拍摄装置承载在所述无人机的云台上。In the embodiment of the present invention, the control device may obtain the initial image obtained by shooting the target object by the camera of the drone, wherein the camera is carried on the pan/tilt of the drone.
S802:获取目标平面对应的区域图像中的3个特征点,其中,所述初始图像包括所述目标平面对应的区域图像,所述3个特征点是根据用户在控制终端的显示装置上的特征点选择操作确定的。S802: Acquire 3 feature points in the area image corresponding to the target plane, where the initial image includes the area image corresponding to the target plane, and the 3 feature points are based on the characteristics of the user on the display device of the control terminal Click the selection operation to confirm.
本发明实施例中,控制设备可以获取目标平面对应的区域图像中的3个特征点,其中,所述初始图像包括所述目标平面对应的区域图像,所述3个特征点是根据用户在控制终端的显示装置上的特征点选择操作确定的。在某些实施例中,所述特征点选择操作包括但不限于点击操作、按压操作等。In the embodiment of the present invention, the control device can acquire 3 feature points in the area image corresponding to the target plane, where the initial image includes the area image corresponding to the target plane, and the 3 feature points are based on the user's control The feature point selection operation on the display device of the terminal is determined. In some embodiments, the feature point selection operation includes, but is not limited to, a click operation, a press operation, and the like.
在一种实施方式,控制设备可以获取用户可以在显示初始图像的控制终端的显示装置上点击选择任意3个不在一条直线上的3个特征点。In one embodiment, the control device can obtain that the user can click and select any three feature points that are not on a straight line on the display device of the control terminal that displays the initial image.
S803:根据所述3个特征点在所述初始图像上的位置确定所述3个特征点对应的空间点的位置。S803: Determine the positions of the spatial points corresponding to the 3 characteristic points according to the positions of the 3 characteristic points on the initial image.
本发明实施例中,控制设备可以根据所述3个特征点在所述初始图像上的 位置确定所述3个特征点对应的空间点的位置。在某些实施例中,所述3个特征点在初始图像上的位置包括3个特征点分别在初始图像上的位置坐标,其中,所述位置坐标包括横坐标u和纵坐标v。In the embodiment of the present invention, the control device may determine the positions of the spatial points corresponding to the three characteristic points according to the positions of the three characteristic points on the initial image. In some embodiments, the positions of the three feature points on the initial image include position coordinates of the three feature points on the initial image respectively, wherein the position coordinates include an abscissa u and an ordinate v.
在一个实施例中,所述3个特征点对应的空间点的位置是根据3个特征点在初始图像的横坐标和纵坐标确定的三维坐标。以其中一个特征点x 1为例,假设x 1在初始图像上的位置坐标为(u,v,1),则确定的x 1的三维坐标(x w,y w,1)需满足如下公式(6.1): In an embodiment, the positions of the spatial points corresponding to the three feature points are three-dimensional coordinates determined according to the horizontal and vertical coordinates of the three feature points in the initial image. Wherein a feature point in an example x 1, x 1 assume the position coordinates on the original image is (u, v, 1), it is determined that the three-dimensional coordinates x 1 (x w, y w, 1 ) must satisfy the following formula (6.1):
Figure PCTCN2019130971-appb-000009
Figure PCTCN2019130971-appb-000009
其中,R为旋转矩阵,T为位移矩阵,矩阵K根据如下公式(6.2)得到:Among them, R is the rotation matrix, T is the displacement matrix, and the matrix K is obtained according to the following formula (6.2):
Figure PCTCN2019130971-appb-000010
Figure PCTCN2019130971-appb-000010
其中,α x=fm x,α y=fm y,f为焦距,m x和m y为x、y方向上,单位距离的像素数,γ为x、y轴之间的畸变参数,c x和c y为光心。 Among them, α x =fm x , α y =fm y , f is the focal length, m x and m y are the number of pixels per unit distance in the x and y directions, γ is the distortion parameter between the x and y axes, c x And c y are the optical centers.
S804:根据所述3个特征点对应的空间点的位置确定旋转矩阵。S804: Determine a rotation matrix according to the positions of the spatial points corresponding to the three feature points.
本发明实施例中,控制设备可以根据所述3个特征点对应的空间点的位置确定旋转矩阵。在某些实施例中,所述旋转矩阵将所述3个空间点投影到所述初始图像上的3个投影像素点满足:第一投影像素点的U轴坐标等于第二投影像素点的U轴坐标,第一投影像素点的V轴坐标等于第三投影像素点的V轴坐标。具体实施例如前所述,此处不再赘述。In the embodiment of the present invention, the control device may determine the rotation matrix according to the positions of the spatial points corresponding to the three characteristic points. In some embodiments, the rotation matrix projects the 3 spatial points onto the 3 projection pixels on the initial image, so that: the U axis coordinate of the first projection pixel is equal to the U of the second projection pixel. Axis coordinate, the V axis coordinate of the first projection pixel is equal to the V axis coordinate of the third projection pixel. The specific implementation is as described above and will not be repeated here.
S805:根据所述旋转矩阵控制所述拍摄装置的拍摄姿态,以使所述拍摄装置的拍摄方向基本垂直于所述目标对象的目标平面。S805: Control the shooting posture of the shooting device according to the rotation matrix, so that the shooting direction of the shooting device is substantially perpendicular to the target plane of the target object.
本发明实施例中,控制设备可以根据所述旋转矩阵控制所述拍摄装置的拍摄姿态,以使所述拍摄装置的拍摄方向基本垂直于所述目标对象的目标平面。In the embodiment of the present invention, the control device may control the shooting posture of the shooting device according to the rotation matrix, so that the shooting direction of the shooting device is substantially perpendicular to the target plane of the target object.
在一个实施例中,控制设备可以将旋转矩阵转化为角度,通过调整无人机的位置、云台的姿态、无人机的姿态中的一种或多种,使得调整后的拍摄装置的光轴方向与所述目标平面的法向量平行,即拍摄装置的拍摄方向基本垂直于所述目标平面。具体实施例如前所述。In one embodiment, the control device can convert the rotation matrix into an angle, and adjust one or more of the position of the drone, the attitude of the PTZ, and the attitude of the drone to make the light of the adjusted camera The axis direction is parallel to the normal vector of the target plane, that is, the shooting direction of the shooting device is substantially perpendicular to the target plane. The specific implementation is as described above.
可见,通过3个特征点对应的空间点的位置和拍摄装置的参数确定旋转矩 阵,从而有助于根据所述旋转矩阵控制拍摄装置的拍摄姿态。It can be seen that the rotation matrix is determined by the positions of the spatial points corresponding to the three feature points and the parameters of the shooting device, thereby helping to control the shooting posture of the shooting device according to the rotation matrix.
S806:响应于所述拍摄装置的拍摄方向基本垂直于所述目标平面,获取所述拍摄装置拍摄目标平面得到的目标图像、所述拍摄装置与所述目标平面之间的距离。S806: In response to the photographing direction of the photographing device being substantially perpendicular to the target plane, acquire a target image obtained by photographing the target plane by the photographing device and the distance between the photographing device and the target plane.
本发明实施例中,控制设备可以响应于所述拍摄装置的拍摄方向基本垂直于所述目标平面,获取所述拍摄装置拍摄目标平面得到的目标图像、所述拍摄装置与所述目标平面之间的距离。具体实施例如前所述,此处不再赘述。In the embodiment of the present invention, the control device may respond to the shooting direction of the shooting device being substantially perpendicular to the target plane, acquiring the target image obtained by the shooting device shooting the target plane, and the distance between the shooting device and the target plane. distance. The specific implementation is as described above and will not be repeated here.
S807:根据所述目标图像和所述距离确定目标平面或所述目标平面上的待测对象的尺寸参数。S807: Determine the target plane or the size parameter of the object to be measured on the target plane according to the target image and the distance.
本发明实施例中,控制设备可以根据所述目标图像和所述距离确定目标平面或所述目标平面上的待测对象的尺寸参数。具体实施例如前所述,此处不再赘述。In the embodiment of the present invention, the control device may determine the target plane or the size parameter of the object to be measured on the target plane according to the target image and the distance. The specific implementation is as described above and will not be repeated here.
本发明实施例可以根据无人机的拍摄装置拍摄目标对象得到的初始图像获取该初始图像的目标平面对应的区域图像的3个特征点,并根据3个特征点在初始图像上的位置确定3个特征点的空间点的位置,的拍摄姿态,以使拍摄装置的拍摄方向基本垂直于目标对象的目标平面,从而响应于拍摄装置的拍摄方向基本垂直于目标平面,获取拍摄装置拍摄目标平面得到的目标图像、拍摄装置与目标平面之间的距离,根据目标图像和所述距离确定目标平面或所述目标平面上的待测对象的尺寸参数。通过这种实施方式,可以根据需求手动选取特征点以提高选取特征点的灵活性,还可以根据预设的特征点提取算法自动提取特征点,简化了用户操作,提高了选取特征点的效率,提升了用户体验,从而有助于提高测量的灵活性和有效性。In the embodiment of the present invention, the three feature points of the area image corresponding to the target plane of the initial image can be obtained from the initial image obtained by shooting the target object by the camera of the drone, and the location of the three feature points on the initial image can be determined. The positions of the spatial points of the characteristic points and the shooting posture are such that the shooting direction of the shooting device is substantially perpendicular to the target plane of the target object, so that in response to the shooting direction of the shooting device being substantially perpendicular to the target plane, the shooting target plane of the shooting device is obtained. According to the target image and the distance between the shooting device and the target plane, the size parameter of the target plane or the object to be measured on the target plane is determined according to the target image and the distance. Through this implementation, feature points can be manually selected according to requirements to improve the flexibility of feature point selection, and feature points can be automatically extracted according to a preset feature point extraction algorithm, which simplifies user operations and improves the efficiency of feature point selection. Improve the user experience, thereby helping to improve the flexibility and effectiveness of measurement.
请参见图9,图9是本发明实施例提供的一种控制设备的结构示意图。具体的,所述控制设备包括:存储器901、处理器902。Please refer to FIG. 9, which is a schematic structural diagram of a control device according to an embodiment of the present invention. Specifically, the control device includes: a memory 901 and a processor 902.
在一种实施例中,所述控制设备还包括数据接口903,所述数据接口903,用于传递控制设备和其他设备之间的数据信息。In an embodiment, the control device further includes a data interface 903, and the data interface 903 is used to transfer data information between the control device and other devices.
所述存储器901可以包括易失性存储器(volatile memory);存储器901也可以包括非易失性存储器(non-volatile memory);存储器901还可以包括上述种类的存储器的组合。所述处理器902可以是中央处理器(central processing  unit,CPU)。所述处理器902还可以进一步包括硬件芯片。上述硬件芯片可以是专用集成电路(application-specific integrated circuit,ASIC),可编程逻辑器件(programmable logic device,PLD)或其组合。上述PLD可以是复杂可编程逻辑器件(complex programmable logic device,CPLD),现场可编程逻辑门阵列(field-programmable gate array,FPGA)或其任意组合。The memory 901 may include a volatile memory (volatile memory); the memory 901 may also include a non-volatile memory (non-volatile memory); the memory 901 may also include a combination of the foregoing types of memories. The processor 902 may be a central processing unit (CPU). The processor 902 may further include a hardware chip. The above-mentioned hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof. The above-mentioned PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), or any combination thereof.
所述存储器901用于存储程序指令,所述处理器902可以调用存储器901中存储的程序,用于执行如下步骤:The memory 901 is used to store program instructions, and the processor 902 can call a program stored in the memory 901 to perform the following steps:
获取无人机的拍摄装置拍摄目标对象得到的初始图像,其中,所述拍摄装置承载在所述无人机的云台上;Acquiring an initial image obtained by photographing a target object by a photographing device of a drone, wherein the photographing device is carried on a pan/tilt of the drone;
根据所述初始图像控制所述拍摄装置的拍摄姿态,以使所述拍摄装置的拍摄方向基本垂直于所述目标对象的目标平面;Controlling the shooting posture of the shooting device according to the initial image so that the shooting direction of the shooting device is substantially perpendicular to the target plane of the target object;
响应于所述拍摄装置的拍摄方向基本垂直于所述目标平面,获取所述拍摄装置拍摄目标平面得到的目标图像、所述拍摄装置与所述目标平面之间的距离;In response to the photographing direction of the photographing device being substantially perpendicular to the target plane, acquiring a target image obtained by photographing the target plane by the photographing device and the distance between the photographing device and the target plane;
根据所述目标图像和所述距离确定目标平面或所述目标平面上的待测对象的尺寸参数。The size parameter of the target plane or the object to be measured on the target plane is determined according to the target image and the distance.
进一步地,所述尺寸参数包括长度、宽度、面积中的一种或多种。Further, the size parameter includes one or more of length, width, and area.
进一步地,所述处理器902根据所述初始图像控制拍摄装置的拍摄姿态时,具体用于:Further, when the processor 902 controls the shooting posture of the shooting device according to the initial image, it is specifically configured to:
根据所述初始图像控制无人机的位置、无人机的姿态和所述云台的姿态中的一种或多种,以控制所述拍摄装置的拍摄姿态。Control one or more of the position of the drone, the attitude of the drone, and the attitude of the pan/tilt according to the initial image to control the shooting attitude of the shooting device.
进一步地,所述无人机包括承载在所述云台上的测距装置,其中,所述测距单元的测量方向与所述拍摄装置的光轴方向基本平行;所述处理器902获取所述拍摄装置与所述目标平面之间的距离时,具体用于:Further, the unmanned aerial vehicle includes a distance measuring device carried on the pan/tilt, wherein the measuring direction of the distance measuring unit is substantially parallel to the optical axis direction of the photographing device; the processor 902 obtains the When the distance between the photographing device and the target plane is described, it is specifically used for:
通过所述测距装置测量所述拍摄装置与所述目标平面之间的距离。The distance between the photographing device and the target plane is measured by the distance measuring device.
进一步地,所述测距装置为激光测距装置。Further, the distance measuring device is a laser distance measuring device.
进一步地,所述处理器902根据所述初始图像控制所述拍摄装置的拍摄姿态时,具体用于:Further, when the processor 902 controls the shooting posture of the shooting device according to the initial image, it is specifically configured to:
获取所述目标平面对应的区域图像中的多个特征点,其中,所述初始图像包括所述目标平面对应的区域图像;Acquiring a plurality of feature points in a region image corresponding to the target plane, wherein the initial image includes the region image corresponding to the target plane;
根据所述多个特征点在所述初始图像上的位置控制所述拍摄装置的拍摄姿态。The shooting posture of the shooting device is controlled according to the positions of the plurality of feature points on the initial image.
进一步地,所述处理器902获取所述目标平面对应的区域图像中的多个特征点时,具体用于:Further, when the processor 902 acquires multiple feature points in the region image corresponding to the target plane, it is specifically configured to:
从所述初始图像中确定所述目标平面对应的区域图像;Determining the area image corresponding to the target plane from the initial image;
运行特征点提取算法以从所述区域图像中提取多个特征点。Run a feature point extraction algorithm to extract multiple feature points from the region image.
进一步地,所述处理器902还用于:Further, the processor 902 is further configured to:
将所述初始图像发送给与所述无人机通信连接的控制终端,以使所述控制终端的显示装置显示所述初始图像;Sending the initial image to a control terminal communicatively connected with the drone, so that a display device of the control terminal displays the initial image;
获取所述控制终端发送的目标平面指示信息,其中,所述目标平面指示信息是控制终端检测用户在所述显示装置上的目标区域选择操作确定的。Acquire target plane indication information sent by the control terminal, where the target plane indication information is determined by the control terminal detecting a user's target area selection operation on the display device.
进一步地,所述处理器902获取所述目标平面对应的区域图像中的多个特征点时,具体用于:Further, when the processor 902 acquires multiple feature points in the region image corresponding to the target plane, it is specifically configured to:
将所述初始图像发送给与所述无人机通信连接的控制终端,以使所述控制终端的显示装置显示所述初始图像;Sending the initial image to a control terminal communicatively connected with the drone, so that a display device of the control terminal displays the initial image;
获取所述控制终端发送的特征点指示信息,其中,所述特征点指示信息是控制终端检测用户在所述显示装置上的特征点选择操作确定的。Acquire the characteristic point indication information sent by the control terminal, where the characteristic point indication information is determined by the control terminal detecting the characteristic point selection operation of the user on the display device.
进一步地,所述处理器902根据所述多个特征点在所述初始图像上的位置控制所述拍摄装置的拍摄姿态时,具体用于:Further, when the processor 902 controls the shooting posture of the shooting device according to the positions of the multiple feature points on the initial image, it is specifically configured to:
根据所述多个特征点在所述初始图像上的位置确定所述目标平面的法向量;Determining the normal vector of the target plane according to the positions of the multiple feature points on the initial image;
根据所述法向量控制所述拍摄装置的拍摄姿态。The shooting posture of the shooting device is controlled according to the normal vector.
进一步地,所述特征点的数量为3个;所述处理器902根据所述多个特征点在所述初始图像上的位置控制所述拍摄装置的拍摄姿态时,具体用于:Further, the number of the feature points is three; when the processor 902 controls the shooting posture of the shooting device according to the positions of the multiple feature points on the initial image, it is specifically configured to:
根据所述3个特征点在所述初始图像上的位置确定所述3个特征点对应的空间点的位置;Determining the positions of the spatial points corresponding to the 3 characteristic points according to the positions of the 3 characteristic points on the initial image;
根据所述3个特征点对应的空间点的位置确定旋转矩阵,其中,所述旋转矩阵将所述3个空间点投影到所述初始图像上的3个投影像素点满足:第一投影像素点的U轴坐标等于第二投影像素点的U轴坐标,第一投影像素点的V轴坐标等于第三投影像素点的V轴坐标;The rotation matrix is determined according to the positions of the spatial points corresponding to the three feature points, wherein the rotation matrix projects the three spatial points onto the initial image and the three projection pixels satisfy the following requirements: The U-axis coordinate of is equal to the U-axis coordinate of the second projection pixel, and the V-axis coordinate of the first projection pixel is equal to the V-axis coordinate of the third projection pixel;
根据所述旋转矩阵控制所述拍摄装置的拍摄姿态。The shooting posture of the shooting device is controlled according to the rotation matrix.
进一步地,所述处理器902根据所述3个特征点在所述初始图像上的位置确定所述3个特征点对应的空间点的位置时,具体用于:Further, when the processor 902 determines the positions of the spatial points corresponding to the 3 characteristic points according to the positions of the 3 characteristic points on the initial image, it is specifically configured to:
获取所述目标平面对应的区域图像中的3个特征点,其中,所述初始图像包括所述目标平面对应的区域图像,所述3个特征点是根据用户在控制终端的显示装置上的特征点选择操作确定的;Acquire 3 feature points in the area image corresponding to the target plane, where the initial image includes the area image corresponding to the target plane, and the 3 feature points are based on the characteristics of the user on the display device of the control terminal Click the selection operation to confirm;
根据所述3个特征点在所述初始图像上的位置确定所述3个特征点对应的空间点的位置。The location of the spatial point corresponding to the three feature points is determined according to the locations of the three feature points on the initial image.
进一步地,所述处理器902根据所述目标图像和所述距离确定目标平面或所述目标平面上的待测对象的尺寸参数时,具体用于:Further, when the processor 902 determines the size parameter of the target plane or the object to be measured on the target plane according to the target image and the distance, it is specifically configured to:
根据所述目标平面或所述待测对象在目标图像的像素数量和所述距离确定目标平面或所述目标平面上的待测对象的尺寸参数。The size parameter of the target plane or the object to be measured on the target plane is determined according to the number of pixels of the target plane or the object to be measured in the target image and the distance.
进一步地,所述处理器902根据所述目标图像和所述距离确定所述目标平面上的待测对象的尺寸参数时,具体用于:Further, when the processor 902 determines the size parameter of the object to be measured on the target plane according to the target image and the distance, it is specifically configured to:
对所述目标图像进行识别以确定所述待测对象;或者,Recognizing the target image to determine the object to be tested; or,
接收所述无人机的控制终端发送的待测对象指示信息,根据所述待测对象指示信息确定待测对象,其中,所述待测对象指示信息是控制终端通过检测用户对显示目标图像的控制终端的显示装置的待测对象选择操作;Receive the object-to-be-measured indication information sent by the control terminal of the drone, and determine the object-to-be-measured according to the object-to-be-measured indication information, where the object-to-be-measured indication information is that the control terminal detects the user’s Control the selection operation of the object to be tested on the display device of the terminal;
根据所述目标图像和所述距离确定所述确定的待测对象的尺寸参数。The size parameter of the determined object to be measured is determined according to the target image and the distance.
进一步地,所述处理器902根据所述目标图像和所述距离确定所述确定的待测对象的尺寸参数时,具体用于:Further, when the processor 902 determines the determined size parameter of the object to be measured according to the target image and the distance, it is specifically configured to:
获取所述待测对象在所述目标图像中的外接多边形区域;Acquiring the circumscribed polygonal area of the object to be measured in the target image;
根据所述外接多边形区域和所述距离确定所述待测对象的尺寸参数。The size parameter of the object to be measured is determined according to the circumscribed polygonal area and the distance.
进一步地,所述处理器902还用于:Further, the processor 902 is further configured to:
将所述目标图像发送给与所述无人机通信连接的控制终端以使所述控制终端的显示装置显示所述目标图像;Sending the target image to a control terminal communicatively connected with the drone, so that the display device of the control terminal displays the target image;
获取所述控制终端发送的待测对象指示信息,其中,所述待测对象指示信息是控制终端检测用户在所述显示装置上的待测对象选择操作确定的。Obtain the object to be measured indication information sent by the control terminal, where the object to be measured indication information is determined by the control terminal detecting the user's selection operation of the object to be measured on the display device.
进一步地,所述处理器902还用于:Further, the processor 902 is further configured to:
将所述目标图像处于预设的待测对象识别模型中以获取所述模型输出的 待测对象指示信息;Placing the target image in a preset recognition model of the object to be measured to obtain the object indication information output by the model;
根据所述待测对象指示信息确定所述目标平面上的待测对象。The object to be measured on the target plane is determined according to the indication information of the object to be measured.
本发明实施例可以根据无人机的拍摄装置拍摄目标对象得到的初始图像控制拍摄装置的拍摄姿态,以使拍摄装置的拍摄方向基本垂直于目标对象的目标平面,其中,拍摄装置承载在无人机的云台上,并响应于拍摄装置的拍摄方向基本垂直于目标平面,获取拍摄装置拍摄目标平面得到的目标图像、拍摄装置与目标平面之间的距离,从而根据目标图像和所述距离确定目标平面或所述目标平面上的待测对象的尺寸参数。通过这种实施方式,可以实现无需专业的仪器设备通过控制拍摄装置的拍摄姿态对待测物体的尺寸进行测量,简化了用户操作,提高了测量的灵活性和有效性,提升了用户体验。The embodiment of the present invention can control the shooting posture of the shooting device according to the initial image obtained by the shooting device of the drone to shoot the target object, so that the shooting direction of the shooting device is substantially perpendicular to the target plane of the target object. On the camera’s PTZ, and in response to the shooting direction of the shooting device being substantially perpendicular to the target plane, the target image obtained by the shooting device shooting the target plane and the distance between the shooting device and the target plane are acquired, so as to determine the distance between the shooting device and the target plane. The target plane or the size parameter of the object to be measured on the target plane. Through this embodiment, it is possible to measure the size of the object to be measured by controlling the shooting posture of the shooting device without the need for professional equipment, which simplifies user operations, improves the flexibility and effectiveness of measurement, and improves user experience.
本发明实施例还提供了一种无人机,包括:机身;配置在机身上的动力系统,用于为垂直起降无人机提供移动的动力;处理器,用于获取无人机的拍摄装置拍摄目标对象得到的初始图像,其中,所述拍摄装置承载在所述无人机的云台上;根据所述初始图像控制所述拍摄装置的拍摄姿态,以使所述拍摄装置的拍摄方向基本垂直于所述目标对象的目标平面;响应于所述拍摄装置的拍摄方向基本垂直于所述目标平面,获取所述拍摄装置拍摄目标平面得到的目标图像、所述拍摄装置与所述目标平面之间的距离;根据所述目标图像和所述距离确定目标平面或所述目标平面上的待测对象的尺寸参数。The embodiment of the present invention also provides an unmanned aerial vehicle, including: a fuselage; a power system configured on the fuselage to provide moving power for the vertical take-off and landing unmanned aerial vehicle; and a processor for acquiring the unmanned aerial vehicle The initial image obtained by the photographing device photographing the target object, wherein the photographing device is carried on the pan/tilt of the drone; the photographing posture of the photographing device is controlled according to the initial image, so that the photographing device is The shooting direction is substantially perpendicular to the target plane of the target object; in response to the shooting direction of the shooting device being substantially perpendicular to the target plane, the target image obtained by the shooting device shooting the target plane, the shooting device and the The distance between the target planes; the size parameter of the target plane or the object to be measured on the target plane is determined according to the target image and the distance.
进一步地,所述尺寸参数包括长度、宽度、面积中的一种或多种。Further, the size parameter includes one or more of length, width, and area.
进一步地,所述处理器根据所述初始图像控制拍摄装置的拍摄姿态时,具体用于:Further, when the processor controls the shooting posture of the shooting device according to the initial image, it is specifically configured to:
根据所述初始图像控制无人机的位置、无人机的姿态和所述云台的姿态中的一种或多种,以控制所述拍摄装置的拍摄姿态。Control one or more of the position of the drone, the attitude of the drone, and the attitude of the pan/tilt according to the initial image to control the shooting attitude of the shooting device.
进一步地,所述无人机包括承载在所述云台上的测距装置,其中,所述测距单元的测量方向与所述拍摄装置的光轴方向基本平行;所述处理器获取所述拍摄装置与所述目标平面之间的距离时,具体用于:Further, the unmanned aerial vehicle includes a distance measuring device carried on the pan/tilt, wherein the measuring direction of the distance measuring unit is substantially parallel to the optical axis direction of the photographing device; the processor obtains the When the distance between the photographing device and the target plane is specifically used for:
通过所述测距装置测量所述拍摄装置与所述目标平面之间的距离。The distance between the photographing device and the target plane is measured by the distance measuring device.
进一步地,所述测距装置为激光测距装置。Further, the distance measuring device is a laser distance measuring device.
进一步地,所述处理器根据所述初始图像控制所述拍摄装置的拍摄姿态 时,具体用于:Further, when the processor controls the shooting posture of the shooting device according to the initial image, it is specifically configured to:
获取所述目标平面对应的区域图像中的多个特征点,其中,所述初始图像包括所述目标平面对应的区域图像;Acquiring a plurality of feature points in a region image corresponding to the target plane, wherein the initial image includes the region image corresponding to the target plane;
根据所述多个特征点在所述初始图像上的位置控制所述拍摄装置的拍摄姿态。The shooting posture of the shooting device is controlled according to the positions of the plurality of feature points on the initial image.
进一步地,所述处理器获取所述目标平面对应的区域图像中的多个特征点时,具体用于:Further, when the processor acquires multiple feature points in the region image corresponding to the target plane, it is specifically configured to:
从所述初始图像中确定所述目标平面对应的区域图像;Determining the area image corresponding to the target plane from the initial image;
运行特征点提取算法以从所述区域图像中提取多个特征点。Run a feature point extraction algorithm to extract multiple feature points from the region image.
进一步地,所述处理器还用于:Further, the processor is also used for:
将所述初始图像发送给与所述无人机通信连接的控制终端,以使所述控制终端的显示装置显示所述初始图像;Sending the initial image to a control terminal communicatively connected with the drone, so that a display device of the control terminal displays the initial image;
获取所述控制终端发送的目标平面指示信息,其中,所述目标平面指示信息是控制终端检测用户在所述显示装置上的目标区域选择操作确定的。Acquire target plane indication information sent by the control terminal, where the target plane indication information is determined by the control terminal detecting a user's target area selection operation on the display device.
进一步地,所述处理器获取所述目标平面对应的区域图像中的多个特征点时,具体用于:Further, when the processor acquires multiple feature points in the region image corresponding to the target plane, it is specifically configured to:
将所述初始图像发送给与所述无人机通信连接的控制终端,以使所述控制终端的显示装置显示所述初始图像;Sending the initial image to a control terminal communicatively connected with the drone, so that a display device of the control terminal displays the initial image;
获取所述控制终端发送的特征点指示信息,其中,所述特征点指示信息是控制终端检测用户在所述显示装置上的特征点选择操作确定的。Acquire the characteristic point indication information sent by the control terminal, where the characteristic point indication information is determined by the control terminal detecting the characteristic point selection operation of the user on the display device.
进一步地,所述处理器根据所述多个特征点在所述初始图像上的位置控制所述拍摄装置的拍摄姿态时,具体用于:Further, when the processor controls the shooting posture of the shooting device according to the positions of the multiple feature points on the initial image, it is specifically configured to:
根据所述多个特征点在所述初始图像上的位置确定所述目标平面的法向量;Determining the normal vector of the target plane according to the positions of the multiple feature points on the initial image;
根据所述法向量控制所述拍摄装置的拍摄姿态。The shooting posture of the shooting device is controlled according to the normal vector.
进一步地,所述特征点的数量为3个;所述处理器根据所述多个特征点在所述初始图像上的位置控制所述拍摄装置的拍摄姿态时,具体用于:Further, the number of the feature points is three; when the processor controls the shooting posture of the shooting device according to the positions of the multiple feature points on the initial image, it is specifically configured to:
根据所述3个特征点在所述初始图像上的位置确定所述3个特征点对应的空间点的位置;Determining the positions of the spatial points corresponding to the 3 characteristic points according to the positions of the 3 characteristic points on the initial image;
根据所述3个特征点对应的空间点的位置确定旋转矩阵,其中,所述旋转 矩阵将所述3个空间点投影到所述初始图像上的3个投影像素点满足:第一投影像素点的U轴坐标等于第二投影像素点的U轴坐标,第一投影像素点的V轴坐标等于第三投影像素点的V轴坐标;The rotation matrix is determined according to the positions of the spatial points corresponding to the three feature points, wherein the rotation matrix projects the three spatial points onto the initial image and the three projection pixels satisfy the following requirements: The U-axis coordinate of is equal to the U-axis coordinate of the second projection pixel, and the V-axis coordinate of the first projection pixel is equal to the V-axis coordinate of the third projection pixel;
根据所述旋转矩阵控制所述拍摄装置的拍摄姿态。The shooting posture of the shooting device is controlled according to the rotation matrix.
进一步地,所述处理器根据所述3个特征点在所述初始图像上的位置确定所述3个特征点对应的空间点的位置时,具体用于:Further, when the processor determines the positions of the spatial points corresponding to the 3 characteristic points according to the positions of the 3 characteristic points on the initial image, it is specifically configured to:
获取所述目标平面对应的区域图像中的3个特征点,其中,所述初始图像包括所述目标平面对应的区域图像,所述3个特征点是根据用户在控制终端的显示装置上的特征点选择操作确定的;Acquire 3 feature points in the area image corresponding to the target plane, where the initial image includes the area image corresponding to the target plane, and the 3 feature points are based on the characteristics of the user on the display device of the control terminal Click the selection operation to confirm;
根据所述3个特征点在所述初始图像上的位置确定所述3个特征点对应的空间点的位置。The location of the spatial point corresponding to the three feature points is determined according to the locations of the three feature points on the initial image.
进一步地,所述处理器根据所述目标图像和所述距离确定目标平面或所述目标平面上的待测对象的尺寸参数时,具体用于:Further, when the processor determines the size parameter of the target plane or the object to be measured on the target plane according to the target image and the distance, it is specifically configured to:
根据所述目标平面或所述待测对象在目标图像的像素数量和所述距离确定目标平面或所述目标平面上的待测对象的尺寸参数。The size parameter of the target plane or the object to be measured on the target plane is determined according to the number of pixels of the target plane or the object to be measured in the target image and the distance.
进一步地,所述处理器根据所述目标图像和所述距离确定所述目标平面上的待测对象的尺寸参数时,具体用于:Further, when the processor determines the size parameter of the object to be measured on the target plane according to the target image and the distance, it is specifically configured to:
对所述目标图像进行识别以确定所述待测对象;或者,Recognizing the target image to determine the object to be tested; or,
接收所述无人机的控制终端发送的待测对象指示信息,根据所述待测对象指示信息确定待测对象,其中,所述待测对象指示信息是控制终端通过检测用户对显示目标图像的控制终端的显示装置的待测对象选择操作;Receive the object-to-be-measured indication information sent by the control terminal of the drone, and determine the object-to-be-measured according to the object-to-be-measured indication information, where the object-to-be-measured indication information is that the control terminal detects the user’s Control the selection operation of the object to be tested on the display device of the terminal;
根据所述目标图像和所述距离确定所述确定的待测对象的尺寸参数。The size parameter of the determined object to be measured is determined according to the target image and the distance.
进一步地,所述处理器根据所述目标图像和所述距离确定所述确定的待测对象的尺寸参数时,具体用于:Further, when the processor determines the determined size parameter of the object to be measured according to the target image and the distance, it is specifically configured to:
获取所述待测对象在所述目标图像中的外接多边形区域;Acquiring the circumscribed polygonal area of the object to be measured in the target image;
根据所述外接多边形区域和所述距离确定所述待测对象的尺寸参数。The size parameter of the object to be measured is determined according to the circumscribed polygonal area and the distance.
进一步地,所述处理器还用于:Further, the processor is also used for:
将所述目标图像发送给与所述无人机通信连接的控制终端以使所述控制终端的显示装置显示所述目标图像;Sending the target image to a control terminal communicatively connected with the drone, so that the display device of the control terminal displays the target image;
获取所述控制终端发送的待测对象指示信息,其中,所述待测对象指示信 息是控制终端检测用户在所述显示装置上的待测对象选择操作确定的。Obtain the object to be measured indication information sent by the control terminal, where the object to be measured indication information is determined by the control terminal detecting the user's selection operation of the object to be measured on the display device.
进一步地,所述处理器还用于:Further, the processor is also used for:
将所述目标图像处于预设的待测对象识别模型中以获取所述模型输出的待测对象指示信息;Placing the target image in a preset recognition model of the object to be measured to obtain the object indication information output by the model;
根据所述待测对象指示信息确定所述目标平面上的待测对象。The object to be measured on the target plane is determined according to the indication information of the object to be measured.
本发明实施例可以根据无人机的拍摄装置拍摄目标对象得到的初始图像控制拍摄装置的拍摄姿态,以使拍摄装置的拍摄方向基本垂直于目标对象的目标平面,其中,拍摄装置承载在无人机的云台上,并响应于拍摄装置的拍摄方向基本垂直于目标平面,获取拍摄装置拍摄目标平面得到的目标图像、拍摄装置与目标平面之间的距离,从而根据目标图像和所述距离确定目标平面或所述目标平面上的待测对象的尺寸参数。通过这种实施方式,可以实现无需专业的仪器设备通过控制拍摄装置的拍摄姿态对待测物体的尺寸进行测量,简化了用户操作,提高了测量的灵活性和有效性,提升了用户体验。The embodiment of the present invention can control the shooting posture of the shooting device according to the initial image obtained by the shooting device of the drone to shoot the target object, so that the shooting direction of the shooting device is substantially perpendicular to the target plane of the target object. On the camera’s PTZ, and in response to the shooting direction of the shooting device being substantially perpendicular to the target plane, the target image obtained by the shooting device shooting the target plane and the distance between the shooting device and the target plane are acquired, so as to determine the distance between the shooting device and the target plane. The target plane or the size parameter of the object to be measured on the target plane. Through this embodiment, it is possible to measure the size of the object to be measured by controlling the shooting posture of the shooting device without the need for professional equipment, which simplifies user operations, improves the flexibility and effectiveness of measurement, and improves user experience.
本发明的实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现本发明图2、图6或图8所对应实施例中描述的方法,也可实现图9所述本发明所对应实施例的设备,在此不再赘述。The embodiment of the present invention also provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, the computer program is executed by a processor to achieve the present invention corresponding to Figure 2, Figure 6 or Figure 8 The method described in the embodiment can also implement the device corresponding to the embodiment of the present invention shown in FIG. 9, which is not repeated here.
所述计算机可读存储介质可以是前述任一实施例所述的设备的内部存储单元,例如设备的硬盘或内存。所述计算机可读存储介质也可以是所述设备的外部存储设备,例如所述设备上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,所述计算机可读存储介质还可以既包括所述设备的内部存储单元也包括外部存储设备。所述计算机可读存储介质用于存储所述计算机程序以及所述终端所需的其他程序和数据。所述计算机可读存储介质还可以用于暂时地存储已经输出或者将要输出的数据。The computer-readable storage medium may be an internal storage unit of the device described in any of the foregoing embodiments, such as a hard disk or memory of the device. The computer-readable storage medium may also be an external storage device of the device, such as a plug-in hard disk equipped on the device, a Smart Media Card (SMC), or a Secure Digital (SD) card. , Flash Card, etc. Further, the computer-readable storage medium may also include both an internal storage unit of the device and an external storage device. The computer-readable storage medium is used to store the computer program and other programs and data required by the terminal. The computer-readable storage medium can also be used to temporarily store data that has been output or will be output.
以上所揭露的仅为本发明部分实施例而已,当然不能以此来限定本发明之权利范围,因此依本发明权利要求所作的等同变化,仍属本发明所涵盖的范围。The above-disclosed are only some of the embodiments of the present invention, which of course cannot be used to limit the scope of the present invention. Therefore, equivalent changes made according to the claims of the present invention still fall within the scope of the present invention.

Claims (52)

  1. 一种控制方法,其特征在于,包括:A control method, characterized in that it comprises:
    获取无人机的拍摄装置拍摄目标对象得到的初始图像,其中,所述拍摄装置承载在所述无人机的云台上;Acquiring an initial image obtained by photographing a target object by a photographing device of a drone, wherein the photographing device is carried on a pan/tilt of the drone;
    根据所述初始图像控制所述拍摄装置的拍摄姿态,以使所述拍摄装置的拍摄方向基本垂直于所述目标对象的目标平面;Controlling the shooting posture of the shooting device according to the initial image so that the shooting direction of the shooting device is substantially perpendicular to the target plane of the target object;
    响应于所述拍摄装置的拍摄方向基本垂直于所述目标平面,获取所述拍摄装置拍摄目标平面得到的目标图像、所述拍摄装置与所述目标平面之间的距离;In response to the photographing direction of the photographing device being substantially perpendicular to the target plane, acquiring a target image obtained by photographing the target plane by the photographing device and the distance between the photographing device and the target plane;
    根据所述目标图像和所述距离确定目标平面或所述目标平面上的待测对象的尺寸参数。The size parameter of the target plane or the object to be measured on the target plane is determined according to the target image and the distance.
  2. 根据权利要求1所述的方法,所述尺寸参数包括长度、宽度、面积中的一种或多种。The method according to claim 1, wherein the size parameter includes one or more of length, width, and area.
  3. 根据权利要求1或2所述的方法,其特征在于,所述根据所述初始图像控制拍摄装置的拍摄姿态,包括:The method according to claim 1 or 2, wherein the controlling the shooting posture of the shooting device according to the initial image comprises:
    根据所述初始图像控制无人机的位置、无人机的姿态和所述云台的姿态中的一种或多种,以控制所述拍摄装置的拍摄姿态。Control one or more of the position of the drone, the attitude of the drone, and the attitude of the pan/tilt according to the initial image to control the shooting attitude of the shooting device.
  4. 根据权利要求1-3任一项所述的方法,其特征在于,所述无人机包括承载在所述云台上的测距装置,其中,所述测距单元的测量方向与所述拍摄装置的光轴方向基本平行;The method according to any one of claims 1 to 3, wherein the drone comprises a distance measuring device carried on the pan/tilt, wherein the measuring direction of the distance measuring unit is the same as that of the shooting The direction of the optical axis of the device is basically parallel;
    所述获取所述拍摄装置与所述目标平面之间的距离,包括:The acquiring the distance between the photographing device and the target plane includes:
    通过所述测距装置测量所述拍摄装置与所述目标平面之间的距离。The distance between the photographing device and the target plane is measured by the distance measuring device.
  5. 根据权利要求4所述的方法,其特征在于,所述测距装置为激光测距装置。The method according to claim 4, wherein the distance measuring device is a laser distance measuring device.
  6. 根据权利要求1-5任一项所述的方法,其特征在于,所述根据所述初始图像控制所述拍摄装置的拍摄姿态,包括:The method according to any one of claims 1-5, wherein the controlling the shooting posture of the shooting device according to the initial image comprises:
    获取所述目标平面对应的区域图像中的多个特征点,其中,所述初始图像包括所述目标平面对应的区域图像;Acquiring a plurality of feature points in a region image corresponding to the target plane, wherein the initial image includes the region image corresponding to the target plane;
    根据所述多个特征点在所述初始图像上的位置控制所述拍摄装置的拍摄姿态。The shooting posture of the shooting device is controlled according to the positions of the plurality of feature points on the initial image.
  7. 根据权利要求6所述的方法,其特征在于,所述获取所述目标平面对应的区域图像中的多个特征点,包括:The method according to claim 6, wherein the acquiring multiple feature points in the region image corresponding to the target plane comprises:
    从所述初始图像中确定所述目标平面对应的区域图像;Determining the area image corresponding to the target plane from the initial image;
    运行特征点提取算法以从所述区域图像中提取多个特征点。Run a feature point extraction algorithm to extract multiple feature points from the region image.
  8. 根据权利要求7所述的方法,其特征在于,所述方法还包括:The method according to claim 7, wherein the method further comprises:
    将所述初始图像发送给与所述无人机通信连接的控制终端,以使所述控制终端的显示装置显示所述初始图像;Sending the initial image to a control terminal communicatively connected with the drone, so that a display device of the control terminal displays the initial image;
    获取所述控制终端发送的目标平面指示信息,其中,所述目标平面指示信息是控制终端检测用户在所述显示装置上的目标区域选择操作确定的。Acquire target plane indication information sent by the control terminal, where the target plane indication information is determined by the control terminal detecting a user's target area selection operation on the display device.
  9. 根据权利要求6所述的方法,其特征在于,所述获取所述目标平面对应的区域图像中的多个特征点,包括:The method according to claim 6, wherein the acquiring multiple feature points in the region image corresponding to the target plane comprises:
    将所述初始图像发送给与所述无人机通信连接的控制终端,以使所述控制终端的显示装置显示所述初始图像;Sending the initial image to a control terminal communicatively connected with the drone, so that a display device of the control terminal displays the initial image;
    获取所述控制终端发送的特征点指示信息,其中,所述特征点指示信息是控制终端检测用户在所述显示装置上的特征点选择操作确定的。Acquire the characteristic point indication information sent by the control terminal, where the characteristic point indication information is determined by the control terminal detecting the characteristic point selection operation of the user on the display device.
  10. 根据权利要求6-9任一项所述的方法,其特征在于,所述根据所述多个特征点在所述初始图像上的位置控制所述拍摄装置的拍摄姿态,包括:The method according to any one of claims 6-9, wherein the controlling the shooting posture of the shooting device according to the positions of the multiple feature points on the initial image comprises:
    根据所述多个特征点在所述初始图像上的位置确定所述目标平面的法向量;Determining the normal vector of the target plane according to the positions of the multiple feature points on the initial image;
    根据所述法向量控制所述拍摄装置的拍摄姿态。The shooting posture of the shooting device is controlled according to the normal vector.
  11. 根据权利要求6-9任一项所述的方法,其特征在于,所述特征点的数量为3个;所述根据所述多个特征点在所述初始图像上的位置控制所述拍摄装置的拍摄姿态,包括:The method according to any one of claims 6-9, wherein the number of the feature points is 3; the shooting device is controlled according to the positions of the multiple feature points on the initial image The shooting attitude, including:
    根据所述3个特征点在所述初始图像上的位置确定所述3个特征点对应的空间点的位置;Determining the positions of the spatial points corresponding to the 3 characteristic points according to the positions of the 3 characteristic points on the initial image;
    根据所述3个特征点对应的空间点的位置确定旋转矩阵,其中,所述旋转矩阵将所述3个空间点投影到所述初始图像上的3个投影像素点满足:第一投影像素点的U轴坐标等于第二投影像素点的U轴坐标,第一投影像素点的V轴坐标等于第三投影像素点的V轴坐标;The rotation matrix is determined according to the positions of the spatial points corresponding to the three feature points, wherein the rotation matrix projects the three spatial points onto the initial image and the three projection pixels satisfy the following requirements: The U-axis coordinate of is equal to the U-axis coordinate of the second projection pixel, and the V-axis coordinate of the first projection pixel is equal to the V-axis coordinate of the third projection pixel;
    根据所述旋转矩阵控制所述拍摄装置的拍摄姿态。The shooting posture of the shooting device is controlled according to the rotation matrix.
  12. 根据权利要求11所述的方法,其特征在于,所述根据所述3个特征点在所述初始图像上的位置确定所述3个特征点对应的空间点的位置,包括:The method according to claim 11, wherein the determining the positions of the spatial points corresponding to the three characteristic points according to the positions of the three characteristic points on the initial image comprises:
    获取所述目标平面对应的区域图像中的3个特征点,其中,所述初始图像包括所述目标平面对应的区域图像,所述3个特征点是根据用户在控制终端的显示装置上的特征点选择操作确定的;Acquire 3 feature points in the area image corresponding to the target plane, where the initial image includes the area image corresponding to the target plane, and the 3 feature points are based on the characteristics of the user on the display device of the control terminal Click the selection operation to confirm;
    根据所述3个特征点在所述初始图像上的位置确定所述3个特征点对应的空间点的位置。The location of the spatial point corresponding to the three feature points is determined according to the locations of the three feature points on the initial image.
  13. 根据权利要求1-12任一项所述的方法,其特征在于,所述根据所述目标图像和所述距离确定目标平面或所述目标平面上的待测对象的尺寸参数,包括:The method according to any one of claims 1-12, wherein the determining the target plane or the size parameter of the object to be measured on the target plane according to the target image and the distance comprises:
    根据所述目标平面或所述待测对象在目标图像的像素数量和所述距离确定目标平面或所述目标平面上的待测对象的尺寸参数。The size parameter of the target plane or the object to be measured on the target plane is determined according to the number of pixels of the target plane or the object to be measured in the target image and the distance.
  14. 根据权利要求1-13任一项所述的方法,其特征在于,所述根据所述目标图像和所述距离确定所述目标平面上的待测对象的尺寸参数,包括:The method according to any one of claims 1-13, wherein the determining the size parameter of the object to be measured on the target plane according to the target image and the distance comprises:
    对所述目标图像进行识别以确定所述待测对象;或者,Recognizing the target image to determine the object to be tested; or,
    接收所述无人机的控制终端发送的待测对象指示信息,根据所述待测对象 指示信息确定待测对象,其中,所述待测对象指示信息是控制终端通过检测用户对显示目标图像的控制终端的显示装置的待测对象选择操作;Receive the object-to-be-measured indication information sent by the control terminal of the drone, and determine the object-to-be-measured according to the object-to-be-measured indication information, where the object-to-be-measured indication information is the control terminal by detecting the user’s Control the selection operation of the object to be tested on the display device of the terminal;
    根据所述目标图像和所述距离确定所述确定的待测对象的尺寸参数。The size parameter of the determined object to be measured is determined according to the target image and the distance.
  15. 根据权利要求14所述的方法,其特征在于,所述根据所述目标图像和所述距离确定所述确定的待测对象的尺寸参数,包括:The method according to claim 14, wherein the determining the determined size parameter of the object to be measured according to the target image and the distance comprises:
    获取所述待测对象在所述目标图像中的外接多边形区域;Acquiring the circumscribed polygonal area of the object to be measured in the target image;
    根据所述外接多边形区域和所述距离确定所述待测对象的尺寸参数。The size parameter of the object to be measured is determined according to the circumscribed polygonal area and the distance.
  16. 根据权利要求1-12任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-12, wherein the method further comprises:
    将所述目标图像发送给与所述无人机通信连接的控制终端以使所述控制终端的显示装置显示所述目标图像;Sending the target image to a control terminal communicatively connected with the drone, so that the display device of the control terminal displays the target image;
    获取所述控制终端发送的待测对象指示信息,其中,所述待测对象指示信息是控制终端检测用户在所述显示装置上的待测对象选择操作确定的。Obtain the object to be measured indication information sent by the control terminal, where the object to be measured indication information is determined by the control terminal detecting the user's selection operation of the object to be measured on the display device.
  17. 根据权利要求1-13任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-13, wherein the method further comprises:
    将所述目标图像处于预设的待测对象识别模型中以获取所述模型输出的待测对象指示信息;Placing the target image in a preset recognition model of the object to be measured to obtain the object indication information output by the model;
    根据所述待测对象指示信息确定所述目标平面上的待测对象。The object to be measured on the target plane is determined according to the indication information of the object to be measured.
  18. 一种控制设备,其特征在于,包括存储器和处理器;A control device, characterized in that it comprises a memory and a processor;
    所述存储器,用于存储程序;The memory is used to store programs;
    所述处理器,用于调用所述程序,当所述程序被执行时,用于执行以下操作:The processor is used to call the program, and when the program is executed, it is used to perform the following operations:
    获取无人机的拍摄装置拍摄目标对象得到的初始图像,其中,所述拍摄装置承载在所述无人机的云台上;Acquiring an initial image obtained by photographing a target object by a photographing device of a drone, wherein the photographing device is carried on a pan/tilt of the drone;
    根据所述初始图像控制所述拍摄装置的拍摄姿态,以使所述拍摄装置的拍摄方向基本垂直于所述目标对象的目标平面;Controlling the shooting posture of the shooting device according to the initial image so that the shooting direction of the shooting device is substantially perpendicular to the target plane of the target object;
    响应于所述拍摄装置的拍摄方向基本垂直于所述目标平面,获取所述拍摄装置拍摄目标平面得到的目标图像、所述拍摄装置与所述目标平面之间的距离;In response to the photographing direction of the photographing device being substantially perpendicular to the target plane, acquiring a target image obtained by photographing the target plane by the photographing device and the distance between the photographing device and the target plane;
    根据所述目标图像和所述距离确定目标平面或所述目标平面上的待测对象的尺寸参数。The size parameter of the target plane or the object to be measured on the target plane is determined according to the target image and the distance.
  19. 根据权利要求18所述的设备,所述尺寸参数包括长度、宽度、面积中的一种或多种。The device according to claim 18, wherein the size parameter includes one or more of length, width, and area.
  20. 根据权利要求18或19所述的设备,其特征在于,所述处理器根据所述初始图像控制拍摄装置的拍摄姿态时,具体用于:The device according to claim 18 or 19, wherein when the processor controls the shooting posture of the shooting device according to the initial image, it is specifically configured to:
    根据所述初始图像控制无人机的位置、无人机的姿态和所述云台的姿态中的一种或多种,以控制所述拍摄装置的拍摄姿态。Control one or more of the position of the drone, the attitude of the drone, and the attitude of the pan/tilt according to the initial image to control the shooting attitude of the shooting device.
  21. 根据权利要求18-20任一项所述的设备,其特征在于,所述无人机包括承载在所述云台上的测距装置,其中,所述测距单元的测量方向与所述拍摄装置的光轴方向基本平行;The device according to any one of claims 18-20, wherein the drone comprises a distance measuring device carried on the pan/tilt, wherein the measuring direction of the distance measuring unit is the same as that of the shooting The direction of the optical axis of the device is basically parallel;
    所述处理器获取所述拍摄装置与所述目标平面之间的距离时,具体用于:When the processor obtains the distance between the photographing device and the target plane, it is specifically configured to:
    通过所述测距装置测量所述拍摄装置与所述目标平面之间的距离。The distance between the photographing device and the target plane is measured by the distance measuring device.
  22. 根据权利要求21所述的设备,其特征在于,所述测距装置为激光测距装置。The device according to claim 21, wherein the distance measuring device is a laser distance measuring device.
  23. 根据权利要求18-22任一项所述的设备,其特征在于,所述处理器根据所述初始图像控制所述拍摄装置的拍摄姿态时,具体用于:The device according to any one of claims 18-22, wherein when the processor controls the shooting attitude of the shooting device according to the initial image, it is specifically configured to:
    获取所述目标平面对应的区域图像中的多个特征点,其中,所述初始图像包括所述目标平面对应的区域图像;Acquiring a plurality of feature points in a region image corresponding to the target plane, wherein the initial image includes the region image corresponding to the target plane;
    根据所述多个特征点在所述初始图像上的位置控制所述拍摄装置的拍摄姿态。The shooting posture of the shooting device is controlled according to the positions of the plurality of feature points on the initial image.
  24. 根据权利要求23所述的设备,其特征在于,所述处理器获取所述目标平面对应的区域图像中的多个特征点时,具体用于:The device according to claim 23, wherein when the processor acquires multiple feature points in the region image corresponding to the target plane, it is specifically configured to:
    从所述初始图像中确定所述目标平面对应的区域图像;Determining the area image corresponding to the target plane from the initial image;
    运行特征点提取算法以从所述区域图像中提取多个特征点。Run a feature point extraction algorithm to extract multiple feature points from the region image.
  25. 根据权利要求24所述的设备,其特征在于,所述处理器还用于:The device according to claim 24, wherein the processor is further configured to:
    将所述初始图像发送给与所述无人机通信连接的控制终端,以使所述控制终端的显示装置显示所述初始图像;Sending the initial image to a control terminal communicatively connected with the drone, so that a display device of the control terminal displays the initial image;
    获取所述控制终端发送的目标平面指示信息,其中,所述目标平面指示信息是控制终端检测用户在所述显示装置上的目标区域选择操作确定的。Acquire target plane indication information sent by the control terminal, where the target plane indication information is determined by the control terminal detecting a user's target area selection operation on the display device.
  26. 根据权利要求23所述的设备,其特征在于,所述处理器获取所述目标平面对应的区域图像中的多个特征点时,具体用于:The device according to claim 23, wherein when the processor acquires multiple feature points in the region image corresponding to the target plane, it is specifically configured to:
    将所述初始图像发送给与所述无人机通信连接的控制终端,以使所述控制终端的显示装置显示所述初始图像;Sending the initial image to a control terminal communicatively connected with the drone, so that a display device of the control terminal displays the initial image;
    获取所述控制终端发送的特征点指示信息,其中,所述特征点指示信息是控制终端检测用户在所述显示装置上的特征点选择操作确定的。Acquire the characteristic point indication information sent by the control terminal, where the characteristic point indication information is determined by the control terminal detecting the characteristic point selection operation of the user on the display device.
  27. 根据权利要求23-26任一项所述的设备,其特征在于,所述处理器根据所述多个特征点在所述初始图像上的位置控制所述拍摄装置的拍摄姿态时,具体用于:The device according to any one of claims 23-26, wherein when the processor controls the shooting posture of the shooting device according to the positions of the multiple feature points on the initial image, it is specifically configured to :
    根据所述多个特征点在所述初始图像上的位置确定所述目标平面的法向量;Determining the normal vector of the target plane according to the positions of the multiple feature points on the initial image;
    根据所述法向量控制所述拍摄装置的拍摄姿态。The shooting posture of the shooting device is controlled according to the normal vector.
  28. 根据权利要求23-26任一项所述的设备,其特征在于,所述特征点的数量为3个;所述处理器根据所述多个特征点在所述初始图像上的位置控制所述拍摄装置的拍摄姿态时,具体用于:The device according to any one of claims 23-26, wherein the number of the feature points is 3; the processor controls the When the shooting posture of the shooting device is specifically used for:
    根据所述3个特征点在所述初始图像上的位置确定所述3个特征点对应的空间点的位置;Determining the positions of the spatial points corresponding to the 3 characteristic points according to the positions of the 3 characteristic points on the initial image;
    根据所述3个特征点对应的空间点的位置确定旋转矩阵,其中,所述旋转矩阵将所述3个空间点投影到所述初始图像上的3个投影像素点满足:第一投影像素点的U轴坐标等于第二投影像素点的U轴坐标,第一投影像素点的V轴坐标等于第三投影像素点的V轴坐标;The rotation matrix is determined according to the positions of the spatial points corresponding to the three feature points, wherein the rotation matrix projects the three spatial points onto the initial image and the three projection pixels satisfy the following requirements: The U-axis coordinate of is equal to the U-axis coordinate of the second projection pixel, and the V-axis coordinate of the first projection pixel is equal to the V-axis coordinate of the third projection pixel;
    根据所述旋转矩阵控制所述拍摄装置的拍摄姿态。The shooting posture of the shooting device is controlled according to the rotation matrix.
  29. 根据权利要求28所述的设备,其特征在于,所述处理器根据所述3个特征点在所述初始图像上的位置确定所述3个特征点对应的空间点的位置时,具体用于:The device according to claim 28, wherein when the processor determines the positions of the spatial points corresponding to the three feature points according to the positions of the three feature points on the initial image, it is specifically configured to :
    获取所述目标平面对应的区域图像中的3个特征点,其中,所述初始图像包括所述目标平面对应的区域图像,所述3个特征点是根据用户在控制终端的显示装置上的特征点选择操作确定的;Acquire 3 feature points in the area image corresponding to the target plane, where the initial image includes the area image corresponding to the target plane, and the 3 feature points are based on the characteristics of the user on the display device of the control terminal Click the selection operation to confirm;
    根据所述3个特征点在所述初始图像上的位置确定所述3个特征点对应的空间点的位置。The location of the spatial point corresponding to the three feature points is determined according to the locations of the three feature points on the initial image.
  30. 根据权利要求18-29任一项所述的设备,其特征在于,所述处理器根据所述目标图像和所述距离确定目标平面或所述目标平面上的待测对象的尺寸参数时,具体用于:The device according to any one of claims 18-29, wherein the processor determines the size parameter of the target plane or the object to be measured on the target plane according to the target image and the distance, specifically Used for:
    根据所述目标平面或所述待测对象在目标图像的像素数量和所述距离确定目标平面或所述目标平面上的待测对象的尺寸参数。The size parameter of the target plane or the object to be measured on the target plane is determined according to the number of pixels of the target plane or the object to be measured in the target image and the distance.
  31. 根据权利要求18-30任一项所述的设备,其特征在于,所述处理器根据所述目标图像和所述距离确定所述目标平面上的待测对象的尺寸参数时,具体用于:The device according to any one of claims 18-30, wherein when the processor determines the size parameter of the object to be measured on the target plane according to the target image and the distance, it is specifically configured to:
    对所述目标图像进行识别以确定所述待测对象;或者,Recognizing the target image to determine the object to be tested; or,
    接收所述无人机的控制终端发送的待测对象指示信息,根据所述待测对象指示信息确定待测对象,其中,所述待测对象指示信息是控制终端通过检测用户对显示目标图像的控制终端的显示装置的待测对象选择操作;Receive the object-to-be-measured indication information sent by the control terminal of the drone, and determine the object-to-be-measured according to the object-to-be-measured indication information, where the object-to-be-measured indication information is that the control terminal detects the user’s Control the selection operation of the object to be tested on the display device of the terminal;
    根据所述目标图像和所述距离确定所述确定的待测对象的尺寸参数。The size parameter of the determined object to be measured is determined according to the target image and the distance.
  32. 根据权利要求31所述的设备,其特征在于,所述处理器根据所述目标图像和所述距离确定所述确定的待测对象的尺寸参数时,具体用于包括:The device according to claim 31, wherein, when the processor determines the determined size parameter of the object to be measured according to the target image and the distance, the processor is specifically configured to include:
    获取所述待测对象在所述目标图像中的外接多边形区域;Acquiring the circumscribed polygonal area of the object to be measured in the target image;
    根据所述外接多边形区域和所述距离确定所述待测对象的尺寸参数。The size parameter of the object to be measured is determined according to the circumscribed polygonal area and the distance.
  33. 根据权利要求18-29任一项所述的设备,其特征在于,所述处理器还用于:The device according to any one of claims 18-29, wherein the processor is further configured to:
    将所述目标图像发送给与所述无人机通信连接的控制终端以使所述控制终端的显示装置显示所述目标图像;Sending the target image to a control terminal communicatively connected with the drone, so that the display device of the control terminal displays the target image;
    获取所述控制终端发送的待测对象指示信息,其中,所述待测对象指示信息是控制终端检测用户在所述显示装置上的待测对象选择操作确定的。Obtain the object to be measured indication information sent by the control terminal, where the object to be measured indication information is determined by the control terminal detecting the user's selection operation of the object to be measured on the display device.
  34. 根据权利要求18-30任一项所述的设备,其特征在于,所述处理器还用于:The device according to any one of claims 18-30, wherein the processor is further configured to:
    将所述目标图像处于预设的待测对象识别模型中以获取所述模型输出的待测对象指示信息;Placing the target image in a preset recognition model of the object to be measured to obtain the object indication information output by the model;
    根据所述待测对象指示信息确定所述目标平面上的待测对象。The object to be measured on the target plane is determined according to the indication information of the object to be measured.
  35. 一种无人机,其特征在于,包括:An unmanned aerial vehicle, characterized in that it includes:
    机身;body;
    配置在机身上的动力系统,用于为所述无人机提供移动的动力;The power system configured on the fuselage is used to provide the moving power for the UAV;
    所述处理器,用于:The processor is used for:
    获取无人机的拍摄装置拍摄目标对象得到的初始图像,其中,所述拍摄装置承载在所述无人机的云台上;Acquiring an initial image obtained by photographing a target object by a photographing device of a drone, wherein the photographing device is carried on a pan/tilt of the drone;
    根据所述初始图像控制所述拍摄装置的拍摄姿态,以使所述拍摄装置的拍摄方向基本垂直于所述目标对象的目标平面;Controlling the shooting posture of the shooting device according to the initial image so that the shooting direction of the shooting device is substantially perpendicular to the target plane of the target object;
    响应于所述拍摄装置的拍摄方向基本垂直于所述目标平面,获取所述拍摄装置拍摄目标平面得到的目标图像、所述拍摄装置与所述目标平面之间的距离;In response to the photographing direction of the photographing device being substantially perpendicular to the target plane, acquiring a target image obtained by photographing the target plane by the photographing device and the distance between the photographing device and the target plane;
    根据所述目标图像和所述距离确定目标平面或所述目标平面上的待测对 象的尺寸参数。The size parameter of the target plane or the object to be measured on the target plane is determined according to the target image and the distance.
  36. 根据权利要求35所述的无人机,所述尺寸参数包括长度、宽度、面积中的一种或多种。The drone of claim 35, wherein the size parameter includes one or more of length, width, and area.
  37. 根据权利要求35或36所述的无人机,其特征在于,所述处理器根据所述初始图像控制拍摄装置的拍摄姿态时,具体用于:The drone according to claim 35 or 36, wherein when the processor controls the shooting attitude of the shooting device according to the initial image, it is specifically configured to:
    根据所述初始图像控制无人机的位置、无人机的姿态和所述云台的姿态中的一种或多种,以控制所述拍摄装置的拍摄姿态。Control one or more of the position of the drone, the attitude of the drone, and the attitude of the pan/tilt according to the initial image to control the shooting attitude of the shooting device.
  38. 根据权利要求35-37任一项所述的无人机,其特征在于,所述无人机包括承载在所述云台上的测距装置,其中,所述测距单元的测量方向与所述拍摄装置的光轴方向基本平行;The unmanned aerial vehicle according to any one of claims 35-37, wherein the unmanned aerial vehicle comprises a distance measuring device carried on the pan/tilt, wherein the measuring direction of the distance measuring unit is the same as that of the distance measuring unit. The direction of the optical axis of the shooting device is substantially parallel;
    所述处理器获取所述拍摄装置与所述目标平面之间的距离时,具体用于:When the processor obtains the distance between the photographing device and the target plane, it is specifically configured to:
    通过所述测距装置测量所述拍摄装置与所述目标平面之间的距离。The distance between the photographing device and the target plane is measured by the distance measuring device.
  39. 根据权利要求38所述的无人机,其特征在于,所述测距装置为激光测距装置。The drone of claim 38, wherein the distance measuring device is a laser distance measuring device.
  40. 根据权利要求35-39任一项所述的无人机,其特征在于,所述处理器根据所述初始图像控制所述拍摄装置的拍摄姿态时,具体用于:The drone according to any one of claims 35-39, wherein when the processor controls the shooting attitude of the shooting device according to the initial image, it is specifically configured to:
    获取所述目标平面对应的区域图像中的多个特征点,其中,所述初始图像包括所述目标平面对应的区域图像;Acquiring a plurality of feature points in a region image corresponding to the target plane, wherein the initial image includes the region image corresponding to the target plane;
    根据所述多个特征点在所述初始图像上的位置控制所述拍摄装置的拍摄姿态。The shooting posture of the shooting device is controlled according to the positions of the plurality of feature points on the initial image.
  41. 根据权利要求40所述的无人机,其特征在于,所述处理器获取所述目标平面对应的区域图像中的多个特征点时,具体用于:The UAV according to claim 40, wherein when the processor acquires multiple feature points in the area image corresponding to the target plane, it is specifically configured to:
    从所述初始图像中确定所述目标平面对应的区域图像;Determining the area image corresponding to the target plane from the initial image;
    运行特征点提取算法以从所述区域图像中提取多个特征点。Run a feature point extraction algorithm to extract multiple feature points from the region image.
  42. 根据权利要求41所述的无人机,其特征在于,所述处理器还用于:The drone of claim 41, wherein the processor is further configured to:
    将所述初始图像发送给与所述无人机通信连接的控制终端,以使所述控制终端的显示装置显示所述初始图像;Sending the initial image to a control terminal communicatively connected with the drone, so that a display device of the control terminal displays the initial image;
    获取所述控制终端发送的目标平面指示信息,其中,所述目标平面指示信息是控制终端检测用户在所述显示装置上的目标区域选择操作确定的。Acquire target plane indication information sent by the control terminal, where the target plane indication information is determined by the control terminal detecting a user's target area selection operation on the display device.
  43. 根据权利要求40所述的无人机,其特征在于,所述处理器获取所述目标平面对应的区域图像中的多个特征点时,具体用于:The UAV according to claim 40, wherein when the processor acquires multiple feature points in the area image corresponding to the target plane, it is specifically configured to:
    将所述初始图像发送给与所述无人机通信连接的控制终端,以使所述控制终端的显示装置显示所述初始图像;Sending the initial image to a control terminal communicatively connected with the drone, so that a display device of the control terminal displays the initial image;
    获取所述控制终端发送的特征点指示信息,其中,所述特征点指示信息是控制终端检测用户在所述显示装置上的特征点选择操作确定的。Acquire the characteristic point indication information sent by the control terminal, where the characteristic point indication information is determined by the control terminal detecting the characteristic point selection operation of the user on the display device.
  44. 根据权利要求40-43任一项所述的无人机,其特征在于,所述处理器根据所述多个特征点在所述初始图像上的位置控制所述拍摄装置的拍摄姿态时,具体用于:The drone according to any one of claims 40-43, wherein the processor controls the shooting attitude of the shooting device according to the positions of the multiple feature points on the initial image, specifically Used for:
    根据所述多个特征点在所述初始图像上的位置确定所述目标平面的法向量;Determining the normal vector of the target plane according to the positions of the multiple feature points on the initial image;
    根据所述法向量控制所述拍摄装置的拍摄姿态。The shooting posture of the shooting device is controlled according to the normal vector.
  45. 根据权利要求40-43任一项所述的无人机,其特征在于,所述特征点的数量为3个;所述处理器根据所述多个特征点在所述初始图像上的位置控制所述拍摄装置的拍摄姿态时,具体用于:The unmanned aerial vehicle according to any one of claims 40-43, wherein the number of the feature points is 3; the processor controls according to the positions of the multiple feature points on the initial image The shooting posture of the shooting device is specifically used for:
    根据所述3个特征点在所述初始图像上的位置确定所述3个特征点对应的空间点的位置;Determining the positions of the spatial points corresponding to the 3 characteristic points according to the positions of the 3 characteristic points on the initial image;
    根据所述3个特征点对应的空间点的位置确定旋转矩阵,其中,所述旋转矩阵将所述3个空间点投影到所述初始图像上的3个投影像素点满足:第一投影像素点的U轴坐标等于第二投影像素点的U轴坐标,第一投影像素点的V轴坐标等于第三投影像素点的V轴坐标;The rotation matrix is determined according to the positions of the spatial points corresponding to the three feature points, wherein the rotation matrix projects the three spatial points onto the initial image and the three projection pixels satisfy the following requirements: The U-axis coordinate of is equal to the U-axis coordinate of the second projection pixel, and the V-axis coordinate of the first projection pixel is equal to the V-axis coordinate of the third projection pixel;
    根据所述旋转矩阵控制所述拍摄装置的拍摄姿态。The shooting posture of the shooting device is controlled according to the rotation matrix.
  46. 根据权利要求45所述的无人机,其特征在于,所述处理器根据所述3个特征点在所述初始图像上的位置确定所述3个特征点对应的空间点的位置时,具体用于:The drone according to claim 45, wherein when the processor determines the positions of the spatial points corresponding to the three feature points according to the positions of the three feature points on the initial image, specifically Used for:
    获取所述目标平面对应的区域图像中的3个特征点,其中,所述初始图像包括所述目标平面对应的区域图像,所述3个特征点是根据用户在控制终端的显示装置上的特征点选择操作确定的;Acquire 3 feature points in the area image corresponding to the target plane, where the initial image includes the area image corresponding to the target plane, and the 3 feature points are based on the characteristics of the user on the display device of the control terminal Click the selection operation to confirm;
    根据所述3个特征点在所述初始图像上的位置确定所述3个特征点对应的空间点的位置。The location of the spatial point corresponding to the three feature points is determined according to the locations of the three feature points on the initial image.
  47. 根据权利要求35-46任一项所述的无人机,其特征在于,所述处理器根据所述目标图像和所述距离确定目标平面或所述目标平面上的待测对象的尺寸参数时,具体用于:The drone according to any one of claims 35-46, wherein the processor determines the size parameter of the target plane or the object to be measured on the target plane according to the target image and the distance , Specifically used for:
    根据所述目标平面或所述待测对象在目标图像的像素数量和所述距离确定目标平面或所述目标平面上的待测对象的尺寸参数。The size parameter of the target plane or the object to be measured on the target plane is determined according to the number of pixels of the target plane or the object to be measured in the target image and the distance.
  48. 根据权利要求35-47任一项所述的无人机,其特征在于,所述处理器根据所述目标图像和所述距离确定所述目标平面上的待测对象的尺寸参数时,具体用于:The drone according to any one of claims 35-47, wherein when the processor determines the size parameter of the object to be measured on the target plane according to the target image and the distance, it specifically uses in:
    对所述目标图像进行识别以确定所述待测对象;或者,Recognizing the target image to determine the object to be tested; or,
    接收所述无人机的控制终端发送的待测对象指示信息,根据所述待测对象指示信息确定待测对象,其中,所述待测对象指示信息是控制终端通过检测用户对显示目标图像的控制终端的显示装置的待测对象选择操作;Receive the object-to-be-measured indication information sent by the control terminal of the drone, and determine the object-to-be-measured according to the object-to-be-measured indication information, where the object-to-be-measured indication information is that the control terminal detects the user’s Control the selection operation of the object to be tested on the display device of the terminal;
    根据所述目标图像和所述距离确定所述确定的待测对象的尺寸参数。The size parameter of the determined object to be measured is determined according to the target image and the distance.
  49. 根据权利要求48所述的无人机,其特征在于,所述处理器根据所述目标图像和所述距离确定所述确定的待测对象的尺寸参数时,具体用于包括:The unmanned aerial vehicle according to claim 48, wherein when the processor determines the size parameter of the determined object to be measured according to the target image and the distance, it is specifically configured to include:
    获取所述待测对象在所述目标图像中的外接多边形区域;Acquiring the circumscribed polygonal area of the object to be measured in the target image;
    根据所述外接多边形区域和所述距离确定所述待测对象的尺寸参数。The size parameter of the object to be measured is determined according to the circumscribed polygonal area and the distance.
  50. 根据权利要求35-46任一项所述的无人机,其特征在于,所述处理器还用于:The unmanned aerial vehicle according to any one of claims 35-46, wherein the processor is further configured to:
    将所述目标图像发送给与所述无人机通信连接的控制终端以使所述控制终端的显示装置显示所述目标图像;Sending the target image to a control terminal communicatively connected with the drone, so that the display device of the control terminal displays the target image;
    获取所述控制终端发送的待测对象指示信息,其中,所述待测对象指示信息是控制终端检测用户在所述显示装置上的待测对象选择操作确定的。Obtain the object to be measured indication information sent by the control terminal, where the object to be measured indication information is determined by the control terminal detecting the user's selection operation of the object to be measured on the display device.
  51. 根据权利要求35-47任一项所述的无人机,其特征在于,所述处理器还用于:The drone according to any one of claims 35-47, wherein the processor is further configured to:
    将所述目标图像处于预设的待测对象识别模型中以获取所述模型输出的待测对象指示信息;Placing the target image in a preset recognition model of the object to be measured to obtain the object indication information output by the model;
    根据所述待测对象指示信息确定所述目标平面上的待测对象。The object to be measured on the target plane is determined according to the indication information of the object to be measured.
  52. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至17任一项所述方法。A computer-readable storage medium storing a computer program, wherein the computer program implements the method according to any one of claims 1 to 17 when the computer program is executed by a processor.
PCT/CN2019/130971 2019-12-31 2019-12-31 Control method and device, unmanned aerial vehicle and storage medium WO2021134715A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201980095056.0A CN113646606A (en) 2019-12-31 2019-12-31 Control method, control equipment, unmanned aerial vehicle and storage medium
PCT/CN2019/130971 WO2021134715A1 (en) 2019-12-31 2019-12-31 Control method and device, unmanned aerial vehicle and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/130971 WO2021134715A1 (en) 2019-12-31 2019-12-31 Control method and device, unmanned aerial vehicle and storage medium

Publications (1)

Publication Number Publication Date
WO2021134715A1 true WO2021134715A1 (en) 2021-07-08

Family

ID=76686267

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/130971 WO2021134715A1 (en) 2019-12-31 2019-12-31 Control method and device, unmanned aerial vehicle and storage medium

Country Status (2)

Country Link
CN (1) CN113646606A (en)
WO (1) WO2021134715A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115499596B (en) * 2022-11-18 2023-05-30 北京中科觅境智慧生态科技有限公司 Method and device for processing image

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1985004245A1 (en) * 1984-03-09 1985-09-26 The Broken Hill Proprietary Company Limited Optical article dimension measuring system
CN103604371A (en) * 2013-12-06 2014-02-26 上海华勤通讯技术有限公司 Mobile terminal and object measurement method thereof
CN104748680A (en) * 2015-03-19 2015-07-01 酷派软件技术(深圳)有限公司 Size measuring method and device based on camera
CN106152946A (en) * 2015-03-31 2016-11-23 酷派软件技术(深圳)有限公司 A kind of method of Measuring Object length and terminal
CN106225747A (en) * 2016-08-21 2016-12-14 李良杰 The method using smart machine Measuring Object length
CN106546169A (en) * 2016-10-12 2017-03-29 上海斐讯数据通信技术有限公司 Using the method and device of mobile device Measuring Object size
CN106796102A (en) * 2015-02-11 2017-05-31 华为技术有限公司 A kind of method and device for measuring dimension of object
CN108304119A (en) * 2018-01-19 2018-07-20 腾讯科技(深圳)有限公司 object measuring method, intelligent terminal and computer readable storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019093532A1 (en) * 2017-11-07 2019-05-16 공간정보기술 주식회사 Method and system for acquiring three-dimensional position coordinates without ground control points by using stereo camera drone

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1985004245A1 (en) * 1984-03-09 1985-09-26 The Broken Hill Proprietary Company Limited Optical article dimension measuring system
CN103604371A (en) * 2013-12-06 2014-02-26 上海华勤通讯技术有限公司 Mobile terminal and object measurement method thereof
CN106796102A (en) * 2015-02-11 2017-05-31 华为技术有限公司 A kind of method and device for measuring dimension of object
CN104748680A (en) * 2015-03-19 2015-07-01 酷派软件技术(深圳)有限公司 Size measuring method and device based on camera
CN106152946A (en) * 2015-03-31 2016-11-23 酷派软件技术(深圳)有限公司 A kind of method of Measuring Object length and terminal
CN106225747A (en) * 2016-08-21 2016-12-14 李良杰 The method using smart machine Measuring Object length
CN106546169A (en) * 2016-10-12 2017-03-29 上海斐讯数据通信技术有限公司 Using the method and device of mobile device Measuring Object size
CN108304119A (en) * 2018-01-19 2018-07-20 腾讯科技(深圳)有限公司 object measuring method, intelligent terminal and computer readable storage medium

Also Published As

Publication number Publication date
CN113646606A (en) 2021-11-12

Similar Documents

Publication Publication Date Title
US10645284B2 (en) Image processing device, image processing method, and recording medium storing program
JP4825980B2 (en) Calibration method for fisheye camera.
EP3825954A1 (en) Photographing method and device and unmanned aerial vehicle
WO2019113966A1 (en) Obstacle avoidance method and device, and unmanned aerial vehicle
US20170127045A1 (en) Image calibrating, stitching and depth rebuilding method of a panoramic fish-eye camera and a system thereof
WO2017020150A1 (en) Image processing method, device and camera
JP4825971B2 (en) Distance calculation device, distance calculation method, structure analysis device, and structure analysis method.
WO2019104571A1 (en) Image processing method and device
CN112154649A (en) Aerial survey method, shooting control method, aircraft, terminal, system and storage medium
WO2019061064A1 (en) Image processing method and device
WO2019183789A1 (en) Method and apparatus for controlling unmanned aerial vehicle, and unmanned aerial vehicle
CN111247389B (en) Data processing method and device for shooting equipment and image processing equipment
CN113436267B (en) Visual inertial navigation calibration method, device, computer equipment and storage medium
Sahin Comparison and calibration of mobile phone fisheye lens and regular fisheye lens via equidistant model
WO2020019175A1 (en) Image processing method and apparatus, and photographing device and unmanned aerial vehicle
WO2021134715A1 (en) Control method and device, unmanned aerial vehicle and storage medium
US20210156710A1 (en) Map processing method, device, and computer-readable storage medium
CN113034347A (en) Oblique photographic image processing method, device, processing equipment and storage medium
US10089726B2 (en) Image processing apparatus, image processing method, and storage medium, relating to generating an image corresponding to a predetermined three-dimensional shape by transforming a captured image
WO2021056503A1 (en) Positioning method and apparatus for movable platform, movable platform, and storage medium
WO2019189381A1 (en) Moving body, control device, and control program
CN112514366A (en) Image processing method, image processing apparatus, and image processing system
WO2020215296A1 (en) Line inspection control method for movable platform, and line inspection control device, movable platform and system
CN115357052A (en) Method and system for automatically exploring interest points in video picture by unmanned aerial vehicle
WO2021217371A1 (en) Control method and apparatus for movable platform

Legal Events

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

Ref document number: 19958081

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19958081

Country of ref document: EP

Kind code of ref document: A1