Mobile terminal detection method and device for resource map, electronic equipment and medium

By mapping the resource map to Riemann space and using Gaussian mapping and region growth methods, the problem of calculation error under the sphere coordinate system in the prior art is solved, and high-precision resource map analysis on the mobile terminal is realized, and land mapping efficiency is improved.

CN118982548APending Publication Date: 2024-11-19HUIZHOU PUCHEN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410814767.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-24
Publication Date
2024-11-19

AI Technical Summary

Technical Problem

The existing land resource system has large calculation errors when calculating the plan map area of ​​the resource map under the spherical coordinate system, and it is impossible to effectively view and analyze the resource map on the mobile terminal.

Method used

By mapping the resource map to Riemann space, filtering out the target map area, determining the relevant points, connecting the relevant points to form a geodesic, and mapping the geodesic back to the resource map to obtain a plane map area, using Gaussian mapping and region growth method Reduce calculation error.

Benefits of technology

The mobile terminal realizes the accurate calculation of the plan map area of ​​the resource map under the sphere coordinate system, which improves the calculation accuracy and efficiency, and can view and analyze resource maps at any time outdoors, improving the efficiency of land surveying and mapping.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118982548A_ABST
    Figure CN118982548A_ABST
Patent Text Reader

Abstract

The invention provides a mobile terminal detection method and device for a resource map, electronic equipment and a medium. The method comprises the steps of logging in a mobile terminal and obtaining the resource map. And mapping the resource map to a Riemannian space to obtain a Riemannian map. And entering a predetermined matching mode, and screening out a target map area corresponding to the first tag from the Riemannian map. And determining a plurality of related points in the target map area to obtain a related point set, and connecting adjacent related points to obtain a geodesic line. And mapping the geodesic line back to the resource map to obtain a plane map area. Land resources are mapped to Riemannian space, and a resource map in a plane form can be converted to a unit spherical surface. According to the region growing method, pixel points with similar properties are combined together, and a boundary of land resources is obtained. The method can be applied to a mobile terminal, image segmentation and related point generation are carried out in a Riemannian space, then the geodesic line is mapped to a two-dimensional plane, and the obtained planar map area is small in error and high in accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of map detection technology, and in particular to a mobile terminal detection method, device, electronic device and medium for resource maps. Background Art

[0002] The types of land resources are relatively complex. One of the effective ways to view and analyze land resources is to draw a resource map, store the resource map on the server, and the user logs in to the server to view the resource map and calls the analysis tool on the server to analyze the resource map.

[0003] The existing land resource system has the functions of zooming in the map window, zooming out the map window, displaying the entire map, moving the map window, measuring the length of the map line, and measuring the area of ​​the map window. Since land resources are distributed on the land, and the land is located on the earth, the land resources are distributed on a sphere. However, the existing land resource system directly selects the map window in the plane map and calculates the plane map area under the two-dimensional coordinate system, which has a large calculation error.

[0004] Therefore, a method is needed that can calculate the planar map area of ​​a resource map in a spherical coordinate system, reduce calculation errors, and view and analyze the resource map at any time on a mobile terminal. Summary of the invention

[0005] In order to overcome the problems existing in the related art, one of the purposes of the present invention is to provide a mobile terminal detection method for a resource map, which can calculate the plane map area of ​​the resource map in a spherical coordinate system and reduce the calculation error.

[0006] A mobile terminal detection method for a resource map, comprising:

[0007] Log in to the mobile terminal and obtain the resource map;

[0008] Mapping the resource map to the Riemann space to obtain a Riemann map;

[0009] Entering a predetermined matching mode, and selecting a target map area corresponding to the first label from the Riemann map;

[0010] Determine a plurality of related points in the target map area to obtain a set of related points; wherein the plurality of related points are determined based on a region growing method;

[0011] Connecting adjacent related points to obtain a geodesic line;

[0012] The geodesic is mapped back to the resource map to obtain a plane map area; wherein the mobile terminal is used to display the plane map area.

