A method and device for obtaining geographic coordinates of image boundaries and building boundaries

By segmenting and vectorizing the user-input address, using the BERT model for matching and error correction, obtaining the target image and performing binarization and edge detection, extracting geographic coordinates, and converting the user account serial number into binary watermark information and embedding it in the coordinates, the problem of non-automatic and non-intelligent geographic address resolution in the existing technology is solved, and efficient and secure address resolution and geographic information processing is achieved.

CN120407840BActive Publication Date: 2025-09-19BEIJING BODAO FOCUS TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510906074.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-07-02
Publication Date
2025-09-19
Estimated Expiration
2045-07-02

AI Technical Summary

Technical Problem

The existing technology is independent and lacks integration in each link of geographic address resolution, resulting in a non-automated and intelligent processing process, low processing efficiency, and the need for users to perform manual operations. In addition, the geographic coordinate extraction function is limited and cannot meet the needs of data security and personalized display.

Method used

By segmenting and vectorizing the user input address and the storage address in the address database, using the BERT model for matching and error correction, obtaining the target image and performing binarization and edge detection, extracting geographic coordinates, and converting the user account serial number into binary watermark information and embedding it in the coordinates.

Benefits of technology

It realizes the automation and intelligence of geographic address processing, improves the accuracy and processing efficiency of address resolution, enriches geographic information processing functions, enhances user experience, and ensures the security of geographic coordinates.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120407840B_ABST
    Figure CN120407840B_ABST
Patent Text Reader

Abstract

The present application relates to the field of geographic information systems and address resolution technology, and in particular to a method for obtaining the geographic coordinates of image boundaries and building boundaries, the method comprising: segmenting an input address input by a user and a storage address corresponding to the input address in an address database respectively; obtaining a plurality of input sub-addresses and an input vectorized sub-address corresponding to each input sub-address; obtaining a plurality of storage sub-addresses and a storage vectorized sub-address corresponding to each storage sub-address; obtaining a target address based on a matching result of each input sub-address and a storage sub-address corresponding to the input sub-address, as well as the input vectorized sub-address and the storage vectorized sub-address; obtaining a target image including the target address according to the target address, and determining the target address boundary geographic coordinates of the target address and the building boundary geographic coordinates in the target image according to the pixel coordinates of the target image.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention belong to the field of geographic information systems and address resolution technology, and in particular to a method and device for obtaining geographic coordinates of image boundaries and building boundaries. Background Art

[0002] In the field of geographic address resolution, existing technologies typically employ a decentralized approach. After a user enters an address, the system calls an address query interface provided by an online image service provider, returning the top few matching addresses. The user then manually selects the correct address for subsequent processing. Geographic coordinate processing typically only involves displaying a page at a certain scale based on the center coordinate point. Operations such as accurately extracting the geographic coordinate range from the image page and embedding watermarks are rarely addressed.

[0003] The existing technical solutions have the following technical problems:

[0004] First, each link is relatively independent and lacks effective integration, resulting in insufficient automation and intelligence in the processing process;

[0005] Second, the processing efficiency is low, and users need to manually operate in different links, which makes it impossible to achieve one-stop geographic address-related operations;

[0006] Third, the geographic coordinate extraction and processing functions are limited and cannot meet some needs in terms of data security and personalized display.

[0007] In summary, the existing technologies have the problem that each link of address resolution is relatively independent and lacks effective integration, resulting in an inconsistent processing flow, making it difficult to achieve automation and intelligence, and the coordinates associated with the address have poor security issues. Summary of the Invention

[0008] The embodiments of the present invention provide a method and apparatus for obtaining geographic coordinates of image boundaries and building boundaries, which are used to solve related problems in the prior art.

[0009] An embodiment of the present invention provides a method for obtaining geographic coordinates of image boundaries and building boundaries, the method comprising:

