Method and device for calculating the positioning of pan-tilt equipment based on terrain differentiation

By collecting and modeling terrain data, generating outline information of the target area, and using the correlation model to determine the positioning of the gimbal target, the problem of low gimbal positioning accuracy under terrain changes in the existing technology is solved, achieving efficient and accurate Positioning calculation.

CN118548859BActive Publication Date: 2024-11-01SHENZHEN BEIDOUYUN INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411025246.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-30
Publication Date
2024-11-01
Estimated Expiration
2044-07-30

AI Technical Summary

Technical Problem

The existing gimbal positioning measurement methods fail to effectively consider terrain changes, resulting in low positioning and calculation accuracy and efficiency in mountainous areas or hilly areas. Especially when there are mountains blocking each other on the gimbal, the deviation caused by tower height data is large.

Method used

By collecting the terrain data of the measured area, the contour information of the target area is generated, and the correlation relationship model between the gimbal attitude and the target elevation is used to determine the positioning information of the target to be calculated, including obtaining the terrain image or radar scanning through the camera device Three-dimensional modeling, obtain the gimbal orientation data and attitude change data, record and store contour information, determine whether the gimbal attitude parameters are in the target area, and if so, determine the relative position and positioning information.

Benefits of technology

实现了在复杂地形下的高效、精确地形建模和定位,提高了特殊区域或地形的测算效率和精度,减少了定位偏差。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118548859B_ABST
    Figure CN118548859B_ABST
Patent Text Reader

Abstract

The present application provides a method, device, computer-readable medium and electronic device for positioning and calculating a pan-tilt device based on terrain differentiation. The terrain data of the measured area is collected by the pan-tilt and the acquisition device; when it is detected that there is a target area whose position elevation is greater than a set threshold in the terrain data, the pan-tilt position data and attitude change data relative to the target area are obtained; the contour information of the target area is generated based on the terrain data, the pan-tilt position data and the attitude change data; the information of the target to be measured is obtained; if the pan-tilt attitude parameter corresponding to the information of the target to be measured falls within the contour information of the target area, then based on the contour information and the map positioning function, the positioning information of the target to be measured is determined through the correlation relationship model between the pan-tilt attitude and the target elevation. This solution can accurately and efficiently realize terrain modeling and positioning in complex terrain based on three-dimensional modeling, thereby improving the measurement efficiency and accuracy of special areas or terrains.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and more specifically, to a method, device, computer-readable medium and electronic device for positioning and calculating a pan-tilt device based on terrain differentiation. Background Art

[0002] At present, the device used for gimbal positioning measurement mainly uses the Pythagorean theorem of triangles. The theoretical model is a right triangle. By measuring the pitch angle of the gimbal and the elevation of the gimbal, that is, knowing one side and one angle of the right triangle, the relationship between trigonometric functions is used to measure the distance to the target point, and through an azimuth measurement device and a certain calculation method, the positioning measurement of the far point is realized.

[0003] The current existing technical methods do not take into account the changes in terrain. Ideally, they assume that the target point and the gimbal installation point are on the same plane. Especially for some mountainous or hilly areas, or if there is a large mountain opposite the gimbal, the tower height data will bring great deviations in the traditional calculation model. Due to the uncertainty of the length of one side of the triangle, the resulting deviation is very large. Summary of the invention

[0004] The embodiments of the present application provide a method, apparatus, computer-readable medium and electronic device for positioning and calculating a pan-tilt device based on terrain differentiation, thereby at least to a certain extent solving the problem of low accuracy and efficiency of terrain calculation in the prior art.

[0005] Other features and advantages of the present application will become apparent from the following detailed description, or may be learned in part by the practice of the present application.

[0006] According to one aspect of the present application, a method for calculating the positioning of a pan / tilt device based on terrain differentiation is provided, comprising:

[0007] Collect topographic data of the measured area through the pan-tilt platform and acquisition device;

[0008] When it is detected that there is a target area whose position elevation is greater than a set threshold in the terrain data, obtaining the PTZ position data and attitude change data relative to the target area;