[0013] In a preferred technical solution of the present invention, mapping the resource map to the Riemann space to obtain the Riemann map includes:

[0014] Dividing the resource map into N unit maps;

[0015] Use Gaussian mapping to map the N unit maps onto the unit sphere in sequence to obtain a Riemann map;

[0016] The formula for Gaussian mapping is as follows:

[0017] N: X → S 2 ;

[0018] Where N is a Gaussian map, X is a surface or a plane, and S2 is a unit sphere.

[0019] In a preferred technical solution of the present invention, the step of selecting a target map area corresponding to the first label from the Riemann map includes:

[0020] Obtain map labels for all surface map areas in the Riemann map;

[0021] It is detected whether the map tag is the first tag, and if so, the corresponding curved map area is used as the target map area.

[0022] In a preferred technical solution of the present invention, the step of determining a plurality of related points in the target map area to obtain a set of related points includes:

[0023] Performing image segmentation on the target map area to obtain boundary lines;

[0024] A plurality of relevant points are selected on the boundary line to obtain a relevant point set.

[0025] In a preferred technical solution of the present invention, the step of performing image segmentation on the target map area to obtain a boundary line includes:

[0026] Selecting a first pixel point and a second pixel point in the target map area;

[0027] Starting region growth from the first pixel point;

[0028] It is detected whether the growth point of the current region is located in the neighborhood of the second pixel point. If so, the growth is stopped to obtain a boundary line.

[0029] In a preferred technical solution of the present invention, the step of selecting a plurality of relevant points on the boundary line to obtain a set of relevant points includes:

[0030] Get all regional growth points;

[0031] A plurality of related points are screened out from all the regional growth points at preset intervals to obtain a set of related points.

[0032] In a preferred technical solution of the present invention, mapping the geodesic back to the resource map to obtain a planar map area includes:

[0033] The geodesic is mapped back to the resource map using inverse Gaussian mapping to obtain a planar map area.

[0034] A second object of the present invention is to provide a mobile terminal detection device for a resource map, comprising:

[0035] Resource map acquisition module, used to log in to the mobile terminal and obtain resource maps;

[0036] A mapping module, used for mapping the resource map to a Riemann space to obtain a Riemann map;

[0037] A target map area screening module, used to enter a predetermined matching mode and screen out a target map area corresponding to the first label from the Riemann map;

[0038] A related point determination module, used to determine a plurality of related points in the target map area to obtain a related point set;

[0039] A geodesic line drawing module, used for connecting the adjacent related points to obtain a geodesic line;

[0040] The inverse mapping module is used to map the geodesic back to the resource map to obtain a planar map area.

[0041] A third object of the present invention is to provide an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and wherein the processor implements the steps of the mobile terminal detection method of the resource map described in any one of the above items when executing the computer program.

[0042] A fourth objective of the present invention is to provide a readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the steps of the mobile terminal detection method of the resource map described in any one of the above items are implemented.

[0043] In a preferred technical solution of the present invention,

[0044] The beneficial effects of the present invention are:

[0045] The present invention provides a mobile terminal detection method for a resource map, including logging in to a mobile terminal and obtaining a resource map. The resource map is mapped to a Riemann space to obtain a Riemann map. A predetermined matching mode is entered to filter out a target map area corresponding to a first label from the Riemann map. Multiple related points are determined in the target map area to obtain a set of related points. Adjacent related points are connected to obtain geodesics. The geodesics are mapped back to the resource map to obtain a plane map area, wherein the mobile terminal is used to display the plane map area. The Riemann space is a vector space, and the land resources are mapped to the Riemann space, and the planar resource map can be converted to a unit sphere. The region growing method is to merge pixels with similar properties together, and the region growing method can be used to generate multiple related points, and the adjacent related points are connected to obtain a boundary of a land resource. The region growing method does not require prior knowledge and has a better effect of segmenting complex images. The above method performs image segmentation and generates related points in the Riemann space, and then maps the geodesics in the Riemann space to a two-dimensional plane, and the error of the obtained plane map area is small and the accuracy is high. In addition, the above method is integrated into the mobile APP. When the staff conducts land surveying outdoors, they can view and analyze the resource map on the mobile terminal at any time, thereby improving the efficiency of surveying and mapping land resources. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Figure 1 It is a flow chart of the mobile terminal detection method of the resource map provided by the present invention;

