WO2016145736A1 - 热力图的展现方法、装置、设备及非易失性计算机存储介质 - Google Patents
热力图的展现方法、装置、设备及非易失性计算机存储介质 Download PDFInfo
- Publication number
- WO2016145736A1 WO2016145736A1 PCT/CN2015/080987 CN2015080987W WO2016145736A1 WO 2016145736 A1 WO2016145736 A1 WO 2016145736A1 CN 2015080987 W CN2015080987 W CN 2015080987W WO 2016145736 A1 WO2016145736 A1 WO 2016145736A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- image
- obtaining
- indicator data
- thermal
- statistical indicator
- 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.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
- G06F16/9577—Optimising the visualization of content, e.g. distillation of HTML documents
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/953—Querying, e.g. by the use of web search engines
- G06F16/9537—Spatial or temporal dependent retrieval, e.g. spatiotemporal queries
Definitions
- the present invention relates to thermal map technology, and more particularly to a method, device, device and non-volatile computer storage medium for displaying heat maps.
- the heat map can obtain a number of statistical indicator data according to certain statistical standards, and use a special highlight form to represent the size of the statistical indicator data of each area in the image, thereby visually displaying the global characteristics of the area in front of the people. Ways.
- the heat map can be applied to various images.
- map heat map is a service that uses real-time description of population distribution, density and change trend by superimposing blocks of different colors on the map. It is a convenience travel service based on Baidu big data.
- each statistical indicator data can correspond to a display center position and a display area in the heat map.
- the display center position is the actual position of the statistical indicator data, and the radius of the display area can be referred to as a thermal radius.
- an attenuation relationship of a fixed statistical indicator data may be set by an operator for obtaining the heat of each pixel on the thermal radius according to the attenuation relationship of the set statistical indicator data within the display area.
- the data in turn, can obtain the corresponding color according to the thermal data of each pixel, and display each statistical indicator data.
- the thermal map cannot clearly show the distribution of the statistical indicator data of the image, thereby causing the reliability of the display of the heat map to be reduced.
- aspects of the present invention provide a method and apparatus for displaying a heat map for improving the reliability of display of a heat map.
- thermogram a method for displaying a thermogram
- thermographic image for describing a specified image feature of each pixel on the thermographic image
- the statistical indicator data includes a statistical parameter and a location corresponding to the image; and the obtained statistical indicator data of the image includes:
- each target class in the at least one target class Obtaining a position of each of the target classes on a position corresponding to the image;
- the statistical indicator data of each of the target classes is obtained according to the statistical parameters of each target class and the location of each of the target classes.
- the obtaining the thermal template image comprises:
- thermographic template image is obtained according to the presentation ratio.
- a heat map corresponding to the image is presented according to the presentation color of each pixel.
- a heat map corresponding to the image is presented according to the presentation color of each pixel and the presentation transparency of each pixel.
- any possible implementation manner further provide an implementation manner, where the obtaining transparency of each of the pixels includes:
- the display transparency of each of the pixels is obtained according to the thermal power data of each of the pixels and the preset at least two preset transparencys.
- the method further includes:
- thermo template image is created based on sample statistical parameters and corresponding locations on the sample image.
- a display device for a heat map comprising:
- a template unit for obtaining a thermal template image for describing a specified image feature of each pixel on the thermal template image
- a presentation unit configured to display a heat map corresponding to the image according to the statistical indicator data and the thermal template image.
- the statistical indicator data includes a statistical parameter and a location corresponding to the image; the obtaining unit is specifically configured to:
- the statistical indicator data of each of the target classes is obtained according to the statistical parameters of each target class and the location of each of the target classes.
- thermographic template image is obtained according to the presentation ratio.
- a heat map corresponding to the image is presented according to the presentation color of each pixel.
- a heat map corresponding to the image is presented according to the presentation color of each pixel and the presentation transparency of each pixel.
- the display transparency of each of the pixels is obtained according to the thermal power data of each of the pixels and the preset at least two preset transparencys.
- an apparatus comprising:
- One or more processors are One or more processors;
- One or more programs the one or more programs being stored in the memory, when executed by the one or more processors:
- thermographic image for describing a specified image feature of each pixel on the thermographic image
- a nonvolatile computer storage medium storing one or more programs when the one or more programs are executed by a device causes The device:
- thermographic image for describing a specified image feature of each pixel on the thermographic image
- the embodiment of the present invention obtains statistical indicator data of an image, And obtaining a thermal template image for describing a specified image feature of each pixel on the thermal template image, such that the corresponding image is displayed according to the statistical indicator data and the thermal template image
- the heat map because it does not completely rely on the attenuation relationship of the set statistical indicator data, but combines the thermal template image to display the heat map, thus avoiding the attenuation in the prior art due to the complete dependence on the set statistical indicator data.
- the heat map caused by the relationship cannot clearly show the distribution of the statistical indicator data of the image, thereby improving the reliability of the heat map display.
- the thermal template image is combined with the thermal template image to make the operation object change from pixel to image, and therefore, Effectively improve the efficiency of the heat map display.
- the thermal force image is displayed by using the thermal template image corresponding to the image display ratio, it is possible to avoid that the heat map cannot be clearly obtained due to the use of a fixed thermal template image.
- the problem of displaying the distribution of the statistical indicator data of the image can further effectively improve the reliability of the display of the heat map.
- the thermal template image corresponding to the display ratio of the image is used to display the thermal map, the statistical index data of the image can be clearly displayed under each display ratio of the image. Can effectively improve the utilization rate of the heat map.
- FIG. 1 is a schematic flow chart of a method for displaying a heat map according to an embodiment of the present invention
- FIG. 2 is a schematic structural diagram of a display device of a heat map according to another embodiment of the present invention.
- FIG. 3A is a schematic diagram showing the effect of a typical thermal template image in the embodiment corresponding to FIG. 1;
- FIG. 3B is a schematic diagram showing the effect of the thermal template image corresponding to the map zoom level of the electronic map in the embodiment corresponding to FIG. 1;
- FIG. 3C is a schematic diagram showing the effect of the thermal template image corresponding to the map zoom level of the electronic map in the embodiment corresponding to FIG. 1;
- FIG. 3D is a schematic diagram showing the effect of the thermal template image corresponding to the 13-level map zoom level of the electronic map in the embodiment corresponding to FIG. 1;
- FIG. 3D is a schematic diagram showing the effect of the thermal template image corresponding to the 13-level map zoom level of the electronic map in the embodiment corresponding to FIG. 1;
- FIG. 3E is a schematic diagram showing the effect of the thermal template image corresponding to the map zoom level of the electronic map in the embodiment corresponding to FIG. 1;
- FIG. 3F is a schematic diagram showing the effect of the thermal template image corresponding to the 11th level of the map zoom level of the electronic map in the embodiment corresponding to FIG. 1;
- FIG. 3F is a schematic diagram showing the effect of the thermal template image corresponding to the 11th level of the map zoom level of the electronic map in the embodiment corresponding to FIG. 1;
- FIG. 3G is a schematic diagram showing the effect of the thermal template image corresponding to the map zoom level of the electronic map in the embodiment corresponding to FIG. 1;
- 4A is a schematic diagram showing the effect of a heat map of a Beijing South railway Station area demonstrated by a technical solution that does not employ a thermal template image in the prior art;
- FIG. 4B is a technical solution of using a fixed thermal template image in the embodiment corresponding to FIG. 1.
- 4C is a schematic diagram showing the effect of the thermal map of the Beijing West railway Station area demonstrated by the technical solution that does not adopt the thermal template image in the prior art;
- FIG. 4D is a schematic diagram showing the effect of the thermal map of the Beijing West railway Station area demonstrated by the technical solution of using the fixed thermal template image in the embodiment corresponding to FIG. 1;
- FIG. 4D is a schematic diagram showing the effect of the thermal map of the Beijing West railway Station area demonstrated by the technical solution of using the fixed thermal template image in the embodiment corresponding to FIG. 1;
- 4E is a schematic diagram showing the effect of the heat map of the Beijing station area exhibited by the technical solution that does not adopt the thermal template image in the prior art;
- 4F is a schematic diagram showing the effect of the heat map of the Beijing station area exhibited by the technical solution of using the fixed thermal template image in the embodiment corresponding to FIG. 1;
- FIG. 5A is a schematic diagram showing the effect of a thermal map of a Wangfujing area displayed by a map zoom level of an electronic map in a technical solution in which no thermal template image is used in the prior art;
- FIG. 5A is a schematic diagram showing the effect of a thermal map of a Wangfujing area displayed by a map zoom level of an electronic map in a technical solution in which no thermal template image is used in the prior art;
- FIG. 5B is a schematic diagram showing the effect of the thermal map of the Wangfujing area displayed by the thermal template image corresponding to the map zoom level of the electronic map in the embodiment corresponding to FIG. 1;
- FIG. 5B is a schematic diagram showing the effect of the thermal map of the Wangfujing area displayed by the thermal template image corresponding to the map zoom level of the electronic map in the embodiment corresponding to FIG. 1;
- FIG. 5C is a schematic diagram showing the effect of the thermal map of the Wangfujing area displayed by the map zoom level of the electronic map in the technical solution in which the thermal template image is not used in the prior art;
- FIG. 5D is a schematic diagram showing the effect of the thermal map of the Wangfujing area displayed by the thermal template image corresponding to the map zoom level of the electronic map in the embodiment corresponding to FIG. 1;
- FIG. 5D is a schematic diagram showing the effect of the thermal map of the Wangfujing area displayed by the thermal template image corresponding to the map zoom level of the electronic map in the embodiment corresponding to FIG. 1;
- FIG. 5E is a schematic diagram showing the effect of the thermal map of the Wangfujing area displayed by the map zoom level of the electronic map in the technical solution in which the thermal template image is not used in the prior art;
- FIG. 5F is a schematic diagram showing the effect of the thermal map of the Wangfujing area displayed by the thermal template image corresponding to the 13-level map zoom level of the electronic map in the embodiment corresponding to FIG. 1.
- the terminals involved in the embodiments of the present invention may include, but are not limited to, a mobile phone, a personal digital assistant (PDA), a wireless handheld device, a tablet computer, and a personal computer (Personal Computer, PC). ), MP3 player, MP4 player, wearable device (for example, smart glasses, smart watches, smart bracelets, etc.).
- PDA personal digital assistant
- PC Personal Computer
- FIG. 1 is a schematic flow chart of a method for displaying a heat map according to an embodiment of the present invention, as shown in FIG. 1 .
- part or all of the execution entities of 101 to 103 may be applications located in the local terminal, or may be plug-ins or software disposed in an application located in the local terminal.
- a functional unit such as a software development kit (SDK), or a processing engine located in the network side server, or a distributed system located on the network side, is not specifically limited in this embodiment.
- the application may be a local application (nativeApp) installed on the terminal, or may be a web application (webApp) of the browser on the terminal, which is not limited in this embodiment.
- the thermal template image is used to describe a specified image feature of each pixel on the thermographic template image, such that the statistical index data and the thermal force can be
- the template image, showing the thermal map corresponding to the image, is not completely dependent on the attenuation relationship of the set statistical indicator data, but is combined with the thermal template image to display the thermal map, thereby avoiding the prior art
- the thermal map caused by the attenuation relationship of the set statistical indicator data cannot completely reveal the distribution of the statistical indicator data of the image, thereby improving the reliability of the heat map display.
- the so-called statistical indicator data of an image refers to a statistical parameter obtained by using some statistical methods to perform statistics on some characteristics of a certain region of an image.
- the statistical indicator data may include, but is not limited to, a statistical parameter and a position corresponding to the image, which is not specifically limited in this embodiment. For example, the flow of people in a certain area, etc.
- the statistical indicator data of each target class may be obtained according to the statistical parameters of each target class and the location of each target class.
- the processing device may execute first "according to the position of the statistical indicator data included in each target class in the at least one target class on the image, obtaining the location of each target class", and then performing "according to the at least a step of obtaining a statistical parameter corresponding to the statistical indicator data included in each target class in a target class, obtaining a statistical parameter of each of the target classes, or performing "before each of the at least one target class
- the statistical parameters corresponding to the statistical indicator data included in the target class obtain the statistical parameters of each target class, and then execute the a step of obtaining a position of each of the target classes at a position corresponding to the statistical indicator data included in each target class in the
- DBSCAN Density-Based Spatial Clustering of Applications with Noise
- the candidate class is regarded as a target class; otherwise, if the number of statistical indicator data included in the candidate class is less than a predetermined amount If the number threshold is set, the candidate class is ignored and no subsequent processing is performed on the candidate class.
- a center location data may be calculated according to each statistical indicator data included in each target class at a position corresponding to the image, as each target class. position.
- the obtained positioning data can be used as a basis for calculating the flow of people in a certain area.
- the positioning data can include geographic location data such as longitude components and latitude components, a longitude and a latitude together determine the exact location of a location on the earth.
- the average value of each component may be separately calculated according to each position, and the average value of each component is combined into a central position data as the position of each target class.
- an average parameter may be calculated according to a statistical parameter corresponding to each statistical indicator data included in each target class, as a statistical parameter of each target class. For example, performing an arithmetic averaging operation on the statistical parameters corresponding to each statistical indicator data included in each target class to calculate an average parameter; or, for example, for each statistical indicator included in each target class
- the statistical parameters corresponding to the data are subjected to a weighted averaging operation to calculate an average parameter; and the like, which is not particularly limited in this embodiment.
- the obtained thermal template image, the shape feature and the size feature thereof are in the heat map corresponding to the image, and the image is A certain statistical indicator data, which is capable of displaying the size data of the presentation element for indicating the heat.
- the heat map is superimposed by a plurality of circles of different colors, and then the size data of the display elements can be understood as a radius parameter.
- the obtained thermal template image may be used to describe the thermal template image in addition to the shape feature and the size feature.
- the specified image feature may include, but is not limited to, at least one of image transparency and image color, which is not specifically limited in this embodiment.
- image transparency as an example, a typical thermal template image can be as shown in Figure 3A.
- the method further includes: creating the thermal template image according to the sample statistical parameter and the corresponding position on the sample image.
- the heat map can not clearly show the distribution of the statistical data of the image, for example, The display ratio becomes larger, the existing color distribution is more dispersed, and the display ratio becomes smaller, the existing color distribution is particularly concentrated, and the like, thereby causing a decrease in the reliability of the display of the heat map. Therefore, multiple thermal template images can be employed to overcome the above problems.
- the thermal template image is displayed by using the thermal template image corresponding to the image presentation ratio, it is possible to avoid the distribution of the statistical index data of the image that cannot be clearly displayed due to the use of a fixed thermal template image. Situational problem, able to Further effectively improve the reliability of the heat map display.
- the thermal image is used for trial and error and adjustment until the heat map can be clearly displayed.
- the distribution of the statistical indicator data of the image, and the adjustment result at this time is taken as the thermal template image.
- the presentation parameters of the image may include, but are not limited to, the presentation ratio of the image, which is not specifically limited in this embodiment.
- the presentation ratio of the image refers to the display scale of the enlarged or reduced image, for example, the map zoom level of the electronic map.
- the thermal template image may be created by using a positive example training sample.
- the operator may adjust the thermal image according to the presentation parameters of the image and the statistical indicator data of the image in advance to obtain a thermogram corresponding to the image that satisfies the training intention.
- the presentation parameters of the images corresponding to the thermograms and the thermodynamic images after the adjustment are recorded, and the recorded data is used as a positive training sample.
- the presentation parameters of the image may include, but are not limited to, the presentation ratio of the image, which is not specifically limited in this embodiment.
- the presentation ratio of the image refers to the display scale of the enlarged or reduced image, for example, the map zoom level of the electronic map.
- Baidu map has 17 map zoom levels, ie, level 3 to level 20.
- the corresponding map zoom ratio is the ratio of the display distance of 1 cm to the actual distance: 1:20 m, 1:50 m, 1: 100m, 1:200m, 1:500m, 1:1km, 1:2km, 1:5km, 1:10km, 1:20km, 1:25km, 1:50km, 1:100km, 1:200km, 1:500km, 1:1000km and 1:2000km.
- the thermal template images corresponding to the six different map zoom ratios may be respectively shown in FIGS. 3B to 3G.
- a display ratio of the image may be specifically obtained, and then, the thermal template image may be obtained according to the display ratio.
- a specified image feature of each pixel on the thermal template image may be obtained according to the thermal template image.
- thermal data of each of the pixels may be obtained according to the statistical indicator data and the specified image feature of each pixel.
- the presentation color of each pixel may be obtained according to the thermal data of each pixel, and the heat map corresponding to the image is presented according to the presentation color of each pixel. Only the pixels on the thermal template image can obtain the corresponding display color by the above scheme, and the display colors of other pixels not on the thermal template image can be the default colors, for example, colorless, etc.
- the thermal template image is combined with the thermal template image to make the operation object change from pixel to image, and therefore, the display efficiency of the heat map can be effectively improved.
- the pixel may be obtained according to the statistical indicator data, the specified image feature of each pixel, and the adjustment weight corresponding to each specified image feature.
- Thermal data may be an empirical value or an empirical formula, which is not specifically limited in this embodiment.
- the heat map is superimposed on the image for display, in order to completely cover the image as the basis of the overlay, in addition to performing the heat map corresponding to the image according to the display color of each pixel In addition to the presentation, it is further required to further perform the presentation of the heat map corresponding to the image according to the display transparency of each of the pixels.
- the transparent display of each pixel can be specifically obtained.
- the heat map corresponding to the image may be presented according to the presentation color of each pixel and the display transparency of each pixel. Only the pixels on the thermal template image can obtain the corresponding display transparency by the above scheme, and the display transparency of other pixels not on the thermal template image can be the default transparency, for example, the transparency is 100% or the like.
- a preset preset transparency may be specifically set as the presentation transparency of each of the pixels.
- the entire heat map adopts a uniform transparency, is simple to set up, and is easy to operate, and can effectively improve the display efficiency of the heat map.
- the display transparency of each pixel may be obtained according to the thermal data of each pixel and the preset at least two preset transparencys.
- the entire heat map adopts a plurality of different transparencys, which can further clearly display the distribution of statistical indicator data of the image, and can effectively improve the reliability of the heat map display.
- a maximum value of the transparency can be set, which is a maximum corresponding to the display transparency of the image indicating the highest heat in the heat map corresponding to the image. Reference.
- a plurality of transparency value levels may be divided according to the display requirements of the heat map, and each transparency value level corresponds to a gradually changing transparency, wherein each The transparency can be marked with a single value.
- the display transparency corresponding to the statistical indicator data displayed in the area may be set to indicate the highest transparency display transparency; If the statistical indicator data corresponding to an area is smaller than the maximum reference value, the statistical indicator data displayed by the area may be The transparency should be set to the level of transparency value that the statistical indicator data actually corresponds to.
- a minimum value for exhibiting transparency can be further set.
- the minimum value of the display transparency refers to a minimum reference value corresponding to the display transparency for indicating the lowest heat for a certain statistical indicator data of the image in the heat map corresponding to the image.
- a plurality of transparency value levels may be divided according to the display requirements of the heat map, and each transparency value level corresponds to a gradually changing transparency, wherein each transparency is displayed. Specifically, it can be marked with a numerical value.
- the display transparency corresponding to the statistical indicator data displayed in the area may be set to indicate the transparency of the highest heat; if the image is on a certain If the statistical indicator data corresponding to the area is less than or equal to the maximum reference value, the display transparency corresponding to the statistical indicator data displayed in the area may be set to indicate the transparency of the lowest heat; if an area on the image corresponds to If the statistical indicator data is greater than the minimum reference value and is less than the maximum reference value, the transparency corresponding to the statistical indicator data displayed in the area may be set as the transparency value level corresponding to the statistical indicator data.
- the correspondence between the statistical indicator data and the transparency value level may be set according to the experience requirement of the experience or the heat map, or several statistical indicators of the image may also be obtained. After the data, based on these statistical indicator data, set the statistical indicator data and The correspondence between the brightness value levels is not particularly limited in this embodiment.
- a thermal data may be pre-defined to a lookup table for displaying colors. After obtaining thermal data of each pixel, the obtained thermal data of each pixel may be used to pass the lookup table. Difference processing is performed to obtain a presentation color corresponding to each pixel.
- the color that the heat map can display can be several cases:
- Case 1 The heat map only shows a single color, and the depth of the color indicates the level of heat.
- the color that can be displayed in a certain area of the image to indicate the highest heat may be red, and the darker the color, the higher the heat of the area, the lighter the color. The lower the heat in this area.
- the so-called heat refers to a degree that can reflect the value of the statistical indicator data is large or small.
- Case 2 The heat map can display two or more colors, and the heat is indicated by different colors.
- the color that can be displayed in a certain area of the image to indicate the highest heat may be red, the orange may indicate the heat, and the green may indicate the lowest heat. It can be understood that a plurality of transition colors can be included between the two colors.
- thermogram can display can further combine the above two cases.
- the maximum value of the display color may be defined, which is used to represent a certain statistical indicator data of the image in the heat map corresponding to the image.
- a maximum reference value corresponding to the color indicating the highest heat.
- a plurality of color value levels are divided, and each color value level corresponds to a gradually changing one of the display colors.
- Each of the presentation colors can be specifically marked with a set of parameter values.
- the parameter values may include red (R) component values, green (G) component values, and blue (B) component values; or, for example, the parameter values may also include red (R) component values, green ( G) component values and blue (B) component values, as well as luminance component values.
- the color corresponding to the statistical indicator data displayed in the area may be set to a color indicating the highest heat; otherwise, if the image is on the image If the statistical indicator data corresponding to a certain area is smaller than the maximum value of the color, the color corresponding to the statistical indicator data displayed in the area may be set to a color value level corresponding to the statistical indicator data.
- the minimum value of the color to be displayed refers to a maximum reference value corresponding to a color indicating the highest heat for a certain statistical index data of the image in the heat map corresponding to the image.
- a plurality of color value levels are divided, and each color value level corresponds to a gradually changing one of the display colors.
- Each of the presentation colors can be specifically marked with a set of parameter values.
- the parameter values may include red (R) component values, green (G) component values, and blue (B) component values; or, for example, the parameter values may also include red (R) component values, green ( G) component values and blue (B) component values, as well as luminance component values.
- the color corresponding to the statistical indicator data displayed in the area may be set to a color indicating the highest heat; if the statistical indicator data corresponding to an area on the image is less than or equal to the minimum value of the color, the The color corresponding to the statistical indicator data displayed in the area is set to a color indicating the lowest heat; if the statistical indicator data corresponding to an area on the image is larger than the minimum value of the color and smaller than the maximum value of the color, The color corresponding to the statistical indicator data displayed in the area is set to the color value level corresponding to the statistical indicator data.
- the correspondence between the statistical indicator data and the color value level is set according to the experience of the experience or the heat map, or several statistical indicators of the image may also be obtained.
- the correspondence between the statistical indicator data and the color value level is set according to the statistical indicator data, which is not specifically limited in this embodiment.
- the display of the heat map needs to be consistent with the manner in which the image is displayed, so that the heat map and the image can be accurately superimposed, and the heat map can be effectively improved. Sex.
- the display mode is a grid image mode
- the heat map can be displayed in a raster image manner, and the resolution of the raster image of the heat map is consistent with the resolution of the grid image of the electronic map.
- the resolution of each raster image can be 256x256 or the like.
- the server pre-renders the raster image (the raster image of the electronic map or the raster image of the heat map), and the application requests the raster data of the raster image from the server, and then the application presents the requested raster data as a visualization.
- Grid image the grid picture can be For a detailed description of the line number, the column number, and the level of the tile picture, refer to related content in the prior art, and details are not described herein again.
- FIG. 4A is a schematic diagram showing the effect of the thermal map of the Beijing South Railway Station area in the prior art without using the thermal template image
- FIG. 4B is a technical solution showing the fixed thermal template image in the corresponding embodiment of FIG. 1
- the railway station area is the most densely populated area, and most of the area in the heat map should show colors such as dark colors indicating the highest heat or higher heat, and display transparency such as low transparency indicating the highest heat or higher heat. , to show. 4B is compared with FIG. 4A, in the heat map shown in FIG.
- the color distribution is relatively uniform, the color difference is more obvious, and the heat indicated by the color and the transparency is consistent with the actual situation, and the flow of people can be clearly displayed on the Baidu map.
- Distribution so that the characteristics of the distribution of human flow can be obtained, and the characteristics of the distribution of human flow obtained are in line with the actual distribution of human flow, which can reflect the true value of the thermogram; while in the thermogram shown in Figure 4A, the color difference is not obvious. And the heat indicated by color and transparency does not reach the actual situation. It is impossible to clearly show the distribution of human flow on Baidu map. It is not easy to get the characteristics of the distribution of people flow, and the characteristics of the distribution of people flow in time, and it does not conform to the actual flow of people. The distribution does not reflect the true value of the heat map.
- FIG. 5A is a schematic diagram showing the effect of the thermal map of the Wangfujing area displayed by the map zoom level of the electronic map in the prior art without using the thermal template image
- FIG. 5B is an embodiment of the embodiment corresponding to FIG.
- the map's map zoom level is 15
- the thermal template image shows the effect of the heat map of the Wangfujing area.
- FIG. 5C is a schematic diagram showing the effect of the thermal map of the Wangfujing area displayed by the map zoom level of the electronic map in the prior art without using the thermal template image;
- FIG. 5D is an embodiment of the embodiment corresponding to FIG.
- the map zoom level of the map is a schematic diagram of the heat map of the Wangfujing area displayed by the thermal template image corresponding to the 14th level.
- FIG. 5E is a schematic diagram showing the effect of the thermal map of the Wangfujing area displayed by the map zoom level of the electronic map in the prior art without using the thermal template image
- FIG. 5F is an example of the embodiment corresponding to FIG.
- the map zoom level of the map is a schematic diagram of the heat map of the Wangfujing area displayed by the thermal template image corresponding to the 13th level.
- the color distribution of each heat map is relatively uniform, the color difference is more obvious, and the heat indicated by the color and the transparency is consistent with the actual situation, and can be clearly displayed on the Baidu map.
- the color distribution and transparency distribution of the corresponding areas in each heat map are consistent, and the consistent distribution of human flow can be clearly displayed on the Baidu map, so that the characteristics of the uniform flow distribution can be obtained, and the obtained flow distribution is obtained.
- the characteristics are in line with the actual distribution of people flow, which can reflect the true value of the heat map.
- Baidu map shows the distribution of human flow
- the color distribution and transparency distribution of the corresponding areas in each heat map are inconsistent, and it is impossible to display a consistent distribution of human flow on Baidu map, and it is impossible to obtain a consistent distribution of human flow, and does not reflect the true value of the heat map. .
- the thermal template image is used to describe a specified image feature of each pixel on the thermal template image, so that according to the statistical indicator data and The thermal template image exhibits a thermal map corresponding to the image, and since the attenuation relationship of the set statistical indicator data is no longer completely relied on, the thermal template image is combined with the thermal template image to display the thermal map, thereby avoiding the existing In the technology, the thermal map caused by the attenuation relationship of the set statistical indicator data cannot clearly show the distribution of the statistical indicator data of the image, thereby improving the reliability of the heat map display.
- the thermal template image is combined with the thermal template image to make the operation object change from pixel to image, and therefore, Effectively improve the efficiency of the heat map display.
- the thermal force image is displayed by using the thermal template image corresponding to the image display ratio, it is possible to avoid that the heat map cannot be clearly obtained due to the use of a fixed thermal template image.
- the problem of displaying the distribution of the statistical indicator data of the image can further effectively improve the reliability of the display of the heat map.
- the thermal template image corresponding to the display ratio of the image is used to display the thermal map, the statistical index data of the image can be clearly displayed under each display ratio of the image. Can effectively improve the heat map Utilization rate.
- FIG. 2 is a schematic structural diagram of a display device of a heat map according to another embodiment of the present invention, as shown in FIG. 2 .
- the presentation device of the thermogram of the present embodiment may include an obtaining unit 21, a template unit 22, and a presentation unit 23.
- An obtaining unit 21, configured to obtain statistical indicator data of an image;
- a template unit 22, configured to obtain a thermal template image, wherein the thermal template image is used to describe a specified image feature of each pixel on the thermal template image; and a presentation unit 23, And a method for displaying a heat map corresponding to the image according to the statistical indicator data and the thermal template image.
- part or all of the display device of the heat map provided by this embodiment may be an application located in a local terminal, or may be a plug-in or a software development kit (Software Development) installed in an application located in the local terminal.
- the functional unit such as Kit, SDK, or the like may be a processing engine located in the network side server, or may be a distributed system located on the network side, which is not specifically limited in this embodiment.
- the application may be a local application (nativeApp) installed on the terminal, or may be a web application (webApp) of the browser on the terminal, which is not limited in this embodiment.
- the statistical indicator data may include, but is not limited to, a statistical parameter and a location corresponding to the image; the obtaining unit 21 may be specifically configured to be used according to The statistical indicator data to be processed is subjected to density-based clustering processing at a position corresponding to the image to obtain at least one candidate class; according to statistical indicator data included in each candidate class of the at least one candidate class Obtaining at least one target class by a quantity and a preset number threshold; obtaining each target according to a position corresponding to statistical indicator data included in each target class in the at least one target class on the image a location of the class; obtaining, according to the statistical parameter corresponding to the statistical indicator data included in each target class in the at least one target class, a statistical parameter of each target class; and statistics according to each target class The parameter and the location of each of the target classes obtain statistical indicator data for each of the target classes.
- the template unit 22 may be specifically configured to obtain a presentation ratio of the image; and obtain the thermal template image according to the presentation ratio.
- the presentation unit 23 is specifically configured to obtain, according to the thermal template image, a specified image feature of each pixel on the thermal template image; Deriving the statistical index data and the specified image feature of each pixel to obtain thermal data of each of the pixels; obtaining, according to the thermal data of each pixel, a presentation color of each of the pixels; and The color of each pixel is displayed, showing the heat map corresponding to the image.
- the presentation unit 23 may be specifically configured to obtain display transparency of each of the pixels; and display the display according to the presentation color of each pixel and the presentation transparency of each pixel.
- the presentation unit 23 may be specifically configured to use a preset transparency set in advance as the presentation transparency of each pixel.
- the presentation unit 23 may be specifically configured to obtain display transparency of each pixel according to the thermal power data of each pixel and the preset at least two preset transparencys.
- the specified image feature may include, but is not limited to, at least one of image transparency and image color, which is not specifically limited in this embodiment.
- the template unit 22 may be further configured to create the thermal template image according to a sample statistical parameter and a position corresponding to the sample image.
- the statistical indicator data of the image is obtained by the obtaining unit
- the thermal template image is obtained by the template unit, wherein the thermal template image is used to describe the specified image feature of each pixel on the thermal template image, so that the display unit can Displaying the thermal map corresponding to the image according to the statistical indicator data and the thermal template image, and instead of completely relying on the attenuation relationship of the set statistical indicator data, combining the thermal template image to display the thermal map Therefore, it is possible to avoid the problem that the thermal map cannot completely clearly display the distribution of the statistical indicator data of the image due to the dependence of the attenuation relationship of the set statistical indicator data in the prior art, thereby improving the reliability of the heat map display. .
- the thermal force image is displayed by using the thermal template image corresponding to the image display ratio, it is possible to avoid that the heat map cannot be clearly obtained due to the use of a fixed thermal template image.
- the problem of displaying the distribution of the statistical indicator data of the image can further effectively improve the reliability of the display of the heat map.
- the thermal template image corresponding to the display ratio of the image is used to display the thermal map, the statistical index data of the image can be clearly displayed under each display ratio of the image. Can effectively improve the utilization rate of the heat map.
- the disclosed system, apparatus, and method may be implemented in other manners.
- the device embodiments described above are merely illustrative.
- the division of the unit is only a logical function division.
- there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
- the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
- the unit described as a separate component may or may not be physically separated, and the component displayed as a unit may or may not be a physical unit, that is, may be located in one Places, or they can be distributed to multiple network elements. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
- each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
- the above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
- the above-described integrated unit implemented in the form of a software functional unit can be stored in a computer readable storage medium.
- the above software functional unit is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to perform the methods of the various embodiments of the present invention. Part of the steps.
- the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program codes. .
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Image Processing (AREA)
- Radiation Pyrometers (AREA)
Abstract
提供一种热力图的展现方法、装置、设备及非易失性计算机存储介质。通过获得图像的统计指标数据(101),以及获得热力模板图像,所述热力模板图像用于描述所述热力模板图像上每个像素的指定图像特征(102),使得能够根据所述统计指标数据和所述热力模板图像,展现所述图像所对应的热力图(103),由于不再完全依赖所设置的统计指标数据的衰减关系,而是结合热力模板图像,进行热力图的展现,因此,能够避免现有技术中由于完全依赖所设置的统计指标数据的衰减关系而导致的热力图无法清晰地展现图像的统计指标数据的分布情况的问题,从而提高了热力图的展现可靠性。
Description
本申请要求了申请日为2015年03月18日,申请号为201510118051.9发明名称为“热力图的展现方法及装置”的中国专利申请的优先权。
本发明涉及热力图技术,特别涉及一种热力图的展现方法、装置、设备及非易失性计算机存储介质。
热力图,是可以按照一定的统计标准,获得若干个统计指标数据,使用特殊高亮的形式表示图像中各个区域的统计指标数据的大小,从而将区域的全局特征直观地展示在人们面前的一种方式。热力图可以应用在各种图像上,例如,地图热力图,是用不同颜色的区块叠加在地图上实时描述人群分布、密度和变化趋势的一个服务,是基于百度大数据的一个便民出行服务。通常,每个统计指标数据在热力图中都可以对应一个展现中心位置和一个展现区域,这个展现中心位置即为该统计指标数据的实际位置,这个展现区域的半径则可以称为热力半径。现有技术中,可以由操作人员设置一个固定的统计指标数据的衰减关系,以供在这个展现区域之内,根据所设置的统计指标数据的衰减关系,获得在热力半径上每个像素的热力数据,进而则可以根据每个像素的热力数据,获得所对应的颜色,并进行每个统计指标数据的展现。
然而,由于完全依赖所设置的统计指标数据的衰减关系,会使得热力图无法清晰地展现图像的统计指标数据的分布情况,从而导致了热力图的展现可靠性的降低。
发明内容
本发明的多个方面提供一种热力图的展现方法及装置,用以提高热力图的展现可靠性。
本发明的一方面,提供一种热力图的展现方法,包括:
获得图像的统计指标数据;
获得热力模板图像,所述热力模板图像用于描述所述热力模板图像上每个像素的指定图像特征;
根据所述统计指标数据和所述热力模板图像,展现所述图像所对应的热力图。
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述统计指标数据包括统计参数和在所述图像上所对应的位置;所述获得图像的统计指标数据,包括:
根据待处理的统计指标数据在所述图像上所对应的位置,进行基于密度的聚类处理,以获得至少一个候选类;
根据所述至少一个候选类中每个候选类中所包括的统计指标数据的数量和预先设置的数量阈值,获得至少一个目标类;
根据所述至少一个目标类中每个目标类中所包括的统计指标数据在
所述图像上所对应的位置,获得所述每个目标类的位置;
根据所述至少一个目标类中每个目标类中所包括的统计指标数据所对应的统计参数,获得所述每个目标类的统计参数;
根据所述每个目标类的统计参数和所述每个目标类的位置,获得所述每个目标类的统计指标数据。
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述获得热力模板图像,包括:
获得所述图像的展现比例;
根据所述展现比例,获得所述热力模板图像。
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述根据所述统计指标数据和所述热力模板图像,展现所述图像所对应的热力图,包括:
根据所述热力模板图像,获得所述热力模板图像上每个像素的指定图像特征;
根据所述统计指标数据和所述每个像素的指定图像特征,获得所述每个像素的热力数据;
根据所述每个像素的热力数据,获得所述每个像素的展现颜色;
根据所述每个像素的展现颜色,展现所述图像所对应的热力图。
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述根据所述每个像素的展现颜色,展现所述图像所对应的热力图,包
括:
获得所述每个像素的展现透明度;
根据所述每个像素的展现颜色和所述每个像素的展现透明度,展现所述图像所对应的热力图。
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述获得所述每个像素的展现透明度,包括:
将预先设置的一个预设透明度,作为所述每个像素的展现透明度;或者
根据所述每个像素的热力数据和预先设置的至少两个预设透明度,获得所述每个像素的展现透明度。
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述获得热力模板图像之前,还包括:
根据样本统计参数和在样本图像上所对应的位置,创建所述热力模板图像。
本发明的另一方面,提供一种热力图的展现装置,包括:
获得单元,用于获得图像的统计指标数据;
模板单元,用于获得热力模板图像,所述热力模板图像用于描述所述热力模板图像上每个像素的指定图像特征;
展现单元,用于根据所述统计指标数据和所述热力模板图像,展现所述图像所对应的热力图。
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述统计指标数据包括统计参数和在所述图像上所对应的位置;所述获得单元,具体用于
根据待处理的统计指标数据在所述图像上所对应的位置,进行基于密度的聚类处理,以获得至少一个候选类;
根据所述至少一个候选类中每个候选类中所包括的统计指标数据的数量和预先设置的数量阈值,获得至少一个目标类;
根据所述至少一个目标类中每个目标类中所包括的统计指标数据在所述图像上所对应的位置,获得所述每个目标类的位置;
根据所述至少一个目标类中每个目标类中所包括的统计指标数据所对应的统计参数,获得所述每个目标类的统计参数;以及
根据所述每个目标类的统计参数和所述每个目标类的位置,获得所述每个目标类的统计指标数据。
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述模板单元,具体用于
获得所述图像的展现比例;以及
根据所述展现比例,获得所述热力模板图像。
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述展现单元,具体用于
根据所述热力模板图像,获得所述热力模板图像上每个像素的指定
图像特征;
根据所述统计指标数据和所述每个像素的指定图像特征,获得所述每个像素的热力数据;
根据所述每个像素的热力数据,获得所述每个像素的展现颜色;以及
根据所述每个像素的展现颜色,展现所述图像所对应的热力图。
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述展现单元,具体用于
获得所述每个像素的展现透明度;以及
根据所述每个像素的展现颜色和所述每个像素的展现透明度,展现所述图像所对应的热力图。
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述展现单元,具体用于
将预先设置的一个预设透明度,作为所述每个像素的展现透明度;或者
根据所述每个像素的热力数据和预先设置的至少两个预设透明度,获得所述每个像素的展现透明度。
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述模板单元,还用于
根据样本统计参数和在样本图像上所对应的位置,创建所述热力模
板图像。
本发明的另一方面,提供一种设备,包括:
一个或者多个处理器;
存储器;
一个或者多个程序,所述一个或者多个程序存储在所述存储器中,当被所述一个或者多个处理器执行时:
获得图像的统计指标数据;
获得热力模板图像,所述热力模板图像用于描述所述热力模板图像上每个像素的指定图像特征;
根据所述统计指标数据和所述热力模板图像,展现所述图像所对应的热力图。
本发明的另一方面,提供一种非易失性计算机存储介质,所述非易失性计算机存储介质存储有一个或者多个程序,当所述一个或者多个程序被一个设备执行时,使得所述设备:
获得图像的统计指标数据;
获得热力模板图像,所述热力模板图像用于描述所述热力模板图像上每个像素的指定图像特征;
根据所述统计指标数据和所述热力模板图像,展现所述图像所对应的热力图。
由上述技术方案可知,本发明实施例通过获得图像的统计指标数据,
以及获得热力模板图像,所述热力模板图像用于描述所述热力模板图像上每个像素的指定图像特征,使得能够根据所述统计指标数据和所述热力模板图像,展现所述图像所对应的热力图,由于不再完全依赖所设置的统计指标数据的衰减关系,而是结合热力模板图像,进行热力图的展现,因此,能够避免现有技术中由于完全依赖所设置的统计指标数据的衰减关系而导致的热力图无法清晰地展现图像的统计指标数据的分布情况的问题,从而提高了热力图的展现可靠性。
另外,采用本发明提供的技术方案,由于不再完全依赖所设置的统计指标数据的衰减关系,而是结合热力模板图像,进行热力图的展现,使得操作对象由像素变为图像,因此,能够有效提高热力图的展现效率。
另外,采用本发明提供的技术方案,由于采用与图像的展现比例所对应的热力模板图像,进行热力图的展现,因此,能够避免由于采用固定的一个热力模板图像而导致的热力图无法清晰地展现图像的统计指标数据的分布情况的问题,能够进一步有效提高热力图的展现可靠性。
另外,采用本发明提供的技术方案,由于采用与图像的展现比例所对应的热力模板图像,进行热力图的展现,因此,能够在图像的每个展现比例下,清晰地展现图像的统计指标数据,能够有效提高热力图的利用率。
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1为本发明一实施例提供的热力图的展现方法的流程示意图;
图2为本发明另一实施例提供的热力图的展现装置的结构示意图;
图3A为图1对应的实施例中一个典型的热力模板图像的效果示意图;
图3B为图1对应的实施例中电子地图的地图缩放级别为15级及以上所对应的热力模板图像的效果示意图;
图3C为图1对应的实施例中电子地图的地图缩放级别为14级所对应的热力模板图像的效果示意图;
图3D为图1对应的实施例中电子地图的地图缩放级别为13级所对应的热力模板图像的效果示意图;
图3E为图1对应的实施例中电子地图的地图缩放级别为12级所对应的热力模板图像的效果示意图;
图3F为图1对应的实施例中电子地图的地图缩放级别为11级所对应的热力模板图像的效果示意图;
图3G为图1对应的实施例中电子地图的地图缩放级别为10级及以下所对应的热力模板图像的效果示意图;
图4A为现有技术中未采用热力模板图像的技术方案所展现的北京南站区域的热力图的效果示意图;
图4B为图1对应的实施例中采用固定的热力模板图像的技术方案
所展现的北京南站区域的热力图的效果示意图;
图4C为现有技术中未采用热力模板图像的技术方案所展现的北京西站区域的热力图的效果示意图;
图4D为图1对应的实施例中采用固定的热力模板图像的技术方案所展现的北京西站区域的热力图的效果示意图;
图4E为现有技术中未采用热力模板图像的技术方案所展现的北京站区域的热力图的效果示意图;
图4F为图1对应的实施例中采用固定的热力模板图像的技术方案所展现的北京站区域的热力图的效果示意图;
图5A为现有技术中未采用热力模板图像的技术方案中电子地图的地图缩放级别为15级所展现的王府井区域的热力图的效果示意图;
图5B为图1对应的实施例中采用电子地图的地图缩放级别为15级所对应的热力模板图像所展现的王府井区域的热力图的效果示意图;
图5C为现有技术中未采用热力模板图像的技术方案中电子地图的地图缩放级别为14级所展现的王府井区域的热力图的效果示意图;
图5D为图1对应的实施例中采用电子地图的地图缩放级别为14级所对应的热力模板图像所展现的王府井区域的热力图的效果示意图;
图5E为现有技术中未采用热力模板图像的技术方案中电子地图的地图缩放级别为13级所展现的王府井区域的热力图的效果示意图;
图5F为图1对应的实施例中采用电子地图的地图缩放级别为13级所对应的热力模板图像所展现的王府井区域的热力图的效果示意图。
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的全部其他实施例,都属于本发明保护的范围。
需要说明的是,本发明实施例中所涉及的终端可以包括但不限于手机、个人数字助理(Personal Digital Assistant,PDA)、无线手持设备、平板电脑(Tablet Computer)、个人电脑(Personal Computer,PC)、MP3播放器、MP4播放器、可穿戴设备(例如,智能眼镜、智能手表、智能手环等)等。
另外,本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。
图1为本发明一实施例提供的热力图的展现方法的流程示意图,如图1所示。
101、获得图像的统计指标数据。
102、获得热力模板图像,所述热力模板图像用于描述所述热力模板图像上每个像素的指定图像特征。
103、根据所述统计指标数据和所述热力模板图像,展现所述图像所对应的热力图。
需要说明的是,101~103的执行主体的部分或全部可以为位于本地终端的应用,或者还可以为设置在位于本地终端的应用中的插件或软件
开发工具包(Software Development Kit,SDK)等功能单元,或者还可以为位于网络侧服务器中的处理引擎,或者还可以为位于网络侧的分布式系统,本实施例对此不进行特别限定。
可以理解的是,所述应用可以是安装在终端上的本地程序(nativeApp),或者还可以是终端上的浏览器的一个网页程序(webApp),本实施例对此不进行限定。
这样,通过获得图像的统计指标数据,以及获得热力模板图像,所述热力模板图像用于描述所述热力模板图像上每个像素的指定图像特征,使得能够根据所述统计指标数据和所述热力模板图像,展现所述图像所对应的热力图,由于不再完全依赖所设置的统计指标数据的衰减关系,而是结合热力模板图像,进行热力图的展现,因此,能够避免现有技术中由于完全依赖所设置的统计指标数据的衰减关系而导致的热力图无法清晰地展现图像的统计指标数据的分布情况的问题,从而提高了热力图的展现可靠性。
本发明中,所谓的图像的统计指标数据,是指采用一些统计方法,对图像的某个区域的一些特性进行统计,所获得的统计参数。具体地,所述统计指标数据可以包括但不限于统计参数和在所述图像上所对应的位置,本实施例对此不进行特别限定。例如,某个区域的人流等。
可选地,在本实施例的一个可能的实现方式中,在101中,具有可以根据待处理的统计指标数据在所述图像上所对应的位置,进行基于密度的聚类处理,以获得至少一个候选类。进而,则可以根据所述至少一个候选类中每个候选类中所包括的统计指标数据的数量和预先设置的数量阈值,获得至少一个目标类。然后,则可以根据所述至少一个目标类
中每个目标类中所包括的统计指标数据在所述图像上所对应的位置,获得所述每个目标类的位置,以及根据所述至少一个目标类中每个目标类中所包括的统计指标数据所对应的统计参数,获得所述每个目标类的统计参数。最后,则可以根据所述每个目标类的统计参数和所述每个目标类的位置,获得所述每个目标类的统计指标数据。
这样,通过对统计指标数据进行聚类处理,能够避免热力图所展现的统计指标数据的分布情况过于稠密的问题,能够有效提高热力图的展现可靠性。
可以理解的是,“根据所述至少一个目标类中每个目标类中所包括的统计指标数据在所述图像上所对应的位置,获得所述每个目标类的位置”,以及“根据所述至少一个目标类中每个目标类中所包括的统计指标数据所对应的统计参数,获得所述每个目标类的统计参数”的两个步骤,没有固定顺序,所述处理装置可以先执行“根据所述至少一个目标类中每个目标类中所包括的统计指标数据在所述图像上所对应的位置,获得所述每个目标类的位置”的步骤,再执行“根据所述至少一个目标类中每个目标类中所包括的统计指标数据所对应的统计参数,获得所述每个目标类的统计参数”的步骤,或者还可以先执行“根据所述至少一个目标类中每个目标类中所包括的统计指标数据所对应的统计参数,获得所述每个目标类的统计参数”的步骤,再执行“根据所述至少一个目标类中每个目标类中所包括的统计指标数据在所述图像上所对应的位置,获得所述每个目标类的位置”的步骤,或者还可以同时执行这两个步骤,本实施例对此不进行特别限定。
具体地,具体可以采用现有的基于密度的聚类算法,例如,基于密
度的带有噪声的空间聚类(Density-Based Spatial Clustering of Applications with Noise,DBSCAN)算法等,详细描述可以参见现有技术中的相关内容,此处不再赘述。
具体地,若候选类中所包括的统计指标数据的数量大于或等于预先设置的数量阈值,则将该候选类作为一个目标类;否则,若候选类中所包括的统计指标数据的数量小于预先设置的数量阈值,则忽略该候选类,不会对该候选类进行任何后续处理。
具体地,在获得至少一个目标类之后,具体可以根据每个目标类中所包括的每个统计指标数据在所述图像上所对应的位置,计算一个中心位置数据,以作为每个目标类的位置。以电子地图上某个区域的人流为例,终端利用定位技术进行定位时,所获得的定位数据可以作为计算某个区域人流的依据。由于这些定位数据可以包括经度分量和纬度分量等地理位置数据,一个经度和一个纬度一起可以确定地球上一个地点的精确位置。例如,具体可以根据每个位置,分别计算每个分量的平均值,进而将每个分量的平均值组成一个中心位置数据,以作为每个目标类的位置。
具体地,在获得至少一个目标类之后,具体可以根据每个目标类中所包括的每个统计指标数据所对应的统计参数,计算一个平均参数,以作为每个目标类的统计参数。例如,对每个目标类中所包括的每个统计指标数据所对应的统计参数进行算术平均运算,计算出一个平均参数;或者,再例如,对每个目标类中所包括的每个统计指标数据所对应的统计参数进行加权平均运算,计算出一个平均参数;等等,本实施例对此不进行特别限定。
可选地,在本实施例的一个可能的实现方式中,在102中,所获得的所述热力模板图像,其形状特征和大小特征,是指在图像所对应的热力图中,针对图像的某个统计指标数据,所能够展现的用于指示热度的展现元素的尺寸数据。通常,热力图,是由若干个不同颜色的圆叠加起来共同展现的,那么,所述展现元素的尺寸数据则可以为理解为半径参数。
可选地,在本实施例的一个可能的实现方式中,在102中,所获得的所述热力模板图像,其除了具有形状特征和大小特征之外,还可以用于描述所述热力模板图像上每个像素的指定图像特征。
其中,所述指定图像特征可以包括但不限于图像透明度和图像颜色中的至少一项,本实施例对此不进行特别限定。以图像透明度为例,一个典型的热力模板图像可以如图3A所示。
在一个具体的实现过程中,在102之前,还可以进一步包括根据样本统计参数和在样本图像上所对应的位置,创建所述热力模板图像。
通常,由于热力图所涉及的一些服务,可以有不同的展现比例,例如,地图缩放级别等,采用固定的热力模板图像,会使得热力图无法清晰地展现图像的统计指标数据的分布情况,例如,展现比例变大,现有的颜色分布就会比较分散,而展现比例变小,现有的颜色分布就会特别集中,等等,从而导致了热力图的展现可靠性的降低。因此,可以采用多个热力模板图像,克服上述问题。
这样,由于采用与图像的展现比例所对应的热力模板图像,进行热力图的展现,因此,能够避免由于采用固定的一个热力模板图像而导致的热力图无法清晰地展现图像的统计指标数据的分布情况的问题,能够
进一步有效提高热力图的展现可靠性。
例如,具体可以根据样本统计参数和在样本图像上所对应的位置,根据图像的展现参数,以及所述图像的统计指标数据,利用热力图像,进行反复试验和调整,直到热力图能够清晰地展现图像的统计指标数据的分布情况,将此时的调整结果,作为所述热力模板图像。所述图像的展现参数,可以包括但不限于图像的展现比例,本实施例对此不进行特别限定。所述图像的展现比例,是指放大或缩小图像的显示比例,例如,电子地图的地图缩放级别。
或者,再例如,具体可以利用正例训练样本,创建所述热力模板图像。在创建热力模板图像之前,可以预先由操作人员根据图像的展现参数,以及所述图像的统计指标数据,调整热力图像,以获得满足训练意图的图像所对应的热力图。然后,记录这些热力图所对应的图像的展现参数和调整之后的热力图像,将所记录的数据作为正例训练样本。所述图像的展现参数,可以包括但不限于图像的展现比例,本实施例对此不进行特别限定。
所述图像的展现比例,是指放大或缩小图像的显示比例,例如,电子地图的地图缩放级别。以百度地图为例,其自身拥有17个地图缩放级别即3级到20级,所对应的地图缩放比例即显示距离1厘米与实际距离的比值分别可以为1:20m、1:50m、1:100m、1:200m、1:500m、1:1km、1:2km、1:5km、1:10km、1:20km、1:25km、1:50km、1:100km、1:200km、1:500km、1:1000km和1:2000km。以图像透明度为例,6种不同地图缩放比例所对应的热力模板图像可以分别如图3B~图3G所示。
在另一个具体的实现过程中,在102中,具体可以获得所述图像的展现比例,进而,则可以根据所述展现比例,获得所述热力模板图像。
可选地,在本实施例的一个可能的实现方式中,在103中,具体可以根据所述热力模板图像,获得所述热力模板图像上每个像素的指定图像特征。进而,则可以根据所述统计指标数据和所述每个像素的指定图像特征,获得所述每个像素的热力数据。然后,可以根据所述每个像素的热力数据,获得所述每个像素的展现颜色,并根据所述每个像素的展现颜色,展现所述图像所对应的热力图。只有在热力模板图像上的像素,能够采用上述方案获得其所对应的展现颜色,不在热力模板图像上的其他像素的展现颜色则可以为默认颜色例如,无色等,
这样,由于不再完全依赖所设置的统计指标数据的衰减关系,而是结合热力模板图像,进行热力图的展现,使得操作对象由像素变为图像,因此,能够有效提高热力图的展现效率。
具体地,在获得每个像素的指定图像特征之后,具体可以根据所述统计指标数据、每个像素的指定图像特征,以及每个指定图像特征所对应的调整权值,获得所述每个像素的热力数据。可以理解的是,所述调整权值,可以为经验数值,或者经验公式,本实施例对此不进行特别限定。
具体地,由于热力图是叠加在图像上进行展现的,因此,为了不完全将作为叠加基础的图像覆盖掉,除了根据所述每个像素的展现颜色,进行所述图像所对应的热力图的展现之外,还需要进一步根据所述每个像素的展现透明度,进行所述图像所对应的热力图的展现。
在一个具体的实现过程中,具体可以获得所述每个像素的展现透明
度,进而,则可以根据所述每个像素的展现颜色和所述每个像素的展现透明度,展现所述图像所对应的热力图。只有在热力模板图像上的像素,能够采用上述方案获得其所对应的展现透明度,不在热力模板图像上的其他像素的展现透明度则可以为默认透明度例如,透明度为100%等。
例如,具体可以将预先设置的一个预设透明度,作为所述每个像素的展现透明度。
这样,整个热力图采用一个统一的透明度,设置简单,操作方便,能够有效提高热力图的展现效率。
或者,再例如,具体可以根据所述每个像素的热力数据和预先设置的至少两个预设透明度,获得所述每个像素的展现透明度。
这样,整个热力图采用多个不同的透明度,能够进一步清晰展现图像的统计指标数据的分布情况,能够有效提高热力图的展现可靠性。
具体地,具体可以设置一个展现透明度的最大值,是指在图像所对应的热力图中,针对图像的某个统计指标数据,所能够展现的用于指示最高热度的展现透明度所对应的一个最大参考值。
在展现透明度的最大值与默认的展现透明度的最小值0之间,可以根据热力图的展现需求,划分若干个透明度值等级,每个透明度值等级依次对应逐渐变化的一个展现透明度,其中,每个展现透明度具体可以用一个数值进行标记。
若图像上某个区域所对应的统计指标数据大于或等于该最大参考值,则可以将该区域所展现的该统计指标数据所对应的展现透明度设置为指示最高热度的展现透明度;反之,若图像上某个区域所对应的统计指标数据小于该最大参考值,则可以将该区域所展现的该统计指标数据所对
应的透明度设置为该统计指标数据实际所对应的透明度值等级。
具体地,除了可以设置一个展现透明度的最大值之外,还可以进一步设置一个展现透明度的最小值。所述展现透明度的最小值,是指在图像所对应的热力图中,针对图像的某个统计指标数据,所能够展现的用于指示最低热度的展现透明度所对应的一个最小参考值。
在展现透明度的最大值与展现透明度的最小值之间,可以根据热力图的展现需求,划分若干个透明度值等级,每个透明度值等级依次对应逐渐变化的一个展现透明度,其中,每个展现透明度具体可以用一个数值进行标记。
若图像上某个区域所对应的统计指标数据大于或等于该最大参考值,则可以将该区域所展现的该统计指标数据所对应的展现透明度设置为指示最高热度的展现透明度;若图像上某个区域所对应的统计指标数据小于或等于该最大参考值,则可以将该区域所展现的该统计指标数据所对应的展现透明度设置为指示最低热度的展现透明度;若图像上某个区域所对应的统计指标数据大于该最小参考值,且小于该最大参考值,则可以将该区域所展现的该统计指标数据所对应的透明度设置为该统计指标数据实际所对应的透明度值等级。
在具体实现时,还需要进一步预先设置统计指标数据与透明度值等级的对应关系。这样,则可以根据该对应关系,获得指定范围之内的统计指标数据所对应的透明度值等级。具体地,具体可以在获得图像的若干个统计指标数据之前,就预先根据经验或热力图的展现需求,设置统计指标数据与透明度值等级的对应关系,或者还可以在获得图像的若干个统计指标数据之后,根据这些统计指标数据,设置统计指标数据与透
明度值等级的对应关系,本实施例对此不进行特别限定。
在另一个具体的实现过程中,具体可以预先定义一个热力数据到展现颜色的查找表,获得每个像素的热力数据之后,就可以利用所获得的每个像素的热力数据,通过该查找表,进行差值处理,以获得每个像素所对应的展现颜色。
在具体的实现过程中,以人流为统计指标数据为例,热力图所能够展现的颜色可以有几种情况:
情况一:热力图只展现单一的颜色,通过颜色的深浅来指示热度的高低。
这种情况下,在图像所对应的热力图中,该图像的某个区域所能够展现的用于指示最高热度的颜色可以为红色,颜色越深,该区域的热度越高,颜色越浅,该区域的热度越低。所谓热度,是指能够反映统计指标数据的取值大或小的一个程度。
情况二:热力图可展现两种或两种以上颜色,通过不同颜色来指示热度的高低。
这种情况下,在图像所对应的热力图中,该图像的某个区域所能够展现的用于指示最高热度的颜色可以为红色,橙色可以表示热度次之,绿色可以表示热度最低。可以理解的是,两种颜色之间可以包含多种过渡颜色。
可以理解的是,热力图所能够展现的颜色,还可以进一步结合上述两种情况。
例如,所述查找表中,可以只定义展现颜色的最大值,是指在图像所对应的热力图中,针对图像的某个统计指标数据,所能够展现的用于
指示最高热度的颜色所对应的一个最大参考值。在展现颜色的最大值与默认的展现颜色的最小值0之间,根据热力图的展现需求,划分若干个颜色值等级,每个颜色值等级依次对应逐渐变化的一个展现颜色。
其中,每个展现颜色具体可以用一组参数值进行标记。例如,所述参数值可以包括红色(R)分量值、绿(G)分量值和蓝(B)分量值;或者,再例如,所述参数值还可以包括红色(R)分量值、绿(G)分量值和蓝(B)分量值,以及亮度分量值。
若图像上某个区域所对应的统计指标数据大于或等于所述颜色最大值,则可以将该区域所展现的该统计指标数据所对应的颜色设置为指示最高热度的颜色;反之,若图像上某个区域所对应的统计指标数据小于所述颜色最大值,则可以将该区域所展现的该统计指标数据所对应的颜色设置为该统计指标数据实际所对应的颜色值等级。
或者,再例如,所述查找表中,除了定义展现颜色的最大值,还需要定义展现颜色的最小值。所述展现颜色的最小值,是指在图像所对应的热力图中,针对图像的某个统计指标数据,所能够展现的用于指示最高热度的颜色所对应的一个最大参考值。在展现颜色的最大值与展现颜色的最小值之间,根据热力图的展现需求,划分若干个颜色值等级,每个颜色值等级依次对应逐渐变化的一个展现颜色。
其中,每个展现颜色具体可以用一组参数值进行标记。例如,所述参数值可以包括红色(R)分量值、绿(G)分量值和蓝(B)分量值;或者,再例如,所述参数值还可以包括红色(R)分量值、绿(G)分量值和蓝(B)分量值,以及亮度分量值。
若图像上某个区域所对应的统计指标数据大于或等于所述颜色最大
值,则可以将该区域所展现的该统计指标数据所对应的颜色设置为指示最高热度的颜色;若图像上某个区域所对应的统计指标数据小于或等于所述颜色最小值,则可以将该区域所展现的该统计指标数据所对应的颜色设置为指示最低热度的颜色;若图像上某个区域所对应的统计指标数据大于所述颜色最小值,且小于所述颜色最大值,则可以将该区域所展现的该统计指标数据所对应的颜色设置为该统计指标数据实际所对应的颜色值等级。
在具体实现时,还需要进一步预先设置统计指标数据与颜色值等级的对应关系。这样,则可以根据该对应关系,获得指定范围之内的统计指标数据所对应的颜色值等级。具体地,具体可以在获得图像的若干个统计指标数据之前,就预先根据经验或热力图的展现需求,设置统计指标数据与颜色值等级的对应关系,或者还可以在获得图像的若干个统计指标数据之后,根据这些统计指标数据,设置统计指标数据与颜色值等级的对应关系,本实施例对此不进行特别限定。
具体地,由于热力图是叠加在图像上进行展现的,因此,热力图的展现需要与图像的展现方式保持一致,这样,热力图与图像才能够准确地叠加,能够有效提高热力图的展现可靠性。
以电子地图为例,其展现方式为栅格图片方式,那么热力图的展现方式则可以为栅格图像方式,且热力图的栅格图片的分辨率与电子地图的栅格图片的分辨率一致,例如,每个栅格图片的分辨率可以为256x256等。服务器预先绘制好栅格图片(电子地图的栅格图片或热力图的栅格图片),应用向服务器请求栅格图片的栅格数据,然后由该应用将所请求的栅格数据展现为可视化的栅格图片。其中,所述栅格图片,又可以
称为瓦片图片,瓦片图片的行号、列号和级别的详细描述可以参见现有技术中的相关内容,此处不再赘述。
下面将以百度地图上某个区域的人流作为统计指标数据为例,进行本发明技术方案所提供的热力图展现效果的说明。
图4A为现有技术中未采用热力模板图像的技术方案所展现的北京南站区域的热力图的效果示意图;图4B为图1对应的实施例中采用固定的热力模板图像的技术方案所展现的北京南站区域的热力图的效果示意图。火车站区域是人流最为密集的区域,其热力图中的大部分区域应当以指示最高热度或较高热度的展现颜色如深颜色等,以及指示最高热度或较高热度的展现透明度如低透明度等,进行展现。图4B与图4A相比,在图4B所示的热力图中,颜色分布较为均匀,颜色差异较为明显,且颜色与透明度所指示的热度与实际情况相符,能够清晰地在百度地图上展现人流分布情况,从而能够得到人流分布的特点,并且所获得的人流分布的特点符合实际的人流分布情况,能够体现热力图的真实价值;而在图4A所示的热力图中,颜色差异并不明显,且颜色与透明度所指示的热度并没有达到实际情况,根本无法清晰地在百度地图上展现人流分布情况,不容易得到人流分布的特点,及时得到人流分布的特点,也并不符合实际的人流分布情况,没有体现热力图的真实价值。
类似地,展现效果的差别,还可以继续参见图4D与图4C,以及图4F与图4E。
图5A为现有技术中未采用热力模板图像的技术方案中电子地图的地图缩放级别为15级所展现的王府井区域的热力图的效果示意图;图5B为图1对应的实施例中采用电子地图的地图缩放级别为15级所对应
的热力模板图像所展现的王府井区域的热力图的效果示意图。
图5C为现有技术中未采用热力模板图像的技术方案中电子地图的地图缩放级别为14级所展现的王府井区域的热力图的效果示意图;图5D为图1对应的实施例中采用电子地图的地图缩放级别为14级所对应的热力模板图像所展现的王府井区域的热力图的效果示意图。
图5E为现有技术中未采用热力模板图像的技术方案中电子地图的地图缩放级别为13级所展现的王府井区域的热力图的效果示意图;图5F为图1对应的实施例中采用电子地图的地图缩放级别为13级所对应的热力模板图像所展现的王府井区域的热力图的效果示意图。
图5A、图5C与图5E所示的热力图中,每个热力图的颜色分布较为均匀,颜色差异较为明显,且颜色与透明度所指示的热度与实际情况相符,能够清晰地在百度地图上展现人流分布情况。每个热力图中对应区域所展现的颜色分布与透明度分布较为一致,都能够清晰地在百度地图上展现一致的人流分布情况,从而能够得到一致的人流分布的特点,并且所获得的人流分布的特点符合实际的人流分布情况,能够体现热力图的真实价值。
图5B、图5D与图5F所示的热力图中,只有个别热力图(如图5B所示的热力图)的颜色分布较为均匀,颜色差异较为明显,且颜色与透明度所指示的热度与实际情况相符,能够清晰地在百度地图上展现人流分布情况,从而能够得到人流分布的特点,并且所获得的人流分布的特点符合实际的人流分布情况,能够体现热力图的真实价值。但是,仍然存在大部分热力图(图5D和图5F所示的热力图)的颜色差异并不明显,且颜色与透明度所指示的热度并没有达到实际情况,根本无法清晰地在
百度地图上展现人流分布情况,不容易得到人流分布的特点,及时得到人流分布的特点,也并不符合实际的人流分布情况,没有体现热力图的真实价值。另外,每个热力图中对应区域所展现的颜色分布与透明度分布不一致,无法在百度地图上展现一致的人流分布情况,也就无法能够得到一致的人流分布的特点,没有体现热力图的真实价值。
本实施例中,通过获得图像的统计指标数据,以及获得热力模板图像,所述热力模板图像用于描述所述热力模板图像上每个像素的指定图像特征,使得能够根据所述统计指标数据和所述热力模板图像,展现所述图像所对应的热力图,由于不再完全依赖所设置的统计指标数据的衰减关系,而是结合热力模板图像,进行热力图的展现,因此,能够避免现有技术中由于完全依赖所设置的统计指标数据的衰减关系而导致的热力图无法清晰地展现图像的统计指标数据的分布情况的问题,从而提高了热力图的展现可靠性。
另外,采用本发明提供的技术方案,由于不再完全依赖所设置的统计指标数据的衰减关系,而是结合热力模板图像,进行热力图的展现,使得操作对象由像素变为图像,因此,能够有效提高热力图的展现效率。
另外,采用本发明提供的技术方案,由于采用与图像的展现比例所对应的热力模板图像,进行热力图的展现,因此,能够避免由于采用固定的一个热力模板图像而导致的热力图无法清晰地展现图像的统计指标数据的分布情况的问题,能够进一步有效提高热力图的展现可靠性。
另外,采用本发明提供的技术方案,由于采用与图像的展现比例所对应的热力模板图像,进行热力图的展现,因此,能够在图像的每个展现比例下,清晰地展现图像的统计指标数据,能够有效提高热力图的利
用率。
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。
图2为本发明另一实施例提供的热力图的展现装置的结构示意图,如图2所示。本实施例的热力图的展现装置可以包括获得单元21、模板单元22和展现单元23。获得单元21,用于获得图像的统计指标数据;模板单元22,用于获得热力模板图像,所述热力模板图像用于描述所述热力模板图像上每个像素的指定图像特征;展现单元23,用于根据所述统计指标数据和所述热力模板图像,展现所述图像所对应的热力图。
需要说明的是,本实施例所提供的热力图的展现装置的部分或全部可以为位于本地终端的应用,或者还可以为设置在位于本地终端的应用中的插件或软件开发工具包(Software Development Kit,SDK)等功能单元,或者还可以为位于网络侧服务器中的处理引擎,或者还可以为位于网络侧的分布式系统,本实施例对此不进行特别限定。
可以理解的是,所述应用可以是安装在终端上的本地程序(nativeApp),或者还可以是终端上的浏览器的一个网页程序(webApp),本实施例对此不进行限定。
可选地,在本实施例的一个可能的实现方式中,所述统计指标数据可以包括但不限于统计参数和在所述图像上所对应的位置;所述获得单元21,具体可以用于根据待处理的统计指标数据在所述图像上所对应的位置,进行基于密度的聚类处理,以获得至少一个候选类;根据所述至少一个候选类中每个候选类中所包括的统计指标数据的数量和预先设置的数量阈值,获得至少一个目标类;根据所述至少一个目标类中每个目标类中所包括的统计指标数据在所述图像上所对应的位置,获得所述每个目标类的位置;根据所述至少一个目标类中每个目标类中所包括的统计指标数据所对应的统计参数,获得所述每个目标类的统计参数;以及根据所述每个目标类的统计参数和所述每个目标类的位置,获得所述每个目标类的统计指标数据。
可选地,在本实施例的一个可能的实现方式中,所述模板单元22,具体可以用于获得所述图像的展现比例;以及根据所述展现比例,获得所述热力模板图像。
可选地,在本实施例的一个可能的实现方式中,所述展现单元23,具体可以用于根据所述热力模板图像,获得所述热力模板图像上每个像素的指定图像特征;根据所述统计指标数据和所述每个像素的指定图像特征,获得所述每个像素的热力数据;根据所述每个像素的热力数据,获得所述每个像素的展现颜色;以及根据所述每个像素的展现颜色,展现所述图像所对应的热力图。
在一个具体的实现过程中,所述展现单元23,具体可以用于获得所述每个像素的展现透明度;以及根据所述每个像素的展现颜色和所述每个像素的展现透明度,展现所述图像所对应的热力图。
例如,所述展现单元23,具体可以用于将预先设置的一个预设透明度,作为所述每个像素的展现透明度。
或者,再例如,所述展现单元23,具体可以用于根据所述每个像素的热力数据和预先设置的至少两个预设透明度,获得所述每个像素的展现透明度。
可选地,在本实施例的一个可能的实现方式中,所述指定图像特征可以包括但不限于图像透明度和图像颜色中的至少一项,本实施例对此不进行特别限定。
可选地,在本实施例的一个可能的实现方式中,所述模板单元22,还可以进一步用于根据样本统计参数和在样本图像上所对应的位置,创建所述热力模板图像。
需要说明的是,图1对应的实施例中方法,可以由本实施例提供的热力图的展现装置实现。详细描述可以参见图1对应的实施例中的相关内容,此处不再赘述。
本实施例中,通过获得单元获得图像的统计指标数据,以及由模板单元获得热力模板图像,所述热力模板图像用于描述所述热力模板图像上每个像素的指定图像特征,使得展现单元能够根据所述统计指标数据和所述热力模板图像,展现所述图像所对应的热力图,由于不再完全依赖所设置的统计指标数据的衰减关系,而是结合热力模板图像,进行热力图的展现,因此,能够避免现有技术中由于完全依赖所设置的统计指标数据的衰减关系而导致的热力图无法清晰地展现图像的统计指标数据的分布情况的问题,从而提高了热力图的展现可靠性。
另外,采用本发明提供的技术方案,由于不再完全依赖所设置的统
计指标数据的衰减关系,而是结合热力模板图像,进行热力图的展现,使得操作对象由像素变为图像,因此,能够有效提高热力图的展现效率。
另外,采用本发明提供的技术方案,由于采用与图像的展现比例所对应的热力模板图像,进行热力图的展现,因此,能够避免由于采用固定的一个热力模板图像而导致的热力图无法清晰地展现图像的统计指标数据的分布情况的问题,能够进一步有效提高热力图的展现可靠性。
另外,采用本发明提供的技术方案,由于采用与图像的展现比例所对应的热力模板图像,进行热力图的展现,因此,能够在图像的每个展现比例下,清晰地展现图像的统计指标数据,能够有效提高热力图的利用率。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本发明所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个
地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。
上述以软件功能单元的形式实现的集成的单元,可以存储在一个计算机可读取存储介质中。上述软件功能单元存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本发明各个实施例所述方法的部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。
Claims (18)
- 一种热力图的展现方法,其特征在于,包括:获得图像的统计指标数据;获得热力模板图像,所述热力模板图像用于描述所述热力模板图像上每个像素的指定图像特征;根据所述统计指标数据和所述热力模板图像,展现所述图像所对应的热力图。
- 根据权利要求1所述的方法,其特征在于,所述统计指标数据包括统计参数和在所述图像上所对应的位置;所述获得图像的统计指标数据,包括:根据待处理的统计指标数据在所述图像上所对应的位置,进行基于密度的聚类处理,以获得至少一个候选类;根据所述至少一个候选类中每个候选类中所包括的统计指标数据的数量和预先设置的数量阈值,获得至少一个目标类;根据所述至少一个目标类中每个目标类中所包括的统计指标数据在所述图像上所对应的位置,获得所述每个目标类的位置;根据所述至少一个目标类中每个目标类中所包括的统计指标数据所对应的统计参数,获得所述每个目标类的统计参数;根据所述每个目标类的统计参数和所述每个目标类的位置,获得所述每个目标类的统计指标数据。
- 根据权利要求1或2所述的方法,其特征在于,所述获得热力模板图像,包括:获得所述图像的展现比例;根据所述展现比例,获得所述热力模板图像。
- 根据权利要求1~3任一权利要求所述的方法,其特征在于,所述根据所述统计指标数据和所述热力模板图像,展现所述图像所对应的热力图,包括:根据所述热力模板图像,获得所述热力模板图像上每个像素的指定图像特征;根据所述统计指标数据和所述每个像素的指定图像特征,获得所述每个像素的热力数据;根据所述每个像素的热力数据,获得所述每个像素的展现颜色;根据所述每个像素的展现颜色,展现所述图像所对应的热力图。
- 根据权利要求4所述的方法,其特征在于,所述根据所述每个像素的展现颜色,展现所述图像所对应的热力图,包括:获得所述每个像素的展现透明度;根据所述每个像素的展现颜色和所述每个像素的展现透明度,展现所述图像所对应的热力图。
- 根据权利要求5所述的方法,其特征在于,所述获得所述每个像素的展现透明度,包括:将预先设置的一个预设透明度,作为所述每个像素的展现透明度;或者根据所述每个像素的热力数据和预先设置的至少两个预设透明度,获得所述每个像素的展现透明度。
- 根据权利要求1~6任一权利要求所述的方法,其特征在于,所述指定图像特征包括图像透明度和图像颜色中的至少一项。
- 根据权利要求1~7任一权利要求所述的方法,其特征在于,所 述获得热力模板图像之前,还包括:根据样本统计参数和在样本图像上所对应的位置,创建所述热力模板图像。
- 一种热力图的展现装置,其特征在于,包括:获得单元,用于获得图像的统计指标数据;模板单元,用于获得热力模板图像,所述热力模板图像用于描述所述热力模板图像上每个像素的指定图像特征;展现单元,用于根据所述统计指标数据和所述热力模板图像,展现所述图像所对应的热力图。
- 根据权利要求9所述的装置,其特征在于,所述统计指标数据包括统计参数和在所述图像上所对应的位置;所述获得单元,具体用于根据待处理的统计指标数据在所述图像上所对应的位置,进行基于密度的聚类处理,以获得至少一个候选类;根据所述至少一个候选类中每个候选类中所包括的统计指标数据的数量和预先设置的数量阈值,获得至少一个目标类;根据所述至少一个目标类中每个目标类中所包括的统计指标数据在所述图像上所对应的位置,获得所述每个目标类的位置;根据所述至少一个目标类中每个目标类中所包括的统计指标数据所对应的统计参数,获得所述每个目标类的统计参数;以及根据所述每个目标类的统计参数和所述每个目标类的位置,获得所述每个目标类的统计指标数据。
- 根据权利要求9或10所述的装置,其特征在于,所述模板单元,具体用于获得所述图像的展现比例;以及根据所述展现比例,获得所述热力模板图像。
- 根据权利要求9~11任一权利要求所述的装置,其特征在于,所述展现单元,具体用于根据所述热力模板图像,获得所述热力模板图像上每个像素的指定图像特征;根据所述统计指标数据和所述每个像素的指定图像特征,获得所述每个像素的热力数据;根据所述每个像素的热力数据,获得所述每个像素的展现颜色;以及根据所述每个像素的展现颜色,展现所述图像所对应的热力图。
- 根据权利要求12所述的装置,其特征在于,所述展现单元,具体用于获得所述每个像素的展现透明度;以及根据所述每个像素的展现颜色和所述每个像素的展现透明度,展现所述图像所对应的热力图。
- 根据权利要求13所述的装置,其特征在于,所述展现单元,具体用于将预先设置的一个预设透明度,作为所述每个像素的展现透明度;或者根据所述每个像素的热力数据和预先设置的至少两个预设透明度,获得所述每个像素的展现透明度。
- 根据权利要求9~14任一权利要求所述的装置,其特征在于, 所述指定图像特征包括图像透明度和图像颜色中的至少一项。
- 根据权利要求9~15任一权利要求所述的装置,其特征在于,所述模板单元,还用于根据样本统计参数和在样本图像上所对应的位置,创建所述热力模板图像。
- 一种设备,包括:一个或者多个处理器;存储器;一个或者多个程序,所述一个或者多个程序存储在所述存储器中,当被所述一个或者多个处理器执行时:获得图像的统计指标数据;获得热力模板图像,所述热力模板图像用于描述所述热力模板图像上每个像素的指定图像特征;根据所述统计指标数据和所述热力模板图像,展现所述图像所对应的热力图。
- 一种非易失性计算机存储介质,所述非易失性计算机存储介质存储有一个或者多个程序,当所述一个或者多个程序被一个设备执行时,使得所述设备:获得图像的统计指标数据;获得热力模板图像,所述热力模板图像用于描述所述热力模板图像上每个像素的指定图像特征;根据所述统计指标数据和所述热力模板图像,展现所述图像所对应的热力图。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510118051.9 | 2015-03-18 | ||
| CN201510118051.9A CN104731894B (zh) | 2015-03-18 | 2015-03-18 | 热力图的展现方法及装置 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2016145736A1 true WO2016145736A1 (zh) | 2016-09-22 |
Family
ID=53455781
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2015/080987 Ceased WO2016145736A1 (zh) | 2015-03-18 | 2015-06-08 | 热力图的展现方法、装置、设备及非易失性计算机存储介质 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN104731894B (zh) |
| WO (1) | WO2016145736A1 (zh) |
Cited By (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110930474A (zh) * | 2019-12-06 | 2020-03-27 | 深圳大学 | 昆虫密度热力图构建方法、装置及系统 |
| CN112348920A (zh) * | 2020-10-30 | 2021-02-09 | 上海全应科技有限公司 | 基于数据驱动的循环流化床锅炉动态特性热力图构建方法 |
| CN112965650A (zh) * | 2021-03-12 | 2021-06-15 | 平安国际智慧城市科技股份有限公司 | 热力图可视化方法、系统和计算机设备 |
| CN113743736A (zh) * | 2021-08-11 | 2021-12-03 | 上海钧正网络科技有限公司 | 热力等级确定方法、热力图生成方法、装置和电子设备 |
| CN114255301A (zh) * | 2021-12-21 | 2022-03-29 | 南京华苏科技有限公司 | 一种基于webgl的热力云图的生成方法 |
| CN116311329A (zh) * | 2022-09-07 | 2023-06-23 | 网易(杭州)网络有限公司 | 走查方法、装置、电子设备及计算机可读存储介质 |
Families Citing this family (18)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106776612B (zh) * | 2015-11-20 | 2021-02-12 | 北京国双科技有限公司 | 地理热力图的显示方法及装置 |
| CN106991576B (zh) * | 2016-01-20 | 2020-10-09 | 阿里巴巴集团控股有限公司 | 一种地理区域的热力展现方法和装置 |
| CN105469289B (zh) * | 2016-02-17 | 2019-04-09 | 上海碧虎网络科技有限公司 | 一种基于广告投放量的热力地图系统 |
| CN105844681A (zh) * | 2016-03-22 | 2016-08-10 | 北京建飞无限科技有限公司 | 热力图绘制方法及装置 |
| CN106339434A (zh) * | 2016-08-19 | 2017-01-18 | 中国地质大学(武汉) | 一种国家安全生产事故时空分析方法 |
| CN107766375B (zh) * | 2016-08-19 | 2020-06-09 | 华为技术有限公司 | 一种生成热力图的方法及装置 |
| CN106447158A (zh) * | 2016-08-27 | 2017-02-22 | 李亚林 | 一种电能计量信息监管系统及方法 |
| CN108073594B (zh) * | 2016-11-10 | 2021-12-24 | 北京国双科技有限公司 | 一种生成热力图的方法及装置 |
| CN108090096B (zh) * | 2016-11-23 | 2020-11-06 | 北京国双科技有限公司 | 获取热力图的方法和装置 |
| CN106599233A (zh) * | 2016-12-20 | 2017-04-26 | 国云科技股份有限公司 | 一种可视化的地图热力图生成模拟数据方法 |
| CN107256225B (zh) * | 2017-04-28 | 2020-09-01 | 济南中维世纪科技有限公司 | 一种基于视频分析的热度图生成方法及装置 |
| CN110020351B (zh) * | 2017-09-29 | 2021-08-13 | 北京国双科技有限公司 | 点击热力图异常检测方法及装置 |
| CN108169761B (zh) * | 2018-01-18 | 2024-08-06 | 上海瀚莅电子科技有限公司 | 火场任务确定方法、装置、系统及计算机可读存储介质 |
| CN110675728B (zh) * | 2018-07-03 | 2021-08-31 | 百度在线网络技术(北京)有限公司 | 热力图的生成方法、装置、设备及计算机可读存储介质 |
| CN109508217B (zh) * | 2018-10-22 | 2022-03-08 | 郑州云海信息技术有限公司 | 一种数据处理方法、装置、设备及介质 |
| CN109635053B (zh) * | 2018-10-31 | 2021-01-12 | 百度在线网络技术(北京)有限公司 | 地图的质检方法、装置、系统及存储介质 |
| CN111881994B (zh) * | 2020-08-03 | 2024-04-05 | 杭州睿琪软件有限公司 | 识别处理方法及设备和非暂态计算机可读存储介质 |
| CN113284216B (zh) * | 2021-04-22 | 2024-05-28 | 广东工业大学 | 一种家具造型设计热点可视化方法 |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20140192057A1 (en) * | 2008-11-15 | 2014-07-10 | New Bis Safe Luxco S.A R.L. | Data Visualization Methods |
| CN104199939A (zh) * | 2014-09-09 | 2014-12-10 | 北京国双科技有限公司 | 网页热力图生成方法及装置 |
| CN104239617A (zh) * | 2014-09-02 | 2014-12-24 | 百度在线网络技术(北京)有限公司 | 热力图的展现方法及装置 |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102043850B (zh) * | 2010-12-20 | 2016-02-24 | 百度在线网络技术(北京)有限公司 | 生成热力图的方法及设备 |
| CN102955794B (zh) * | 2011-08-23 | 2017-04-12 | 阿里巴巴集团控股有限公司 | 一种网页点击情况的显示方法及装置 |
| CN104167092B (zh) * | 2014-07-30 | 2016-09-21 | 北京市交通信息中心 | 一种确定出租车上下客热点区域中心的方法以及装置 |
-
2015
- 2015-03-18 CN CN201510118051.9A patent/CN104731894B/zh active Active
- 2015-06-08 WO PCT/CN2015/080987 patent/WO2016145736A1/zh not_active Ceased
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20140192057A1 (en) * | 2008-11-15 | 2014-07-10 | New Bis Safe Luxco S.A R.L. | Data Visualization Methods |
| CN104239617A (zh) * | 2014-09-02 | 2014-12-24 | 百度在线网络技术(北京)有限公司 | 热力图的展现方法及装置 |
| CN104199939A (zh) * | 2014-09-09 | 2014-12-10 | 北京国双科技有限公司 | 网页热力图生成方法及装置 |
Cited By (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110930474A (zh) * | 2019-12-06 | 2020-03-27 | 深圳大学 | 昆虫密度热力图构建方法、装置及系统 |
| CN110930474B (zh) * | 2019-12-06 | 2023-02-28 | 深圳大学 | 昆虫密度热力图构建方法、装置及系统 |
| CN112348920A (zh) * | 2020-10-30 | 2021-02-09 | 上海全应科技有限公司 | 基于数据驱动的循环流化床锅炉动态特性热力图构建方法 |
| CN112348920B (zh) * | 2020-10-30 | 2024-03-01 | 上海全应科技有限公司 | 基于数据驱动的循环流化床锅炉动态特性热力图构建方法 |
| CN112965650A (zh) * | 2021-03-12 | 2021-06-15 | 平安国际智慧城市科技股份有限公司 | 热力图可视化方法、系统和计算机设备 |
| CN113743736A (zh) * | 2021-08-11 | 2021-12-03 | 上海钧正网络科技有限公司 | 热力等级确定方法、热力图生成方法、装置和电子设备 |
| CN113743736B (zh) * | 2021-08-11 | 2024-02-27 | 上海钧正网络科技有限公司 | 热力等级确定方法、热力图生成方法、装置和电子设备 |
| CN114255301A (zh) * | 2021-12-21 | 2022-03-29 | 南京华苏科技有限公司 | 一种基于webgl的热力云图的生成方法 |
| CN116311329A (zh) * | 2022-09-07 | 2023-06-23 | 网易(杭州)网络有限公司 | 走查方法、装置、电子设备及计算机可读存储介质 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN104731894A (zh) | 2015-06-24 |
| CN104731894B (zh) | 2018-10-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN104731894B (zh) | 热力图的展现方法及装置 | |
| CN104239617B (zh) | 热力图的展现方法及装置 | |
| US11195332B2 (en) | Information interaction method based on virtual space scene, computer equipment and computer-readable storage medium | |
| US12039649B2 (en) | Conditional modification of augmented reality object | |
| US9798819B2 (en) | Selective map marker aggregation | |
| JP6141393B2 (ja) | 目標位置を確定するための方法及び装置 | |
| US10304407B2 (en) | Photo selection for mobile devices | |
| US20190179405A1 (en) | Providing a digital model of a corresponding product in a camera feed | |
| CN107315824B (zh) | 用于生成热力图的方法和装置 | |
| JP2011123807A (ja) | アノテーション表示システム,方法及びサーバ装置 | |
| JP2017505923A (ja) | 画像のジオロケーションのためのシステムおよび方法 | |
| WO2018223990A1 (zh) | 地图瓦片更新方法、装置及计算机可读存储介质 | |
| CN105574102A (zh) | 一种电子地图数据加载的方法及装置 | |
| US20250348518A1 (en) | Systems, devices, and methods for content selection | |
| EP3499447A1 (en) | Providing a digital model of corresponding product in a camera feed | |
| US20170206050A1 (en) | Content sharing methods and apparatuses | |
| CN106611056B (zh) | 三维仿真地图的切图方法及装置 | |
| WO2016011763A1 (zh) | 图像展现方法、装置、设备及非易失性计算机存储介质 | |
| CN106231411B (zh) | 主播类互动平台客户端场景切换、加载方法及装置、客户端 | |
| US10198158B2 (en) | Map with different degrees of overlapping geocoded pixels | |
| CN105450776B (zh) | 气象数据可视化系统 | |
| WO2016008342A1 (en) | Content sharing methods and apparatuses | |
| CN110309381A (zh) | 一种人口数据的显示方法、装置及设备 | |
| CN106454012A (zh) | 视频数据显示方法、装置及系统 | |
| CN114170068A (zh) | 图像特效的生成方法、装置、电子设备及存储介质 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 15885119 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 15885119 Country of ref document: EP Kind code of ref document: A1 |