Position recommendation method and device, electronic equipment and storage medium
By detecting the distance between e-cigarettes and the crowd and obtaining wind power values, and determining the recommended smoking range, the problem of e-cigarettes affecting others in public places is solved, providing a smoking position that will not affect others, and improving the user experience.
Patent Information
- Application Number
- CN202411392989.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-08
- Publication Date
- 2025-01-03
AI Technical Summary
In public places where smoking is allowed, the use of e-cigarettes may affect others, and the prior art is difficult to effectively avoid this impact.
By detecting the distance between the target e-cigarette and the population, obtaining wind power and wind direction, determining a recommended smoking range that will not affect others, and recommending the target recommended location to the user.
It achieves the effect of avoiding impact on others in public places where smoking is allowed, improves the experience of getting along with people, and helps users to smoke e-cigarettes reasonably in public places.
Smart Images

Figure CN119235058A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electronic cigarettes, and in particular to a location recommendation method, device, electronic device and storage medium. Background Art
[0002] Electronic cigarettes, also known as virtual cigarettes and electronic atomizers, have a similar appearance and taste to paper cigarettes. However, electronic cigarettes generally do not contain harmful ingredients such as tar and suspended particles in paper cigarettes, so they are often used as a substitute for paper cigarettes to quit smoking. Therefore, the use of electronic cigarettes is allowed in some public places, but smoking electronic cigarettes in public places will still affect others. In order to avoid affecting others, traditional methods often use range control methods, that is, when the electronic cigarette is detected to reach the specified range of the public place, the electronic cigarette is controlled to be turned off, but if it leaves the specified range, it can be used normally. So, for example, leaving the electronic fence of the bus stop, but standing close to the electronic fence to smoke, it may still affect other people waiting in the bus stop. Therefore, how to provide a location recommendation method to avoid the impact of smoking electronic cigarettes on other people in public places where smoking electronic cigarettes is allowed has become an urgent problem to be solved. Summary of the invention
[0003] The embodiment of the present invention provides a location recommendation method, which aims to solve the problem that smoking electronic cigarettes in public places where electronic cigarettes are allowed affects other people. Through the wind force value and wind direction, a recommended smoking range can be accurately determined, so that a target recommended location that will not affect others can be determined according to the wind force value, and the target recommended location can be recommended to the user, thereby avoiding the impact of smoking electronic cigarettes on other people in public places where electronic cigarettes are allowed.
[0004] In a first aspect, an embodiment of the present invention provides a location recommendation method, the method comprising the following steps:
[0005] When it is detected that the distance between the target electronic cigarette and the center point of the crowd reaches a preset threshold, the wind force value, wind direction and map information of the current environment are obtained;
[0006] Based on the wind force value and the wind direction, determining a recommended smoking range around the group of people;
[0007] Based on the map information, determining at least one recommended location in the recommended smoking range;
[0008] Based on the wind force value, determining a target recommended position in at least one of the recommended positions;
[0009] The target recommended position is recommended to a user of the target electronic cigarette.
[0010] Optionally, determining a recommended smoking range around the group of people based on the wind force value and the wind direction includes:
[0011] Taking the center point of the group of people as the origin of the coordinate system, and establishing an initial coordinate system based on the origin;
[0012] Mapping the wind force value and the wind direction to the initial coordinate system to obtain a target coordinate system;
[0013] In the target coordinate system, the recommended smoking range is determined.
[0014] Optionally, mapping the wind force value and the wind direction to the initial coordinate system to obtain a target coordinate system includes:
[0015] Based on the wind force value and the wind direction, determining an original wind direction value of the initial coordinate system;
[0016] The original wind direction value is decomposed in the initial coordinate system to obtain the transverse wind direction value corresponding to the transverse coordinate axis and the longitudinal wind direction value corresponding to the longitudinal coordinate axis in the initial coordinate system, and the target coordinate system is obtained after the decomposition is completed.
[0017] Optionally, determining the recommended smoking range in the target coordinate system includes:
[0018] When the lateral wind direction value is less than the longitudinal wind direction value, determining the recommended smoking range in the target coordinate system based on the longitudinal coordinate axis and the wind direction;
[0019] When the transverse wind direction value is greater than the longitudinal wind direction value, the recommended smoking range is determined in the target coordinate system based on the transverse coordinate axis and the wind direction.
[0020] Optionally, the map information includes shade information and open space information, and determining at least one recommended location in the recommended smoking range based on the map information includes:
[0021] Based on the vacant space information, determining at least one smoking position in the recommended smoking range;
[0022] At least one recommended position is determined in at least one smoking position based on the shade information.
[0023] Optionally, the determining a target recommended position from at least one of the recommended positions based on the wind force value includes:
[0024] Calculating the distance interval between each of the recommended positions and the center point of the position of the crowd;
[0025] Based on the distance interval, sorting each of the recommended positions to obtain a recommended position sorting table;
[0026] Based on the wind force value, the target recommended position is determined in the recommended position ranking table.
[0027] Optionally, the determining the target recommended position in the recommended position ranking table based on the wind force value includes:
[0028] When the wind force value is greater than a preset wind force threshold, extracting the recommended position with the smallest distance interval from the recommended position ranking table as the target recommended position;
[0029] When the wind force value is less than a preset wind force threshold, the recommended position with the largest distance interval is extracted from the recommended position ranking table as the target recommended position.
[0030] In a second aspect, an embodiment of the present invention further provides a location recommendation device, the location recommendation device comprising:
[0031] The first acquisition module is used to acquire the wind force value, wind direction and map information of the current environment when it is detected that the distance between the target electronic cigarette and the center point of the crowd reaches a preset threshold;
[0032] A first determination module, configured to determine a recommended smoking range around the group of people based on the wind force value and the wind direction;
[0033] A second determination module, configured to determine at least one recommended location in the recommended smoking range based on the map information;
[0034] A third determining module, configured to determine a target recommended position from at least one of the recommended positions based on the wind force value;
[0035] A first recommendation module, configured to determine a target recommended location from at least one of the recommended locations based on the wind force value;
[0036] In a third aspect, an embodiment of the present invention provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the location recommendation method provided in the embodiment of the present invention when executing the computer program.
[0037] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps in the location recommendation method provided in the embodiment of the invention are implemented.
[0038] In an embodiment of the present invention, when it is detected that the distance between the target electronic cigarette and the center point of the crowd reaches a preset threshold, the wind force value, wind direction and map information of the current environment are obtained; based on the wind force value and wind direction, the recommended smoking range around the crowd is determined; based on the map information, at least one recommended position is determined in the recommended smoking range; based on the wind force value, a target recommended position is determined in at least one recommended position; and the target recommended position is recommended to the user of the target electronic cigarette. Through the wind force value and wind direction, a recommended smoking range can be accurately determined, so that a target recommended position that will not affect others can be determined according to the wind force value, and the target recommended position is recommended to the user, thereby avoiding the impact of electronic cigarette smoking on other people in public places where electronic cigarette smoking is allowed. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0040] Figure 1 is a flow chart of a location recommendation method provided by an embodiment of the present invention;
[0041] Figure 2 is a schematic structural diagram of a target coordinate system provided by an embodiment of the present invention;
[0042] Figure 3 is a structural schematic diagram of a location recommendation device provided in an embodiment of the present invention;
[0043] Figure 4 It is a structural schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0044] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0045] like Figure 1 As shown, Figure 1 is a flow chart of a location recommendation method provided by an embodiment of the present invention, including:
[0046] 101. When it is detected that the distance between the target electronic cigarette and the center point of the crowd reaches a preset threshold, the wind force value, wind direction and map information of the current environment are obtained.
[0047] In an embodiment of the present invention, the location recommendation method can be applied to the target electronic cigarette, or can also be applied to an electronic cigarette management platform. The electronic cigarette management platform can be constructed by a server or a server cluster. The server or server cluster can be any electronic device with functions such as data processing, data transmission, and data storage. The target electronic cigarette can be an electronic cigarette with a processing chip and a data acquisition module. The processing chip can realize functions such as data processing, data storage, and data transmission, so as to obtain the map information. The data acquisition module can detect whether the distance reaches the distance threshold and obtain the wind force value and wind direction data.
[0048] The map information can be simply understood as a map, that is, it can include coordinate data, and each coordinate data can correspond to shade information and open space information. When the coordinate data corresponds to a place where there are obstacles (e.g., buildings, street lights, trash cans) or roads where people are not allowed to stay, the open space information can be non-open space. On the contrary, when there are no obstacles or roads where people are not allowed to stay, the open space information can be open space. The current environment can be understood as the environment of the area where the electronic cigarette and the crowd are located at the current moment.
[0049] Specifically, the above-mentioned data acquisition module may have functions such as wind force detection, wind direction detection and crowd detection, that is, the above-mentioned functions are integrated into one module in the form of different units, or the above-mentioned data acquisition module may be understood as being composed of three different sensors, namely, an ultrasonic wind force sensor, an ultrasonic wind direction sensor and an ultrasonic crowd detection sensor.
[0050] It should be noted that the ultrasonic wind sensor measures wind speed by using the principle that the speed of ultrasonic waves propagating in the air is affected by wind speed. It has the advantages of high precision, no mechanical wear, and can measure wind direction and wind speed, and is suitable for occasions with high measurement accuracy requirements. The ultrasonic wind direction sensor is similar to the ultrasonic wind sensor, which uses the propagation characteristics of ultrasonic waves in the air to measure wind direction. The wind direction can be determined by measuring the difference in the propagation time of ultrasonic waves in different directions.
[0051] In addition, the ultrasonic crowd detection sensor can use ultrasonic echoes to detect the existence and number of objects. Specifically, it can emit ultrasonic pulses and receive echoes reflected by objects, and calculate the time difference to determine the distance (i.e. the distance between the target electronic cigarette and the center point of the crowd) and the number of objects. When the number exceeds the number threshold, it is a crowd.
[0052] The preset distance threshold can be set according to the historical location recommendation method, or can be obtained through a limited number of tests, or can also be set according to the influence range recorded when the electronic cigarette is used, and can be specifically set according to the radius of the above-mentioned influence range. It can be understood that when the distance between the target electronic cigarette and the center point of the location of the crowd reaches the preset threshold, it means that the target electronic cigarette is already relatively close to the above-mentioned crowd. At this time, if the electronic cigarette is used, it will affect the above-mentioned crowd. Therefore, any one of the location recommendation methods provided in the embodiments of the present invention can be implemented to avoid affecting the above-mentioned crowd.
[0053] In a possible embodiment, the quantity threshold may be determined by the map information. Specifically, the map information may be used to determine the range of locations where more than one person is present. When the range is larger, the quantity threshold may be correspondingly larger. When the range is smaller, the quantity threshold may be correspondingly smaller. The location may be understood as a specific type of location, such as a bus station, a shopping mall, a park, a square, and the like.
[0054] 102. Based on the wind force value and wind direction, determine the recommended smoking range around the group of people.
[0055] In an embodiment of the present invention, the downwind range around the crowd can be determined in the map information based on the above wind direction. When the above wind force value is larger, the above downwind range is correspondingly reduced to obtain the above recommended smoking range. When the above wind force value is smaller, the above downwind range is correspondingly increased to obtain the above recommended smoking range.
[0056] It should be noted that when the above wind force value is larger, the impact on the above-mentioned crowd will become smaller due to the influence of wind force during the process of smoking electronic cigarettes, so the above-mentioned downwind outlet range can be reduced accordingly, so that the above-mentioned target electronic cigarette users can get as close to the above-mentioned crowd as possible (for example, the above-mentioned crowd is a scene such as a bus stop, and the target electronic cigarette user needs to go to the scene such as a bus stop, and wants to smoke electronic cigarettes. At this time, the wind force is strong, so he can get as close to the above-mentioned crowd as possible, or understand it as a bus stop to avoid missing the bus). On the contrary, when the above-mentioned wind force value is smaller, the wind force will have a smaller impact during the process of smoking electronic cigarettes, but the impact on the above-mentioned crowd will become larger, so the above-mentioned downwind outlet range can be increased accordingly, so that the above-mentioned target electronic cigarette users can avoid affecting the above-mentioned crowd as much as possible during the process of smoking electronic cigarettes. However, the correspondingly increased downwind outlet range requires setting a farthest boundary value, which can be set according to the actual needs of the user, for example, 100 meters, 150 meters, etc., to avoid the final recommended position being far away (for example, 1000 meters), causing the user to use the electronic cigarette and need to go 1000 meters away, thereby reducing the user experience.
[0057] 103. Based on the map information, determine at least one recommended location in the recommended smoking range.
[0058] In the embodiment of the present invention, the map information may include open space information and shade information corresponding to each open space information, and the open space information with shade information as shade can be determined in the recommended smoking range, and the open space corresponding to each open space information is determined as the recommended location.
[0059] Specifically, the above-mentioned open space information may include the center point coordinates of the open space and the open space range. Therefore, the recommended position corresponding to each open space with the shade information being shaded can be determined in the above-mentioned recommended smoking range through the center point coordinates and the above-mentioned open space range.
[0060] 104. Determine a target recommended location from at least one recommended location based on the wind force value.
[0061] In an embodiment of the present invention, the distance interval between each recommended position and the center point coordinates of the crowd can be determined in the above map information, and without considering the above wind force value, the recommended position with the smallest distance interval can be selected as the above target recommended position.
[0062] In the case of considering the above wind force value, the wind force value can be compared with the preset wind force threshold, and when the wind force value is greater than the wind force threshold, the recommended position with the smallest distance interval is selected as the above target recommended position. When the wind force value is greater than the wind force threshold, the recommended position with the largest distance interval is selected as the above target recommended position.
[0063] It should be noted that the above wind force thresholds can be set based on historical location recommendation experience, or obtained through a limited number of tests.
[0064] 105. Recommend the target recommended location to the target electronic cigarette user.
[0065] In an embodiment of the present invention, after determining the target recommended location, at least one road leading to the target recommended location can be screened out from the map information, and a corresponding navigation prompt can be constructed based on the road. After the construction is completed, if the user gives an instruction to smoke an electronic cigarette, the navigation prompt can be provided to the user to enable the user to go to the target recommended location to smoke an electronic cigarette, thereby avoiding affecting other people.
[0066] Specifically, the target electronic cigarette may also be equipped with a user interaction interface and an audio output sensor (or simply understood as a speaker, a sound playback device, etc.), and the navigation prompts may include graphic prompts, text prompts, and voice prompts, etc. The graphic prompts and text prompts may be delivered to the user interaction interface, and the voice prompts may be played through the audio output sensor.
[0067] In an embodiment of the present invention, when it is detected that the distance between the target electronic cigarette and the center point of the crowd reaches a preset threshold, the wind force value, wind direction and map information of the current environment are obtained; based on the wind force value and wind direction, the recommended smoking range around the crowd is determined; based on the map information, at least one recommended position is determined in the recommended smoking range; based on the wind force value, a target recommended position is determined in at least one recommended position; and the target recommended position is recommended to the user of the target electronic cigarette. Through the wind force value and wind direction, a recommended smoking range can be accurately determined, so that a target recommended position that will not affect others can be determined according to the wind force value, and the target recommended position is recommended to the user, thereby avoiding the impact of electronic cigarette smoking on other people in public places where electronic cigarette smoking is allowed.
[0068] It can be understood that in the specific implementation of this application, map information, wind force values, wind direction and related data related to crowd detection are involved. When the embodiments in this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data and the construction, training and use of related models need to comply with relevant laws, regulations and standards of relevant countries and regions.
[0069] It should be noted that the location recommendation method provided in the embodiment of the present invention can be applied to devices such as computers and servers that can perform location recommendation.
[0070] Optionally, in the step of determining the recommended smoking range around the crowd based on the wind force value and wind direction, the center point of the crowd can be used as the origin of the coordinate system, and an initial coordinate system can be established based on the origin; the wind force value and wind direction can be mapped to the initial coordinate system to obtain a target coordinate system; and in the target coordinate system, the recommended smoking range can be determined.
[0071] In the embodiment of the present invention, the location where the crowd is located can be any public place where electronic cigarettes can be smoked, for example, a bus station, a shopping mall, a park, a square, etc. where electronic cigarettes can be smoked. Therefore, the center point of the location where the crowd is located can be the center point of the bus station, the center point of the shopping mall, the center point of the park, the center point of the square, etc.
[0072] Taking the above-mentioned center point as the origin (i.e., the origin 0,0 of the coordinate system), the above-mentioned initial coordinate system is established, and the above-mentioned wind direction is used as the mapping direction (i.e., the angle between the X-axis and the Y-axis), and the above-mentioned wind force is used as the mapping length (i.e., the length extended at the origin according to the mapping direction). After the mapping is completed, the above-mentioned target coordinate system can be obtained, and then the recommended smoking range can be determined in the above-mentioned target coordinate system.
[0073] Specifically, according to known information, the coordinate system usually includes a horizontal coordinate axis (i.e., the x-axis) and a vertical coordinate axis (i.e., the y-axis). After taking the above-mentioned center point as the origin, the horizontal coordinate axis and the vertical coordinate axis need to be divided according to the above-mentioned origin. The above-mentioned horizontal coordinate axis and the vertical coordinate axis can be divided by longitude and latitude. Specifically, the above-mentioned horizontal coordinate axis can be formed according to the longitude and latitude of the above-mentioned center point, with the latitude unchanged and the longitude offset. At the same time, the longitude remains unchanged and the latitude is offset to form the above-mentioned vertical coordinate axis. Alternatively, a line can be connected between the above-mentioned center point and the above-mentioned target electronic cigarette, and the above-mentioned line can be used as the above-mentioned horizontal coordinate axis. At the same time, at the above-mentioned center point, a line perpendicular to the above-mentioned horizontal coordinate axis is determined as the above-mentioned vertical coordinate axis. Alternatively, when the above-mentioned center point is a bus stop, the road in front of the above-mentioned bus stop can also be used as the above-mentioned horizontal coordinate axis, and at the above-mentioned center point, a line perpendicular to the above-mentioned horizontal coordinate axis is determined as the above-mentioned vertical coordinate axis.
[0074] Optionally, in the step of mapping the wind force value and wind direction to the initial coordinate system to obtain the target coordinate system, the original wind direction value of the initial coordinate system can also be determined based on the wind force value and wind direction; the original wind direction value is decomposed in the initial coordinate system to obtain the horizontal wind direction value corresponding to the horizontal coordinate axis and the vertical wind direction value corresponding to the vertical coordinate axis in the initial coordinate system, and the target coordinate system is obtained after the decomposition is completed.
[0075] In the embodiment of the present invention, the target coordinate system can be specifically Figure 2The schematic diagram of the target coordinate system shown in the figure further illustrates. Specifically, the schematic diagram of the target coordinate system includes a bus stop (i.e., the center point of the bus stop, or understood as the center point of the crowd), an X-axis (i.e., a horizontal coordinate axis), a Y-axis (i.e., a vertical coordinate axis), an X wind direction value (i.e., a horizontal wind direction value), a Y wind direction value (i.e., a vertical wind direction value), and a schematic range of the recommended range. At the same time, the extension line between the X-axis and the Y-axis is an image example of the original wind direction value.
[0076] It should be noted that the above target coordinate system can be Figure 2 The coordinate system shown includes four quadrants (i.e., the first quadrant, the second quadrant, the third quadrant, and the fourth quadrant), or may be a coordinate system including only quadrants related to wind direction values. For example, if Figure 2 For example, only the coordinate system of the first quadrant may be included.
[0077] Optionally, in the step of determining the recommended smoking range in the target coordinate system, when the lateral wind direction value is less than the longitudinal wind direction value, the recommended smoking range can be determined in the target coordinate system based on the longitudinal coordinate axis and the wind direction; when the lateral wind direction value is greater than the longitudinal wind direction value, the recommended smoking range can be determined in the target coordinate system based on the transverse coordinate axis and the wind direction.
[0078] In the embodiment of the present invention, Figure 2 The schematic diagram of the target coordinate system shown further illustrates the above-mentioned recommended smoking range (i.e. Figure 2 The X wind direction value (i.e., the horizontal wind direction value) and the Y wind direction value (i.e., the vertical wind direction value) can be compared, and the recommended smoking range of the smoking point can be determined according to the comparison result. Specifically, when the comparison result is that the X wind direction value is less than the Y wind direction value, the recommended smoking range is determined in the range between the Y axis and the wind direction; when the comparison result is that the X wind direction value is greater than the Y wind direction value, the recommended smoking range is determined in the range between the X axis and the wind direction.
[0079] And in Figure 2 It can be clearly seen that the X wind direction value is greater than the Y wind direction value, so the recommended smoking range is between the X axis and the wind direction.
[0080] It should be noted that the above-mentioned recommended smoking range corresponds to a farthest boundary value, and the above-mentioned farthest boundary value can be set according to actual needs, for example, 100 meters, 200 meters, etc. By setting the farthest boundary value, it can avoid the recommended smoking range being too large, resulting in a farther target recommended position (for example, a target recommended position 1000 meters away), thereby avoiding reducing the user experience.
[0081] Optionally, in the step of determining at least one recommended location in the recommended smoking range based on the map information, at least one smoking location can be determined in the recommended smoking range based on open space information; and at least one recommended location can be determined in at least one smoking location based on shade information.
[0082] In an embodiment of the present invention, the map information includes shade information and open space information. Specifically, the map information may include coordinate data, and each coordinate data corresponds to the above-mentioned shade information and open space information. The above-mentioned shade information can be acquired by an image acquisition device deployed at the location of the above-mentioned crowd, and image recognition is performed through the above-mentioned image to determine whether the shade information corresponding to the above-mentioned coordinate data is specifically shaded or non-shaded, and whether the above-mentioned hollow information is specifically an open space or a non-open space. Alternatively, the above-mentioned open space information and the above-mentioned shade information can be obtained by manual statistics. It should be noted that if it is manual statistics, it has historical attributes, and therefore, the shade information at different times can be counted. For example, in the morning, a certain coordinate will be illuminated by the sun, and it can be non-shaded at this time, and at noon, the above-mentioned certain coordinate will not be illuminated by the sun, and it can be shaded at this time.
[0083] Specifically, based on the above open space information, each open space in the above recommended range can be used as the above smoking position. Based on the above shade information, the non-shaded smoking positions are eliminated, and only the shaded smoking positions are used as the above recommended positions.
[0084] More specifically, the basis for determining the recommended location may also include seasonal climate. For example, in the hot summer, users tend to prefer to use electronic cigarettes in a cool place, so the non-shaded smoking locations can be eliminated, and only the cool smoking locations can be used as the recommended locations. Alternatively, in the cold winter, users tend to prefer to use electronic cigarettes in a sunny place, so the cool smoking locations can be eliminated, and only the non-shaded smoking locations can be used as the recommended locations.
[0085] In a possible embodiment, if the above-mentioned smoking location does not exist within the above-mentioned recommended range (for example, there is no open space, or there is no shady open space in summer, and there is no non-shaded open space in winter), the corresponding information can be directly pushed to the user (i.e., the user is prompted that there is no suitable recommended location). At the same time as the information is pushed, the above-mentioned electronic cigarette can also be powered off.
[0086] In a possible embodiment, if there is no open space with shade information indicating that the recommended smoking range is cool in the above-mentioned wind direction, horizontal coordinate axis, vertical coordinate axis, horizontal wind direction value, and vertical wind direction value, the above-mentioned coordinate system can be decomposed to directly use the quadrant where the wind direction is located as the recommended smoking range. Figure 2 In the target coordinate system in , the first quadrant can be directly used as the recommended smoking range mentioned above.
[0087] Optionally, in the step of determining a target recommended location in at least one recommended location based on the wind force value, the distance interval between each recommended location and the center point of the crowd can also be calculated; based on the distance interval, each recommended location is sorted to obtain a recommended location sorting table; based on the wind force value, the target recommended location is determined in the recommended location sorting table.
[0088] In an embodiment of the present invention, the measurement unit of the above distance interval may be any measurement unit, and generally, may be a unit such as meter, decimeter, centimeter, etc. Specifically, the above measurement unit may be determined according to the type of location where the above crowd is located. For example, when the type of location where the crowd is located is a bus stop, since the bus stop is not large, centimeters may be used as the measurement unit to improve the accuracy of location recommendation. When the type of location where the crowd is located is a large shopping mall, since the large shopping mall is large in scope, meters may be used as the measurement unit to improve the efficiency of location recommendation. Alternatively, when computing resources are sufficient, centimeters may be used as the measurement unit.
[0089] Specifically, after calculating the above distance interval, each recommended position can be sorted. The sorting can be in the order of distance interval from large to small, or from small to large, which is not limited here. All recommended positions are added one by one to the preset empty table in the above order. After adding, the above recommended position sorting table can be obtained.
[0090] After obtaining the above-mentioned recommended position ranking table, the target recommended position can be determined in the recommended position ranking table according to the above-mentioned wind force value. It can be understood that since the above-mentioned recommended position ranking table is obtained according to the above-mentioned distance interval sorting, when it is necessary to extract the recommended positions with larger distance intervals or smaller distance intervals, it can be quickly determined, thereby further improving the recommendation efficiency of the above-mentioned position recommendation.
[0091] Optionally, in the step of determining the target recommended position in the recommended position sorting table based on the wind force value, when the wind force value is greater than a preset wind force threshold, the recommended position with the smallest distance interval is extracted from the recommended position sorting table as the target recommended position; when the wind force value is less than the preset wind force threshold, the recommended position with the largest distance interval is extracted from the recommended position sorting table as the target recommended position.
[0092] In the embodiment of the present invention, the above-mentioned preset wind force threshold can be set according to the historical position recommendation experience, or can be obtained through a limited number of tests. It should be noted that if the wind force value is very large, even if the smoking user's station is very close to the location of the crowd (for example, the bus stop), it will not have much impact on the crowd (for example, the waiting personnel in the bus stop). On the contrary, if the wind force value is small, it is recommended that the smoking user's station be farther away from the location of the crowd (for example, the bus stop), so as to avoid the crowd (for example, the waiting personnel in the bus stop) from inhaling secondhand smoke as much as possible.
[0093] Specifically, since the recommended smoking range is set with a farthest boundary value, the recommended position with the largest distance interval in the recommended position sorting table will not exceed the distance of the farthest boundary value, which can effectively ensure that people are not affected by smoking while maximizing the user experience of the target e-cigarette users.
[0094] It should be noted that, by implementing the location recommendation method provided in the embodiment of the present invention, when the user is in a public place where electronic cigarettes can be smoked and needs to smoke, a more comfortable target recommended location can be provided for the user to avoid affecting other people, which can well enhance the experience of getting along with others. At the same time, when the user needs to smoke electronic cigarettes, providing a target recommended location where electronic cigarettes can be smoked can help the user to smoke electronic cigarettes in moderation, so as to achieve the purpose of quitting smoking in stages (i.e. gradually reducing the number of times electronic cigarettes are smoked, rather than blindly prohibiting smoking, resulting in the opposite effect of quitting smoking).
[0095] like Figure 3 As shown, an embodiment of the present invention further provides a location recommendation device, including:
[0096] The first acquisition module 301 is used to acquire the wind force value, wind direction and map information of the current environment when it is detected that the distance between the target electronic cigarette and the center point of the crowd reaches a preset threshold; the first determination module 302 is used to determine the recommended smoking range around the crowd based on the wind force value and the wind direction;
[0097] A second determination module 303, configured to determine at least one recommended location in the recommended smoking range based on the map information;
[0098] A third determining module 304 is configured to determine a target recommended location from at least one of the recommended locations based on the wind force value;
[0099] The first recommendation module 305 is used to recommend the target recommended location to the user of the target electronic cigarette.
[0100] Optionally, the first determining module 302 includes:
[0101] Establishing a submodule, for taking the center point of the position of the crowd as the origin of the coordinate system, and establishing an initial coordinate system based on the origin;
[0102] A mapping submodule, used for mapping the wind force value and the wind direction to the initial coordinate system to obtain a target coordinate system;
[0103] The first determination submodule is used to determine the recommended smoking range in the target coordinate system.
[0104] Optionally, the mapping submodule includes:
[0105] A first determining unit, configured to determine an original wind direction value of the initial coordinate system based on the wind force value and the wind direction;
[0106] The first marking unit is used to decompose the original wind direction value in the initial coordinate system to obtain the lateral wind direction value corresponding to the lateral coordinate axis and the longitudinal wind direction value corresponding to the longitudinal coordinate axis in the initial coordinate system, and obtain the target coordinate system after the decomposition is completed.
[0107] Optionally, the first determining submodule includes:
[0108] a second determining unit, configured to determine the recommended smoking range in the target coordinate system based on the longitudinal coordinate axis and the wind direction when the transverse wind direction value is less than the longitudinal wind direction value;
[0109] The third determining unit is configured to determine the recommended smoking range in the target coordinate system based on the transverse coordinate axis and the wind direction when the transverse wind direction value is greater than the longitudinal wind direction value.
[0110] Optionally, the second determining module 303 includes:
[0111] A second determining submodule, configured to determine at least one smoking position in the recommended smoking range based on the open space information;
[0112] The third determination submodule is used to determine at least one of the recommended positions in at least one of the smoking positions based on the shade information.
[0113] Optionally, the third determining module 304 includes:
[0114] A calculation submodule, used for calculating the distance interval between each of the recommended positions and the center point of the position of the crowd;
[0115] A sorting submodule, used for sorting each of the recommended positions based on the distance interval to obtain a recommended position sorting table;
[0116] The fourth determination submodule is configured to determine the target recommended position in the recommended position ranking table based on the wind force value.
[0117] Optionally, the fourth determining submodule includes:
[0118] A first extraction unit, configured to extract, when the wind force value is greater than a preset wind force threshold, the recommended position with the smallest distance interval in the recommended position ranking table as the target recommended position;
[0119] The second extraction unit is configured to extract, when the wind force value is less than a preset wind force threshold, the recommended position with the largest distance interval in the recommended position ranking table as the target recommended position.
[0120] like Figure 4 As shown, an embodiment of the present invention further provides an electronic device, characterized in that it includes a processor, and the processor can execute any one of the above-mentioned location recommendation methods.
[0121] Specifically, it includes a processor 401 and a memory 402, and a computer program for executing a location recommendation method stored in the memory 402 and capable of running on the processor 401, wherein:
[0122] The processor 401 runs the computer program of the location recommendation method stored in the memory 402 to perform the following steps:
[0123] When it is detected that the distance between the target electronic cigarette and the center point of the crowd reaches a preset threshold, the wind force value, wind direction and map information of the current environment are obtained;
[0124] Based on the wind force value and the wind direction, determining a recommended smoking range around the group of people;
[0125] Based on the map information, determining at least one recommended location in the recommended smoking range;
[0126] Based on the wind force value, determining a target recommended position in at least one of the recommended positions;
[0127] The target recommended position is recommended to a user of the target electronic cigarette.
[0128] Optionally, the determining of the recommended smoking range around the group of people based on the wind force value and the wind direction performed by the processor 401 includes:
[0129] Taking the center point of the group of people as the origin of the coordinate system, and establishing an initial coordinate system based on the origin;
[0130] Mapping the wind force value and the wind direction to the initial coordinate system to obtain a target coordinate system;
[0131] In the target coordinate system, the recommended smoking range is determined.
[0132] Optionally, the mapping of the wind force value and the wind direction to the initial coordinate system to obtain a target coordinate system performed by the processor 401 includes:
[0133] Based on the wind force value and the wind direction, determining an original wind direction value of the initial coordinate system;
[0134] The original wind direction value is decomposed in the initial coordinate system to obtain the transverse wind direction value corresponding to the transverse coordinate axis and the longitudinal wind direction value corresponding to the longitudinal coordinate axis in the initial coordinate system, and the target coordinate system is obtained after the decomposition is completed.
[0135] Optionally, the determining of the recommended smoking range in the target coordinate system performed by the processor 401 includes:
[0136] When the lateral wind direction value is less than the longitudinal wind direction value, determining the recommended smoking range in the target coordinate system based on the longitudinal coordinate axis and the wind direction;
[0137] When the transverse wind direction value is greater than the longitudinal wind direction value, the recommended smoking range is determined in the target coordinate system based on the transverse coordinate axis and the wind direction.
[0138] Optionally, the map information includes shade information and open space information, and the processor 401 determines at least one recommended location in the recommended smoking range based on the map information, including:
[0139] Based on the vacant space information, determining at least one smoking position in the recommended smoking range;
[0140] At least one recommended position is determined in at least one smoking position based on the shade information.
[0141] Optionally, the determining of a target recommended position from at least one of the recommended positions based on the wind force value performed by the processor 401 includes:
[0142] Calculating the distance interval between each of the recommended positions and the center point of the position of the crowd;
[0143] Based on the distance interval, sorting each of the recommended positions to obtain a recommended position sorting table;
[0144] Based on the wind force value, the target recommended position is determined in the recommended position ranking table.
[0145] Optionally, the determining, based on the wind force value, in the recommended position ranking table performed by the processor 401 includes:
[0146] When the wind force value is greater than a preset wind force threshold, extracting the recommended position with the smallest distance interval from the recommended position ranking table as the target recommended position;
[0147] When the wind force value is less than a preset wind force threshold, the recommended position with the largest distance interval is extracted from the recommended position ranking table as the target recommended position.
[0148] An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the various processes of the location recommendation method or the application-side location recommendation method provided in the embodiment of the present invention are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0149] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the above-mentioned computer program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the above-mentioned computer-readable storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0150] The above disclosure is only the preferred embodiment of the present invention, which certainly cannot be used to limit the scope of the present invention. Therefore, equivalent changes made according to the claims of the present invention are still within the scope of the present invention.
Claims
1. A location recommendation method, characterized in that: The method comprises the following steps: When it is detected that the distance between the target electronic cigarette and the center point of the crowd reaches a preset threshold, the wind force value, wind direction and map information of the current environment are obtained; Based on the wind force value and the wind direction, determining a recommended smoking range around the group of people; Based on the map information, determining at least one recommended location in the recommended smoking range; Based on the wind force value, determining a target recommended position in at least one of the recommended positions; The target recommended position is recommended to a user of the target electronic cigarette.
2. The location recommendation method according to claim 1, characterized in that: The determining the recommended smoking range around the group of people based on the wind force value and the wind direction includes: Taking the center point of the group of people as the origin of the coordinate system, and establishing an initial coordinate system based on the origin; Mapping the wind force value and the wind direction to the initial coordinate system to obtain a target coordinate system; In the target coordinate system, the recommended smoking range is determined.
3. The location recommendation method according to claim 2, wherein: Mapping the wind force value and the wind direction to the initial coordinate system to obtain a target coordinate system includes: Based on the wind force value and the wind direction, determining an original wind direction value of the initial coordinate system; The original wind direction value is decomposed in the initial coordinate system to obtain the transverse wind direction value corresponding to the transverse coordinate axis and the longitudinal wind direction value corresponding to the longitudinal coordinate axis in the initial coordinate system, and the target coordinate system is obtained after the decomposition is completed.
4. The location recommendation method according to claim 3, characterized in that: Determining the recommended smoking range in the target coordinate system includes: When the lateral wind direction value is less than the longitudinal wind direction value, determining the recommended smoking range in the target coordinate system based on the longitudinal coordinate axis and the wind direction; When the transverse wind direction value is greater than the longitudinal wind direction value, the recommended smoking range is determined in the target coordinate system based on the transverse coordinate axis and the wind direction.
5. The location recommendation method according to claim 1, wherein: The map information includes shade information and open space information, and determining at least one recommended location in the recommended smoking range based on the map information includes: Based on the vacant space information, determining at least one smoking position in the recommended smoking range; At least one recommended position is determined in at least one smoking position based on the shade information.
6. The location recommendation method according to claim 1, wherein: The step of determining a target recommended position from at least one of the recommended positions based on the wind force value comprises: Calculating the distance interval between each of the recommended positions and the center point of the position of the crowd; Based on the distance interval, sorting each of the recommended positions to obtain a recommended position sorting table; Based on the wind force value, the target recommended position is determined in the recommended position ranking table.
7. The location recommendation method according to claim 6, characterized in that: The determining the target recommended position in the recommended position ranking table based on the wind force value includes: When the wind force value is greater than a preset wind force threshold, extracting the recommended position with the smallest distance interval from the recommended position ranking table as the target recommended position; When the wind force value is less than a preset wind force threshold, the recommended position with the largest distance interval is extracted from the recommended position ranking table as the target recommended position.
8. A location recommendation device, characterized in that: The location recommendation device comprises: The first acquisition module is used to acquire the wind force value, wind direction and map information of the current environment when it is detected that the distance between the target electronic cigarette and the center point of the crowd reaches a preset threshold; A first determination module, configured to determine a recommended smoking range around the group of people based on the wind force value and the wind direction; A second determination module, configured to determine at least one recommended location in the recommended smoking range based on the map information; A third determining module, configured to determine a target recommended location from at least one of the recommended locations based on the wind force value; The first recommendation module is used to recommend the target recommendation location to the user of the target electronic cigarette.
9. An electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps in the location recommendation method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the location recommendation method according to any one of claims 1 to 7 are implemented.
