WO2016145736A1 - Method, apparatus and device for presenting thermodynamic chart and non-volatile computer storage medium - Google Patents

Method, apparatus and device for presenting thermodynamic chart and non-volatile computer storage medium Download PDF

Info

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
Application number
PCT/CN2015/080987
Other languages
French (fr)
Chinese (zh)
Inventor
张文波
Original Assignee
百度在线网络技术(北京)有限公司
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 百度在线网络技术(北京)有限公司 filed Critical 百度在线网络技术(北京)有限公司
Publication of WO2016145736A1 publication Critical patent/WO2016145736A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9577Optimising the visualization of content, e.g. distillation of HTML documents
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9537Spatial 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. .

Abstract

Provided are a method, apparatus and device for presenting a thermodynamic chart and a non-volatile computer storage medium. By means of obtaining statistical index data of an image (101), and obtaining a thermodynamic template image, with the thermodynamic template image being used for describing a designated image feature of each pixel on the thermodynamic template image (102), so that a thermodynamic chart corresponding to the image can be presented according to the statistical index data and the thermodynamic template image (103), due to being not completely dependent on an attenuation relationship of the set statistical index data, but in combination with the thermodynamic template image to present the thermodynamic chart, the problem in the prior art that the thermodynamic chart does not clearly present a distribution condition of the statistical index data of the image due to being completely dependent on the attenuation relationship of the set statistical index data can be avoided, so that the reliability of presenting the thermodynamic chart is improved.

Description

热力图的展现方法、装置、设备及非易失性计算机存储介质Method, device, device and non-volatile computer storage medium for displaying heat map
本申请要求了申请日为2015年03月18日,申请号为201510118051.9发明名称为“热力图的展现方法及装置”的中国专利申请的优先权。The present application claims priority to Chinese Patent Application No. 201510118051.9, the disclosure of which is incorporated herein by reference.
技术领域Technical field
本发明涉及热力图技术,特别涉及一种热力图的展现方法、装置、设备及非易失性计算机存储介质。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.
背景技术Background technique
热力图,是可以按照一定的统计标准,获得若干个统计指标数据,使用特殊高亮的形式表示图像中各个区域的统计指标数据的大小,从而将区域的全局特征直观地展示在人们面前的一种方式。热力图可以应用在各种图像上,例如,地图热力图,是用不同颜色的区块叠加在地图上实时描述人群分布、密度和变化趋势的一个服务,是基于百度大数据的一个便民出行服务。通常,每个统计指标数据在热力图中都可以对应一个展现中心位置和一个展现区域,这个展现中心位置即为该统计指标数据的实际位置,这个展现区域的半径则可以称为热力半径。现有技术中,可以由操作人员设置一个固定的统计指标数据的衰减关系,以供在这个展现区域之内,根据所设置的统计指标数据的衰减关系,获得在热力半径上每个像素的热力数据,进而则可以根据每个像素的热力数据,获得所对应的颜色,并进行每个统计指标数据的展现。 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. For example, 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. . Generally, 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. In the prior art, 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.
然而,由于完全依赖所设置的统计指标数据的衰减关系,会使得热力图无法清晰地展现图像的统计指标数据的分布情况,从而导致了热力图的展现可靠性的降低。However, due to the complete dependence on the attenuation relationship of the set 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.
发明内容Summary of the invention
本发明的多个方面提供一种热力图的展现方法及装置,用以提高热力图的展现可靠性。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.
本发明的一方面,提供一种热力图的展现方法,包括:In one aspect of the invention, a method for displaying a thermogram is provided, comprising:
获得图像的统计指标数据;Obtaining statistical indicator data of the image;
获得热力模板图像,所述热力模板图像用于描述所述热力模板图像上每个像素的指定图像特征;Obtaining a thermal template image for describing a specified image feature of each pixel on the thermographic image;
根据所述统计指标数据和所述热力模板图像,展现所述图像所对应的热力图。And displaying a heat map corresponding to the image according to the statistical indicator data and the thermal template image.
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述统计指标数据包括统计参数和在所述图像上所对应的位置;所述获得图像的统计指标数据,包括:The aspect as described above, and any possible implementation manner, further provide an implementation manner, where 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:
根据待处理的统计指标数据在所述图像上所对应的位置,进行基于密度的聚类处理,以获得至少一个候选类;Performing density-based clustering processing according to the position of the statistical indicator data to be processed on the image to obtain at least one candidate class;
根据所述至少一个候选类中每个候选类中所包括的统计指标数据的数量和预先设置的数量阈值,获得至少一个目标类;Obtaining at least one target class according to the number of statistical indicator data included in each candidate class of the at least one candidate class and a preset number threshold;
根据所述至少一个目标类中每个目标类中所包括的统计指标数据在 所述图像上所对应的位置,获得所述每个目标类的位置;According to statistical indicator data included in 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;
根据所述至少一个目标类中每个目标类中所包括的统计指标数据所对应的统计参数,获得所述每个目标类的统计参数;Obtaining, according to the statistical parameter corresponding to the statistical indicator data included in each target class in the at least one target class, the statistical parameter of each target class;
根据所述每个目标类的统计参数和所述每个目标类的位置,获得所述每个目标类的统计指标数据。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 aspect as described above and any possible implementation manner further provide an implementation manner, wherein the obtaining the thermal template image comprises:
获得所述图像的展现比例;Obtaining a presentation ratio of the image;
根据所述展现比例,获得所述热力模板图像。The thermographic template image is obtained according to the presentation ratio.
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述根据所述统计指标数据和所述热力模板图像,展现所述图像所对应的热力图,包括:The aspect as described above, and any possible implementation manner, further providing an implementation manner, where the heat map corresponding to the image is displayed according to the statistical indicator data and the thermal template image, including:
根据所述热力模板图像,获得所述热力模板图像上每个像素的指定图像特征;Obtaining a specified image feature of each pixel on the thermal template image according to the thermal template image;
根据所述统计指标数据和所述每个像素的指定图像特征,获得所述每个像素的热力数据;Obtaining thermal data of each pixel according to the statistical indicator data and the specified image feature of each pixel;
根据所述每个像素的热力数据,获得所述每个像素的展现颜色;Obtaining a presentation color of each of the pixels according to the thermal data of each pixel;
根据所述每个像素的展现颜色,展现所述图像所对应的热力图。A heat map corresponding to the image is presented according to the presentation color of each pixel.
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述根据所述每个像素的展现颜色,展现所述图像所对应的热力图,包 括:An aspect as described above, and any possible implementation manner, further providing an implementation manner, where the heat map corresponding to the image is presented according to the display color of each pixel, include:
获得所述每个像素的展现透明度;Obtaining display transparency of each of the pixels;
根据所述每个像素的展现颜色和所述每个像素的展现透明度,展现所述图像所对应的热力图。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 aspect as described above and any possible implementation manner further provide an implementation manner, where the obtaining transparency of each of the pixels includes:
将预先设置的一个预设透明度,作为所述每个像素的展现透明度;或者a preset transparency set in advance as the transparency of each of the pixels; or
根据所述每个像素的热力数据和预先设置的至少两个预设透明度,获得所述每个像素的展现透明度。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 aspect as described above and any possible implementation manner further provide an implementation manner, before the obtaining the thermal template image, the method further includes:
根据样本统计参数和在样本图像上所对应的位置,创建所述热力模板图像。The thermo template image is created based on sample statistical parameters and corresponding locations on the sample image.
本发明的另一方面,提供一种热力图的展现装置,包括:In another aspect of the invention, a display device for a heat map is provided, comprising:
获得单元,用于获得图像的统计指标数据;Obtaining a unit for obtaining statistical indicator data of an image;
模板单元,用于获得热力模板图像,所述热力模板图像用于描述所述热力模板图像上每个像素的指定图像特征;a template unit for obtaining a thermal template image for describing a specified image feature of each pixel on the thermal template image;
展现单元,用于根据所述统计指标数据和所述热力模板图像,展现所述图像所对应的热力图。 And a presentation unit, configured to display a heat map corresponding to the image according to the statistical indicator data and the thermal template image.
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述统计指标数据包括统计参数和在所述图像上所对应的位置;所述获得单元,具体用于An aspect of the foregoing, and any possible implementation, further providing an implementation manner, where the statistical indicator data includes a statistical parameter and a location corresponding to the image; the obtaining unit is specifically configured to:
根据待处理的统计指标数据在所述图像上所对应的位置,进行基于密度的聚类处理,以获得至少一个候选类;Performing density-based clustering processing according to the position of the statistical indicator data to be processed on the image to obtain at least one candidate class;
根据所述至少一个候选类中每个候选类中所包括的统计指标数据的数量和预先设置的数量阈值,获得至少一个目标类;Obtaining at least one target class according to the number of statistical indicator data included in each candidate class of the at least one candidate class and a preset number threshold;
根据所述至少一个目标类中每个目标类中所包括的统计指标数据在所述图像上所对应的位置,获得所述每个目标类的位置;Obtaining a location of each of the target classes according to a location corresponding to the statistical indicator data included in each target class in the at least one target class on the image;
根据所述至少一个目标类中每个目标类中所包括的统计指标数据所对应的统计参数,获得所述每个目标类的统计参数;以及Obtaining, according to the statistical parameter corresponding to the statistical indicator data included in each target class in the at least one target class, the statistical parameter of each target class;
根据所述每个目标类的统计参数和所述每个目标类的位置,获得所述每个目标类的统计指标数据。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.
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述模板单元,具体用于An aspect of the foregoing, and any possible implementation manner, further providing an implementation manner, where the template unit is specifically used to
获得所述图像的展现比例;以及Obtaining a representation ratio of the image;
根据所述展现比例,获得所述热力模板图像。The thermographic template image is obtained according to the presentation ratio.
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述展现单元,具体用于An aspect of the foregoing, and any possible implementation manner, further providing an implementation manner, where the presentation unit is specifically configured to
根据所述热力模板图像,获得所述热力模板图像上每个像素的指定 图像特征;Obtaining a designation of each pixel on the thermal template image according to the thermal template image Image feature
根据所述统计指标数据和所述每个像素的指定图像特征,获得所述每个像素的热力数据;Obtaining thermal data of each pixel according to the statistical indicator data and the specified image feature of each pixel;
根据所述每个像素的热力数据,获得所述每个像素的展现颜色;以及Obtaining a presentation color of each of the pixels according to the thermal data of each of the pixels;
根据所述每个像素的展现颜色,展现所述图像所对应的热力图。A heat map corresponding to the image is presented according to the presentation color of each pixel.
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述展现单元,具体用于An aspect of the foregoing, and any possible implementation manner, further providing an implementation manner, where the presentation unit is specifically configured to
获得所述每个像素的展现透明度;以及Obtaining display transparency of each of the pixels;
根据所述每个像素的展现颜色和所述每个像素的展现透明度,展现所述图像所对应的热力图。A heat map corresponding to the image is presented according to the presentation color of each pixel and the presentation transparency of each pixel.
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述展现单元,具体用于An aspect of the foregoing, and any possible implementation manner, further providing an implementation manner, where the presentation unit is specifically configured to
将预先设置的一个预设透明度,作为所述每个像素的展现透明度;或者a preset transparency set in advance as the transparency of each of the pixels; or
根据所述每个像素的热力数据和预先设置的至少两个预设透明度,获得所述每个像素的展现透明度。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 aspect of the foregoing, and any possible implementation, further providing an implementation manner, where the template unit is further used to
根据样本统计参数和在样本图像上所对应的位置,创建所述热力模 板图像。Creating the thermal model based on sample statistical parameters and corresponding locations on the sample image Board image.
本发明的另一方面,提供一种设备,包括:In another aspect of the invention, an apparatus is provided, comprising:
一个或者多个处理器;One or more processors;
存储器;Memory
一个或者多个程序,所述一个或者多个程序存储在所述存储器中,当被所述一个或者多个处理器执行时:One or more programs, the one or more programs being stored in the memory, when executed by the one or more processors:
获得图像的统计指标数据;Obtaining statistical indicator data of the image;
获得热力模板图像,所述热力模板图像用于描述所述热力模板图像上每个像素的指定图像特征;Obtaining a thermal template image for describing a specified image feature of each pixel on the thermographic image;
根据所述统计指标数据和所述热力模板图像,展现所述图像所对应的热力图。And displaying a heat map corresponding to the image according to the statistical indicator data and the thermal template image.
本发明的另一方面,提供一种非易失性计算机存储介质,所述非易失性计算机存储介质存储有一个或者多个程序,当所述一个或者多个程序被一个设备执行时,使得所述设备:In another aspect of the present invention, a nonvolatile computer storage medium storing one or more programs when the one or more programs are executed by a device causes The device:
获得图像的统计指标数据;Obtaining statistical indicator data of the image;
获得热力模板图像,所述热力模板图像用于描述所述热力模板图像上每个像素的指定图像特征;Obtaining a thermal template image for describing a specified image feature of each pixel on the thermographic image;
根据所述统计指标数据和所述热力模板图像,展现所述图像所对应的热力图。And displaying a heat map corresponding to the image according to the statistical indicator data and the thermal template image.
由上述技术方案可知,本发明实施例通过获得图像的统计指标数据, 以及获得热力模板图像,所述热力模板图像用于描述所述热力模板图像上每个像素的指定图像特征,使得能够根据所述统计指标数据和所述热力模板图像,展现所述图像所对应的热力图,由于不再完全依赖所设置的统计指标数据的衰减关系,而是结合热力模板图像,进行热力图的展现,因此,能够避免现有技术中由于完全依赖所设置的统计指标数据的衰减关系而导致的热力图无法清晰地展现图像的统计指标数据的分布情况的问题,从而提高了热力图的展现可靠性。According to the foregoing technical solution, 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.
另外,采用本发明提供的技术方案,由于不再完全依赖所设置的统计指标数据的衰减关系,而是结合热力模板图像,进行热力图的展现,使得操作对象由像素变为图像,因此,能够有效提高热力图的展现效率。In addition, according to the technical solution provided by the present invention, 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 make the operation object change from pixel to image, and therefore, Effectively improve the efficiency of the heat map display.
另外,采用本发明提供的技术方案,由于采用与图像的展现比例所对应的热力模板图像,进行热力图的展现,因此,能够避免由于采用固定的一个热力模板图像而导致的热力图无法清晰地展现图像的统计指标数据的分布情况的问题,能够进一步有效提高热力图的展现可靠性。In addition, according to the technical solution provided by the present invention, since 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.
另外,采用本发明提供的技术方案,由于采用与图像的展现比例所对应的热力模板图像,进行热力图的展现,因此,能够在图像的每个展现比例下,清晰地展现图像的统计指标数据,能够有效提高热力图的利用率。In addition, according to the technical solution provided by the present invention, since 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.
附图说明 DRAWINGS
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description are the present invention. For some embodiments, other drawings may be obtained from those of ordinary skill in the art in light of the inventive workability.
图1为本发明一实施例提供的热力图的展现方法的流程示意图;1 is a schematic flow chart of a method for displaying a heat map according to an embodiment of the present invention;
图2为本发明另一实施例提供的热力图的展现装置的结构示意图;2 is a schematic structural diagram of a display device of a heat map according to another embodiment of the present invention;
图3A为图1对应的实施例中一个典型的热力模板图像的效果示意图;3A is a schematic diagram showing the effect of a typical thermal template image in the embodiment corresponding to FIG. 1;
图3B为图1对应的实施例中电子地图的地图缩放级别为15级及以上所对应的热力模板图像的效果示意图;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;
图3C为图1对应的实施例中电子地图的地图缩放级别为14级所对应的热力模板图像的效果示意图;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为图1对应的实施例中电子地图的地图缩放级别为13级所对应的热力模板图像的效果示意图;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为图1对应的实施例中电子地图的地图缩放级别为12级所对应的热力模板图像的效果示意图;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为图1对应的实施例中电子地图的地图缩放级别为11级所对应的热力模板图像的效果示意图;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为图1对应的实施例中电子地图的地图缩放级别为10级及以下所对应的热力模板图像的效果示意图;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为现有技术中未采用热力模板图像的技术方案所展现的北京南站区域的热力图的效果示意图;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;
图4B为图1对应的实施例中采用固定的热力模板图像的技术方案 所展现的北京南站区域的热力图的效果示意图;4B is a technical solution of using a fixed thermal template image in the embodiment corresponding to FIG. 1. A schematic diagram showing the effect of the heat map of the Beijing South Railway Station area;
图4C为现有技术中未采用热力模板图像的技术方案所展现的北京西站区域的热力图的效果示意图;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;
图4D为图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; FIG.
图4E为现有技术中未采用热力模板图像的技术方案所展现的北京站区域的热力图的效果示意图;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为图1对应的实施例中采用固定的热力模板图像的技术方案所展现的北京站区域的热力图的效果示意图;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;
图5A为现有技术中未采用热力模板图像的技术方案中电子地图的地图缩放级别为15级所展现的王府井区域的热力图的效果示意图;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为图1对应的实施例中采用电子地图的地图缩放级别为15级所对应的热力模板图像所展现的王府井区域的热力图的效果示意图;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为现有技术中未采用热力模板图像的技术方案中电子地图的地图缩放级别为14级所展现的王府井区域的热力图的效果示意图;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为图1对应的实施例中采用电子地图的地图缩放级别为14级所对应的热力模板图像所展现的王府井区域的热力图的效果示意图;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为现有技术中未采用热力模板图像的技术方案中电子地图的地图缩放级别为13级所展现的王府井区域的热力图的效果示意图;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为图1对应的实施例中采用电子地图的地图缩放级别为13级所对应的热力模板图像所展现的王府井区域的热力图的效果示意图。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.
具体实施方式 detailed description
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的全部其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the drawings in the embodiments of the present invention. It is a partial embodiment of the invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
需要说明的是,本发明实施例中所涉及的终端可以包括但不限于手机、个人数字助理(Personal Digital Assistant,PDA)、无线手持设备、平板电脑(Tablet Computer)、个人电脑(Personal Computer,PC)、MP3播放器、MP4播放器、可穿戴设备(例如,智能眼镜、智能手表、智能手环等)等。It should be noted that 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.).
另外,本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。In addition, the term "and/or" herein is merely an association relationship describing an associated object, indicating that there may be three relationships, for example, A and/or B, which may indicate that A exists separately, and A and B exist at the same time. There are three cases of B alone. In addition, the character "/" in this article generally indicates that the contextual object is an "or" relationship.
图1为本发明一实施例提供的热力图的展现方法的流程示意图,如图1所示。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 .
101、获得图像的统计指标数据。101. Obtain statistical indicator data of an image.
102、获得热力模板图像,所述热力模板图像用于描述所述热力模板图像上每个像素的指定图像特征。102. Obtain a thermal template image for describing a specified image feature of each pixel on the thermal template image.
103、根据所述统计指标数据和所述热力模板图像,展现所述图像所对应的热力图。103. Display a heat map corresponding to the image according to the statistical indicator data and the thermal template image.
需要说明的是,101~103的执行主体的部分或全部可以为位于本地终端的应用,或者还可以为设置在位于本地终端的应用中的插件或软件 开发工具包(Software Development Kit,SDK)等功能单元,或者还可以为位于网络侧服务器中的处理引擎,或者还可以为位于网络侧的分布式系统,本实施例对此不进行特别限定。It should be noted that 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.
可以理解的是,所述应用可以是安装在终端上的本地程序(nativeApp),或者还可以是终端上的浏览器的一个网页程序(webApp),本实施例对此不进行限定。It is to be understood that 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.
这样,通过获得图像的统计指标数据,以及获得热力模板图像,所述热力模板图像用于描述所述热力模板图像上每个像素的指定图像特征,使得能够根据所述统计指标数据和所述热力模板图像,展现所述图像所对应的热力图,由于不再完全依赖所设置的统计指标数据的衰减关系,而是结合热力模板图像,进行热力图的展现,因此,能够避免现有技术中由于完全依赖所设置的统计指标数据的衰减关系而导致的热力图无法清晰地展现图像的统计指标数据的分布情况的问题,从而提高了热力图的展现可靠性。In this way, by obtaining statistical indicator data of the image and obtaining a thermal template image, 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.
本发明中,所谓的图像的统计指标数据,是指采用一些统计方法,对图像的某个区域的一些特性进行统计,所获得的统计参数。具体地,所述统计指标数据可以包括但不限于统计参数和在所述图像上所对应的位置,本实施例对此不进行特别限定。例如,某个区域的人流等。In the present invention, 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. Specifically, 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.
可选地,在本实施例的一个可能的实现方式中,在101中,具有可以根据待处理的统计指标数据在所述图像上所对应的位置,进行基于密度的聚类处理,以获得至少一个候选类。进而,则可以根据所述至少一个候选类中每个候选类中所包括的统计指标数据的数量和预先设置的数量阈值,获得至少一个目标类。然后,则可以根据所述至少一个目标类 中每个目标类中所包括的统计指标数据在所述图像上所对应的位置,获得所述每个目标类的位置,以及根据所述至少一个目标类中每个目标类中所包括的统计指标数据所对应的统计参数,获得所述每个目标类的统计参数。最后,则可以根据所述每个目标类的统计参数和所述每个目标类的位置,获得所述每个目标类的统计指标数据。Optionally, in a possible implementation manner of this embodiment, in 101, performing density-based clustering processing according to a position corresponding to the statistical indicator data to be processed on the image, to obtain at least A candidate class. Further, at least one target class may be obtained according to the number of statistical indicator data included in each candidate class of the at least one candidate class and a preset number threshold. Then, according to the at least one target class The position of the statistical indicator data included in each of the target classes on the image, the location of each of the target classes, and the statistics included in each target class in the at least one target class The statistical parameters corresponding to the indicator data obtain the statistical parameters of each target class. Finally, 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.
这样,通过对统计指标数据进行聚类处理,能够避免热力图所展现的统计指标数据的分布情况过于稠密的问题,能够有效提高热力图的展现可靠性。In this way, by clustering the statistical indicator data, the problem that the distribution of the statistical indicator data displayed by the heat map is too dense can be avoided, and the reliability of the heat map can be effectively improved.
可以理解的是,“根据所述至少一个目标类中每个目标类中所包括的统计指标数据在所述图像上所对应的位置,获得所述每个目标类的位置”,以及“根据所述至少一个目标类中每个目标类中所包括的统计指标数据所对应的统计参数,获得所述每个目标类的统计参数”的两个步骤,没有固定顺序,所述处理装置可以先执行“根据所述至少一个目标类中每个目标类中所包括的统计指标数据在所述图像上所对应的位置,获得所述每个目标类的位置”的步骤,再执行“根据所述至少一个目标类中每个目标类中所包括的统计指标数据所对应的统计参数,获得所述每个目标类的统计参数”的步骤,或者还可以先执行“根据所述至少一个目标类中每个目标类中所包括的统计指标数据所对应的统计参数,获得所述每个目标类的统计参数”的步骤,再执行“根据所述至少一个目标类中每个目标类中所包括的统计指标数据在所述图像上所对应的位置,获得所述每个目标类的位置”的步骤,或者还可以同时执行这两个步骤,本实施例对此不进行特别限定。It can be understood that "the location of each target class is obtained according to the position of the statistical indicator data included in each target class in the at least one target class on the image", and Determining, by the statistical parameter corresponding to the statistical indicator data included in each target class in the at least one target class, the two steps of obtaining the statistical parameter of each target class, without a fixed order, 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 at least one target class, or may simultaneously perform the two steps, The embodiment is not particularly limited thereto.
具体地,具体可以采用现有的基于密度的聚类算法,例如,基于密 度的带有噪声的空间聚类(Density-Based Spatial Clustering of Applications with Noise,DBSCAN)算法等,详细描述可以参见现有技术中的相关内容,此处不再赘述。Specifically, an existing density-based clustering algorithm may be specifically used, for example, based on a secret The detailed description of the Density-Based Spatial Clustering of Applications with Noise (DBSCAN) algorithm can be found in the related art, and details are not described herein again.
具体地,若候选类中所包括的统计指标数据的数量大于或等于预先设置的数量阈值,则将该候选类作为一个目标类;否则,若候选类中所包括的统计指标数据的数量小于预先设置的数量阈值,则忽略该候选类,不会对该候选类进行任何后续处理。Specifically, if the number of statistical indicator data included in the candidate class is greater than or equal to a preset number threshold, 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.
具体地,在获得至少一个目标类之后,具体可以根据每个目标类中所包括的每个统计指标数据在所述图像上所对应的位置,计算一个中心位置数据,以作为每个目标类的位置。以电子地图上某个区域的人流为例,终端利用定位技术进行定位时,所获得的定位数据可以作为计算某个区域人流的依据。由于这些定位数据可以包括经度分量和纬度分量等地理位置数据,一个经度和一个纬度一起可以确定地球上一个地点的精确位置。例如,具体可以根据每个位置,分别计算每个分量的平均值,进而将每个分量的平均值组成一个中心位置数据,以作为每个目标类的位置。Specifically, after obtaining at least one target 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. Taking the flow of people in an area on the electronic map as an example, when the terminal uses the positioning technology to perform positioning, the obtained positioning data can be used as a basis for calculating the flow of people in a certain area. Since 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. For example, 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.
具体地,在获得至少一个目标类之后,具体可以根据每个目标类中所包括的每个统计指标数据所对应的统计参数,计算一个平均参数,以作为每个目标类的统计参数。例如,对每个目标类中所包括的每个统计指标数据所对应的统计参数进行算术平均运算,计算出一个平均参数;或者,再例如,对每个目标类中所包括的每个统计指标数据所对应的统计参数进行加权平均运算,计算出一个平均参数;等等,本实施例对此不进行特别限定。 Specifically, after obtaining at least one 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.
可选地,在本实施例的一个可能的实现方式中,在102中,所获得的所述热力模板图像,其形状特征和大小特征,是指在图像所对应的热力图中,针对图像的某个统计指标数据,所能够展现的用于指示热度的展现元素的尺寸数据。通常,热力图,是由若干个不同颜色的圆叠加起来共同展现的,那么,所述展现元素的尺寸数据则可以为理解为半径参数。Optionally, in a possible implementation manner of the embodiment, in 102, 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. Generally, 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.
可选地,在本实施例的一个可能的实现方式中,在102中,所获得的所述热力模板图像,其除了具有形状特征和大小特征之外,还可以用于描述所述热力模板图像上每个像素的指定图像特征。Optionally, in a possible implementation manner of this embodiment, in 102, 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 on each pixel.
其中,所述指定图像特征可以包括但不限于图像透明度和图像颜色中的至少一项,本实施例对此不进行特别限定。以图像透明度为例,一个典型的热力模板图像可以如图3A所示。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. Taking image transparency as an example, a typical thermal template image can be as shown in Figure 3A.
在一个具体的实现过程中,在102之前,还可以进一步包括根据样本统计参数和在样本图像上所对应的位置,创建所述热力模板图像。In a specific implementation process, prior to 102, the method further includes: creating the thermal template image according to the sample statistical parameter and the corresponding position on the sample image.
通常,由于热力图所涉及的一些服务,可以有不同的展现比例,例如,地图缩放级别等,采用固定的热力模板图像,会使得热力图无法清晰地展现图像的统计指标数据的分布情况,例如,展现比例变大,现有的颜色分布就会比较分散,而展现比例变小,现有的颜色分布就会特别集中,等等,从而导致了热力图的展现可靠性的降低。因此,可以采用多个热力模板图像,克服上述问题。Usually, because some of the services involved in the heat map can have different display ratios, for example, map zoom level, etc., using a fixed thermal template 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.
这样,由于采用与图像的展现比例所对应的热力模板图像,进行热力图的展现,因此,能够避免由于采用固定的一个热力模板图像而导致的热力图无法清晰地展现图像的统计指标数据的分布情况的问题,能够 进一步有效提高热力图的展现可靠性。In this way, since 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.
例如,具体可以根据样本统计参数和在样本图像上所对应的位置,根据图像的展现参数,以及所述图像的统计指标数据,利用热力图像,进行反复试验和调整,直到热力图能够清晰地展现图像的统计指标数据的分布情况,将此时的调整结果,作为所述热力模板图像。所述图像的展现参数,可以包括但不限于图像的展现比例,本实施例对此不进行特别限定。所述图像的展现比例,是指放大或缩小图像的显示比例,例如,电子地图的地图缩放级别。For example, according to the sample statistical parameter and the position corresponding to the sample image, according to the presentation parameter of the image and the statistical indicator data of the image, 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.
或者,再例如,具体可以利用正例训练样本,创建所述热力模板图像。在创建热力模板图像之前,可以预先由操作人员根据图像的展现参数,以及所述图像的统计指标数据,调整热力图像,以获得满足训练意图的图像所对应的热力图。然后,记录这些热力图所对应的图像的展现参数和调整之后的热力图像,将所记录的数据作为正例训练样本。所述图像的展现参数,可以包括但不限于图像的展现比例,本实施例对此不进行特别限定。Alternatively, for example, the thermal template image may be created by using a positive example training sample. Before creating the thermal template image, 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. Then, 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.
所述图像的展现比例,是指放大或缩小图像的显示比例,例如,电子地图的地图缩放级别。以百度地图为例,其自身拥有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所示。 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. Taking Baidu map as an example, it 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. Taking image transparency as an example, the thermal template images corresponding to the six different map zoom ratios may be respectively shown in FIGS. 3B to 3G.
在另一个具体的实现过程中,在102中,具体可以获得所述图像的展现比例,进而,则可以根据所述展现比例,获得所述热力模板图像。In another specific implementation process, in 102, a display ratio of the image may be specifically obtained, and then, the thermal template image may be obtained according to the display ratio.
可选地,在本实施例的一个可能的实现方式中,在103中,具体可以根据所述热力模板图像,获得所述热力模板图像上每个像素的指定图像特征。进而,则可以根据所述统计指标数据和所述每个像素的指定图像特征,获得所述每个像素的热力数据。然后,可以根据所述每个像素的热力数据,获得所述每个像素的展现颜色,并根据所述每个像素的展现颜色,展现所述图像所对应的热力图。只有在热力模板图像上的像素,能够采用上述方案获得其所对应的展现颜色,不在热力模板图像上的其他像素的展现颜色则可以为默认颜色例如,无色等,Optionally, in a possible implementation manner of the embodiment, in 103, a specified image feature of each pixel on the thermal template image may be obtained according to the thermal template image. Further, thermal data of each of the pixels may be obtained according to the statistical indicator data and the specified image feature of each pixel. Then, 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.
这样,由于不再完全依赖所设置的统计指标数据的衰减关系,而是结合热力模板图像,进行热力图的展现,使得操作对象由像素变为图像,因此,能够有效提高热力图的展现效率。In this way, since the attenuation relationship of the set statistical indicator data is no longer completely relied upon, 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.
具体地,在获得每个像素的指定图像特征之后,具体可以根据所述统计指标数据、每个像素的指定图像特征,以及每个指定图像特征所对应的调整权值,获得所述每个像素的热力数据。可以理解的是,所述调整权值,可以为经验数值,或者经验公式,本实施例对此不进行特别限定。Specifically, after obtaining the specified image feature of each pixel, 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. It can be understood that the adjustment weight may be an empirical value or an empirical formula, which is not specifically limited in this embodiment.
具体地,由于热力图是叠加在图像上进行展现的,因此,为了不完全将作为叠加基础的图像覆盖掉,除了根据所述每个像素的展现颜色,进行所述图像所对应的热力图的展现之外,还需要进一步根据所述每个像素的展现透明度,进行所述图像所对应的热力图的展现。Specifically, since 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.
在一个具体的实现过程中,具体可以获得所述每个像素的展现透明 度,进而,则可以根据所述每个像素的展现颜色和所述每个像素的展现透明度,展现所述图像所对应的热力图。只有在热力模板图像上的像素,能够采用上述方案获得其所对应的展现透明度,不在热力模板图像上的其他像素的展现透明度则可以为默认透明度例如,透明度为100%等。In a specific implementation process, the transparent display of each pixel can be specifically obtained. And, in turn, 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.
例如,具体可以将预先设置的一个预设透明度,作为所述每个像素的展现透明度。For example, a preset preset transparency may be specifically set as the presentation transparency of each of the pixels.
这样,整个热力图采用一个统一的透明度,设置简单,操作方便,能够有效提高热力图的展现效率。In this way, 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.
或者,再例如,具体可以根据所述每个像素的热力数据和预先设置的至少两个预设透明度,获得所述每个像素的展现透明度。Alternatively, for example, 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.
这样,整个热力图采用多个不同的透明度,能够进一步清晰展现图像的统计指标数据的分布情况,能够有效提高热力图的展现可靠性。In this way, 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.
具体地,具体可以设置一个展现透明度的最大值,是指在图像所对应的热力图中,针对图像的某个统计指标数据,所能够展现的用于指示最高热度的展现透明度所对应的一个最大参考值。Specifically, 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.
在展现透明度的最大值与默认的展现透明度的最小值0之间,可以根据热力图的展现需求,划分若干个透明度值等级,每个透明度值等级依次对应逐渐变化的一个展现透明度,其中,每个展现透明度具体可以用一个数值进行标记。Between the maximum value of the transparency and the minimum value of the default display transparency 0, 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.
若图像上某个区域所对应的统计指标数据大于或等于该最大参考值,则可以将该区域所展现的该统计指标数据所对应的展现透明度设置为指示最高热度的展现透明度;反之,若图像上某个区域所对应的统计指标数据小于该最大参考值,则可以将该区域所展现的该统计指标数据所对 应的透明度设置为该统计指标数据实际所对应的透明度值等级。If the statistical indicator data corresponding to an area on the image is greater 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 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.
具体地,除了可以设置一个展现透明度的最大值之外,还可以进一步设置一个展现透明度的最小值。所述展现透明度的最小值,是指在图像所对应的热力图中,针对图像的某个统计指标数据,所能够展现的用于指示最低热度的展现透明度所对应的一个最小参考值。Specifically, in addition to setting a maximum value for exhibiting transparency, 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.
在展现透明度的最大值与展现透明度的最小值之间,可以根据热力图的展现需求,划分若干个透明度值等级,每个透明度值等级依次对应逐渐变化的一个展现透明度,其中,每个展现透明度具体可以用一个数值进行标记。Between the maximum value of the transparency and the minimum value of the transparency, 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.
若图像上某个区域所对应的统计指标数据大于或等于该最大参考值,则可以将该区域所展现的该统计指标数据所对应的展现透明度设置为指示最高热度的展现透明度;若图像上某个区域所对应的统计指标数据小于或等于该最大参考值,则可以将该区域所展现的该统计指标数据所对应的展现透明度设置为指示最低热度的展现透明度;若图像上某个区域所对应的统计指标数据大于该最小参考值,且小于该最大参考值,则可以将该区域所展现的该统计指标数据所对应的透明度设置为该统计指标数据实际所对应的透明度值等级。If the statistical indicator data corresponding to an area on the image is greater 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 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.
在具体实现时,还需要进一步预先设置统计指标数据与透明度值等级的对应关系。这样,则可以根据该对应关系,获得指定范围之内的统计指标数据所对应的透明度值等级。具体地,具体可以在获得图像的若干个统计指标数据之前,就预先根据经验或热力图的展现需求,设置统计指标数据与透明度值等级的对应关系,或者还可以在获得图像的若干个统计指标数据之后,根据这些统计指标数据,设置统计指标数据与透 明度值等级的对应关系,本实施例对此不进行特别限定。In the specific implementation, it is also required to further preset the correspondence between the statistical indicator data and the transparency value level. In this way, according to the correspondence, the transparency value level corresponding to the statistical indicator data within the specified range can be obtained. Specifically, before the obtaining of the plurality of statistical indicator data of the image, 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.
在另一个具体的实现过程中,具体可以预先定义一个热力数据到展现颜色的查找表,获得每个像素的热力数据之后,就可以利用所获得的每个像素的热力数据,通过该查找表,进行差值处理,以获得每个像素所对应的展现颜色。In another specific implementation process, 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.
在具体的实现过程中,以人流为统计指标数据为例,热力图所能够展现的颜色可以有几种情况:In the specific implementation process, taking the flow of people as the statistical indicator data as an example, 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.
这种情况下,在图像所对应的热力图中,该图像的某个区域所能够展现的用于指示最高热度的颜色可以为红色,颜色越深,该区域的热度越高,颜色越浅,该区域的热度越低。所谓热度,是指能够反映统计指标数据的取值大或小的一个程度。In this case, in the heat map corresponding to the image, 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.
这种情况下,在图像所对应的热力图中,该图像的某个区域所能够展现的用于指示最高热度的颜色可以为红色,橙色可以表示热度次之,绿色可以表示热度最低。可以理解的是,两种颜色之间可以包含多种过渡颜色。In this case, in the heat map corresponding to the image, 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.
可以理解的是,热力图所能够展现的颜色,还可以进一步结合上述两种情况。It can be understood that the color that the thermogram can display can further combine the above two cases.
例如,所述查找表中,可以只定义展现颜色的最大值,是指在图像所对应的热力图中,针对图像的某个统计指标数据,所能够展现的用于 指示最高热度的颜色所对应的一个最大参考值。在展现颜色的最大值与默认的展现颜色的最小值0之间,根据热力图的展现需求,划分若干个颜色值等级,每个颜色值等级依次对应逐渐变化的一个展现颜色。For example, in the lookup table, only 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. Between the maximum value of the display color and the minimum value 0 of the default display color, according to the display requirements of the heat map, a plurality of color value levels are divided, and each color value level corresponds to a gradually changing one of the display colors.
其中,每个展现颜色具体可以用一组参数值进行标记。例如,所述参数值可以包括红色(R)分量值、绿(G)分量值和蓝(B)分量值;或者,再例如,所述参数值还可以包括红色(R)分量值、绿(G)分量值和蓝(B)分量值,以及亮度分量值。Each of the presentation colors can be specifically marked with a set of parameter values. For example, 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.
若图像上某个区域所对应的统计指标数据大于或等于所述颜色最大值,则可以将该区域所展现的该统计指标数据所对应的颜色设置为指示最高热度的颜色;反之,若图像上某个区域所对应的统计指标数据小于所述颜色最大值,则可以将该区域所展现的该统计指标数据所对应的颜色设置为该统计指标数据实际所对应的颜色值等级。If the statistical indicator data corresponding to an area on the image is greater than or equal to the maximum value of the color, 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.
或者,再例如,所述查找表中,除了定义展现颜色的最大值,还需要定义展现颜色的最小值。所述展现颜色的最小值,是指在图像所对应的热力图中,针对图像的某个统计指标数据,所能够展现的用于指示最高热度的颜色所对应的一个最大参考值。在展现颜色的最大值与展现颜色的最小值之间,根据热力图的展现需求,划分若干个颜色值等级,每个颜色值等级依次对应逐渐变化的一个展现颜色。Or, for example, in the lookup table, in addition to defining a maximum value of the presentation color, it is also necessary to define a minimum value of the presentation color. 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. Between the maximum value of the display color and the minimum value of the display color, according to the display requirements of the heat map, a plurality of color value levels are divided, and each color value level corresponds to a gradually changing one of the display colors.
其中,每个展现颜色具体可以用一组参数值进行标记。例如,所述参数值可以包括红色(R)分量值、绿(G)分量值和蓝(B)分量值;或者,再例如,所述参数值还可以包括红色(R)分量值、绿(G)分量值和蓝(B)分量值,以及亮度分量值。Each of the presentation colors can be specifically marked with a set of parameter values. For example, 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.
若图像上某个区域所对应的统计指标数据大于或等于所述颜色最大 值,则可以将该区域所展现的该统计指标数据所对应的颜色设置为指示最高热度的颜色;若图像上某个区域所对应的统计指标数据小于或等于所述颜色最小值,则可以将该区域所展现的该统计指标数据所对应的颜色设置为指示最低热度的颜色;若图像上某个区域所对应的统计指标数据大于所述颜色最小值,且小于所述颜色最大值,则可以将该区域所展现的该统计指标数据所对应的颜色设置为该统计指标数据实际所对应的颜色值等级。If the statistical indicator data corresponding to an area on the image is greater than or equal to the maximum color a value, 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.
在具体实现时,还需要进一步预先设置统计指标数据与颜色值等级的对应关系。这样,则可以根据该对应关系,获得指定范围之内的统计指标数据所对应的颜色值等级。具体地,具体可以在获得图像的若干个统计指标数据之前,就预先根据经验或热力图的展现需求,设置统计指标数据与颜色值等级的对应关系,或者还可以在获得图像的若干个统计指标数据之后,根据这些统计指标数据,设置统计指标数据与颜色值等级的对应关系,本实施例对此不进行特别限定。In the specific implementation, it is further required to further preset the correspondence between the statistical indicator data and the color value level. In this way, according to the correspondence, the color value level corresponding to the statistical indicator data within the specified range can be obtained. Specifically, before the obtaining of the plurality of statistical indicator data of the image, the correspondence between the statistical indicator data and the color value level may be set according to the experience of the experience or the heat map, or several statistical indicators of the image may also be obtained. After the data, 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.
具体地,由于热力图是叠加在图像上进行展现的,因此,热力图的展现需要与图像的展现方式保持一致,这样,热力图与图像才能够准确地叠加,能够有效提高热力图的展现可靠性。Specifically, since the heat map is superimposed on the image for display, 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.
以电子地图为例,其展现方式为栅格图片方式,那么热力图的展现方式则可以为栅格图像方式,且热力图的栅格图片的分辨率与电子地图的栅格图片的分辨率一致,例如,每个栅格图片的分辨率可以为256x256等。服务器预先绘制好栅格图片(电子地图的栅格图片或热力图的栅格图片),应用向服务器请求栅格图片的栅格数据,然后由该应用将所请求的栅格数据展现为可视化的栅格图片。其中,所述栅格图片,又可以 称为瓦片图片,瓦片图片的行号、列号和级别的详细描述可以参见现有技术中的相关内容,此处不再赘述。Taking an electronic map as an example, the display mode is a grid image mode, then 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. For example, 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. Wherein, 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.
下面将以百度地图上某个区域的人流作为统计指标数据为例,进行本发明技术方案所提供的热力图展现效果的说明。In the following, taking the flow of a certain area on the Baidu map as the statistical indicator data as an example, the description of the heat map display effect provided by the technical solution of the present invention is performed.
图4A为现有技术中未采用热力模板图像的技术方案所展现的北京南站区域的热力图的效果示意图;图4B为图1对应的实施例中采用固定的热力模板图像的技术方案所展现的北京南站区域的热力图的效果示意图。火车站区域是人流最为密集的区域,其热力图中的大部分区域应当以指示最高热度或较高热度的展现颜色如深颜色等,以及指示最高热度或较高热度的展现透明度如低透明度等,进行展现。图4B与图4A相比,在图4B所示的热力图中,颜色分布较为均匀,颜色差异较为明显,且颜色与透明度所指示的热度与实际情况相符,能够清晰地在百度地图上展现人流分布情况,从而能够得到人流分布的特点,并且所获得的人流分布的特点符合实际的人流分布情况,能够体现热力图的真实价值;而在图4A所示的热力图中,颜色差异并不明显,且颜色与透明度所指示的热度并没有达到实际情况,根本无法清晰地在百度地图上展现人流分布情况,不容易得到人流分布的特点,及时得到人流分布的特点,也并不符合实际的人流分布情况,没有体现热力图的真实价值。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; Schematic diagram of the effect of the heat map of the Beijing South Station area. 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. 4B, 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.
类似地,展现效果的差别,还可以继续参见图4D与图4C,以及图4F与图4E。Similarly, showing the difference in effects, it is also possible to continue to refer to FIGS. 4D and 4C, and FIGS. 4F and 4E.
图5A为现有技术中未采用热力模板图像的技术方案中电子地图的地图缩放级别为15级所展现的王府井区域的热力图的效果示意图;图5B为图1对应的实施例中采用电子地图的地图缩放级别为15级所对应 的热力模板图像所展现的王府井区域的热力图的效果示意图。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.
图5C为现有技术中未采用热力模板图像的技术方案中电子地图的地图缩放级别为14级所展现的王府井区域的热力图的效果示意图;图5D为图1对应的实施例中采用电子地图的地图缩放级别为14级所对应的热力模板图像所展现的王府井区域的热力图的效果示意图。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.
图5E为现有技术中未采用热力模板图像的技术方案中电子地图的地图缩放级别为13级所展现的王府井区域的热力图的效果示意图;图5F为图1对应的实施例中采用电子地图的地图缩放级别为13级所对应的热力模板图像所展现的王府井区域的热力图的效果示意图。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.
图5A、图5C与图5E所示的热力图中,每个热力图的颜色分布较为均匀,颜色差异较为明显,且颜色与透明度所指示的热度与实际情况相符,能够清晰地在百度地图上展现人流分布情况。每个热力图中对应区域所展现的颜色分布与透明度分布较为一致,都能够清晰地在百度地图上展现一致的人流分布情况,从而能够得到一致的人流分布的特点,并且所获得的人流分布的特点符合实际的人流分布情况,能够体现热力图的真实价值。In the heat maps shown in FIG. 5A, FIG. 5C and FIG. 5E, 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. Show the distribution of people flow. 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.
图5B、图5D与图5F所示的热力图中,只有个别热力图(如图5B所示的热力图)的颜色分布较为均匀,颜色差异较为明显,且颜色与透明度所指示的热度与实际情况相符,能够清晰地在百度地图上展现人流分布情况,从而能够得到人流分布的特点,并且所获得的人流分布的特点符合实际的人流分布情况,能够体现热力图的真实价值。但是,仍然存在大部分热力图(图5D和图5F所示的热力图)的颜色差异并不明显,且颜色与透明度所指示的热度并没有达到实际情况,根本无法清晰地在 百度地图上展现人流分布情况,不容易得到人流分布的特点,及时得到人流分布的特点,也并不符合实际的人流分布情况,没有体现热力图的真实价值。另外,每个热力图中对应区域所展现的颜色分布与透明度分布不一致,无法在百度地图上展现一致的人流分布情况,也就无法能够得到一致的人流分布的特点,没有体现热力图的真实价值。In the heat maps shown in FIG. 5B, FIG. 5D and FIG. 5F, only the individual heat maps (the heat map shown in FIG. 5B) have a uniform color distribution, the color difference is more obvious, and the heat and the actuality indicated by the color and the transparency are actual. The situation is consistent, and the distribution of people flow can be clearly displayed on Baidu map, so that the characteristics of the distribution of people flow can be obtained, and the characteristics of the distribution of the obtained flow are in line with the actual distribution of people flow, and can reflect the true value of the heat map. However, there is still a large difference in the color of the heat map (the heat map shown in Figure 5D and Figure 5F), and the heat indicated by the color and transparency does not reach the actual situation, and it cannot be clearly Baidu map shows the distribution of human flow, it is not easy to get the characteristics of the distribution of people flow, the characteristics of the distribution of people flow in time, and it does not meet the actual distribution of people flow, and does not reflect the true value of the heat map. In addition, 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. .
本实施例中,通过获得图像的统计指标数据,以及获得热力模板图像,所述热力模板图像用于描述所述热力模板图像上每个像素的指定图像特征,使得能够根据所述统计指标数据和所述热力模板图像,展现所述图像所对应的热力图,由于不再完全依赖所设置的统计指标数据的衰减关系,而是结合热力模板图像,进行热力图的展现,因此,能够避免现有技术中由于完全依赖所设置的统计指标数据的衰减关系而导致的热力图无法清晰地展现图像的统计指标数据的分布情况的问题,从而提高了热力图的展现可靠性。In this embodiment, by obtaining statistical indicator data of an image, and obtaining a thermal template image, 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.
另外,采用本发明提供的技术方案,由于不再完全依赖所设置的统计指标数据的衰减关系,而是结合热力模板图像,进行热力图的展现,使得操作对象由像素变为图像,因此,能够有效提高热力图的展现效率。In addition, according to the technical solution provided by the present invention, 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 make the operation object change from pixel to image, and therefore, Effectively improve the efficiency of the heat map display.
另外,采用本发明提供的技术方案,由于采用与图像的展现比例所对应的热力模板图像,进行热力图的展现,因此,能够避免由于采用固定的一个热力模板图像而导致的热力图无法清晰地展现图像的统计指标数据的分布情况的问题,能够进一步有效提高热力图的展现可靠性。In addition, according to the technical solution provided by the present invention, since 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.
另外,采用本发明提供的技术方案,由于采用与图像的展现比例所对应的热力模板图像,进行热力图的展现,因此,能够在图像的每个展现比例下,清晰地展现图像的统计指标数据,能够有效提高热力图的利 用率。In addition, according to the technical solution provided by the present invention, since 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.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。It should be noted that, for the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should understand that the present invention is not limited by the described action sequence. Because certain steps may be performed in other sequences or concurrently in accordance with the present invention. In addition, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above embodiments, the descriptions of the various embodiments are different, and the details that are not detailed in a certain embodiment can be referred to the related descriptions of other embodiments.
图2为本发明另一实施例提供的热力图的展现装置的结构示意图,如图2所示。本实施例的热力图的展现装置可以包括获得单元21、模板单元22和展现单元23。获得单元21,用于获得图像的统计指标数据;模板单元22,用于获得热力模板图像,所述热力模板图像用于描述所述热力模板图像上每个像素的指定图像特征;展现单元23,用于根据所述统计指标数据和所述热力模板图像,展现所述图像所对应的热力图。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.
需要说明的是,本实施例所提供的热力图的展现装置的部分或全部可以为位于本地终端的应用,或者还可以为设置在位于本地终端的应用中的插件或软件开发工具包(Software Development Kit,SDK)等功能单元,或者还可以为位于网络侧服务器中的处理引擎,或者还可以为位于网络侧的分布式系统,本实施例对此不进行特别限定。It should be noted that 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.
可以理解的是,所述应用可以是安装在终端上的本地程序(nativeApp),或者还可以是终端上的浏览器的一个网页程序(webApp),本实施例对此不进行限定。 It is to be understood that 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.
可选地,在本实施例的一个可能的实现方式中,所述统计指标数据可以包括但不限于统计参数和在所述图像上所对应的位置;所述获得单元21,具体可以用于根据待处理的统计指标数据在所述图像上所对应的位置,进行基于密度的聚类处理,以获得至少一个候选类;根据所述至少一个候选类中每个候选类中所包括的统计指标数据的数量和预先设置的数量阈值,获得至少一个目标类;根据所述至少一个目标类中每个目标类中所包括的统计指标数据在所述图像上所对应的位置,获得所述每个目标类的位置;根据所述至少一个目标类中每个目标类中所包括的统计指标数据所对应的统计参数,获得所述每个目标类的统计参数;以及根据所述每个目标类的统计参数和所述每个目标类的位置,获得所述每个目标类的统计指标数据。Optionally, in a possible implementation manner of the 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.
可选地,在本实施例的一个可能的实现方式中,所述模板单元22,具体可以用于获得所述图像的展现比例;以及根据所述展现比例,获得所述热力模板图像。Optionally, in a possible implementation manner of the embodiment, 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.
可选地,在本实施例的一个可能的实现方式中,所述展现单元23,具体可以用于根据所述热力模板图像,获得所述热力模板图像上每个像素的指定图像特征;根据所述统计指标数据和所述每个像素的指定图像特征,获得所述每个像素的热力数据;根据所述每个像素的热力数据,获得所述每个像素的展现颜色;以及根据所述每个像素的展现颜色,展现所述图像所对应的热力图。Optionally, in a possible implementation manner of the embodiment, 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.
在一个具体的实现过程中,所述展现单元23,具体可以用于获得所述每个像素的展现透明度;以及根据所述每个像素的展现颜色和所述每个像素的展现透明度,展现所述图像所对应的热力图。 In a specific implementation process, 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 heat map corresponding to the image.
例如,所述展现单元23,具体可以用于将预先设置的一个预设透明度,作为所述每个像素的展现透明度。For example, the presentation unit 23 may be specifically configured to use a preset transparency set in advance as the presentation transparency of each pixel.
或者,再例如,所述展现单元23,具体可以用于根据所述每个像素的热力数据和预先设置的至少两个预设透明度,获得所述每个像素的展现透明度。Or, for example, 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.
可选地,在本实施例的一个可能的实现方式中,所述指定图像特征可以包括但不限于图像透明度和图像颜色中的至少一项,本实施例对此不进行特别限定。Optionally, in a possible implementation manner of the embodiment, 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.
可选地,在本实施例的一个可能的实现方式中,所述模板单元22,还可以进一步用于根据样本统计参数和在样本图像上所对应的位置,创建所述热力模板图像。Optionally, in a possible implementation manner of the 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.
需要说明的是,图1对应的实施例中方法,可以由本实施例提供的热力图的展现装置实现。详细描述可以参见图1对应的实施例中的相关内容,此处不再赘述。It should be noted that the method in the embodiment corresponding to FIG. 1 can be implemented by the display device of the heat map provided in this embodiment. For details, refer to related content in the embodiment corresponding to FIG. 1, and details are not described herein again.
本实施例中,通过获得单元获得图像的统计指标数据,以及由模板单元获得热力模板图像,所述热力模板图像用于描述所述热力模板图像上每个像素的指定图像特征,使得展现单元能够根据所述统计指标数据和所述热力模板图像,展现所述图像所对应的热力图,由于不再完全依赖所设置的统计指标数据的衰减关系,而是结合热力模板图像,进行热力图的展现,因此,能够避免现有技术中由于完全依赖所设置的统计指标数据的衰减关系而导致的热力图无法清晰地展现图像的统计指标数据的分布情况的问题,从而提高了热力图的展现可靠性。In this embodiment, the statistical indicator data of the image is obtained by the obtaining unit, and 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. .
另外,采用本发明提供的技术方案,由于不再完全依赖所设置的统 计指标数据的衰减关系,而是结合热力模板图像,进行热力图的展现,使得操作对象由像素变为图像,因此,能够有效提高热力图的展现效率。In addition, with the technical solution provided by the present invention, since the system is no longer completely dependent on the system The attenuation relationship of the indicator data is combined with the thermal template image to display the thermogram, so that the operation object is changed from pixel to image, and therefore, the efficiency of the heat map can be effectively improved.
另外,采用本发明提供的技术方案,由于采用与图像的展现比例所对应的热力模板图像,进行热力图的展现,因此,能够避免由于采用固定的一个热力模板图像而导致的热力图无法清晰地展现图像的统计指标数据的分布情况的问题,能够进一步有效提高热力图的展现可靠性。In addition, according to the technical solution provided by the present invention, since 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.
另外,采用本发明提供的技术方案,由于采用与图像的展现比例所对应的热力模板图像,进行热力图的展现,因此,能够在图像的每个展现比例下,清晰地展现图像的统计指标数据,能够有效提高热力图的利用率。In addition, according to the technical solution provided by the present invention, since 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.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。A person skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the system, the device and the unit described above can refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
在本发明所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present invention, it should be understood that the disclosed system, apparatus, and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, 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. In addition, 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.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, 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.
上述以软件功能单元的形式实现的集成的单元,可以存储在一个计算机可读取存储介质中。上述软件功能单元存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本发明各个实施例所述方法的部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。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. .
最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。 It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and are not limited thereto; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that The technical solutions described in the foregoing embodiments are modified, or the equivalents of the technical features are replaced. The modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (18)

  1. 一种热力图的展现方法,其特征在于,包括:A method for displaying a heat map, comprising:
    获得图像的统计指标数据;Obtaining statistical indicator data of the image;
    获得热力模板图像,所述热力模板图像用于描述所述热力模板图像上每个像素的指定图像特征;Obtaining a thermal template image for describing a specified image feature of each pixel on the thermographic image;
    根据所述统计指标数据和所述热力模板图像,展现所述图像所对应的热力图。And displaying a heat map corresponding to the image according to the statistical indicator data and the thermal template image.
  2. 根据权利要求1所述的方法,其特征在于,所述统计指标数据包括统计参数和在所述图像上所对应的位置;所述获得图像的统计指标数据,包括:The method according to claim 1, wherein the statistical indicator data comprises a statistical parameter and a position corresponding to the image; and the obtained statistical indicator data of the image comprises:
    根据待处理的统计指标数据在所述图像上所对应的位置,进行基于密度的聚类处理,以获得至少一个候选类;Performing density-based clustering processing according to the position of the statistical indicator data to be processed on the image to obtain at least one candidate class;
    根据所述至少一个候选类中每个候选类中所包括的统计指标数据的数量和预先设置的数量阈值,获得至少一个目标类;Obtaining at least one target class according to the number of statistical indicator data included in each candidate class of the at least one candidate class and a preset number threshold;
    根据所述至少一个目标类中每个目标类中所包括的统计指标数据在所述图像上所对应的位置,获得所述每个目标类的位置;Obtaining a location of each of the target classes according to a location corresponding to the statistical indicator data included in each target class in the at least one target class on the image;
    根据所述至少一个目标类中每个目标类中所包括的统计指标数据所对应的统计参数,获得所述每个目标类的统计参数;Obtaining, according to the statistical parameter corresponding to the statistical indicator data included in each target class in the at least one target class, the statistical parameter of each target class;
    根据所述每个目标类的统计参数和所述每个目标类的位置,获得所述每个目标类的统计指标数据。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.
  3. 根据权利要求1或2所述的方法,其特征在于,所述获得热力模板图像,包括:The method according to claim 1 or 2, wherein the obtaining the thermal template image comprises:
    获得所述图像的展现比例;Obtaining a presentation ratio of the image;
    根据所述展现比例,获得所述热力模板图像。 The thermographic template image is obtained according to the presentation ratio.
  4. 根据权利要求1~3任一权利要求所述的方法,其特征在于,所述根据所述统计指标数据和所述热力模板图像,展现所述图像所对应的热力图,包括:The method according to any one of claims 1 to 3, wherein the displaying the heat map corresponding to the image according to the statistical indicator data and the thermal template image comprises:
    根据所述热力模板图像,获得所述热力模板图像上每个像素的指定图像特征;Obtaining a specified image feature of each pixel on the thermal template image according to the thermal template image;
    根据所述统计指标数据和所述每个像素的指定图像特征,获得所述每个像素的热力数据;Obtaining thermal data of each pixel according to the statistical indicator data and the specified image feature of each pixel;
    根据所述每个像素的热力数据,获得所述每个像素的展现颜色;Obtaining a presentation color of each of the pixels according to the thermal data of each pixel;
    根据所述每个像素的展现颜色,展现所述图像所对应的热力图。A heat map corresponding to the image is presented according to the presentation color of each pixel.
  5. 根据权利要求4所述的方法,其特征在于,所述根据所述每个像素的展现颜色,展现所述图像所对应的热力图,包括:The method according to claim 4, wherein the displaying the heat map corresponding to the image according to the display color of each pixel comprises:
    获得所述每个像素的展现透明度;Obtaining display transparency of each of the pixels;
    根据所述每个像素的展现颜色和所述每个像素的展现透明度,展现所述图像所对应的热力图。A heat map corresponding to the image is presented according to the presentation color of each pixel and the presentation transparency of each pixel.
  6. 根据权利要求5所述的方法,其特征在于,所述获得所述每个像素的展现透明度,包括:The method according to claim 5, wherein said obtaining transparency of said each pixel comprises:
    将预先设置的一个预设透明度,作为所述每个像素的展现透明度;或者a preset transparency set in advance as the transparency of each of the pixels; or
    根据所述每个像素的热力数据和预先设置的至少两个预设透明度,获得所述每个像素的展现透明度。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.
  7. 根据权利要求1~6任一权利要求所述的方法,其特征在于,所述指定图像特征包括图像透明度和图像颜色中的至少一项。A method according to any one of claims 1 to 6, wherein said specified image feature comprises at least one of image transparency and image color.
  8. 根据权利要求1~7任一权利要求所述的方法,其特征在于,所 述获得热力模板图像之前,还包括:A method according to any one of claims 1 to 7, wherein Before obtaining the thermal template image, it also includes:
    根据样本统计参数和在样本图像上所对应的位置,创建所述热力模板图像。The thermo template image is created based on sample statistical parameters and corresponding locations on the sample image.
  9. 一种热力图的展现装置,其特征在于,包括:A display device for a heat map, comprising:
    获得单元,用于获得图像的统计指标数据;Obtaining a unit for obtaining statistical indicator data of an image;
    模板单元,用于获得热力模板图像,所述热力模板图像用于描述所述热力模板图像上每个像素的指定图像特征;a template unit for obtaining a thermal template image for describing a specified image feature of each pixel on the thermal template image;
    展现单元,用于根据所述统计指标数据和所述热力模板图像,展现所述图像所对应的热力图。And a presentation unit, configured to display a heat map corresponding to the image according to the statistical indicator data and the thermal template image.
  10. 根据权利要求9所述的装置,其特征在于,所述统计指标数据包括统计参数和在所述图像上所对应的位置;所述获得单元,具体用于The apparatus according to claim 9, wherein the statistical indicator data comprises a statistical parameter and a position corresponding to the image; the obtaining unit is specifically configured to
    根据待处理的统计指标数据在所述图像上所对应的位置,进行基于密度的聚类处理,以获得至少一个候选类;Performing density-based clustering processing according to the position of the statistical indicator data to be processed on the image to obtain at least one candidate class;
    根据所述至少一个候选类中每个候选类中所包括的统计指标数据的数量和预先设置的数量阈值,获得至少一个目标类;Obtaining at least one target class according to the number of statistical indicator data included in each candidate class of the at least one candidate class and a preset number threshold;
    根据所述至少一个目标类中每个目标类中所包括的统计指标数据在所述图像上所对应的位置,获得所述每个目标类的位置;Obtaining a location of each of the target classes according to a location corresponding to the statistical indicator data included in each target class in the at least one target class on the image;
    根据所述至少一个目标类中每个目标类中所包括的统计指标数据所对应的统计参数,获得所述每个目标类的统计参数;以及Obtaining, according to the statistical parameter corresponding to the statistical indicator data included in each target class in the at least one target class, the statistical parameter of each target class;
    根据所述每个目标类的统计参数和所述每个目标类的位置,获得所述每个目标类的统计指标数据。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.
  11. 根据权利要求9或10所述的装置,其特征在于,所述模板单元,具体用于 The device according to claim 9 or 10, wherein the template unit is specifically used for
    获得所述图像的展现比例;以及Obtaining a representation ratio of the image;
    根据所述展现比例,获得所述热力模板图像。The thermographic template image is obtained according to the presentation ratio.
  12. 根据权利要求9~11任一权利要求所述的装置,其特征在于,所述展现单元,具体用于The device according to any one of claims 9 to 11, wherein the presentation unit is specifically used for
    根据所述热力模板图像,获得所述热力模板图像上每个像素的指定图像特征;Obtaining a specified image feature of each pixel on the thermal template image according to the thermal template image;
    根据所述统计指标数据和所述每个像素的指定图像特征,获得所述每个像素的热力数据;Obtaining thermal data of each pixel according to the statistical indicator data and the specified image feature of each pixel;
    根据所述每个像素的热力数据,获得所述每个像素的展现颜色;以及Obtaining a presentation color of each of the pixels according to the thermal data of each of the pixels;
    根据所述每个像素的展现颜色,展现所述图像所对应的热力图。A heat map corresponding to the image is presented according to the presentation color of each pixel.
  13. 根据权利要求12所述的装置,其特征在于,所述展现单元,具体用于The device according to claim 12, wherein the presentation unit is specifically configured to
    获得所述每个像素的展现透明度;以及Obtaining display transparency of each of the pixels;
    根据所述每个像素的展现颜色和所述每个像素的展现透明度,展现所述图像所对应的热力图。A heat map corresponding to the image is presented according to the presentation color of each pixel and the presentation transparency of each pixel.
  14. 根据权利要求13所述的装置,其特征在于,所述展现单元,具体用于The device according to claim 13, wherein the presentation unit is specifically configured to
    将预先设置的一个预设透明度,作为所述每个像素的展现透明度;或者a preset transparency set in advance as the transparency of each of the pixels; or
    根据所述每个像素的热力数据和预先设置的至少两个预设透明度,获得所述每个像素的展现透明度。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.
  15. 根据权利要求9~14任一权利要求所述的装置,其特征在于, 所述指定图像特征包括图像透明度和图像颜色中的至少一项。Apparatus according to any of claims 9-14, wherein The specified image feature includes at least one of image transparency and image color.
  16. 根据权利要求9~15任一权利要求所述的装置,其特征在于,所述模板单元,还用于The device according to any one of claims 9 to 15, wherein the template unit is further used for
    根据样本统计参数和在样本图像上所对应的位置,创建所述热力模板图像。The thermo template image is created based on sample statistical parameters and corresponding locations on the sample image.
  17. 一种设备,包括:A device that includes:
    一个或者多个处理器;One or more processors;
    存储器;Memory
    一个或者多个程序,所述一个或者多个程序存储在所述存储器中,当被所述一个或者多个处理器执行时:One or more programs, the one or more programs being stored in the memory, when executed by the one or more processors:
    获得图像的统计指标数据;Obtaining statistical indicator data of the image;
    获得热力模板图像,所述热力模板图像用于描述所述热力模板图像上每个像素的指定图像特征;Obtaining a thermal template image for describing a specified image feature of each pixel on the thermographic image;
    根据所述统计指标数据和所述热力模板图像,展现所述图像所对应的热力图。And displaying a heat map corresponding to the image according to the statistical indicator data and the thermal template image.
  18. 一种非易失性计算机存储介质,所述非易失性计算机存储介质存储有一个或者多个程序,当所述一个或者多个程序被一个设备执行时,使得所述设备:A non-volatile computer storage medium storing one or more programs, when the one or more programs are executed by a device, causing the device to:
    获得图像的统计指标数据;Obtaining statistical indicator data of the image;
    获得热力模板图像,所述热力模板图像用于描述所述热力模板图像上每个像素的指定图像特征;Obtaining a thermal template image for describing a specified image feature of each pixel on the thermographic image;
    根据所述统计指标数据和所述热力模板图像,展现所述图像所对应的热力图。 And displaying a heat map corresponding to the image according to the statistical indicator data and the thermal template image.