[0010] The input address input by the user and the storage address corresponding to the input address in the address database are respectively divided; a plurality of input sub-addresses and an input vectorized sub-address corresponding to each input sub-address are obtained; a plurality of storage sub-addresses and a storage vectorized sub-address corresponding to each storage sub-address are obtained;

[0011] Obtaining a target address based on a matching result between each input sub-address and a storage sub-address corresponding to the input sub-address, and the input vectorized sub-address and the storage vectorized sub-address;

[0012] According to the target address, a target picture including the target address is obtained, and according to the pixel coordinates of the target picture, the target address boundary geographic coordinates of the target address and the building boundary geographic coordinates in the target picture are determined.

[0013] Specifically, obtaining the target address based on a matching result between each input sub-address and a storage sub-address corresponding to the input sub-address, and the input vectorized sub-address and the storage vectorized sub-address includes:

[0014] Perform a matching operation using each input sub-address and the storage sub-address corresponding to the input sub-address one by one;

[0015] When the input sub-address and the storage sub-address corresponding to the input sub-address match successfully, the input address corresponding to the input sub-address is used as the target address;

[0016] When the input sub-address and the storage sub-address corresponding to the input sub-address do not match, the similarity between the input vectorized sub-address of the input sub-address and the storage vectorized sub-address of the storage sub-address is calculated. When the similarity is greater than a preset threshold, the storage sub-address replaces the input sub-address, and the input address after replacement is used as the target address.

[0017] Specifically, acquiring a target image including the target address according to the target address, and determining the target address boundary geographic coordinates of the target address according to the pixel coordinates of the target image, includes:

[0018] The target picture includes a first target picture;

[0019] Scaling the online image according to a first preset scaling ratio, taking the target address as the center and capturing a first target image containing the target address from the online image after the scaling operation is completed according to a preset pixel size;

[0020] performing binarization and edge detection on the first target image, and extracting target address pixel coordinates corresponding to the target address according to pixel coordinates of the first target image;

[0021] The target address boundary geographic coordinates corresponding to the target address are extracted according to the target address pixel coordinates.

[0022] Specifically, obtaining a target image including the target address according to the target address, and determining the geographic coordinates of the building boundary in the target image according to the pixel coordinates of the target image includes:

[0023] The target picture includes a second target picture;

[0024] Scaling the online image according to a second preset scaling ratio, taking the target address as the center and capturing a second target image containing the target address from the online image after the scaling operation is completed according to a preset pixel size;

[0025] performing binarization and edge detection on the building image in the second target image, and extracting building pixel coordinates corresponding to the building image based on the pixel coordinates of the second target image;

[0026] The building boundary geographic coordinates corresponding to the target address are extracted according to the building pixel coordinates.

[0027] Specifically, after determining the geographical coordinates of the target address boundary of the target address, the method further includes:

[0028] Convert the current user's account serial number into binary watermark information of a preset length. When the number of coordinates in the target address boundary geographic coordinates is greater than or equal to the preset length, embed the binary watermark information into the target address boundary geographic coordinates in sequence according to the following formula:

[0029] ;

[0030] in The first geographical coordinate of the target address boundary coordinates, The first binary values, The embedding method is If it is 0, the decimal position of the target address boundary geographical location is changed to an even number. If it is 1, the decimal preset position of the coordinate will be changed to an odd number.

[0031] Specifically, after the binary watermark information is embedded into the geographical coordinates of the target address boundary, the method further includes:

[0032] Overlaying the boundary of the target image corresponding to the target address and the boundary of the building in the target image on the base map of the online image for display to the user;

[0033] When receiving a command from the user to click on the boundary of the target image, searching for the standardized address corresponding to the target image in the standard address library, and displaying the boundary coordinates of the target image and the standardized address of the target image on the page;

[0034] When receiving a command from a user to click on a building in a target image, a standardized address corresponding to the building is found in a standard address library, and the boundary coordinates of the building and the standardized address of the building are displayed on the page.

