CN113902831A - Method, system and device for generating dot-matrix map of hot spot area and storage medium - Google Patents

Method, system and device for generating dot-matrix map of hot spot area and storage medium Download PDF

Info

Publication number
CN113902831A
CN113902831A CN202111515456.8A CN202111515456A CN113902831A CN 113902831 A CN113902831 A CN 113902831A CN 202111515456 A CN202111515456 A CN 202111515456A CN 113902831 A CN113902831 A CN 113902831A
Authority
CN
China
Prior art keywords
region
area
pixel point
time
dot
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111515456.8A
Other languages
Chinese (zh)
Other versions
CN113902831B (en
Inventor
刘冬
黄岗
周圣强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Wandianzhang Software Technology Co ltd
Original Assignee
Suzhou Wandianzhang Software Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Wandianzhang Software Technology Co ltd filed Critical Suzhou Wandianzhang Software Technology Co ltd
Priority to CN202111515456.8A priority Critical patent/CN113902831B/en
Publication of CN113902831A publication Critical patent/CN113902831A/en
Application granted granted Critical
Publication of CN113902831B publication Critical patent/CN113902831B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • G06T11/206Drawing of charts or graphs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/40Filling a planar surface by adding surface attributes, e.g. colour or texture

Abstract

The application discloses a method, a system and a device for generating a dot matrix diagram of a hot spot area and a computer readable storage medium, wherein the dot matrix diagram is generated at a management system end and then sent to an equipment end, the equipment end respectively records the entering time and the leaving time of each area object by using a time recording file, a frequency file stores the dot matrix diagram at one side, simultaneously counts the entering times of each area according to the entering time and the leaving time recorded by the time recording file, and marks the entering times of each area to each area, finally, different colors are correspondingly filled in each area according to a preset filling rule according to the entering times of each area to generate the dot matrix diagram of the hot spot area, the generation process of the dot matrix diagram is simplified, the information required by generating the dot matrix diagram can be stored only by two files, so that the collection of real-time data and the generation and the updating of the dot matrix diagram can be realized at the equipment end, the timeliness is improved.

Description

Method, system and device for generating dot-matrix map of hot spot area and storage medium
Technical Field
The invention relates to the technical field of computers, in particular to a method, a system and a device for generating a dot matrix map of a hot spot area and a computer readable storage medium.
Background
In the prior art, the hot spot area dot matrix is high in generation difficulty, a camera is required to collect image data, the image data are handed to a rear processing end to be subjected to data statistics and analysis, the data statistics and analysis are very complex, meanwhile, the hot spot area dot matrix is generated due to the fact that the data need to be collected firstly, timeliness is poor, and real-time updating cannot be achieved.
Therefore, a more simple method for generating a hot spot area bitmap with high timeliness is needed.
Disclosure of Invention
In view of the above, the present invention provides a method, a system, a device and a computer readable storage medium for generating a hot spot area bitmap, which are more efficient and simpler in generating the hot spot area bitmap. The specific scheme is as follows:
a hot spot region dot matrix diagram generation method comprises the following steps:
receiving a dot-matrix chart;
recording the entering time and the leaving time of each target object in each area in the dot-matrix diagram by using a time record file;
recording the dot-matrix diagram by using a frequency file, recording the file according to the time, and obtaining and recording the entering times of each area;
and filling different colors into each region according to a preset filling rule by using the frequency file and according to the entering times of each region, and generating a hot spot region bitmap.
Optionally, the method further includes:
and recording the stay time of each target object in each area in the dot-matrix diagram by using the time record file, and generating the stay duration data of each area according to the stay time of each object in each area.
Optionally, the dot-matrix generating process includes:
acquiring a shot picture, and converting the picture into an original bitmap;
establishing a coordinate system in the original bitmap, and receiving the vertex coordinates of the region;
sequentially connecting according to the vertex coordinates of the regions to obtain region boundaries;
traversing the point coordinates of each pixel point in the original bitmap, and judging whether each pixel point is in an area;
if so, filling the ID corresponding to the region to the pixel point to obtain the region;
if not, filling default values to the pixel points;
and obtaining the dot matrix diagram according to the filling result.
Optionally, the process of determining whether each pixel point is in the region includes:
judging whether the current pixel point is positioned on the edge of the area or not;
if the current pixel point is located on the edge of the area, the current pixel point is located in the area;
judging whether the two adjacent sides of the region are on the two sides of the ray of the current pixel point when the ray of the current pixel point passes through the intersection points of the two adjacent sides of the region based on a cross point number discrimination method;
if the ray is positioned on the two sides of the ray of the current pixel point, calculating the intersection point number with the intersection point as one;
if the intersection points are not positioned on the two sides of the ray of the current pixel point, calculating the number of the intersection points with the intersection points as two;
and ignoring the condition that the ray of the current pixel point is parallel to any side of the region.
The invention also discloses a system for generating the dot matrix map of the hot spot area, which comprises the following steps:
the dot-matrix receiving module is used for receiving the dot-matrix;
the time recording module is used for recording the entering time and the leaving time of each target object in each area in the dot-matrix diagram by using a time recording file;
the frequency recording module is used for recording the dot-matrix diagram by using a frequency file, recording the file according to the time, and obtaining and recording the entering times of each area;
and the hot spot map generation module is used for correspondingly filling different colors into each region according to a preset filling rule by using the frequency file and the entering times of each region to generate a hot spot region dot map.
Optionally, the method further includes:
and the duration data generating module is used for recording the stay time of each target object in each area in the dot-matrix diagram by using the time recording file, and generating the stay duration data of each area according to the stay time of each object in each area.
Optionally, the method further includes:
the picture acquisition module is used for acquiring a shot picture and converting the picture into an original bitmap;
the coordinate establishing module is used for establishing a coordinate system in the original bitmap and receiving the vertex coordinates of the region;
the boundary drawing module is used for sequentially connecting according to the vertex coordinates of the areas to obtain area boundaries;
the region judgment module is used for traversing the point coordinates of each pixel point in the original bitmap and judging whether each pixel point is in a region;
the region drawing module is used for filling the ID corresponding to the region to the pixel point to obtain the region if the region judging module judges that the pixel point is in the region;
the pixel marking module is used for filling a default value to the pixel point if the region judging module judges that the pixel point is not in the region;
and the dot matrix generating module is used for obtaining the dot matrix according to the filling result.
Optionally, the area determining module includes:
the edge judgment unit is used for judging whether the current pixel point is positioned on the edge of the area or not;
the judging unit is used for judging whether the current pixel point is positioned on the edge of the area or not by the edge judging unit, and if so, judging that the current pixel point is positioned in the area;
the intersection judging unit is used for judging whether the two adjacent sides of the area are on the two sides of the ray of the current pixel point when the ray of the current pixel point passes through the intersection of the two adjacent sides of the area based on an intersection point number judging method;
the first counting unit is used for counting the intersection point number of the intersection point as one if the intersection point judging unit judges that the two adjacent sides of the area are positioned at the two sides of the ray of the current pixel point;
the second counting unit is used for counting the number of intersection points with the intersection points as two if the intersection point judging unit judges that the two adjacent sides of the area are not positioned at the two sides of the ray of the current pixel point;
and the neglecting unit is used for neglecting the condition that the ray of the current pixel point is parallel to any side of the region.
The invention also discloses a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to realize the hot spot area bitmap generation method.
In the invention, the method for generating the dot matrix map of the hot spot region comprises the following steps: receiving a dot-matrix chart; recording the entering time and the leaving time of each target object in each area in the dot-matrix diagram by using a time recording file; recording the dot-matrix diagram by using a frequency file, recording the file according to time, and obtaining and recording the entering times of each area; and filling different colors into each region according to a preset filling rule by using the frequency file and according to the entering times of each region, and generating a hot spot region bitmap.
The method comprises the steps of generating a dot matrix diagram at a management system end, sending the dot matrix diagram to an equipment end, recording the entering time and the leaving time of each area object by the equipment end by using a time recording file, storing the dot matrix diagram by using a frequency file, counting the entering times of each area according to the entering time and the leaving time recorded by the time recording file, and marking the entering times of each area to each area.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a schematic flow chart of a method for generating a dot matrix map of a hot spot area according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of another hot spot area bitmap generation method disclosed in the embodiment of the present invention;
FIG. 3 is a schematic diagram illustrating cross point number determination according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of another cross point number determination disclosed in the embodiment of the present invention;
fig. 5 is a schematic structural diagram of a hot spot area bitmap generation system disclosed in the embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention discloses a method for generating a dot matrix diagram of a hot spot area, which is shown in a figure 1 and comprises the following steps:
s11: a bitmap is received.
Specifically, the receiving management system side uses an interface/sethotspot cfg for configuring the hotspot area, and the parameters are as follows: zoomural = bitmap sent from URL address of bitmap and saved.
Specifically, the bitmap may be generated in advance by the management system, and the device, such as a camera, may directly receive the produced bitmap for subsequent processing.
S12: and recording the entering time and the leaving time of each target object in each area in the dot-matrix diagram by using the time record file.
Specifically, using the time recording file, the file naming format may be: z _ mac _ date _ time _ h, records the entry time of each target object into the entry area in each area, and the exit time of the exit area. The format of the record may be: [ peoples ID ] [ ZoomaD ] [ InTime ] [ OutTime-InTime ], see Table 1, where [ peoples ID ] is used to distinguish different people in an image, [ ZoomaD ] is used to record the area that a target object enters, [ InTime ] is used to record the time that the target object enters the area, and [ OutTime-InTime ] is used to record the time that the target object stays in the area once, and the time unit in Table 1 is milliseconds.
TABLE 1
[PeopleID] [ZoomID] [InTime] [OutTime - InTime]
151 1466 1565591142222 5568
196 1466 1565591146472 247
209 1466 1565591147790 4439
194 1466 1565591147793 4166
232 1466 1565591149317 23386
247 1466 1565591150210 22759
293 1466 1565591206491 1264
It should be noted that the target object may be set to be a human, and of course, the target object may be changed according to the application scene, for example, in a zoo, the target object may include an animal, not only a human.
S13: and recording the dot-matrix diagram by using a frequency file, recording the file according to time, and obtaining and recording the entering times of each area.
Specifically, the number of times that an area is entered can be known from the time log file, because the time log file needs to record the time that each target object enters the area each time, so as to obtain the number of times that an area is entered, the frequency file can obtain the number of times that an area is entered by using the number of times that an area is entered, which is recorded by the time log file, for example, table 1 can know that the area 1466 is entered 7 times.
Specifically, the bitmap is stored by using a separate frequency file, and a file similar to the format of the hotspot configuration file is used, for example, the bitmap of [320 × 240] is subjected to traversal judgment and filled, then a filled bitmap of [320 × 240] is returned, the number of times that the region is passed is identified on each pixel point in each region on the bitmap in the frequency file, and the maximum identifiable value of each pixel point may be set to 100.
Specifically, the file naming format of the frequency file may be: h _ [ mac ] _ [ date ] _ [ time ]. h, can record the mac address, date and time, is convenient for searching, can change according to the actual application requirement certainly, and is not limited herein.
S14: and filling different colors into each region according to a preset filling rule by using the frequency file and according to the entering times of each region, and generating a hot spot region bitmap.
Specifically, each region is filled with a corresponding color by using the entry times and the colors corresponding to different times of each region recorded in the frequency file, so that a hot spot region bitmap is obtained.
Specifically, the preset filling rule may specify that different entry times correspond to different colors, for example, the entry times are 1 to 20 times of light green, 21 to 50 times of yellow, 51 to 100 times of red, and the like, and each region is filled with the corresponding color according to the entry times of each region, so as to generate a hot spot region bitmap.
It can be seen that, in the embodiment of the present invention, after the bitmap is generated at the management system end, the bitmap is sent to the device end, the device end records the entry time and the exit time of each region object by using the time recording file, the bitmap is saved while the frequency file, meanwhile, the entering time and the leaving time recorded according to the time recording file are recorded to count the entering times of each area, and marks the number of entries for each region to each region, finally based on the number of entries for each region, correspondingly, different colors are filled in each area according to a preset filling rule to generate a hot spot area dot matrix diagram, the generation process of the dot matrix diagram is simplified, the information required by the dot matrix diagram generation can be stored only by two files, therefore, real-time data collection and hot spot dot matrix diagram generation and updating can be realized at the equipment end, and timeliness is improved.
The embodiment of the invention discloses a specific hot spot area dot-matrix diagram generation method, and compared with the previous embodiment, the embodiment further explains and optimizes the technical scheme. Specifically, the method comprises the following steps:
specifically, the time recording file can be used for recording the stay time of each target object in each area in the bitmap, and the stay time duration data of each area is generated according to the stay time of each object in each area, for example, when the application scene is a market, each area corresponds to different commodity areas, and the attraction of the commodity to the client can be known through the stay market data, so that a corresponding report can be conveniently made.
Specifically, the bitmap generation process, as shown in fig. 2, may include S21 to S28; wherein the content of the first and second substances,
s21: and acquiring a shot picture, and converting the picture into an original bitmap.
Specifically, a picture of a real area of a bitmap to be generated is acquired through, for example, a camera, and the picture is converted into an original bitmap, wherein the area is not planned in the original bitmap.
S22: and establishing a coordinate system in the original bitmap, and receiving the vertex coordinates of the region.
Specifically, a coordinate system is established in the original bitmap, so as to receive vertex coordinates of each region required to be planned by the user.
S23: and connecting the areas in sequence according to the vertex coordinates of the areas to obtain the area boundary.
Specifically, the vertex coordinates corresponding to the respective regions are connected in the corresponding order, so that the respective boundary lines of each region can be obtained.
S24: and traversing the point coordinates of each pixel point in the original bitmap, and judging whether each pixel point is in the region or not.
Specifically, after the boundary of each region is determined, the pixel points in each region can be determined for each region, so that whether the target object enters the region can be determined subsequently, and whether each pixel point is in the region can be determined according to a corresponding algorithm, such as a cross point discrimination method, by traversing the coordinate points of each pixel.
S25: and if so, filling the ID corresponding to the region to the pixel point to obtain the region.
Specifically, if the pixel point is in the region, the ID of the region where the pixel point is located is filled for the pixel point to mark that the pixel point is located in the corresponding region, and a complete region can be obtained by filling all pixel points in one region.
S26: if not, filling default values to the pixel points.
Specifically, if the traversed current pixel is not in any one of the regions, a default value is filled in the pixel, for example, 0.
S27: and obtaining a dot matrix diagram according to the filling result.
Specifically, according to the filling results of S26 and S27, a complete bitmap including each region can be obtained, and the bitmap can be transmitted to the device side, so that the device side can generate a corresponding hotspot map.
Further, the process of determining whether each pixel point is in the region in S25 may include S251 to S256, as shown in fig. 4; wherein the content of the first and second substances,
s251: judging whether the current pixel point is positioned on the edge of the area or not;
s252: and if the current pixel point is located on the edge of the region, the current pixel point is located in the region.
Specifically, when the traversed current pixel point is located on the edge of the region, that is, on the boundary, the pixel point may be determined to be within the region.
S253: judging whether the two adjacent sides of the region are on the two sides of the ray of the current pixel point when the ray of the current pixel point passes through the intersection points of the two adjacent sides of the region based on a cross point number discrimination method;
s254: if the ray is positioned on the two sides of the ray of the current pixel point, the intersection point number with the intersection point is calculated as one;
s255: if the intersection points are not on the two sides of the ray of the current pixel point, the number of the intersection points with the intersection points is calculated as two.
Specifically, when determining whether a pixel point is in the region, the cross point number determination method determines whether an intersection point of a ray which is horizontally directed from the point as a starting point and a side of the region is an odd number, if so, the point is in the region, if 0 or even number is outside the region, and since there is a case where the current pixel point is outside the region and also intersects a vertex of the region, for example, as shown in fig. 3, the ray of the current pixel point S intersects vertex a, and at this time, the intersection point with the side of the region is an odd number, which causes an erroneous determination, therefore, when determining that the ray of the current pixel point passes through the intersection point of the adjacent two sides of the region, the adjacent two sides of the region are on both sides of the ray of the current pixel point, if the ray of the current pixel point is on both sides of the ray, the number of the intersection point with the intersection point is counted as one, for example, as shown in fig. 4, the adjacent two sides AB BC of the region and the ray of the current pixel point S are on both sides of the current pixel point S, the number of the intersection points with the intersection point is counted as one, and if the intersection points are not positioned on the two sides of the ray of the current pixel point, as shown in fig. 3, the adjacent two sides AB and BC of the area are positioned on the lower side of the ray of the current pixel point S, the number of the intersection points with the intersection point is counted as two, so that the misjudgment can be avoided.
S256: and ignoring the condition that the ray of the current pixel point is parallel to any side of the region.
Specifically, under the condition that the ray of the current pixel point is parallel to any side of the region, the ray has no intersection point with the side of the region, or an infinite number of intersection points coincide with the side of the region, and the condition is directly ignored and is not referred to.
Therefore, the accuracy in the region can be improved by the judging method of S251 to S256, it is ensured that the region can accurately cover each pixel point therein, and the accuracy of subsequently judging whether the target object enters the region is improved.
Correspondingly, the embodiment of the present invention further discloses a hot spot area bitmap generation system, as shown in fig. 5, the system includes:
a dot-matrix receiving module 11, configured to receive a dot-matrix;
the time recording module 12 is used for recording the entering time and the leaving time of each target object in each area in the bitmap by using the time recording file;
the frequency recording module 13 is used for recording the dot-matrix chart by using a frequency file, recording the file according to time, and obtaining and recording the entering times of each area;
and the hot spot map generating module 14 is configured to fill different colors into each region according to a preset filling rule by using the frequency file according to the number of times of entering each region, so as to generate a hot spot region bitmap.
It can be seen that, in the embodiment of the present invention, after the bitmap is generated at the management system end, the bitmap is sent to the device end, the device end records the entry time and the exit time of each region object by using the time recording file, the bitmap is saved while the frequency file, meanwhile, the entering time and the leaving time recorded according to the time recording file are recorded to count the entering times of each area, and marks the number of entries for each region to each region, finally based on the number of entries for each region, correspondingly, different colors are filled in each area according to a preset filling rule to generate a hot spot area dot matrix diagram, the generation process of the dot matrix diagram is simplified, the information required by the dot matrix diagram generation can be stored only by two files, therefore, real-time data collection and hot spot dot matrix diagram generation and updating can be realized at the equipment end, and timeliness is improved.
Specifically, the method may further include: a time length data generating module; wherein the content of the first and second substances,
and the duration data generating module is used for recording the stay time of each target object in each area in the dot-matrix diagram by using the time recording file, and generating the temporary stay duration data of each area according to the stay time of each object in each area.
Specifically, the method may further include: the device comprises a picture acquisition module, a coordinate establishing module, a boundary drawing module, a region judging module, a region drawing module, a pixel marking module and a dot matrix generating module; wherein the content of the first and second substances,
the picture acquisition module is used for acquiring a shot picture and converting the picture into an original bitmap;
the coordinate establishing module is used for establishing a coordinate system in the original bitmap and receiving the vertex coordinates of the area;
the boundary drawing module is used for sequentially connecting according to the vertex coordinates of the areas to obtain area boundaries;
the region judgment module is used for traversing the point coordinates of each pixel point in the original bitmap and judging whether each pixel point is in a region;
the region drawing module is used for filling the ID corresponding to the region to the pixel point to obtain the region if the region judging module judges that the pixel point is in the region;
the pixel marking module is used for filling a default value to the pixel point if the region judging module judges that the pixel point is not in the region;
and the dot matrix generating module is used for obtaining the dot matrix according to the filling result.
Specifically, the area determination module may include: edge judging unit, intersection judging unit, first counting unit, second counting unit and ignoring unit
The edge judgment unit is used for judging whether the current pixel point is positioned on the edge of the area or not;
the judging unit is used for judging whether the current pixel point is positioned on the edge of the area or not by the edge judging unit, and if so, judging that the current pixel point is positioned in the area;
the intersection judging unit is used for judging whether the two adjacent sides of the area are on the two sides of the ray of the current pixel point when the ray of the current pixel point passes through the intersection of the two adjacent sides of the area based on an intersection point number judging method;
the first counting unit is used for counting the intersection point number of the intersection point as one if the intersection point judging unit judges that the two adjacent sides of the area are positioned at the two sides of the ray of the current pixel point;
the second counting unit is used for counting the number of intersection points with the intersection points as two if the intersection point judging unit judges that the two adjacent sides of the area are not positioned at the two sides of the ray of the current pixel point;
and the neglecting unit is used for neglecting the condition that the ray of the current pixel point is parallel to any side of the region.
In addition, the embodiment of the invention also discloses a device for generating the dot matrix map of the hot spot area, which comprises the following steps:
a memory for storing a computer program;
and the processor is used for executing a computer program to realize the hot spot area bitmap generation method.
In addition, the embodiment of the invention also discloses a computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and when being executed by a processor, the computer program realizes the hot spot area bitmap generation method.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The technical content provided by the present invention is described in detail above, and the principle and the implementation of the present invention are explained in this document by applying specific examples, and the above description of the examples is only used to help understanding the method of the present invention and the core idea thereof; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A hot spot region dot matrix diagram generation method is characterized by comprising the following steps:
receiving a dot-matrix chart;
recording the entering time and the leaving time of each target object in each area in the dot-matrix diagram by using a time record file;
recording the dot-matrix diagram by using a frequency file, recording the file according to the time, and obtaining and recording the entering times of each area;
and filling different colors into each region according to a preset filling rule by using the frequency file and according to the entering times of each region, and generating a hot spot region bitmap.
2. The method for generating a bitmap of a hotspot region according to claim 1, further comprising:
and recording the stay time of each target object in each area in the dot-matrix diagram by using the time record file, and generating the stay duration data of each area according to the stay time of each object in each area.
3. The method according to claim 1 or 2, wherein the bitmap generation process comprises:
acquiring a shot picture, and converting the picture into an original bitmap;
establishing a coordinate system in the original bitmap, and receiving the vertex coordinates of the region;
sequentially connecting according to the vertex coordinates of the regions to obtain region boundaries;
traversing the point coordinates of each pixel point in the original bitmap, and judging whether each pixel point is in an area;
if so, filling the ID corresponding to the region to the pixel point to obtain the region;
if not, filling default values to the pixel points;
and obtaining the dot matrix diagram according to the filling result.
4. The method for generating a bitmap of a hotspot region according to claim 3, wherein the step of determining whether each pixel point is in the region comprises:
judging whether the current pixel point is positioned on the edge of the area or not;
if the current pixel point is located on the edge of the area, the current pixel point is located in the area;
judging whether the two adjacent sides of the region are on the two sides of the ray of the current pixel point when the ray of the current pixel point passes through the intersection points of the two adjacent sides of the region based on a cross point number discrimination method;
if the ray is positioned on the two sides of the ray of the current pixel point, calculating the intersection point number with the intersection point as one;
if the intersection points are not positioned on the two sides of the ray of the current pixel point, calculating the number of the intersection points with the intersection points as two;
and ignoring the condition that the ray of the current pixel point is parallel to any side of the region.
5. A hot spot area bitmap generation system is characterized by comprising:
the dot-matrix receiving module is used for receiving the dot-matrix;
the time recording module is used for recording the entering time and the leaving time of each target object in each area in the dot-matrix diagram by using a time recording file;
the frequency recording module is used for recording the dot-matrix diagram by using a frequency file, recording the file according to the time, and obtaining and recording the entering times of each area;
and the hot spot map generation module is used for correspondingly filling different colors into each region according to a preset filling rule by using the frequency file and the entering times of each region to generate a hot spot region dot map.
6. The hot spot area bitmap generation system of claim 5, further comprising:
and the duration data generating module is used for recording the stay time of each target object in each area in the dot-matrix diagram by using the time recording file, and generating the stay duration data of each area according to the stay time of each object in each area.
7. The hot spot area bitmap generation system according to claim 5 or 6, further comprising:
the picture acquisition module is used for acquiring a shot picture and converting the picture into an original bitmap;
the coordinate establishing module is used for establishing a coordinate system in the original bitmap and receiving the vertex coordinates of the region;
the boundary drawing module is used for sequentially connecting according to the vertex coordinates of the areas to obtain area boundaries;
the region judgment module is used for traversing the point coordinates of each pixel point in the original bitmap and judging whether each pixel point is in a region;
the region drawing module is used for filling the ID corresponding to the region to the pixel point to obtain the region if the region judging module judges that the pixel point is in the region;
the pixel marking module is used for filling a default value to the pixel point if the region judging module judges that the pixel point is not in the region;
and the dot matrix generating module is used for obtaining the dot matrix according to the filling result.
8. The system for generating a bitmap of a hotspot region of claim 7, wherein the region determination module comprises:
the edge judgment unit is used for judging whether the current pixel point is positioned on the edge of the area or not;
the judging unit is used for judging whether the current pixel point is positioned on the edge of the area or not by the edge judging unit, and if so, judging that the current pixel point is positioned in the area;
the intersection judging unit is used for judging whether the two adjacent sides of the area are on the two sides of the ray of the current pixel point when the ray of the current pixel point passes through the intersection of the two adjacent sides of the area based on an intersection point number judging method;
the first counting unit is used for counting the intersection point number of the intersection point as one if the intersection point judging unit judges that the two adjacent sides of the area are positioned at the two sides of the ray of the current pixel point;
the second counting unit is used for counting the number of intersection points with the intersection points as two if the intersection point judging unit judges that the two adjacent sides of the area are not positioned at the two sides of the ray of the current pixel point;
and the neglecting unit is used for neglecting the condition that the ray of the current pixel point is parallel to any side of the region.
9. A hot spot area dot-matrix diagram generation device is characterized by comprising:
a memory for storing a computer program;
a processor for executing the computer program to implement the hot spot area bitmap generation method of any one of claims 1 to 4.
10. A computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the hot spot area bitmap generation method according to any one of claims 1 to 4.
CN202111515456.8A 2021-12-13 2021-12-13 Method, system and device for generating dot-matrix map of hot spot area and storage medium Active CN113902831B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111515456.8A CN113902831B (en) 2021-12-13 2021-12-13 Method, system and device for generating dot-matrix map of hot spot area and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111515456.8A CN113902831B (en) 2021-12-13 2021-12-13 Method, system and device for generating dot-matrix map of hot spot area and storage medium

Publications (2)

Publication Number Publication Date
CN113902831A true CN113902831A (en) 2022-01-07
CN113902831B CN113902831B (en) 2022-04-26

Family

ID=79026327

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111515456.8A Active CN113902831B (en) 2021-12-13 2021-12-13 Method, system and device for generating dot-matrix map of hot spot area and storage medium

Country Status (1)

Country Link
CN (1) CN113902831B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104574437A (en) * 2013-10-29 2015-04-29 松下电器产业株式会社 Staying state analysis device, staying state analysis system and staying state analysis method
US9508143B2 (en) * 2014-01-02 2016-11-29 Samsung Electronics Co., Ltd. Apparatus and method for marking region of interest
CN109345431A (en) * 2018-09-29 2019-02-15 盐城优易数据有限公司 A kind of abnormal behaviour analysis system
CN111709659A (en) * 2020-06-23 2020-09-25 中国平安财产保险股份有限公司 Intelligent scheduling method, device, equipment and storage medium for outworker
CN113592320A (en) * 2021-06-16 2021-11-02 成都世纪光合作用科技有限公司 Dining intention identification method and device and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104574437A (en) * 2013-10-29 2015-04-29 松下电器产业株式会社 Staying state analysis device, staying state analysis system and staying state analysis method
US9508143B2 (en) * 2014-01-02 2016-11-29 Samsung Electronics Co., Ltd. Apparatus and method for marking region of interest
CN109345431A (en) * 2018-09-29 2019-02-15 盐城优易数据有限公司 A kind of abnormal behaviour analysis system
CN111709659A (en) * 2020-06-23 2020-09-25 中国平安财产保险股份有限公司 Intelligent scheduling method, device, equipment and storage medium for outworker
CN113592320A (en) * 2021-06-16 2021-11-02 成都世纪光合作用科技有限公司 Dining intention identification method and device and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
肖刚强等: "《计算机图形学理论与算法基础》", 29 February 2012, 辽宁科学技术出版社 *

Also Published As

Publication number Publication date
CN113902831B (en) 2022-04-26

Similar Documents

Publication Publication Date Title
US8611592B2 (en) Landmark identification using metadata
JP4810420B2 (en) Image processing apparatus, image processing method, server, control method therefor, program, and storage medium
CN105392178B (en) A kind of method and apparatus for being used to obtain the access information of WAP
CN107909668B (en) Sign-in method and terminal equipment
CN108712712B (en) Wireless fidelity WiFi network associated information display method and device
CN114926466B (en) Land integrated monitoring and decision-making method and platform based on big data
CN104182757A (en) Method of acquiring actual coverage area of measured target and device
CN109660936A (en) A kind of face and mobile device identification number mapping method, system and readable storage medium storing program for executing
CN113902831B (en) Method, system and device for generating dot-matrix map of hot spot area and storage medium
CN103870488A (en) File obtaining method and electronic device
CN107296611A (en) A kind of height measurement method and device based on intelligent terminal
US10878228B2 (en) Position estimation system
CN110967036B (en) Test method and device for navigation product
CN115409434B (en) Regional demographic method, system and storage medium based on signaling big data
CN108427935B (en) Street view comparison image generation method and device
CN115546195A (en) Litchi late autumn tip detection method based on improved YOLOV5 algorithm and processing terminal
CN113141433B (en) Method and device for testing screen sensitivity and processor
JP2005084012A (en) Skin shape measuring method and skin shape measuring device
US20110078180A1 (en) Information acquiring terminal apparatus, and method and recording medium storing an information acquisition
CN112990109A (en) Remote sensing image change pattern spot classification method, server, terminal and system
CN111615174B (en) Method for identifying wireless network, terminal device and computer readable storage medium
CN110958608B (en) Wireless network connection method, device, storage medium and computer equipment
CN111723681B (en) Indoor road network generation method and device, storage medium and electronic equipment
CN111859052B (en) Grading display method and system for field investigation result
CN109492171A (en) Information-pushing method and Related product

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant