CN110634381A - Method and device for determining labeling style - Google Patents

Method and device for determining labeling style Download PDF

Info

Publication number
CN110634381A
CN110634381A CN201810659715.6A CN201810659715A CN110634381A CN 110634381 A CN110634381 A CN 110634381A CN 201810659715 A CN201810659715 A CN 201810659715A CN 110634381 A CN110634381 A CN 110634381A
Authority
CN
China
Prior art keywords
area
region
determining
marked
labeled
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810659715.6A
Other languages
Chinese (zh)
Inventor
朱重黎
田晨飞
付胜博
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Baidu Online Network Technology Beijing Co Ltd
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201810659715.6A priority Critical patent/CN110634381A/en
Publication of CN110634381A publication Critical patent/CN110634381A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformation in the plane of the image
    • G06T3/40Scaling the whole image or part thereof
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09BEDUCATIONAL OR DEMONSTRATION APPLIANCES; APPLIANCES FOR TEACHING, OR COMMUNICATING WITH, THE BLIND, DEAF OR MUTE; MODELS; PLANETARIA; GLOBES; MAPS; DIAGRAMS
    • G09B29/00Maps; Plans; Charts; Diagrams, e.g. route diagram
    • G09B29/10Map spot or coordinate position indicators; Map reading aids

Abstract

The embodiment of the application discloses a method and a device for determining a labeling style. One embodiment of the method comprises: acquiring the category of a region to be marked contained in a map; determining area information of an area to be marked; obtaining the zoom level of a map; and determining the labeling style of the region to be labeled based on the category of the region to be labeled, the region information and the zoom level of the map. This embodiment enables a correlation between the annotation pattern and the above-described features.

Description