[0035] An embodiment of the present invention provides a device for obtaining geographic coordinates of image boundaries and building boundaries, the device comprising:

[0036] The first operation module is configured to split the input address input by the user and the storage address corresponding to the input address in the address database respectively; obtain a plurality of input sub-addresses and an input vectorized sub-address corresponding to each input sub-address; obtain a plurality of storage sub-addresses and a storage vectorized sub-address corresponding to each storage sub-address;

[0037] a second operation module, configured to obtain a target address based on a matching result between each input sub-address and a storage sub-address corresponding to the input sub-address, and the input vectorized sub-address and the storage vectorized sub-address;

[0038] The determination module is configured to obtain a target image including the target address according to the target address, and determine the target address boundary geographic coordinates of the target address and the building boundary geographic coordinates in the target image according to the pixel coordinates of the target image.

[0039] Specifically, the second operation module is specifically used to:

[0040] Perform a matching operation using each input sub-address and the storage sub-address corresponding to the input sub-address one by one;

[0041] When the input sub-address and the storage sub-address corresponding to the input sub-address match successfully, the input address corresponding to the input sub-address is used as the target address;

[0042] When the input sub-address and the storage sub-address corresponding to the input sub-address do not match, the similarity between the input vectorized sub-address of the input sub-address and the storage vectorized sub-address of the storage sub-address is calculated. When the similarity is greater than a preset threshold, the storage sub-address replaces the input sub-address, and the input address after replacement is used as the target address.

[0043] Specifically, the determining module is specifically used to:

[0044] The target picture includes a first target picture;

[0045] Scaling the online image according to a first preset scaling ratio, taking the target address as the center and capturing a first target image containing the target address from the online image after the scaling operation is completed according to a preset pixel size;

[0046] performing binarization and edge detection on the first target image, and extracting target address pixel coordinates corresponding to the target address according to pixel coordinates of the first target image;

[0047] The target address boundary geographic coordinates corresponding to the target address are extracted according to the target address pixel coordinates.

[0048] An embodiment of the present invention provides an electronic device, characterized in that the electronic device includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction is executed by the processor to perform the above-mentioned method steps for obtaining the geographic coordinates of image boundaries and building boundaries.

[0049] The method provided by the present invention enables intelligent parsing and error correction of user-entered geographic addresses, as well as the effective extraction, secure processing, and display of geographic coordinates, achieving the technical effects of improving address parsing accuracy, enriching geographic information processing capabilities, and enhancing user experience. Specifically, the user-entered address name is first obtained, and subword segmentation and vectorization are performed using the BERT model. Next, an online image service interface is called for querying and the top five search results are obtained. The query results are processed one by one using the BERT model and compared with the subword set of the input address. If no match occurs, similarity is calculated, replacement and error correction are performed, and candidate addresses are generated. Based on the corrected address, a standardized address is retrieved and the address range is queried. An image is captured, and pixel coordinates are extracted after binarization and edge detection, and the actual geographic coordinates are obtained. Finally, the user account serial number is converted into binary watermark information and embedded in the geographic coordinates. Finally, the address boundary and building boundary are superimposed and displayed. Clicking on them displays the corresponding coordinates and standardized address. The present invention can achieve automated and intelligent geographic address processing, improve overall processing efficiency, and facilitate users to perform one-stop geographic address-related operations. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] Figure 1 A flow chart of a method for obtaining geographic coordinates of image boundaries and building boundaries provided by an embodiment of the present invention;

[0051] Figure 2 The present invention provides a schematic structural diagram of an apparatus for obtaining geographic coordinates of image boundaries and building boundaries. DETAILED DESCRIPTION

[0052] To make the above-mentioned objects, features, and advantages of the present application more clearly understood, the specific embodiments of the present application are described in detail below with reference to the accompanying drawings. The following description sets forth many specific details to facilitate a full understanding of the present application. However, the present application can be implemented in many other ways than those described herein, and those skilled in the art can make similar improvements without violating the scope of the present application. Therefore, the present application is not limited to the specific embodiments disclosed below.