PCT/CN2015/080987 2015-03-18 2015-06-08 Method, apparatus and device for presenting thermodynamic chart and non-volatile computer storage medium WO2016145736A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510118051.9 2015-03-18
CN201510118051.9A CN104731894B (en) 2015-03-18 2015-03-18 Thermodynamic chart shows method and device

Publications (1)

Publication Number Publication Date
WO2016145736A1 true WO2016145736A1 (en) 2016-09-22

Family

ID=53455781

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/080987 WO2016145736A1 (en) 2015-03-18 2015-06-08 Method, apparatus and device for presenting thermodynamic chart and non-volatile computer storage medium

Country Status (2)

Country Link
CN (1) CN104731894B (en)
WO (1) WO2016145736A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110930474A (en) * 2019-12-06 2020-03-27 深圳大学 Insect density thermodynamic diagram construction method, device and system
CN112348920A (en) * 2020-10-30 2021-02-09 上海全应科技有限公司 Data-driven dynamic characteristic thermodynamic diagram construction method for circulating fluidized bed boiler
CN112965650A (en) * 2021-03-12 2021-06-15 平安国际智慧城市科技股份有限公司 Thermodynamic diagram visualization method and system and computer equipment
CN113743736A (en) * 2021-08-11 2021-12-03 上海钧正网络科技有限公司 Thermodynamic grade determining method, thermodynamic diagram generating device and electronic equipment