Method and device for determining labeling style
Technical Field
The present application relates to the field of map generation, and in particular, to a method and apparatus for determining a labeling style.
Background
The map can be an image symbol model which reflects an objective world in a symbolized and abstracted manner by a certain rule or mode. Annotations may be included in the map to help the user perceive various elements in the map. The labeling of the map may also be referred to as indicia, including but not limited to text, graphics, numbers, and the like. The existing map labeling generally carries out different labeling according to different types of regions to be labeled. For example, the labeling pattern of the cell-like area is different from that of the park-like area.
Disclosure of Invention
The embodiment of the application provides a method and a device for determining a labeling style.
In a first aspect, an embodiment of the present application provides a method for determining a labeling style, including: acquiring the category of a region to be marked contained in a map; determining area information of an area to be marked, wherein the area information is used for representing the area of the area to be marked in a map; obtaining the zoom level of a map; and determining the labeling style of the region to be labeled based on the category of the region to be labeled, the region information and the zoom level of the map.
In some embodiments, determining the labeling style of the region to be labeled based on the category of the region to be labeled, the region information and the zoom level of the map comprises: and in response to the fact that the category of the to-be-labeled area is determined to be a first preset category, determining the labeling transparency of the to-be-labeled area based on the zoom level of the map.
In some embodiments, determining the labeling style of the region to be labeled based on the category of the region to be labeled, the region information and the zoom level of the map comprises: and determining the marking word size of the area to be marked based on the area information of the area to be marked.
In some embodiments, determining the marking word size of the region to be marked based on the region information of the region to be marked includes: determining the maximum label supported and displayed in the boundary of the area to be labeled; and determining the maximum marked character size as the marked character size of the area to be marked.
In some embodiments, the method further comprises: determining the surface-to-surface ratio of a target area in a map; and determining the target area as the area to be marked in response to determining that the surface-to-periphery ratio of the target area is greater than or equal to the target threshold value.
In some embodiments, the method further comprises: acquiring the heat of a region to be marked; and determining the labeling style of the region to be labeled based on the category and the region information of the region to be labeled and the zoom level of the map, wherein the steps of: and determining the marking style of the area to be marked based on the heat of the area to be marked, the category of the area to be marked, the area information and the zoom level of the map.
In a second aspect, an embodiment of the present application provides an apparatus for determining a labeling style, including: the device comprises a category acquisition unit, a marking unit and a marking unit, wherein the category acquisition unit is configured to acquire the category of a region to be marked contained in a map; the region information determining unit is configured to determine region information of a region to be marked, wherein the region information is used for representing the region of the region to be marked in the map; a zoom level acquisition unit configured to acquire a zoom level of a map; and the annotation style determining unit is configured to determine the annotation style of the area to be annotated based on the category of the area to be annotated, the area information and the zoom level of the map.
In some embodiments, the annotation pattern determination unit is further configured to: and in response to the fact that the category of the to-be-labeled area is determined to be a first preset category, determining the labeling transparency of the to-be-labeled area based on the zoom level of the map.
In some embodiments, the annotation pattern determination unit is further configured to: and determining the marking word size of the area to be marked based on the area information of the area to be marked.
In some embodiments, the annotation pattern determination unit is further configured to: determining the maximum label supported and displayed in the boundary of the area to be labeled; and determining the maximum marked character size as the marked character size of the area to be marked.
In some embodiments, the apparatus further comprises: a surface-to-surface ratio determination unit configured to determine a surface-to-surface ratio of a target area in a map; and the to-be-labeled area determining unit is configured to determine the target area as the to-be-labeled area in response to determining that the surface-to-periphery ratio of the target area is greater than or equal to a target threshold value.
In some embodiments, the apparatus further comprises: the heat acquisition unit is configured to acquire the heat of the area to be marked; and the labeling style determining unit is further configured to determine the labeling style of the region to be labeled based on the heat degree of the region to be labeled, the category of the region to be labeled, the region information and the zoom level of the map.
In a third aspect, an embodiment of the present application provides an electronic device, including: one or more processors; a storage device having one or more programs stored thereon; when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the method as described in any implementation manner of the first aspect.
In a fourth aspect, the present application provides a computer-readable medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method as described in any implementation manner of the first aspect.
According to the method and the device for determining the marking style, the type of the area to be marked contained in the map is obtained; determining area information of an area to be marked; obtaining the zoom level of a map; and finally, determining the labeling style of the region to be labeled based on the category of the region to be labeled, the region information and the zoom level of the map. So that there is a correlation between the annotation pattern and the above-described features.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1 is an exemplary system architecture diagram to which one embodiment of the present application may be applied;
FIG. 2 is a flow diagram of one embodiment of a method for determining annotation style in accordance with the present application;
FIG. 3 is a schematic diagram of an application scenario of a method for determining a callout style according to the present application;
FIG. 4 is a flow diagram of yet another embodiment of a method for determining annotation styles in accordance with the present application;
FIG. 5 is a schematic diagram illustrating one embodiment of an apparatus for determining a callout style according to the present application;
FIG. 6 is a schematic block diagram of a computer system suitable for use in implementing an electronic device according to embodiments of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
Fig. 1 shows an exemplary system architecture 100 to which the method for determining a labeling style or the apparatus for determining a labeling style of the embodiments of the present application can be applied.
As shown in fig. 1, the system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 101, 102, 103 to interact with the server 105 via the network 104 to receive or send messages or the like. Various communication client applications, such as a map application, a navigation application, an instant messaging tool, social platform software, etc., may be installed on the terminal devices 101, 102, 103.
The terminal apparatuses 101, 102, and 103 may be hardware or software. When the terminal devices 101, 102, 103 are hardware, they may be various electronic devices having a display screen and supporting map browsing, including but not limited to smart phones, tablet computers, e-book readers, laptop portable computers, desktop computers, and the like. When the terminal apparatuses 101, 102, 103 are software, they can be installed in the electronic apparatuses listed above. It may be implemented as multiple pieces of software or software modules (e.g., to provide distributed services) or as a single piece of software or software module. And is not particularly limited herein.
The server 105 may be a server that provides various services, such as a background web server that provides support for maps displayed on the terminal devices 101, 102, 103. The background web server may analyze the received data, and feed back a processing result (for example, the labeled style information) to the terminal device.
It is noted that the method for determining the annotation pattern provided by the embodiment of the present application may be executed by the server 105, and accordingly, the apparatus for determining the annotation pattern may be disposed in the server 105. Furthermore, the method for determining the annotation style may also be executed by the terminal equipment 101, 102, 103, and accordingly, the means for determining the annotation style may be provided in the terminal equipment 101, 102, 103.
The server may be hardware or software. When the server is hardware, it may be implemented as a distributed server cluster formed by multiple servers, or may be implemented as a single server. When the server is software, it may be implemented as multiple pieces of software or software modules (e.g., to provide distributed services), or as a single piece of software or software module. And is not particularly limited herein.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
With continued reference to FIG. 2, a flow 200 of one embodiment of a method for determining annotation styles in accordance with the present application is shown. The method for determining the labeling style comprises the following steps:
step 201, obtaining the category of the area to be marked contained in the map.
In this embodiment, an execution subject (for example, a server shown in fig. 1) of the method for determining the annotation style may acquire the category of the to-be-annotated area contained in the map from the terminal device through a wired connection or a wireless connection. The region to be marked may be a region included in the map. The area herein is not limited to the area or shape of the element (dot area, line area, or plane area) included in the map. According to the requirement, the area with the area larger than the preset threshold value in the map can be used as the area to be marked. For example, an area (face area) for representing a park may be determined as an area to be marked. The area representing the subway station (spot area) can also be determined as the area to be marked.
In this embodiment, the type of the region to be labeled may be specified by a technician, or may be determined by a computer according to certain conditions. As an example, the classification may be performed according to the type of the actual region represented by the region to be labeled. Such as park areas, residential areas, and the like. As an example, classification may also be by area size. The present embodiment does not limit the specific classification method.
In this embodiment, the determined category of the to-be-labeled area may be pre-stored in the terminal device, or may be pre-stored locally in the execution main body. When the information is stored locally, the execution main body can directly obtain the category of the area to be marked from the local.
Step 202, determining the area information of the area to be marked.
In this embodiment, the execution subject may determine area information of the area to be marked, where the area information is used to represent an area where the area to be marked is located in the map. As an example, the region information may include an area and/or a boundary. Specifically, the executing body may determine the area of the region to be marked by various methods. As an example, for a range-determined area (e.g. a park area), the executing agent may directly calculate the area of the area polygon. As an example, for a complex polygon, the complex polygon may be divided into a plurality of triangles to calculate the area respectively, and finally the areas are added to obtain the area of the region. As an example, for a region with an uncertain range (e.g., a business district region), the area of the minimum outward-convex multi-deformation of a sub-region (e.g., a square region, an office building region, etc.) included in the region may be determined, and the area of the minimum outward-convex polygon may be determined as the area of the region to be labeled.
In this embodiment, the execution body may determine the boundary of the region to be marked in various ways. As an example, a widely used electronic map generally includes boundary vector data of an area included in the map. The execution body may obtain the boundary vector data by calling a corresponding interface function. As an example, for a region without boundary vector data, the boundary of its minimum outer convex polygon may be used as the boundary of the region to be labeled.
Step 203, obtaining the zoom level of the map.
In this embodiment, the execution subject may acquire the zoom level of the map in various ways. In practice, maps are typically set to multiple zoom levels in order to accommodate the different needs of users. One scale for each zoom level. As an example, the execution body may acquire a zoom level of a map stored in advance from a local or terminal device. As an example, the execution body may also receive a zoom level of the map input by the technician.
And 204, determining the labeling style of the region to be labeled based on the category of the region to be labeled, the region information and the zoom level of the map.
In this embodiment, the execution subject may determine the labeling style of the to-be-labeled region based on the category of the to-be-labeled region, the region information, and the zoom level of the map. Wherein, the annotation style includes but is not limited to: marking fonts, marking font sizes, marking colors, marking transparency and the like.
Taking the region information including the area as an example, the execution main body may query a pre-established correspondence table of the category and the area of the region to be labeled and the zoom level of the map, so as to obtain the labeling style of the region to be labeled.
Taking the region information including the boundary as an example, the execution main body may query a pre-established correspondence table of the category and the boundary of the region to be labeled and the zoom level of the map, so as to obtain the labeling style of the region to be labeled. Wherein, different parameters can be selected to represent the boundary according to actual needs. As an example, the coordinates of the vertex of the maximum inscribed rectangle of the region to be labeled may be selected to represent the boundary.
Taking the region information including the area and the boundary as an example, the execution main body can search a pre-established corresponding relation table of the category, the area and the boundary of the region to be marked and the zoom level of the map, so as to obtain the marking style of the region to be marked.
In some optional implementations of this embodiment, the method may further include: acquiring the heat of a region to be marked; and determining the labeling style of the region to be labeled based on the category of the region to be labeled, the region information and the zoom level of the map, wherein the method comprises the following steps: and determining the marking style of the area to be marked based on the heat of the area to be marked, the category of the area to be marked, the area information and the zoom level of the map.
In these implementations, the heat of the to-be-labeled region may represent the degree to which the actual region represented by the to-be-labeled region is focused. The heat of the region to be marked can be determined based on at least one of the following: the number of times that the labeling information of the region to be labeled is searched, the number of times of comments associated with the region to be labeled, the number of times of transactions associated with the region to be labeled, and the like.
With continued reference to fig. 3, fig. 3 is a schematic diagram of an application scenario of the method for determining a callout style according to the present embodiment. In the application scenario of fig. 3, a region to be marked 3011 is included in the map 300. The type of the region to be labeled 3011 is an administrative region. An execution subject 301 (for example, a server shown in fig. 1) of the method for determining a labeling style may first acquire a category, i.e., an administrative area, of an area to be labeled 3011 included in a map. And determining the area of the region to be marked by calculating the area of the polygon. The boundary of the region to be marked is determined as shown in the figure. A zoom level of the map is obtained. And finally, searching a pre-established corresponding relation table of the category, the area and the boundary of the region to be marked and the zoom level of the map to obtain the marking style of the region to be marked.
According to the method provided by the embodiment of the application, the type of the area to be marked contained in the map is obtained; determining area information of an area to be marked; obtaining the zoom level of a map; and finally, determining the labeling style of the region to be labeled based on the category of the region to be labeled, the region information and the zoom level of the map. Thereby establishing a correlation between the annotation pattern and the above-described features.
With further reference to FIG. 4, a flow 400 of yet another embodiment of a method for determining annotation styles is shown. The process 400 for determining a labeling style includes the following steps:
step 401, determine the face-to-face ratio of the target area in the map.
In the present embodiment, the execution subject of the method for determining a callout style can determine the face-to-face ratio of a target area in a map in various ways. Wherein the area-to-perimeter ratio may be a ratio of area to perimeter. The target area may be an area designated by a technician or an area satisfying a preset condition. As an example, the area and the boundary of the target region may be calculated with reference to the method described in step 202 in the corresponding embodiment of fig. 2. Thereafter, as an example, the boundary of the target area may be divided into a plurality of line segments. And calculates the length of the line segment from the coordinates of its end points. And finally, obtaining the perimeter of the target area by calculating the sum of the lengths of all the line segments. Thereby, the area to area ratio of the target region can be determined.
And 402, in response to the fact that the face-to-periphery ratio of the target area is greater than or equal to the target threshold, determining the target area as an area to be marked.
In this embodiment, the executing entity may compare the surface-to-periphery ratio determined in step 401 with a target threshold value, and determine whether the surface-to-periphery ratio is greater than or equal to the target threshold value. If yes, the target area can be determined as the area to be marked. The target threshold may be a threshold determined by a technician, or may be a threshold satisfying a preset condition. Here, the preset condition may be various. In practice, different thresholds may be set depending on the type of target area. In this case, the preset condition may be: a threshold corresponding to the type of target area.
Step 403, obtaining the category of the area to be marked included in the map.
Step 404, determining the area information of the area to be marked.
At step 405, a zoom level of the map is obtained.
The detailed processing of the steps 403 and 405 and the technical effects thereof can refer to the steps 201 and 203 in the embodiment corresponding to fig. 2, which are not described herein again.
In step 406, in response to determining that the category of the to-be-labeled area is the first preset category, based on the zoom level of the map, determining the labeling transparency of the to-be-labeled area.
In this embodiment, the execution subject may determine whether the category of the to-be-labeled region is a first preset category. Specifically, the executing entity may match the category identifier of the to-be-labeled region with an identifier of a first preset category, and in response to a successful matching (for example, a matching rate is greater than 99%), may determine that the category of the to-be-labeled region is the first preset category. The first preset category may be a category designated by a technician, or may be a category satisfying a preset condition. For example, the classification may be performed according to the category of the actual area represented by the area to be marked, and the category of the actual area represented as the area to be marked of the park is determined as the first preset category.
For the to-be-labeled area of the first preset category, the executing entity may determine the labeling transparency of the to-be-labeled area based on the zoom level of the map acquired in step 405. As an example, the labeling transparency of the region to be labeled can be determined by querying a pre-established correspondence table between the zoom level and the labeling transparency of the map. As an example, the labeling transparency of the region to be labeled can be calculated according to a functional relation between the zoom level of the map and the labeling transparency. For example, the annotation transparency value is equal to the product of the zoom level value and the fixed coefficient.
Step 407, determining the marking word size of the area to be marked based on the area information of the area to be marked.
In this embodiment, the execution body may determine the marking font size of the area to be marked in various ways based on the area information of the area to be marked. As an example, the execution subject may search a pre-established correspondence table between the area of the region to be marked and the marked word size of the region to be marked, and determine the marked word size of the region to be marked. It should be noted that, in practice, the area of the region to be marked is usually a continuous variable, so the area range of the region to be marked can be stored in the correspondence table. Therefore, the area to be marked with a certain area can correspond to a marked character size.
In some optional implementation manners of this embodiment, determining, based on the area information of the area to be labeled, a label font size of the area to be labeled includes: determining the maximum label supported and displayed in the boundary of the area to be labeled; and determining the maximum marked character size as the marked character size of the area to be marked.
In some optional implementation manners of this embodiment, the labeling style of the region to be labeled may be determined based on the area and the boundary of the region to be labeled. Specifically, the initial labeling style is obtained by querying a correspondence table between the area (range) of the region to be labeled and the labeling style. And then, determining whether the label displayed according to the initial label style exceeds the boundary of the area to be labeled, and if not, determining the initial label style as the label style of the area to be labeled. If so, determining the maximum label supported and displayed in the boundary of the area to be labeled; and determining the maximum marked character size as the marked character size of the area to be marked.
As can be seen from fig. 4, compared with the embodiment shown in fig. 2, the method for determining the annotation pattern in this embodiment adds a step of determining the face-to-face ratio. Thus, the area suitable for labeling is screened out by comparing the area-to-area ratio with the target threshold value.
With further reference to fig. 5, as an implementation of the method shown in the above-mentioned figures, the present application provides an embodiment of an apparatus for determining a callout style, where the embodiment of the apparatus corresponds to the embodiment of the method shown in fig. 2, and the apparatus may be applied to various electronic devices.
As shown in fig. 5, the apparatus 500 for determining an annotation style according to the present embodiment includes: a category acquisition unit 501, a region information determination unit 502, a zoom level acquisition unit 503, and a label style determination unit 504. The category acquiring unit 501 is configured to acquire a category of an area to be labeled included in a map. The area information determination unit 502 is configured to determine area information of an area to be marked. The zoom level acquisition unit 503 is configured to acquire a zoom level of the map. The annotation style determination unit 504 is configured to determine an annotation style for the region to be annotated based on the category of the region to be annotated, the region information, and the zoom level of the map.
In this embodiment, for specific processing of the category obtaining unit 501, the area information determining unit 502, the zoom level obtaining unit 503, and the labeling style determining unit 504 in the device 500 for determining a labeling style and technical effects brought by the specific processing, reference may be made to step 201 and step 204 of the embodiment corresponding to fig. 2, which are not described herein again.
In some optional implementations of the present embodiment, the annotation pattern determination unit 504 may be further configured to: and in response to the fact that the category of the to-be-labeled area is determined to be a first preset category, determining the labeling transparency of the to-be-labeled area based on the zoom level of the map.
In some optional implementations of the present embodiment, the annotation pattern determination unit 504 may be further configured to: and determining the marking word size of the area to be marked based on the area information of the area to be marked.
In some optional implementations of the present embodiment, the annotation pattern determination unit 504 may be further configured to: determining the maximum label supported and displayed in the boundary of the area to be labeled; and determining the maximum marked character size as the marked character size of the area to be marked.
In some optional implementations of this embodiment, the apparatus 500 may further include: a surface-to-periphery ratio determining unit (not shown in the figure) and a region-to-be-labeled determining unit (not shown in the figure). Wherein the face-to-face ratio determination unit is configured to determine a face-to-face ratio of the target area in the map. The region to be marked determining unit is configured to determine the target region as a region to be marked in response to determining that the face-to-face ratio of the target region is greater than or equal to a target threshold.
In some optional implementations of this embodiment, the apparatus 500 may further include: a heat acquisition unit (not shown in the figure). The heat acquisition unit is configured to acquire the heat of the area to be marked. The labeling style determining unit is further configured to determine a labeling style of the region to be labeled based on the heat degree of the region to be labeled, the category of the region to be labeled, the region information and the zoom level of the map.
In this embodiment, the category acquiring unit 501 first acquires the category of the to-be-labeled area included in the map. The area information determination unit 502 determines area information of an area to be marked. The zoom level acquisition unit 503 acquires the zoom level of the map. Then, the labeling style determining unit 504 is configured to determine the labeling style of the region to be labeled based on the category of the region to be labeled, the region information, and the zoom level of the map. So that there is a correlation between the annotation pattern and the above-described features.
Referring now to FIG. 6, shown is a block diagram of a computer system 600 that may be used to implement the electronic device of an embodiment of the present application. The electronic device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 6, the computer system 600 includes a Central Processing Unit (CPU)601 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage section 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the system 600 are also stored. The CPU 601, ROM 602, and RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, a mouse, and the like; an output portion 607 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The driver 610 is also connected to the I/O interface 605 as needed. A removable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 610 as necessary, so that a computer program read out therefrom is mounted in the storage section 608 as necessary.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 609, and/or installed from the removable medium 611. The computer program performs the above-described functions defined in the method of the present application when executed by a Central Processing Unit (CPU) 601.
It should be noted that the computer readable medium described herein can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present application may be implemented by software or hardware. The described units may also be provided in a processor, and may be described as: a processor includes a category acquisition unit, a region information determination unit, a zoom level acquisition unit, and a label style determination unit. The names of the units do not in some cases constitute a limitation to the units themselves, and for example, the category acquisition unit may also be described as "acquiring a category of an area to be labeled included in a map".
As another aspect, the present application also provides a computer-readable medium, which may be contained in the electronic device described in the above embodiments; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs which, when executed by the apparatus, cause the electronic device to: acquiring the category of a region to be marked contained in a map; determining area information of an area to be marked; obtaining the zoom level of a map; and determining the labeling style of the region to be labeled based on the category of the region to be labeled, the region information and the zoom level of the map.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by a person skilled in the art that the scope of the invention as referred to in the present application is not limited to the embodiments with a specific combination of the above-mentioned features, but also covers other embodiments with any combination of the above-mentioned features or their equivalents without departing from the inventive concept. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.