[0053] In the description of this application, it should be understood that if the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise", "axial", "radial", "circumferential", etc. appear, the orientation or position relationship indicated by these terms is based on the orientation or position relationship shown in the accompanying drawings, which is only for the convenience of describing this application and simplifying the description, and does not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on this application.

[0054] In addition, if the terms "first" or "second" appear, these terms are used for descriptive purposes only and should not be understood to indicate or imply relative importance or implicitly specify the number of technical features indicated. Therefore, a feature specified as "first" or "second" may explicitly or implicitly include at least one of such features. In the description of this application, if the term "plurality" appears, "plurality" means at least two, for example, two, three, etc., unless otherwise specifically defined.

[0055] The embodiment of the present invention provides a method for obtaining the geographic coordinates of image boundaries and building boundaries, such as Figure 1 The specific process is as follows:

[0056] Step 11: Split the input address entered by the user and the storage address corresponding to the input address in the address database respectively; obtain multiple input sub-addresses and input vectorized sub-addresses corresponding to each input sub-address; obtain multiple storage sub-addresses and storage vectorized sub-addresses corresponding to each storage sub-address. This step specifically includes the following:

[0057] Input address entered by the user Perform segmentation to obtain the segmented input address set , the input address set Include multiple input subaddresses , where n is the number of input sub-addresses after segmentation, for example At the same time, the input vectorized sub-address corresponding to each input sub-address is obtained, and the input vectorized sub-address set is obtained. Includes multiple input vectorized subaddresses , n is the number of input sub-addresses after segmentation, for example .

[0058] Search the address database for the storage address corresponding to the input address. Multiple storage addresses may be found. , take the storage addresses of a preset number, for example, the storage addresses in the first five order can be taken. For each storage address Perform the above splitting operation to obtain multiple storage sub-addresses corresponding to the storage address, for example , and then get the storage quantization sub-address corresponding to each storage sub-address, for example The storage vectorized sub-address set is .

[0059] In this process, the Transformer bidirectional encoder model (Bidirectional Encoder Representations from Transformers, BERT) can be used to segment the address.

[0060] Step 12: Obtain a target address based on the matching result of each input sub-address and the storage sub-address corresponding to the input sub-address, as well as the input vectorized sub-address and the storage vectorized sub-address. Specifically, this step includes:

[0061] Use each input sub-address and the storage sub-address corresponding to the input sub-address to perform a matching operation one by one; for example, for ,use Each subaddress in Match each sub-address in .

[0062] When the input sub-address and the storage sub-address corresponding to the input sub-address match successfully, the input address corresponding to the input sub-address is as the target address;

[0063] When the input sub-address and the storage sub-address corresponding to the input sub-address do not match, the similarity calculation is performed between the input vectorized sub-address of the input sub-address and the storage vectorized sub-address of the storage sub-address. When the similarity is greater than a preset threshold, the storage sub-address replaces the input sub-address, and the input address after the replacement is used as the target address. and Compare them one by one, and When it does not match, and Perform similarity calculation. When the similarity value is greater than the preset threshold, use replace The replaced input address is used as the target address ,Right now .

[0064] If after the matching and replacement processes involved in the above steps, no suitable replacement subwords can be found to form a valid target address, a retrieval failure message is returned to the user, indicating that the actual address cannot be accurately determined under the current conditions.

[0065] Step 13: Based on the target address, obtain a target image that includes the target address, and determine the target address boundary geographic coordinates and the building boundary geographic coordinates in the target image based on the pixel coordinates of the target image. The target image includes a first target image and a second target image. This step specifically includes the following steps:

[0066] Step A, scaling the online image according to a first preset scaling ratio of 1:n, with the target address Centered by the preset pixel size , intercept the target address from the online image after the zoom operation is completed First target picture .