[0009] Modeling is performed based on the terrain data, the gimbal orientation data, and the attitude change data to generate contour information of the target area;

[0010] Obtain information about the target to be measured;

[0011] If the gimbal attitude parameters corresponding to the information of the target to be measured fall within the contour information of the target area, the positioning information of the target to be measured is determined based on the gimbal attitude parameters and the map positioning function through the association relationship model between the gimbal attitude and the target elevation.

[0012] In the present application, based on the aforementioned scheme, the terrain data of the measured area is collected through the pan-tilt head and the collection device, including: obtaining a terrain image of the measured area through a camera device as the terrain data; and / or scanning the terrain data of the measured area through a radar and performing three-dimensional modeling.

[0013] In the present application, based on the aforementioned scheme, when a target area with a position elevation greater than a set threshold is detected in the terrain data, the gimbal orientation data and attitude change data relative to the target area are obtained, including: when a target area with a position elevation difference greater than a set threshold is detected in the terrain data, the boundary of the target area is calibrated; and the gimbal orientation data and attitude change data of the gimbal relative to the boundary of the target area are recorded.

[0014] In the present application, based on the aforementioned scheme, the gimbal orientation data includes the azimuth, inclination and roll angle of the gimbal corresponding to the boundary; the attitude change data includes the attitude change information of the gimbal corresponding to the set direction.

[0015] In the present application, based on the aforementioned scheme, after the modeling is performed based on the terrain data, the gimbal orientation data and the attitude change data to generate the contour information of the target area, it also includes: recording the contour information based on a set data storage format.

[0016] In the present application, based on the aforementioned scheme, if the gimbal attitude parameters corresponding to the information of the target to be measured fall within the contour information of the target area, then based on the gimbal attitude parameters and the map positioning function, the positioning information of the target to be measured is determined through the association relationship model between the gimbal attitude and the target elevation, including: based on the information of the target to be measured, judging whether the gimbal attitude parameters corresponding to the information fall within the contour information of the target area; if so, determining the relative position corresponding to the gimbal attitude parameters in the target area based on the association relationship model between the gimbal attitude and the target elevation; based on the relative position and the positioning function, determining the positioning information of the target to be measured.

[0017] In the present application, based on the above-mentioned solution, the gimbal attitude parameters include: azimuth angle, pitch angle and roll angle.

[0018] According to one aspect of the present application, a device for calculating the positioning of a pan / tilt device based on terrain differentiation is provided, comprising:

[0019] A collection unit, used to collect topographic data of the measured area through a pan-tilt platform and a collection device;

[0020] A detection unit, configured to, when detecting that a target area having a position elevation greater than a set threshold exists in the terrain data, obtain the PTZ position data and attitude change data relative to the target area;

[0021] A generating unit, configured to generate contour information of the target area by modeling based on the terrain data, the PTZ orientation data and the attitude change data;

[0022] An acquisition unit, used for acquiring information of a target to be measured;

[0023] The measuring unit is used to determine the positioning information of the target to be measured through the correlation relationship model between the gimbal attitude and the target elevation based on the gimbal attitude parameters and the map positioning function if the gimbal attitude parameters corresponding to the information of the target to be measured fall within the contour information of the target area.

[0024] In the present application, based on the aforementioned scheme, the terrain data of the measured area is collected through the pan-tilt head and the collection device, including: obtaining a terrain image of the measured area through a camera device as the terrain data; and / or scanning the terrain data of the measured area through a radar and performing three-dimensional modeling.

[0025] In the present application, based on the aforementioned scheme, when a target area with a position elevation greater than a set threshold is detected in the terrain data, the gimbal orientation data and attitude change data relative to the target area are obtained, including: when a target area with a position elevation difference greater than a set threshold is detected in the terrain data, the boundary of the target area is calibrated; and the gimbal orientation data and attitude change data of the gimbal relative to the boundary of the target area are recorded.

[0026] In the present application, based on the aforementioned scheme, the gimbal orientation data includes the azimuth, inclination and roll angle of the gimbal corresponding to the boundary; the attitude change data includes the attitude change information of the gimbal corresponding to the set direction.