Claims (14)

1. A method for determining a labeling style, comprising:
acquiring the category of a region to be marked contained in a map;
determining the area information of the area to be marked, wherein the area information is used for representing the area of the area to be marked in the map;
obtaining a zoom level of the map;
and determining the labeling style of the region to be labeled based on the category and the region information of the region to be labeled and the zoom level of the map.
2. The method of claim 1, wherein the determining the labeling style of the region to be labeled based on the category of the region to be labeled, the region information and the zoom level of the map comprises:
and in response to the fact that the category of the area to be marked is determined to be a first preset category, determining the marking transparency of the area to be marked based on the zoom level of the map.
3. The method of claim 2, wherein the determining the labeling style of the region to be labeled based on the category of the region to be labeled, the region information and the zoom level of the map comprises:
and determining the marking word size of the area to be marked based on the area information of the area to be marked.
4. The method of claim 3, wherein the determining the marking word size of the area to be marked based on the area information of the area to be marked comprises:
determining the maximum label supported and displayed in the boundary of the region to be labeled;
and determining the maximum marked word size as the marked word size of the area to be marked.
5. The method according to any one of claims 1-4, wherein the method further comprises:
determining a face-to-face ratio of a target area in the map;
and in response to determining that the surface-to-periphery ratio of the target area is greater than or equal to a target threshold, determining the target area as the area to be marked.
6. The method of claim 5, wherein the method further comprises:
acquiring the heat degree of the area to be marked; and
the determining the labeling style of the region to be labeled based on the category and the region information of the region to be labeled and the zoom level of the map comprises the following steps:
and determining the labeling style of the region to be labeled based on the heat degree of the region to be labeled, the category of the region to be labeled, the region information and the zoom level of the map.
7. An apparatus for determining a callout style, comprising:
the device comprises a category acquisition unit, a marking unit and a marking unit, wherein the category acquisition unit is configured to acquire the category of a region to be marked contained in a map;
the area information determining unit is configured to determine area information of the area to be marked, wherein the area information is used for representing the area of the area to be marked in the map;
a zoom level acquisition unit configured to acquire a zoom level of the map;
and the labeling style determining unit is configured to determine the labeling style of the region to be labeled based on the category of the region to be labeled, the region information and the zoom level of the map.
8. The apparatus of claim 7, wherein the annotation pattern determination unit is further configured to:
and in response to the fact that the category of the area to be marked is determined to be a first preset category, determining the marking transparency of the area to be marked based on the zoom level of the map.
9. The apparatus of claim 8, wherein the annotation pattern determination unit is further configured to:
and determining the marking word size of the area to be marked based on the area information of the area to be marked.
10. The apparatus of claim 9, wherein the annotation pattern determination unit is further configured to:
determining the maximum label supported and displayed in the boundary of the region to be labeled;
and determining the maximum marked word size as the marked word size of the area to be marked.
11. The apparatus of any of claims 7-10, wherein the apparatus further comprises:
a face-to-face ratio determination unit configured to determine a face-to-face ratio of a target area in the map;
a region-to-be-labeled determining unit configured to determine the target region as the region-to-be-labeled in response to determining that the face-to-face ratio of the target region is greater than or equal to a target threshold.
12. The apparatus of claim 11, wherein the apparatus further comprises:
the heat acquisition unit is configured to acquire the heat of the area to be marked; and
the annotation pattern determination unit is further configured to:
and determining the labeling style of the region to be labeled based on the heat degree of the region to be labeled, the category of the region to be labeled, the region information and the zoom level of the map.
13. An electronic device, comprising:
one or more processors;
a storage device having one or more programs stored thereon;
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-6.
14. A computer-readable medium, on which a computer program is stored, wherein the program, when executed by a processor, implements the method of any one of claims 1-6.
CN201810659715.6A 2018-06-25 2018-06-25 Method and device for determining labeling style Pending CN110634381A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810659715.6A CN110634381A (en) 2018-06-25 2018-06-25 Method and device for determining labeling style

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810659715.6A CN110634381A (en) 2018-06-25 2018-06-25 Method and device for determining labeling style