[0067] Step B: for the first target image Perform binarization and edge detection processing, and extract the pixel coordinates of the first target image and the target address according to the pixel coordinates of the first target image. The corresponding pixel coordinates of the target address.

[0068] Step C: extracting the target address boundary geographic coordinates corresponding to the target address based on the target address pixel coordinates ,The target address boundary geographic coordinates obtained at this time are the real address of the boundary of the target address.

[0069] Step D: scaling the online image according to a second preset scaling ratio of 1:m, with the target address Centered by the preset pixel size , intercepting a second target image containing the target address from the online image after the zoom operation is completed ;

[0070] Step E: for the second target image performing binarization processing and edge detection processing on the building image within the target image, and extracting the building pixel coordinates corresponding to the building image according to the pixel coordinates of the second target image;

[0071] Step F, extracting the building boundary geographic coordinates corresponding to the target address based on the building pixel coordinates , the geographic coordinates of the building boundary obtained at this time are the real address of the building boundary.

[0072] In order to ensure the security of the acquired address data, after determining the target address boundary geographical coordinates and the building boundary geographical coordinates of the target address, a watermark may be added to the above-mentioned real geographical coordinates. The specific process is as follows:

[0073] Take adding watermarks to the geographic coordinates of the target address boundary as an example.

[0074] Get the current user's account serial number and convert it to a preset length of Binary watermark information .

[0075] When the target address boundary geographic coordinates The number of midpoint coordinates is less than No processing will be done on the geographical coordinates of the target address boundary. Recorded as the target address boundary geographic coordinates after the watermark is added .

[0076] When the target address boundary geographic coordinates The number of midpoint coordinates is greater than or equal to Read in order The coordinates in the binary watermark information are converted into Embed in In the figure, the coordinates after watermark embedding are marked :

[0077] ;

[0078] in The first geographical coordinate of the target address boundary coordinates, The first binary values, The embedding method is If it is 0, the decimal position of the target address boundary location is preset. Change to an even number, if If it is 1, the decimal position of the coordinate is preset Change to an odd number.

[0079] Watermark information can also be added to the building boundary geographic coordinates in the above manner, which will not be repeated here.

[0080] In order to better display the image, after adding watermark information to the target address boundary geographic coordinates and building boundary geographic coordinates, the following steps are also included:

[0081] Overlaying the boundary of the target image corresponding to the target address and the boundary of the building in the target image on the base map of the online image for display to the user;

[0082] When receiving a command from the user to click on the boundary of the target image, searching for the standardized address corresponding to the target image in the standard address library, and displaying the boundary coordinates of the target image and the standardized address of the target image on the page;

[0083] When receiving a command from a user to click on a building in a target image, a standardized address corresponding to the building is found in a standard address library, and the boundary coordinates of the building and the standardized address of the building are displayed on the page.

[0084] The method provided by the present invention enables intelligent parsing and error correction of user-entered geographic addresses, as well as the effective extraction, secure processing, and display of geographic coordinates, achieving the technical effects of improving address parsing accuracy, enriching geographic information processing capabilities, and enhancing user experience. Specifically, the user-entered address name is first obtained, and subword segmentation and vectorization are performed using the BERT model. Next, an online image service interface is called for querying and the top five search results are obtained. The query results are processed one by one using the BERT model and compared with the subword set of the input address. If no match occurs, similarity is calculated, replacement and error correction are performed, and candidate addresses are generated. Based on the corrected address, a standardized address is retrieved and the address range is queried. An image is captured, and pixel coordinates are extracted after binarization and edge detection, and the actual geographic coordinates are obtained. Finally, the user account serial number is converted into binary watermark information and embedded in the geographic coordinates. Finally, the address boundary and building boundary are superimposed and displayed. Clicking on them displays the corresponding coordinates and standardized address. The present invention can achieve automated and intelligent geographic address processing, improve overall processing efficiency, and facilitate users to perform one-stop geographic address-related operations.