[0027] In the present application, based on the aforementioned scheme, after the modeling is performed based on the terrain data, the gimbal orientation data and the attitude change data to generate the contour information of the target area, it also includes: recording the contour information based on a set data storage format.

[0028] In the present application, based on the aforementioned scheme, if the gimbal attitude parameters corresponding to the information of the target to be measured fall within the contour information of the target area, then based on the gimbal attitude parameters and the map positioning function, the positioning information of the target to be measured is determined through the association relationship model between the gimbal attitude and the target elevation, including: based on the information of the target to be measured, judging whether the gimbal attitude parameters corresponding to the information fall within the contour information of the target area; if so, determining the relative position corresponding to the gimbal attitude parameters in the target area based on the association relationship model between the gimbal attitude and the target elevation; based on the relative position and the positioning function, determining the positioning information of the target to be measured.

[0029] In the present application, based on the above-mentioned solution, the gimbal attitude parameters include: azimuth angle, pitch angle and roll angle.

[0030] According to one aspect of the present application, a computer-readable medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the method for positioning and calculating a pan-tilt device based on terrain differentiation as described in the above-mentioned embodiment is implemented.

[0031] According to one aspect of the present application, an electronic device is provided, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the method for positioning and calculating a pan-tilt device based on terrain differentiation as described in the above-mentioned embodiments.

[0032] According to one aspect of the present application, a computer program product or a computer program is provided, the computer program product or the computer program including computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the method for positioning and calculating a pan-tilt device based on terrain differentiation provided in the above-mentioned various optional implementations.

[0033] In the technical solution of the present application, the terrain data of the measured area is collected by the gimbal and the acquisition device; when it is detected that there is a target area whose position elevation is greater than a set threshold in the terrain data, the gimbal orientation data and attitude change data relative to the target area are obtained; modeling is performed based on the terrain data, the gimbal orientation data and attitude change data to generate the contour information of the target area; the information of the target to be measured is obtained; if the gimbal attitude parameters corresponding to the information of the target to be measured fall within the contour information of the target area, then based on the gimbal attitude parameters and the map positioning function, the positioning information of the target to be measured is determined through the correlation relationship model between the gimbal attitude and the target elevation. The technical solution of the present application can accurately and efficiently realize terrain modeling and positioning in complex terrain based on three-dimensional modeling, thereby improving the measurement efficiency and accuracy of special areas or terrains.

[0034] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the specification are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0036] Figure 1 The flowchart of a method for calculating the positioning of a pan-tilt device based on terrain differentiation in one embodiment of the present application is schematically shown.

[0037] Figure 2 A flowchart for determining the positioning information of a target to be measured in an embodiment of the present application is schematically shown.

[0038] Figure 3 A schematic diagram of a pan-tilt device positioning and calculation device based on terrain differentiation in an embodiment of the present application is schematically shown.

[0039] Figure 4 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown. DETAILED DESCRIPTION

[0040] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this application will be more comprehensive and complete and fully convey the concept of the example embodiments to those skilled in the art.

[0041] In addition, described feature, structure or characteristic can be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical scheme of the present application can be put into practice without one or more of the specific details, or other methods, components, devices, steps, etc. can be adopted. In other cases, known methods, devices, realizations or operations are not shown or described in detail to avoid blurring the various aspects of the application.

[0042] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0043] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order can be changed according to actual conditions.

[0044] The implementation details of the technical solution of this application are described in detail below:

[0045] Figure 1 The flowchart of the method for calculating the location of the PTZ device based on terrain differentiation according to an embodiment of the present application is shown. Figure 1 As shown, the method for calculating the positioning of the PTZ device based on terrain differentiation includes at least steps S110 to S150, which are described in detail as follows:

[0046] In step S110, the terrain data of the measured area is collected by using the pan / tilt platform and the collection device.

[0047] In one embodiment of the present application, a suitable pan-tilt head and acquisition device are selected according to the terrain characteristics and size of the measured area. The movement range, speed and accuracy of the pan-tilt head are configured to ensure that the entire acquisition area can be covered. The parameters of the acquisition device, such as sensor type, resolution, acquisition frequency, etc., are configured to meet the accuracy and efficiency requirements of terrain data acquisition. GIS or map tools are used to plan the movement path of the pan-tilt head to ensure that the entire acquisition area can be evenly covered. The pan-tilt head and acquisition device are remotely controlled by a computer to start the terrain data acquisition task.

[0048] Optionally, during the acquisition process, the computer processes and analyzes the acquired terrain data in real time. According to the parameters of the acquisition device and the terrain characteristics, the raw data is preprocessed, such as denoising, filtering, coordinate conversion, etc. The terrain feature information, such as elevation, slope, slope direction, etc., is extracted, and the corresponding terrain data model or image is generated.

[0049] Optionally, the processed terrain data is stored in a computer hard disk or cloud storage to ensure data security and accessibility. A database management system is used to organize and manage terrain data to facilitate subsequent query, analysis, and application.

[0050] In one embodiment of the present application, collecting terrain data of the measured area by using a pan / tilt platform and a collection device includes:

[0051] Acquiring a topographic image of the measured area by means of a camera as the topographic data; and / or

[0052] The terrain data of the measured area is scanned by radar and three-dimensional modeling is performed.

[0053] Specifically, install the camera device in an appropriate position, such as on a drone, gimbal, or other fixed bracket to ensure that it can cover the measured area. Adjust the parameters of the camera device, such as resolution, focal length, exposure time, etc., as needed to obtain high-quality terrain images. Remotely control the camera device through a computer to collect terrain images according to the preset collection path or area. Monitor the real-time picture of the camera device to ensure that the image quality meets the requirements. Import the collected terrain image into the computer and use image processing software for preprocessing, such as denoising, contrast enhancement, color correction, etc. Extract terrain feature information, such as terrain contours, landform types, etc., for subsequent analysis and application.

[0054] Specifically, the radar device is mounted on a tripod or other fixed support to ensure the stability of the device.

[0055] Adjust the parameters of the radar equipment as needed, such as scanning range, resolution, scanning speed, etc. Remotely control the radar equipment through a computer and scan the terrain data according to the preset scanning path or area. Monitor the real-time scanning of the radar equipment to ensure the accuracy and integrity of data collection. Import the original point cloud data returned by the radar equipment into the computer and use professional software to perform pre-processing operations such as filtering, correction and registration on the data. Eliminate errors and noise to improve the accuracy and reliability of terrain data.

[0056] Use 3D modeling software to convert the processed terrain data into a computer-recognizable 3D model. Adjust the parameters and details of the model as needed to make it more consistent with the actual terrain. The specific 3D modeling process mainly includes the following steps:

[0057] 1. Select modeling software: According to specific needs, choose appropriate 3D modeling software, such as 3D MAX, Maya, Blender, etc.

[0058] 2. Create basic geometry: In modeling software, the basic shape of the model is built by creating basic geometry (such as cubes, spheres, cylinders, etc.). These basic geometry can be adjusted by stretching, scaling, rotating, etc.

[0059] 3. Refine the model: Based on the basic geometry, gradually add details to make the model more refined. This includes using tools and techniques such as cutting, extrusion, chamfering, sweeping, etc. to modify the shape and structure of the model.

[0060] 4. Add materials and textures: According to the actual situation, add appropriate materials and textures to the model to make it more realistic. You can use the material library provided by the software, or you can make your own materials and textures.

[0061] 5. Set lighting and rendering: By setting lighting and rendering parameters, the model will be more realistic when rendered. This includes adjusting the position, intensity and color of the light source, and selecting the appropriate rendering method and parameters.

[0062] In step S120, when it is detected that there is a target area whose position elevation is greater than a set threshold in the terrain data, the gimbal orientation data and attitude change data of the gimbal relative to the target area are obtained.

[0063] In one embodiment of the present application, when a target area whose position elevation is greater than a set threshold is detected in the terrain data, it indicates that there are tall buildings, mountains, and gullies in the area. Then, the PTZ position data and attitude change data relative to the target area are obtained. The data from the PTZ are used to characterize the parameters of the above-mentioned complex terrain.