[0047] Figure 2 It is a schematic diagram of the process of performing image segmentation on a target map area provided by the present invention;

[0048] Figure 3 It is a schematic block diagram of the structure of the mobile terminal detection device of the resource map provided by the present invention. DETAILED DESCRIPTION

[0049] The preferred embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although the preferred embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to make the present invention more thorough and complete, and to fully convey the scope of the present invention to those skilled in the art.

[0050] Example 1

[0051] like Figure 1 As shown, this embodiment provides a mobile terminal detection method for a resource map, including:

[0052] S1: Log in to the mobile terminal and obtain the resource map.

[0053] The mobile terminal has the functions of communication, data storage and resource map display. This embodiment takes the mobile terminal as a mobile phone as an example.

[0054] The resource map analysis app on the mobile terminal includes thematic layer options and land area analysis options. There are multiple layer sub-options under the thematic layer options. Click the sub-options to switch between different layers. There are multiple analysis sub-options under the land area analysis option, including drawing geodesic lines and drawing flat map areas.

[0055] S2: Map the resource map to the Riemann space to obtain a Riemann map.

[0056] Riemann space is a vector space where points are related by tangent vectors. The distance and angle between two points in a Riemann space can be calculated using the Riemann metric inner product.

[0057] Step S2 includes the following steps S21-S22:

[0058] S21: Divide the resource map into N unit maps.

[0059] S22: Use Gaussian mapping to sequentially map the N unit maps onto a unit sphere to obtain a Riemann map.

[0060] The resource map has a large area and contains many pixels, so the resource map is divided into N unit maps. The division method is to select multiple first dividing lines and multiple second dividing lines, different first dividing lines are parallel to each other, different second dividing lines are parallel to each other, and the first dividing lines and the second dividing lines intersect, and the intersection method can be vertical or form a certain angle, which is not limited here.

[0061] A plane is a special surface whose Gaussian curvature is 0. A resource map is a plane map, so it can be mapped onto other surfaces whose Gaussian area is not 0.

[0062] It is impossible to construct a sphere on a plane, and it is impossible to construct a plane on a sphere. Therefore, a Gaussian map is used to map each unit map onto the unit sphere, resulting in N Riemann maps.

[0063] The formula for Gaussian mapping is as follows:

[0064] N: X → S 2 ;

[0065] Where N is a Gaussian map, X is a surface or plane, and S 2 is the unit sphere.

[0066] N(p) represents the unit vector orthogonal to the surface or plane X at point p, that is, the normal vector of the surface or plane X at point p.

[0067] S3: Entering a predetermined matching mode, and selecting a target map area corresponding to the first label from the Riemann map.

[0068] There are two ways to select the target map area on the mobile terminal. The first is the pre-matching method, which is to filter the map area type according to the map label, and then select the target map area from the selected map area type. The second is the manual selection method, which is to manually select the target box vertex in the resource map, and then manually enter the width and height of the target box to determine the target map area.

[0069] S4: Determine a plurality of related points in the target map area to obtain a set of related points; wherein the plurality of related points are determined based on a region growing method.

[0070] Step S4 includes the following steps S41-S42:

[0071] S41: performing image segmentation on the target map area to obtain boundary lines.

[0072] S42: Select multiple relevant points on the boundary line to obtain a relevant point set.

[0073] Image segmentation can distinguish the target area from the background area, and selecting multiple relevant points on the boundary line can reduce the amount of data and improve computing efficiency.

[0074] S5: Connect the adjacent related points to obtain a geodesic line.

[0075] A geodesic is a local shortest path or a local longest path between two points in space. In this embodiment, the geodesic is a curve on a unit sphere.

[0076] For example, if there are n related points in total, first connect the first related point and the second related point, then connect the second related point and the third related point, and so on until the n-1th related point and the nth related point are connected to obtain the geodesic.

[0077] Preferably, after connecting n relevant points to obtain a geodesic line, curve fitting is performed on the geodesic line to adjust the shape of the geodesic line.

[0078] S6: Mapping the geodesic back to the resource map to obtain a planar map area; wherein the mobile terminal is used to display the planar map area.

[0079] The geodesic is mapped from the unit sphere back to the two-dimensional plane to form a planar map area in the resource map. The planar map area is a continuous and closed plane figure. After the planar map area is determined, the length and area of ​​the planar map area can be calculated in the two-dimensional plane.

[0080] A mobile terminal detection method for a resource map provided in this embodiment includes logging in to a mobile terminal and obtaining a resource map. Mapping the resource map to Riemann space to obtain a Riemann map. Entering a predetermined matching mode, filtering out a target map area corresponding to a first label from the Riemann map. Determine multiple related points in the target map area to obtain a set of related points. Connect adjacent related points to obtain geodesics. Map the geodesics back to the resource map to obtain a plane map area, wherein the mobile terminal is used to display the plane map area. Riemann space is a vector space. By mapping land resources to Riemann space, a planar resource map can be converted to a unit sphere. The region growing method is to merge pixels with similar properties together. The region growing method can generate multiple related points, connect adjacent related points, and obtain a boundary of a land resource. The region growing method does not require prior knowledge and has a better effect of segmenting complex images. The above method performs image segmentation and generates related points in Riemann space, and then maps the geodesics in the Riemann space to a two-dimensional plane. The error of the obtained plane map area is small and the accuracy is high. In addition, the above method is integrated into the mobile APP. When the staff conducts land surveying outdoors, they can view and analyze the resource map on the mobile terminal at any time, thereby improving the efficiency of surveying and mapping land resources.

[0081] Example 2

[0082] This embodiment only describes the differences from Embodiment 1, such as Figure 2 As shown, the image segmentation of the target map area to obtain the boundary line includes:

[0083] S411: Select a first pixel point and a second pixel point in the target map area.

[0084] S412: Starting region growth from the first pixel point.

[0085] S413: Detect whether the growth point of the current region is located in the neighborhood of the second pixel point. If so, stop growing and obtain a boundary line.

[0086] A first pixel point and a second pixel point are randomly selected from a target map area in a manner with constraints. The constraint condition can be that the distance between the first pixel point and the second pixel point must be within a preset distance range, or that the difference between the pixel values ​​of the first pixel point and the second pixel point must be within a first difference range.

[0087] The principle of the region growing method is to classify pixels in an image that have the same or similar image features into one category. The image features can be pixel values ​​or pixel gradients, which are not limited here.

[0088] Starting from the first pixel, a growth point is randomly selected in the neighborhood of the first pixel with a radius of r1, and this growth point is used as the first growth point. Then a growth point is randomly selected in the neighborhood of the first growth point with a radius of r2, and this growth point is used as the second growth point, until the second pixel is located at the radius of r1 of the generated Nth growth point. N The region growing ends within the neighborhood of .

[0089] Connect all adjacent pixel points to obtain a boundary line. For example, connect the first pixel point to the first growth point, connect the first growth point to the second growth point, and connect the Nth growth point to the second pixel point.

[0090] The step of selecting a plurality of relevant points on the boundary line to obtain a relevant point set comprises:

[0091] S421: Obtain all regional growth points.

[0092] S422: Filter out a plurality of related points from all the regional growth points according to a preset interval to obtain a related point set.

[0093] A plurality of related points are screened out from all regional growth points in an interval sampling manner. For example, there are 20 related points in total. The sampling interval is set to 5, and 4 related points are screened out to obtain a related point set, which includes the 1st related point, the 6th related point, the 11th related point and the 16th related point.