[0085] The embodiment of the present invention provides a device for obtaining the geographic coordinates of image boundaries and building boundaries, such as Figure 2 As shown, the device includes:

[0086] The first operation module 21 is configured to segment the input address input by the user and the storage address corresponding to the input address in the address database, obtain a plurality of input sub-addresses and an input vectorized sub-address corresponding to each input sub-address, and obtain a plurality of storage sub-addresses and a storage vectorized sub-address corresponding to each storage sub-address;

[0087] A second operation module 22 is configured to obtain a target address based on a matching result between each input sub-address and a storage sub-address corresponding to the input sub-address, and the input vectorized sub-address and the storage vectorized sub-address;

[0088] The determination module 23 is configured to obtain a target image including the target address according to the target address, and determine the target address boundary geographic coordinates of the target address and the building boundary geographic coordinates in the target image according to the pixel coordinates of the target image.

[0089] The second operating module 22 is specifically configured to:

[0090] Perform a matching operation using each input sub-address and the storage sub-address corresponding to the input sub-address one by one;

[0091] When the input sub-address and the storage sub-address corresponding to the input sub-address match successfully, the input address corresponding to the input sub-address is used as the target address;

[0092] When the input sub-address and the storage sub-address corresponding to the input sub-address do not match, the similarity between the input vectorized sub-address of the input sub-address and the storage vectorized sub-address of the storage sub-address is calculated. When the similarity is greater than a preset threshold, the storage sub-address replaces the input sub-address, and the input address after replacement is used as the target address.

[0093] The determining module 23 is specifically configured to:

[0094] The target picture includes a first target picture;

[0095] Scaling the online image according to a first preset scaling ratio, taking the target address as the center and capturing a first target image containing the target address from the online image after the scaling operation is completed according to a preset pixel size;

[0096] performing binarization and edge detection on the first target image, and extracting target address pixel coordinates corresponding to the target address according to pixel coordinates of the first target image;

[0097] The target address boundary geographic coordinates corresponding to the target address are extracted according to the target address pixel coordinates.

[0098] The determination module 23 specifically includes:

[0099] The target picture includes a second target picture;

[0100] The online image is scaled according to a second preset scaling ratio, and a second target image containing the target address is captured from the online image after the scaling operation is completed, with the target address as the center and according to a preset pixel size; the building image within the second target image is binarized and edge detected, and the building pixel coordinates corresponding to the building image are extracted based on the pixel coordinates of the second target image; and the building boundary geographic coordinates corresponding to the target address are extracted based on the building pixel coordinates.

[0101] The device further comprises an embedded module 24 for:

[0102] Convert the current user's account serial number into binary watermark information of a preset length. When the number of coordinates in the target address boundary geographic coordinates is greater than or equal to the preset length, embed the binary watermark information into the target address boundary geographic coordinates in sequence according to the following formula:

[0103] ;

[0104] in The first geographical coordinate of the target address boundary coordinates, The first binary values, The embedding method is If it is 0, the decimal position of the target address boundary geographical location is changed to an even number. If it is 1, the decimal preset position of the coordinate will be changed to an odd number.

[0105] The device also includes a display module 25 for:

[0106] The boundary of the target image corresponding to the target address and the boundary of the building in the target image are superimposed on the base map of the online image and displayed to the user; when a command is received from the user to click on the boundary of the target image, the standardized address corresponding to the target image is found in the standard address library, and the boundary coordinates of the target image and the standardized address of the target image are displayed on the page; when a command is received from the user to click on the building in the target image, the standardized address corresponding to the building is found in the standard address library, and the boundary coordinates of the building and the standardized address of the building are displayed on the page.

[0107] An embodiment of the present invention provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction is executed by the processor to perform the steps of the above-mentioned method for obtaining the geographic coordinates of image boundaries and building boundaries.