[0064] In one embodiment of the present application, when a target area whose position elevation is greater than a set threshold is detected in the terrain data, obtaining the pan / tilt position data and attitude change data of the pan / tilt relative to the target area includes:

[0065] When a target area whose position height difference is greater than a set threshold value is detected in the terrain data, a boundary of the target area is calibrated;

[0066] The PTZ position data and attitude change data relative to the boundary of the target area are recorded.

[0067] Use the visualization interface to view several boundaries of a special area, then record the azimuth, tilt and roll angle of the device at each boundary, and mark the attitude changes of several target directions (same as the calibration method) in the area. Among them, the target direction can be a more important observation direction set manually. By detecting the attitude changes of the gimbal in the above target direction, such as roll, tilt or swing, and the specific attitude change angle, a data basis is provided for subsequent contour generation and positioning measurement.

[0068] The gimbal orientation data includes the azimuth, inclination and roll angle of the gimbal corresponding to the boundary;

[0069] The posture change data includes posture change information of the gimbal corresponding to a set direction.

[0070] In step S130, modeling is performed based on the terrain data, the gimbal orientation data and the posture change data to generate contour information of the target area.

[0071] In one embodiment of the present application, after modeling is performed based on the terrain data, the gimbal orientation data and the attitude change data to generate contour information of the target area, it also includes: recording the contour information based on a set data storage format.

[0072] Specifically, in this embodiment, after obtaining the terrain data, orientation data and posture change data, the contour information can be constructed manually, such as outlining the contour manually; or the contour information of the target area can be generated by changing the image data.

[0073] In one embodiment of the present application, the outline of the area can also be generated using an AI computing model and recorded inside the device. The specific data storage format is:

[0074] Region 1, the change parameters of its contour posture are........;

[0075] Region 2, the change parameters of its contour posture are.......

[0076] In one embodiment of the present application, pan / tilt position data and posture change data are acquired, which describe the position and angle changes of the scanning device during the scanning process.

[0077] Data preprocessing: Clean, screen and organize the collected data to ensure the accuracy and completeness of the data.

[0078] Data alignment and calibration: Align and calibrate the scanned terrain data based on the gimbal orientation data and attitude change data to ensure the spatial consistency of the data.

[0079] In one embodiment of the present application, a suitable pre-trained model of the association relationship between the gimbal posture and the target elevation is selected according to the characteristics of the target area and the modeling requirements. This model can be a deep learning model, such as a convolutional neural network (CNN) or a recurrent neural network (RNN), which is used to extract features from the data and generate contour information. The pre-processed data is passed as input to the pre-trained model of the association relationship between the gimbal posture and the target elevation. The loaded model is used to perform inference calculations on the data to extract feature information related to the contour of the target area. Based on the feature information extracted by the model, the contour information of the target area is generated. This can be achieved through a series of algorithms and techniques, such as threshold segmentation, edge detection, morphological processing, etc.

[0080] In one embodiment of the present application, a basic 3D model is established using 3D modeling software (such as 3D MAX, Maya, etc.) based on the generated contour information. Details such as texture, material, lighting, etc. are added to the basic model to make the model more realistic and lifelike. The model is optimized, such as reducing the number of faces, merging vertices, etc., to improve the rendering efficiency and performance of the model. The completed 3D model is exported to the required file format for use in other software or platforms. The generated 3D model is applied to the actual scene.

[0081] In step S140, information of the target to be measured is obtained.

[0082] In one embodiment of the present application, when positioning coordinate measurement is actually required, information of the target to be measured is obtained. The information of the target to be measured may include its corresponding gimbal attitude parameters. In this process, the position information of the target to be measured is evaluated by the gimbal attitude parameters.

[0083] In one embodiment of the present application, the gimbal attitude parameters include: azimuth angle, pitch angle and roll angle.

[0084] In step S150, if the gimbal attitude parameters corresponding to the information of the target to be measured fall within the contour information of the target area, the positioning information of the target to be measured is determined based on the gimbal attitude parameters and the map positioning function through the association relationship model between the gimbal attitude and the target elevation.