[0094] Mapping the geodesic back to the resource map to obtain a planar map area includes:

[0095] The geodesic is mapped back to the resource map using inverse Gaussian mapping to obtain a planar map area.

[0096] The inverse Gaussian mapping is the inverse mapping of the Gaussian mapping. The inverse Gaussian mapping can be used to map the geodesic in the Riemann space back to the two-dimensional plane where the resource map is located to obtain a plane map area. The plane map area is a continuous closed figure, which can be a regular figure or an irregular figure, which is not limited here.

[0097] After determining the plane map area, the length and area of ​​the plane map area are calculated. The pixel point counting method can be used to first count the number of pixels k1 included in the outline of the plane map area and the number of pixels k2 in the plane map area, and then calculate the length and area corresponding to the plane map area according to the proportional relationship.

[0098] This embodiment performs image segmentation on the target map area to obtain a boundary line, including selecting a first pixel point and a second pixel point in the target map area, and starting regional growth from the first pixel point. Detect whether the current regional growth point is located in the neighborhood of the second pixel point. If so, stop growing to obtain a boundary line. Select multiple related points on the boundary line to obtain a set of related points, including obtaining all regional growth points, and screening out multiple related points from all the regional growth points according to preset intervals to obtain a set of related points. Map the geodesic back to the resource map to obtain a plane map area, including using Gaussian inverse mapping to map the geodesic back to the resource map to obtain a plane map area. Regional growing can segment closed areas and has a better segmentation effect in complex environments.

[0099] Example 3

[0100] like Figure 3 As shown, this embodiment provides a mobile terminal detection device for a resource map, which is applied to the mobile terminal detection method for a resource map in Embodiment 1 or Embodiment 2, and the device includes:

[0101] The resource map acquisition module 10 is used to log in to the mobile terminal and obtain the resource map;

[0102] A mapping module 20, used for mapping the resource map to a Riemann space to obtain a Riemann map;

[0103] A target map area screening module 30 is used to enter a predetermined matching mode and screen out a target map area corresponding to the first label from the Riemann map;

[0104] A related point determination module 40, configured to determine a plurality of related points in the target map area to obtain a related point set;

[0105] A geodesic line drawing module 50, used for connecting the adjacent related points to obtain a geodesic line;

[0106] The inverse mapping module 60 is used to map the geodesic back to the resource map to obtain a plane map area; wherein the mobile terminal is used to display the plane map area.

[0107] The mobile terminal detection device of the resource map of this embodiment can be implemented by hardware, or by a combination of hardware and software.

[0108] Example 4

[0109] This embodiment provides an electronic device, which includes a memory and a processor.

[0110] The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0111] Memory may include various types of storage units such as system memory, read-only memory (ROM), and permanent storage.

[0112] The memory stores executable codes, and when the executable codes are processed by the processor, the processor can execute part or all of the mobile terminal detection method of the resource map mentioned above.

[0113] This embodiment also provides a readable storage medium, which is disposed in an electronic device. The readable storage medium stores a computer program, which implements the steps of the mobile terminal detection method of the resource map in Embodiment 1 or Embodiment 2 when executed by a processor.

[0114] Unless otherwise specifically stated, the relative arrangement, numerical expressions and numerical values ​​of the parts and steps set forth in these embodiments do not limit the scope of the application. In all examples shown and discussed here, any specific value should be interpreted as being merely exemplary, rather than as a restriction. Therefore, other examples of exemplary embodiments can have different values. It should be noted that similar reference numerals and letters represent similar items in the following drawings, and therefore, once a certain item is defined in an accompanying drawing, it does not need to be further discussed in the subsequent accompanying drawings.

[0115] It should be understood that spatially relative terms are intended to encompass different orientations of the device in use or operation in addition to the orientation depicted in the figures. For example, if the device in the figures is inverted, a device described as "above" or "above" other devices or structures would then be positioned "below" or "below" the other devices or structures. Thus, the exemplary term "above" can include both the orientations of "above" and "below." The device may also be positioned in other different ways (rotated 90 degrees or in other orientations), and the spatially relative descriptions used herein should be interpreted accordingly.

[0116] In addition, it should be noted that the use of terms such as "first" and "second" to limit components is only for the convenience of distinguishing the corresponding components. Unless otherwise stated, the above terms have no special meaning and therefore cannot be understood as limiting the scope of protection of this application.

[0117] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A mobile terminal detection method for a resource map, characterized in that: include: Log in to the mobile terminal and obtain the resource map; Mapping the resource map to the Riemann space to obtain a Riemann map; Entering a predetermined matching mode, and selecting a target map area corresponding to the first label from the Riemann map; Determine a plurality of related points in the target map area to obtain a set of related points; wherein the plurality of related points are determined based on a region growing method; Connecting adjacent related points to obtain a geodesic line; The geodesic is mapped back to the resource map to obtain a plane map area; wherein the mobile terminal is used to display the plane map area.

2. The mobile terminal detection method of resource map according to claim 1, characterized in that: Mapping the resource map to the Riemann space to obtain a Riemann map includes: Dividing the resource map into N unit maps; Use Gaussian mapping to map the N unit maps onto the unit sphere in sequence to obtain a Riemann map; The formula for Gaussian mapping is as follows: N:X→S 2 ; Where N is a Gaussian map, X is a surface or a plane, and S2 is a unit sphere.

3. The mobile terminal detection method of resource map according to claim 1, characterized in that: The step of selecting a target map area corresponding to the first label from the Riemann map includes: Obtain map labels for all surface map areas in the Riemann map; It is detected whether the map tag is the first tag, and if so, the corresponding curved map area is used as the target map area.

4. The mobile terminal detection method of resource map according to claim 1, characterized in that: Determining a plurality of related points in the target map area to obtain a set of related points includes: Performing image segmentation on the target map area to obtain boundary lines; A plurality of relevant points are selected on the boundary line to obtain a relevant point set.

5. The mobile terminal detection method of resource map according to claim 4 is characterized in that: The step of performing image segmentation on the target map area to obtain a boundary line includes: Selecting a first pixel point and a second pixel point in the target map area; Starting region growth from the first pixel point; It is detected whether the growth point of the current region is located in the neighborhood of the second pixel point. If so, the growth is stopped to obtain a boundary line.

6. The mobile terminal detection method of resource map according to claim 5, characterized in that: The step of selecting a plurality of relevant points on the boundary line to obtain a relevant point set comprises: Get all regional growth points; A plurality of related points are screened out from all the regional growth points at preset intervals to obtain a set of related points.

7. The mobile terminal detection method of resource map according to claim 1, characterized in that: Mapping the geodesic back to the resource map to obtain a planar map area includes: The geodesic is mapped back to the resource map using inverse Gaussian mapping to obtain a planar map area.

8. A mobile terminal detection device for a resource map, characterized in that: include: Resource map acquisition module, used to log in to the mobile terminal and obtain resource maps; A mapping module, used for mapping the resource map to a Riemann space to obtain a Riemann map; A target map area screening module, used to enter a predetermined matching mode and screen out a target map area corresponding to the first label from the Riemann map; A related point determination module, used to determine a plurality of related points in the target map area to obtain a related point set; A geodesic line drawing module, used for connecting the adjacent related points to obtain a geodesic line; The inverse mapping module is used to map the geodesic back to the resource map to obtain a plane map area; wherein the mobile terminal is used to display the plane map area.

9. An electronic device comprising a memory and a processor, wherein a computer program is stored in the memory, wherein: When the processor executes the computer program, the steps of the mobile terminal detection method of the resource map as described in any one of claims 1 to 7 are implemented.

10. A readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the mobile terminal detection method of the resource map as described in any one of claims 1 to 7 are implemented.