[0108] In this application, unless otherwise specified or limited, the terms "mounted," "connected," "connected," "fixed," etc., should be interpreted broadly. For example, these terms may refer to fixed connections, removable connections, or integration; mechanical connections or electrical connections; direct connections or indirect connections through an intermediary; and internal communication between two components or interaction between two components, unless otherwise specified. Those skilled in the art will understand the specific meanings of these terms in this application based on the specific circumstances.

[0109] In this application, unless otherwise expressly specified or limited, if a first feature is described as being "above" or "below" a second feature, or similar descriptions, this may mean that the first and second features are in direct contact, or that the first and second features are in indirect contact through an intermediate medium. Furthermore, when a first feature is described as being "above," "above," or "above" a second feature, it may mean that the first feature is directly above or diagonally above the second feature, or simply means that the first feature is at a higher level than the second feature. When a first feature is described as being "below," "below," or "below" a second feature, it may mean that the first feature is directly below or diagonally below the second feature, or simply means that the first feature is at a lower level than the second feature.

[0110] It should be noted that if an element is referred to as being "fixed on" or "disposed on" another element, it may be directly on the other element or there may also be a central element. If an element is considered to be "connected" to another element, it may be directly connected to the other element or there may be a central element at the same time. If any, the terms "vertical", "horizontal", "upper", "lower", "left", "right" and similar expressions used in this application are for illustrative purposes only and do not represent the only implementation method. The various technical features of the embodiments described above can be combined arbitrarily. In order to make the description concise, not all possible combinations of the various technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0111] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the patent application. It should be noted that a person of ordinary skill in the art may make various modifications and improvements without departing from the spirit of the present application, and these modifications and improvements fall within the scope of protection of the present application. Therefore, the scope of protection of the present patent application shall be determined by the appended claims.

Claims

1. A method for obtaining the geographic coordinates of image boundaries and building boundaries, characterized in that: The method comprises: The input address input by the user and the storage address corresponding to the input address in the address database are respectively divided; a plurality of input sub-addresses and an input vectorized sub-address corresponding to each input sub-address are obtained; a plurality of storage sub-addresses and a storage vectorized sub-address corresponding to each storage sub-address are obtained; Obtaining a target address based on a matching result between each input sub-address and a storage sub-address corresponding to the input sub-address, and the input vectorized sub-address and the storage vectorized sub-address; scaling the online image according to a first preset scaling ratio and a second preset scaling ratio respectively; taking the target address as the center and according to a preset pixel size, intercepting a first target image containing the target address from the online image after the scaling operation is completed according to the first preset scaling ratio; and intercepting a second target image containing the target address from the online image after the scaling operation is completed according to the second preset scaling ratio; Binarization and edge detection are performed on the building images in the first target image and the second target image, respectively; target address pixel coordinates corresponding to the target address are extracted based on the pixel coordinates of the first target image; target address boundary geographic coordinates corresponding to the target address are extracted based on the target address pixel coordinates; the current user's account serial number is converted into binary watermark information of a preset length; when the number of coordinates in the target address boundary geographic coordinates is greater than or equal to the preset length, the binary watermark information is sequentially embedded into the target address boundary geographic coordinates according to the following formula: ; in The first geographical coordinate of the target address boundary coordinates, The first binary values, The embedding method is If it is 0, the decimal position of the target address boundary geographic coordinates is changed to an even number. If it is 1, the decimal preset position of the coordinate will be changed to an odd number; The pixel coordinates of a building corresponding to the building image are extracted according to the pixel coordinates of the second target image; and the geographical coordinates of a building boundary corresponding to the target address are extracted according to the building pixel coordinates.