[0085] like Figure 2 As shown, in one embodiment of the present application, if the gimbal attitude parameter corresponding to the information of the target to be measured falls within the contour information of the target area, then based on the gimbal attitude parameter and the map positioning function, the positioning information of the target to be measured is determined through the association relationship model between the gimbal attitude and the target elevation, including:

[0086] S210, based on the information of the target to be measured, determining whether the gimbal posture parameter corresponding to the information falls within the contour information of the target area;

[0087] S220, if yes, determining the relative position of the gimbal attitude parameter in the target area based on the association relationship model between the gimbal attitude and the target elevation;

[0088] S230: Determine the positioning information of the target to be measured based on the relative position and the positioning function.

[0089] In one embodiment of the present application, it is determined whether the extracted posture parameters fall within the contour information of the target area. This involves mapping the posture parameters to three-dimensional space and performing a spatial comparison with the contour information. Using a pre-constructed association model between the gimbal posture and the target elevation, the relative position corresponding to the posture parameter in the target area is determined based on the target features and the posture parameters. It can be calculated through model reasoning that the model has learned how to associate the target features with the spatial position. Based on the absolute position information of the device and the relative position of the gimbal posture parameters in the target area, the positioning information of the target to be measured is calculated. It can be calculated by coordinate transformation and position superposition.

[0090] In the technical solution of the present application, the terrain data of the measured area is collected by the gimbal and the acquisition device; when it is detected that there is a target area whose position elevation is greater than a set threshold in the terrain data, the gimbal orientation data and attitude change data relative to the target area are obtained; modeling is performed based on the terrain data, the gimbal orientation data and attitude change data to generate the contour information of the target area; the information of the target to be measured is obtained; if the gimbal attitude parameters corresponding to the information of the target to be measured fall within the contour information of the target area, then based on the gimbal attitude parameters and the map positioning function, the positioning information of the target to be measured is determined through the correlation relationship model between the gimbal attitude and the target elevation. The technical solution of the present application can accurately and efficiently realize terrain modeling and positioning in complex terrain based on three-dimensional modeling, thereby improving the measurement efficiency and accuracy of special areas or terrains.

[0091] The following describes an embodiment of the device of the present application, which can be used to execute the method for positioning and calculating the pan-tilt device based on terrain differentiation in the above-mentioned embodiment of the present application. It can be understood that the device can be a computer program (including program code) running in a computer device, for example, the device is an application software; the device can be used to execute the corresponding steps in the method provided in the embodiment of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method for positioning and calculating the pan-tilt device based on terrain differentiation in the above-mentioned embodiment of the present application.

[0092] Figure 3 A block diagram of a device for calculating and positioning a pan-tilt device based on terrain differentiation according to an embodiment of the present application is shown.

[0093] Reference Figure 3 As shown, according to an embodiment of the present application, a PTZ device positioning and calculation device based on terrain differentiation includes:

[0094] The acquisition unit 310 is used to acquire the topographic data of the measured area through the pan-tilt platform and the acquisition device;

[0095] The detection unit 320 is used to obtain the PTZ position data and attitude change data relative to the target area when detecting that there is a target area whose position elevation is greater than a set threshold in the terrain data;

[0096] A generating unit 330, configured to generate contour information of the target area by modeling based on the terrain data, the PTZ orientation data and the attitude change data;

[0097] An acquisition unit 340 is used to acquire information of a target to be measured;

[0098] The measuring unit 350 is used to determine the positioning information of the target to be measured through the correlation relationship model between the gimbal attitude and the target elevation based on the gimbal attitude parameters and the map positioning function if the gimbal attitude parameters corresponding to the information of the target to be measured fall within the contour information of the target area.

[0099] In the present application, based on the aforementioned scheme, the terrain data of the measured area is collected through the pan-tilt head and the collection device, including: obtaining a terrain image of the measured area through a camera device as the terrain data; and / or scanning the terrain data of the measured area through a radar and performing three-dimensional modeling.

[0100] In the present application, based on the aforementioned scheme, when a target area with a position elevation greater than a set threshold is detected in the terrain data, the gimbal orientation data and attitude change data relative to the target area are obtained, including: when a target area with a position elevation difference greater than a set threshold is detected in the terrain data, the boundary of the target area is calibrated; and the gimbal orientation data and attitude change data of the gimbal relative to the boundary of the target area are recorded.