Publications (1)

Publication Number Publication Date
CN110634381A true CN110634381A (en) 2019-12-31

Family

ID=68966890

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810659715.6A Pending CN110634381A (en) 2018-06-25 2018-06-25 Method and device for determining labeling style

Country Status (1)

Country Link
CN (1) CN110634381A (en)

Citations (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102157003A (en) * 2011-03-17 2011-08-17 武汉大学 Automatic configuration method for annotation label of map under digital environment
CN102456290A (en) * 2010-10-20 2012-05-16 北京四维图新科技股份有限公司 Method and device for displaying plane-shaped object in electronic map
CN103500217A (en) * 2013-10-09 2014-01-08 北京火信网络科技有限公司 Method and system for providing service of identification of region of interest
CN103955479A (en) * 2014-04-02 2014-07-30 北京百度网讯科技有限公司 Implementation method and device of electronic map
CN104516896A (en) * 2013-09-29 2015-04-15 国际商业机器公司 Method and system for processing hot spot region in map
CN104700710A (en) * 2015-04-07 2015-06-10 苏州市测绘院有限责任公司 Simulation map for house property mapping
CN104850652A (en) * 2015-06-02 2015-08-19 苗琦超 Dynamic authentication display method aiming at polymorphic user map marks
CN105589899A (en) * 2014-11-18 2016-05-18 北京四维图新科技股份有限公司 Display method and display device of point of interest in electronic map
CN105723187A (en) * 2013-11-14 2016-06-29 微软技术许可有限责任公司 Presenting markup in a scene using transparency
CN105786989A (en) * 2016-02-17 2016-07-20 上海碧虎网络科技有限公司 Information display method and system based on map hotspots
CN106327548A (en) * 2015-06-30 2017-01-11 上海卓悠网络科技有限公司 Method and system for marking on image
CN106802655A (en) * 2016-11-30 2017-06-06 北京贝虎机器人技术有限公司 Indoor map generation method and device
US20170223036A1 (en) * 2015-08-31 2017-08-03 Splunk Inc. Model training and deployment in complex event processing of computer network data
CN107070961A (en) * 2016-09-30 2017-08-18 阿里巴巴集团控股有限公司 Hot spot region based on geographic position data determines method and device
CN107248176A (en) * 2017-06-30 2017-10-13 联想(北京)有限公司 Indoor map construction method and electronic equipment
CN107576993A (en) * 2017-08-15 2018-01-12 歌尔股份有限公司 A kind of abnormal method for detecting in road surface, apparatus and system
CN107895537A (en) * 2017-11-13 2018-04-10 青岛海信通信有限公司 A kind of display methods of electronic map, relevant apparatus and storage medium
CN108073648A (en) * 2016-11-15 2018-05-25 北京四维图新科技股份有限公司 Electronic map information mask method, apparatus and system
CN108154792A (en) * 2016-12-06 2018-06-12 高德信息技术有限公司 A kind of map label character method and device
CN108171208A (en) * 2018-01-17 2018-06-15 百度在线网络技术(北京)有限公司 Information acquisition method and device
CN108196927A (en) * 2017-12-29 2018-06-22 北京淳中科技股份有限公司 A kind of mask method, device and system

Patent Citations (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102456290A (en) * 2010-10-20 2012-05-16 北京四维图新科技股份有限公司 Method and device for displaying plane-shaped object in electronic map
CN102157003A (en) * 2011-03-17 2011-08-17 武汉大学 Automatic configuration method for annotation label of map under digital environment
CN104516896A (en) * 2013-09-29 2015-04-15 国际商业机器公司 Method and system for processing hot spot region in map
CN103500217A (en) * 2013-10-09 2014-01-08 北京火信网络科技有限公司 Method and system for providing service of identification of region of interest
CN105723187A (en) * 2013-11-14 2016-06-29 微软技术许可有限责任公司 Presenting markup in a scene using transparency
CN103955479A (en) * 2014-04-02 2014-07-30 北京百度网讯科技有限公司 Implementation method and device of electronic map
CN105589899A (en) * 2014-11-18 2016-05-18 北京四维图新科技股份有限公司 Display method and display device of point of interest in electronic map
CN104700710A (en) * 2015-04-07 2015-06-10 苏州市测绘院有限责任公司 Simulation map for house property mapping
CN104850652A (en) * 2015-06-02 2015-08-19 苗琦超 Dynamic authentication display method aiming at polymorphic user map marks
CN106327548A (en) * 2015-06-30 2017-01-11 上海卓悠网络科技有限公司 Method and system for marking on image
US20170223036A1 (en) * 2015-08-31 2017-08-03 Splunk Inc. Model training and deployment in complex event processing of computer network data
CN105786989A (en) * 2016-02-17 2016-07-20 上海碧虎网络科技有限公司 Information display method and system based on map hotspots
CN107070961A (en) * 2016-09-30 2017-08-18 阿里巴巴集团控股有限公司 Hot spot region based on geographic position data determines method and device
CN108073648A (en) * 2016-11-15 2018-05-25 北京四维图新科技股份有限公司 Electronic map information mask method, apparatus and system
CN106802655A (en) * 2016-11-30 2017-06-06 北京贝虎机器人技术有限公司 Indoor map generation method and device
CN108154792A (en) * 2016-12-06 2018-06-12 高德信息技术有限公司 A kind of map label character method and device
CN107248176A (en) * 2017-06-30 2017-10-13 联想(北京)有限公司 Indoor map construction method and electronic equipment
CN107576993A (en) * 2017-08-15 2018-01-12 歌尔股份有限公司 A kind of abnormal method for detecting in road surface, apparatus and system
CN107895537A (en) * 2017-11-13 2018-04-10 青岛海信通信有限公司 A kind of display methods of electronic map, relevant apparatus and storage medium
CN108196927A (en) * 2017-12-29 2018-06-22 北京淳中科技股份有限公司 A kind of mask method, device and system
CN108171208A (en) * 2018-01-17 2018-06-15 百度在线网络技术(北京)有限公司 Information acquisition method and device

Similar Documents

Publication Publication Date Title
US11132114B2 (en) Method and apparatus for generating customized visualization component
CN109308681B (en) Image processing method and device
CN109255767B (en) Image processing method and device
CN109460652B (en) Method, apparatus and computer readable medium for annotating image samples
CN111147431B (en) Method and apparatus for generating information
CN108882025B (en) Video frame processing method and device
US11244153B2 (en) Method and apparatus for processing information
CN111104479A (en) Data labeling method and device
CN109992719B (en) Method and apparatus for determining push priority information
CN108491387B (en) Method and apparatus for outputting information
CN113837194A (en) Image processing method, image processing apparatus, electronic device, and storage medium
CN109426878B (en) Method and apparatus for outputting information
CN107229565B (en) Test method and device
CN108834202B (en) Information display method and equipment
CN115563942A (en) Contract generation method and device, electronic equipment and computer readable medium
CN110881056A (en) Method and device for pushing information
CN110634381A (en) Method and device for determining labeling style
CN110647599B (en) Method and apparatus for displaying information
CN114066603A (en) Post-loan risk early warning method and device, electronic equipment and computer readable medium
CN110796137A (en) Method and device for identifying image
CN111414566A (en) Method and device for pushing information
CN110119457B (en) Method and apparatus for generating information
CN109857838B (en) Method and apparatus for generating information
CN112579080A (en) Method and device for generating user interface code
CN111125501A (en) Method and apparatus for processing information

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20191231

RJ01 Rejection of invention patent application after publication