2. The method according to claim 1, wherein The obtaining of a target address based on a matching result between each input sub-address and a storage sub-address corresponding to the input sub-address, and the input vectorized sub-address and the storage vectorized sub-address includes: Perform a matching operation using each input sub-address and the storage sub-address corresponding to the input sub-address one by one; When the input sub-address and the storage sub-address corresponding to the input sub-address match successfully, the input address corresponding to the input sub-address is used as the target address; When the input sub-address and the storage sub-address corresponding to the input sub-address do not match, the similarity between the input vectorized sub-address of the input sub-address and the storage vectorized sub-address of the storage sub-address is calculated. When the similarity is greater than a preset threshold, the storage sub-address replaces the input sub-address, and the input address after replacement is used as the target address.

3. The method according to claim 1, wherein After the binary watermark information is embedded into the geographical coordinates of the target address boundary, the method further includes: Overlaying the boundary of the target image and the boundary of the building corresponding to the target address on the base map of the online image to display to the user; When receiving a command from the user to click on the boundary of the target image, searching for the standardized address corresponding to the target image in the standard address library, and displaying the boundary coordinates of the target image and the standardized address of the target image on the page; When receiving a command from a user to click on a building in a target image, a standardized address corresponding to the building is found in a standard address library, and the boundary coordinates of the building and the standardized address of the building are displayed on the page.

4. A device for obtaining the geographic coordinates of image boundaries and building boundaries, characterized in that: The device comprises: The first operation module is configured to split the input address input by the user and the storage address corresponding to the input address in the address database respectively; obtain a plurality of input sub-addresses and an input vectorized sub-address corresponding to each input sub-address; obtain a plurality of storage sub-addresses and a storage vectorized sub-address corresponding to each storage sub-address; a second operation module, configured to obtain a target address based on a matching result between each input sub-address and a storage sub-address corresponding to the input sub-address, and the input vectorized sub-address and the storage vectorized sub-address; A determination module is configured to scale an online image according to a first preset scaling ratio and a second preset scaling ratio, respectively; with the target address as the center, and according to a preset pixel size, intercept a first target image containing the target address from the online image after the scaling operation is completed according to the first preset scaling ratio; intercept a second target image containing the target address from the online image after the scaling operation is completed according to the second preset scaling ratio; perform binarization processing and edge detection processing on the building images in the first target image and the second target image, respectively; extract the target address pixel coordinates corresponding to the target address according to the pixel coordinates of the first target image; extract the target address boundary geographic coordinates corresponding to the target address according to the target address pixel coordinates; convert the current user's account serial number into binary watermark information of a preset length, and when the number of coordinates in the target address boundary geographic coordinates is greater than or equal to the preset length, embed the binary watermark information into the target address boundary geographic coordinates in sequence according to the following formula: ; in The first geographical coordinate of the target address boundary coordinates, The first binary values, The embedding method is If it is 0, the decimal position of the target address boundary geographic coordinates is changed to an even number. is 1, the decimal preset position of the coordinate is changed to an odd number; the building pixel coordinates corresponding to the building image are extracted according to the pixel coordinates of the second target image; and the building boundary geographic coordinates corresponding to the target address are extracted according to the building pixel coordinates.

5. The device according to claim 4, characterized in that The second operating module is specifically configured to: Perform a matching operation using each input sub-address and the storage sub-address corresponding to the input sub-address one by one; When the input sub-address and the storage sub-address corresponding to the input sub-address match successfully, the input address corresponding to the input sub-address is used as the target address; When the input sub-address and the storage sub-address corresponding to the input sub-address do not match, the similarity between the input vectorized sub-address of the input sub-address and the storage vectorized sub-address of the storage sub-address is calculated. When the similarity is greater than a preset threshold, the storage sub-address replaces the input sub-address, and the input address after replacement is used as the target address.

6. An electronic device, characterized in that: The electronic device includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction is executed by the processor to perform the steps of the method for obtaining the geographic coordinates of image boundaries and building boundaries as recited in any one of claims 1 to 3.

Citation Information

Patent Citations

  • Binary image edge extraction device

    CN110264488A

  • Order allocation method, device and equipment and computer readable storage medium

    CN117010976A