[0101] In the present application, based on the aforementioned scheme, the gimbal orientation data includes the azimuth, inclination and roll angle of the gimbal corresponding to the boundary; the attitude change data includes the attitude change information of the gimbal corresponding to the set direction.

[0102] In the present application, based on the aforementioned scheme, after the modeling is performed based on the terrain data, the gimbal orientation data and the attitude change data to generate the contour information of the target area, it also includes: recording the contour information based on a set data storage format.

[0103] In the present application, based on the aforementioned scheme, if the gimbal attitude parameters corresponding to the information of the target to be measured fall within the contour information of the target area, then based on the gimbal attitude parameters and the map positioning function, the positioning information of the target to be measured is determined through the association relationship model between the gimbal attitude and the target elevation, including: based on the information of the target to be measured, judging whether the gimbal attitude parameters corresponding to the information fall within the contour information of the target area; if so, determining the relative position corresponding to the gimbal attitude parameters in the target area based on the association relationship model between the gimbal attitude and the target elevation; based on the relative position and the positioning function, determining the positioning information of the target to be measured.

[0104] In the present application, based on the above-mentioned solution, the gimbal attitude parameters include: azimuth angle, pitch angle and roll angle.

[0105] In the technical solution of the present application, the terrain data of the measured area is collected by the gimbal and the acquisition device; when it is detected that there is a target area whose position elevation is greater than a set threshold in the terrain data, the gimbal orientation data and attitude change data relative to the target area are obtained; modeling is performed based on the terrain data, the gimbal orientation data and attitude change data to generate the contour information of the target area; the information of the target to be measured is obtained; if the gimbal attitude parameters corresponding to the information of the target to be measured fall within the contour information of the target area, then based on the gimbal attitude parameters and the map positioning function, the positioning information of the target to be measured is determined through the correlation relationship model between the gimbal attitude and the target elevation. The technical solution of the present application can accurately and efficiently realize terrain modeling and positioning in complex terrain based on three-dimensional modeling, thereby improving the measurement efficiency and accuracy of special areas or terrains.

[0106] Figure 4 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown.

[0107] It should be noted that the computer system 400 of the electronic device shown in the figure is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0108] The computer system 400 includes a central processing unit (CPU) 401, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 402 or the program loaded from the storage part 408 to the random access memory (RAM) 403, such as executing the method described in the above embodiment. Various programs and data required for system operation are also stored in the RAM 403. The CPU 401, the ROM 402 and the RAM 403 are connected to each other through the bus 404. The input / output (I / O) interface 405 is also connected to the bus 404.

[0109] The following components are connected to the I / O interface 405: an input section 406 including a keyboard, a mouse, etc.; an output section 407 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 408 including a hard disk, etc.; and a communication section 409 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 409 performs communication processing via a network such as the Internet. A drive 410 is also connected to the I / O interface 405 as needed. A removable medium 411, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 410 as needed so that a computer program read therefrom is installed into the storage section 408 as needed.

[0110] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication part 409, and / or installed from a removable medium 411. When the computer program is executed by the central processing unit (CPU) 401, various functions defined in the system of the present application are executed.

[0111] It should be noted that the computer-readable medium shown in the embodiment of the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, device or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable computer program. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate, or transmit programs for use by or in conjunction with an instruction execution system, apparatus, or device. The computer program contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0112] The flowchart and block diagram in the accompanying drawings illustrate the system architecture, functions and operations that can be realized according to the system, method and computer program product of various embodiments of the present application. Among them, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0113] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.

[0114] According to one aspect of the present application, a computer program product or a computer program is provided, the computer program product or the computer program comprising computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the methods provided in the above-mentioned various optional implementations.

[0115] As another aspect, the present application also provides a computer-readable medium, which may be included in the electronic device described in the above embodiment; or may exist independently without being assembled into the electronic device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by an electronic device, the electronic device implements the method described in the above embodiment.

[0116] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.