Families Citing this family (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106776612B (en) * 2015-11-20 2021-02-12 北京国双科技有限公司 Display method and device of geographical thermodynamic diagram
CN106991576B (en) * 2016-01-20 2020-10-09 阿里巴巴集团控股有限公司 Method and device for displaying heat of geographic area
CN105469289B (en) * 2016-02-17 2019-04-09 上海碧虎网络科技有限公司 A kind of heating power map system based on spending on ads
CN105844681A (en) * 2016-03-22 2016-08-10 北京建飞无限科技有限公司 Thermodynamic diagram drawing method and apparatus
CN107766375B (en) * 2016-08-19 2020-06-09 华为技术有限公司 Method and device for generating thermodynamic diagram
CN106339434A (en) * 2016-08-19 2017-01-18 中国地质大学(武汉) Temporal and spatial analysis method of national safety production accident
CN106447158A (en) * 2016-08-27 2017-02-22 李亚林 Electric energy metering information supervision system and method
CN108073594B (en) * 2016-11-10 2021-12-24 北京国双科技有限公司 Method and device for generating thermodynamic diagram
CN108090096B (en) * 2016-11-23 2020-11-06 北京国双科技有限公司 Method and device for acquiring thermodynamic diagram
CN106599233A (en) * 2016-12-20 2017-04-26 国云科技股份有限公司 Visual map thermodynamic diagram analogue data generation method
CN107256225B (en) * 2017-04-28 2020-09-01 济南中维世纪科技有限公司 Method and device for generating heat map based on video analysis
CN110020351B (en) * 2017-09-29 2021-08-13 北京国双科技有限公司 Click thermodynamic diagram anomaly detection method and device
CN108169761A (en) * 2018-01-18 2018-06-15 上海瀚莅电子科技有限公司 Scene of a fire task determines method, apparatus, system and computer readable storage medium
CN110675728B (en) * 2018-07-03 2021-08-31 百度在线网络技术(北京)有限公司 Generation method, device and equipment of thermodynamic diagram and computer readable storage medium
CN109508217B (en) * 2018-10-22 2022-03-08 郑州云海信息技术有限公司 Data processing method, device, equipment and medium
CN109635053B (en) * 2018-10-31 2021-01-12 百度在线网络技术(北京)有限公司 Map quality inspection method, device, system and storage medium
CN111881994B (en) * 2020-08-03 2024-04-05 杭州睿琪软件有限公司 Identification processing method and apparatus, and non-transitory computer readable storage medium
CN113284216A (en) * 2021-04-22 2021-08-20 广东工业大学 Furniture modeling design hotspot visualization method

Citations (3)

* Cited by examiner, † Cited by third party
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 (en) * 2014-09-09 2014-12-10 北京国双科技有限公司 Webpage thermodynamic diagram generating method and device
CN104239617A (en) * 2014-09-02 2014-12-24 百度在线网络技术(北京)有限公司 Thermodynamic diagram showing method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102043850B (en) * 2010-12-20 2016-02-24 百度在线网络技术(北京)有限公司 The method and apparatus of generating thermodynamic diagram
CN102955794B (en) * 2011-08-23 2017-04-12 阿里巴巴集团控股有限公司 Method and device for displaying click condition of web page
CN104167092B (en) * 2014-07-30 2016-09-21 北京市交通信息中心 A kind of method determining center, on-board and off-board hot spot region of hiring a car and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
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 (en) * 2014-09-02 2014-12-24 百度在线网络技术(北京)有限公司 Thermodynamic diagram showing method and device
CN104199939A (en) * 2014-09-09 2014-12-10 北京国双科技有限公司 Webpage thermodynamic diagram generating method and device

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110930474A (en) * 2019-12-06 2020-03-27 深圳大学 Insect density thermodynamic diagram construction method, device and system
CN110930474B (en) * 2019-12-06 2023-02-28 深圳大学 Insect density thermodynamic diagram construction method, device and system
CN112348920A (en) * 2020-10-30 2021-02-09 上海全应科技有限公司 Data-driven dynamic characteristic thermodynamic diagram construction method for circulating fluidized bed boiler
CN112348920B (en) * 2020-10-30 2024-03-01 上海全应科技有限公司 Method for constructing dynamic characteristic thermodynamic diagram of circulating fluidized bed boiler based on data driving
CN112965650A (en) * 2021-03-12 2021-06-15 平安国际智慧城市科技股份有限公司 Thermodynamic diagram visualization method and system and computer equipment
CN113743736A (en) * 2021-08-11 2021-12-03 上海钧正网络科技有限公司 Thermodynamic grade determining method, thermodynamic diagram generating device and electronic equipment
CN113743736B (en) * 2021-08-11 2024-02-27 上海钧正网络科技有限公司 Thermodynamic level determination method, thermodynamic diagram generation method, thermodynamic level determination device and electronic equipment

Also Published As

Publication number Publication date
CN104731894B (en) 2018-10-16
CN104731894A (en) 2015-06-24

Similar Documents

Publication Publication Date Title
WO2016145736A1 (en) Method, apparatus and device for presenting thermodynamic chart and non-volatile computer storage medium
US11195332B2 (en) Information interaction method based on virtual space scene, computer equipment and computer-readable storage medium
US10304407B2 (en) Photo selection for mobile devices
US9798819B2 (en) Selective map marker aggregation
US11670026B2 (en) Conditional modification of augmented reality object
CN104239617B (en) Thermodynamic chart shows method and device
CN107315824B (en) Method and device for generating thermodynamic diagram
US20190179405A1 (en) Providing a digital model of a corresponding product in a camera feed
JP2016152044A (en) Method and device for determining target position
JP5413170B2 (en) Annotation display system, method and server apparatus
US20190371065A1 (en) Augmented Reality Masking
CN110730969A (en) System and method for presenting content
WO2016008340A1 (en) Content sharing methods and apparatuses
WO2016011763A1 (en) Image presentation method, apparatus and device, and nonvolatile computer storage medium
CN112162668B (en) Interface updating method and monitoring terminal
US20170206051A1 (en) Content sharing methods and apparatuses
CN104965915B (en) A kind of processing method and system of user access activity data
US11204949B1 (en) Systems, devices, and methods for content selection
CN106897333A (en) A kind of data processing method and its equipment
CN106383679A (en) Locating method and terminal device using same
CN107679047B (en) Method and device for displaying rolling depth data
US9165339B2 (en) Blending map data with additional imagery
CN115525428A (en) Method and device for estimating memory occupation, terminal equipment and computer readable storage medium
CN116740257A (en) Radar data space rendering method and device based on space coordinate transformation
CN110163653A (en) Building room rate data generation method, device, equipment and computer storage medium

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