[0117] Through the description of the above implementation methods, it is easy for those skilled in the art to understand that the example implementation methods described here can be implemented by software, or by combining software with necessary hardware. Therefore, the technical solution according to the implementation method of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the implementation method of the present application.

[0118] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the embodiments disclosed herein. The present application is intended to cover any variations, uses or adaptations of the present application, which follow the general principles of the present application and include common knowledge or customary technical means in the art that are not disclosed in the present application.

[0119] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A method for calculating the positioning of a pan-tilt device based on terrain differentiation, characterized in that: include: Collect topographic data of the measured area through the pan-tilt platform and acquisition device; When it is detected that there is a target area whose position elevation is greater than a set threshold in the terrain data, obtaining the PTZ position data and attitude change data relative to the target area; Modeling is performed based on the terrain data, the gimbal orientation data, and the attitude change data to generate contour information of the target area; Obtain information about the target to be measured; If the gimbal attitude parameters corresponding to the information of the target to be measured fall within the contour information of the target area, the positioning information of the target to be measured is determined based on the gimbal attitude parameters and the map positioning function through the association relationship model between the gimbal attitude and the target elevation.

2. The method according to claim 1, characterized in that The terrain data of the measured area is collected through the pan-tilt head and acquisition device, including: Acquiring a topographic image of the measured area by means of a camera as the topographic data; and / or The terrain data of the measured area is scanned by radar and three-dimensional modeling is performed.

3. The method according to claim 1, characterized in that: When it is detected that there is a target area whose position elevation is greater than a set threshold in the terrain data, the PTZ position data and attitude change data relative to the target area are obtained, including: When a target area whose position height difference is greater than a set threshold value is detected in the terrain data, a boundary of the target area is calibrated; The PTZ position data and attitude change data relative to the boundary of the target area are recorded.

4. The method according to claim 3, characterized in that The gimbal orientation data includes the azimuth, inclination and roll angle of the gimbal corresponding to the boundary; The posture change data includes posture change information of the gimbal corresponding to a set direction.

5. The method according to claim 1, characterized in that After modeling based on the terrain data, the gimbal orientation data and the attitude change data to generate the contour information of the target area, the method further includes: The profile information is recorded based on a set data storage format.

6. The method according to claim 1, characterized in that If the gimbal attitude parameter corresponding to the information of the target to be measured falls within the contour information of the target area, then based on the gimbal attitude parameter and the map positioning function, the positioning information of the target to be measured is determined through the association relationship model between the gimbal attitude and the target elevation, including: Based on the information of the target to be measured, determining whether the gimbal attitude parameter corresponding to the information falls within the contour information of the target area; If yes, then determine the relative position of the gimbal attitude parameter in the target area through the association relationship model between the gimbal attitude and the target elevation; Based on the relative position and the positioning function, the positioning information of the target to be measured is determined.

7. The method according to claim 6, characterized in that The gimbal attitude parameters include: azimuth angle, pitch angle and roll angle.

8. A PTZ equipment positioning and calculation device based on terrain differentiation, characterized in that: include: A collection unit, used to collect topographic data of the measured area through a pan-tilt platform and a collection device; A detection unit, configured to, when detecting that a target area having a position elevation greater than a set threshold exists in the terrain data, obtain the PTZ position data and attitude change data relative to the target area; A generating unit, configured to generate contour information of the target area by modeling based on the terrain data, the PTZ orientation data and the attitude change data; An acquisition unit, used for acquiring information of a target to be measured; The measuring unit is used to determine the positioning information of the target to be measured based on the gimbal attitude parameters and the map positioning function through the association relationship model between the gimbal attitude and the target elevation if the gimbal attitude parameters corresponding to the information of the target to be measured fall within the contour information of the target area.

9. A computer readable medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for positioning and calculating a pan-tilt device based on terrain differentiation according to any one of claims 1 to 7 is implemented.

10. An electronic device, characterized in that: include: one or more processors; A storage device for storing one or more programs, which, when executed by the one or more processors, enables the one or more processors to implement the method for positioning and calculating a pan-tilt device based on terrain differentiation as described in any one of claims 1 to 7.