Tourist number statistical method and device, electronic equipment and storage medium
By obtaining the active location of devices from high-daily-active applications and combining coefficients of device penetration rate and staff number, the number of tourists is corrected, which solves the shortcomings of the statistical methods for free scenic spots and cameras, and achieves higher statistical accuracy and applicability.
Patent Information
- Application Number
- CN202510727339.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-30
- Publication Date
- 2025-10-31
AI Technical Summary
Existing methods for counting the number of tourists are poorly applicable to free-admission scenic spots, and methods based on image data collected by cameras have low accuracy and cannot accurately count the number of tourists.
By obtaining the active locations of devices using high-daily-active applications and combining coefficients of device penetration rate and staff number, the number of tourists is corrected. Preliminary statistics are made using internet data and then corrected to improve the accuracy of the statistics.
It improves the applicability and accuracy of tourist number statistics methods, enabling more accurate counting of tourists within scenic areas and reducing the impact of equipment availability and staff numbers.
Smart Images

Figure CN120876166A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a method, apparatus, electronic device, and storage medium for counting the number of tourists. Background Technology
[0002] With the development of the economy and tourism industry, more and more people are choosing to travel, leading to overcrowding at popular scenic spots across the country. Currently, the number of visitors is typically counted based on ticket sales data and images of tourists captured by cameras at the entrance. However, the ticket-based method is not suitable for free-admission scenic spots, exhibiting poor applicability. The camera-based method is easily limited by environmental factors and recognition technology, resulting in low accuracy. Therefore, there is an urgent need for a more versatile and accurate method for counting visitors. Summary of the Invention
[0003] This application provides a method, apparatus, electronic device, and storage medium for counting tourist numbers, which can improve the applicability and accuracy of tourist number counting methods. The technical solution is as follows:
[0004] On the one hand, a method for counting the number of tourists is provided, the method comprising:
[0005] Obtain the active device location reported by at least one target application, wherein the target application is an application with a daily active user count greater than a first threshold, the active device location is the geographical location of the active device, and the active device is the device used by the active user of the at least one target application;
[0006] Based on the geographical location of the first scenic area and the active device location reported by the at least one target application, a first quantity is determined, wherein the first quantity is the number of devices whose active device location is located in the first scenic area;
[0007] Based on the first coefficient and the second coefficient, the first quantity is corrected to obtain the second quantity. The first coefficient is used to represent the equipment penetration rate of the first scenic area, the second coefficient is used to represent the number of staff in the first scenic area, and the second quantity is the number of tourists in the first scenic area.
[0008] On the other hand, a device for counting the number of tourists is provided, the device comprising:
[0009] The first acquisition module is used to acquire the device active location reported by at least one target application. The target application is an application whose number of daily active users is greater than a first number threshold. The device active location is the geographical location of the active device. The active device is the device used by the active user of the at least one target application.
[0010] The first determining module is used to determine a first quantity based on the geographical location of the first scenic area and the active device location reported by the at least one target application, wherein the first quantity is the number of devices whose active device location is located in the first scenic area.
[0011] The correction module is used to correct the first quantity based on a first coefficient and a second coefficient to obtain a second quantity. The first coefficient is used to represent the equipment penetration rate of the first scenic area, the second coefficient is used to represent the number of staff in the first scenic area, and the second quantity is the number of tourists in the first scenic area.
[0012] In some embodiments, the correction module is used to correct the first quantity based on the first coefficient to obtain a third quantity, the third quantity being used to reflect the total number of people in the first scenic area; and to correct the third quantity based on the second coefficient to obtain a second quantity.
[0013] In some embodiments, the apparatus further includes:
[0014] The second acquisition module is used to acquire historical ticket data of the first scenic spot and historical device active locations reported by the at least one target application when the first scenic spot is a paid scenic spot. The historical ticket data is used to reflect the number of tickets sold by the first scenic spot in a historical period. The historical device active locations are the geographical locations of the historical active devices. The historical active devices are the devices used by active users of the at least one target application in a historical period.
[0015] The second determining module is used to determine the historical equipment penetration rate of the first scenic area based on the historical ticket data and the active locations of the historical equipment.
[0016] In some embodiments, the second determining module is configured to determine the historical number of visitors to the first scenic area based on the historical ticket data; determine the historical number of active devices in the first scenic area based on the geographical location of the first scenic area and the historical active device location, wherein the historical active device number is the number of devices whose historical active location is located in the first scenic area; and determine the historical device penetration rate based on the historical number of visitors and the historical active device number.
[0017] In some embodiments, the apparatus further includes:
[0018] The third determining module is used to determine at least one second scenic area when the first scenic area is a free scenic area, wherein the second scenic area is a paid scenic area belonging to the same scenic area type as the first scenic area.
[0019] The second acquisition module is further configured to acquire historical ticket data of the at least one second scenic spot and historical device active locations reported by the at least one target application. The historical ticket data is used to reflect the number of tickets sold by the at least one second scenic spot in a historical period. The historical device active locations are the geographical locations of the historical active devices. The historical active devices are the devices used by the active users of the at least one target application in a historical period.
[0020] The second determining module is further configured to determine the first coefficient based on the historical ticket data and the historical device active location.
[0021] In some embodiments, the second determining module is further configured to, for any second scenic area, determine the historical number of visitors to the second scenic area based on the historical ticket data of the second scenic area; determine the historical number of active devices in the second scenic area based on the geographical location of the second scenic area and the historical active device location, wherein the historical active device number is the number of devices whose historical active device location is located in the second scenic area; determine the historical device penetration rate of the second scenic area based on the historical number of visitors and the historical active device number; and average the historical device penetration rates of the at least one second scenic area to obtain the first coefficient.
[0022] In some embodiments, the apparatus further includes:
[0023] The second acquisition module is further configured to acquire the historical device active location reported by the at least one target application, wherein the historical device active location is the geographical location of the historical active device, and the historical active device is the device used by the active users of the at least one target application within a historical time period;
[0024] The fourth determining module is used to determine, based on the geographical location of the first scenic area and the historical active locations of the devices, the historical active device identifiers corresponding to the first scenic area at multiple historical times, wherein the historical active device identifiers are the identifiers of the historical active devices; based on the historical active device identifiers corresponding to the multiple historical times, determine the repeating active device identifiers of the first scenic area, wherein the repeating active device identifiers are the historical active device identifiers whose occurrence frequency is greater than a frequency threshold; and determine the number of repeating active devices corresponding to the repeating active device identifiers as the number of staff in the first scenic area.
[0025] In some embodiments, the apparatus further includes:
[0026] The sending module is configured to, when the second quantity is greater than a second quantity threshold, determine a target area based on the location distribution of the active locations of the devices within the first scenic area. The target area is an area within the first scenic area where the distribution density of active locations of devices is greater than a density threshold. Based on the geographical location of the target area, the module sends a first prompt message to devices used by staff in the first scenic area and / or sends a second prompt message to devices used by tourists located near the target area. The first prompt message is used to inform the staff that there are a large number of tourists in the first scenic area and that it is necessary to manage the flow of tourists within the target area. The second prompt message is used to inform the tourists that there are a large number of tourists in the target area and that queuing may be necessary, suggesting that they visit other areas of the first scenic area.
[0027] On the other hand, an electronic device is provided, comprising a processor and a memory, the memory being used to store at least one computer program, which is loaded and executed by the processor to implement the tourist number counting method in the embodiments of this application.
[0028] On the other hand, a computer-readable storage medium is provided, wherein at least one computer program is stored in the computer-readable storage medium, the at least one computer program being loaded and executed by a processor to implement the tourist number counting method as described in the embodiments of this application.
[0029] On the other hand, a computer program product is provided, including a computer program that is executed by a processor to implement the tourist number counting method in the embodiments of this application.
[0030] This application provides a method for counting the number of tourists. By determining the number of devices used by active users of at least one high-daily-active application whose geographical locations are within a first scenic area, a preliminary count of the number of tourists in the first scenic area can be made. Furthermore, using internet data as the source improves the applicability of the tourist counting method. Considering that smart devices are not yet fully widespread and that some staff members in the first scenic area may also be active users, the preliminary tourist count is corrected based on a first coefficient representing the device penetration rate of the first scenic area and a second coefficient representing the number of staff members in the first scenic area. This allows for a more accurate count of the number of tourists in the first scenic area, improving the accuracy of the tourist counting method. Attached Figure Description
[0031] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0032] Figure 1 This is a schematic diagram illustrating the implementation environment of a method for counting the number of tourists provided in an embodiment of this application;
[0033] Figure 2 This is a flowchart illustrating a method for counting the number of tourists according to an embodiment of this application;
[0034] Figure 3 This is a flowchart of another method for counting the number of tourists provided according to an embodiment of this application;
[0035] Figure 4 This is a block diagram of a tourist number counting device provided according to an embodiment of this application;
[0036] Figure 5 This is a block diagram of another tourist number counting device provided according to an embodiment of this application;
[0037] Figure 6 This is a structural block diagram of a terminal provided according to an embodiment of this application;
[0038] Figure 7 This is a schematic diagram of the structure of a server according to an embodiment of this application. Detailed Implementation
[0039] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.
[0040] In this application, the terms "first," "second," etc., are used to distinguish identical or similar items with essentially the same function. It should be understood that there is no logical or temporal dependency between "first," "second," and "nth," nor are there any restrictions on quantity or execution order.
[0041] In this application, the term "at least one" means one or more, and "multiple" means two or more.
[0042] It should be noted that all information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.), and signals involved in this application have been authorized by the user or fully authorized by all parties, and the collection, use, and processing of related data must comply with the relevant laws, regulations, and standards of the relevant countries and regions. For example, the device active location and historical ticket data involved in this application were obtained with full authorization.
[0043] Figure 1 This is a schematic diagram illustrating the implementation environment of a tourist quantity counting method provided in an embodiment of this application. See also: Figure 1 The implementation environment includes terminal 101 and server 102. Terminal 101 and server 102 can be connected directly or indirectly via wired or wireless communication, which is not limited herein.
[0044] In some embodiments, terminal 101 can be various types of terminals such as mobile phones, desktop computers, laptops, tablets, and smartwatches. An application can be installed on terminal 101 to view the number of tourists in the scenic area. For example, terminal 101 is a device used by staff within the scenic area. Server 102 provides background services for the application on terminal 101.
[0045] In some embodiments, server 102 can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms.
[0046] In some embodiments, server 102 undertakes the main computing work and terminal 101 undertakes the secondary computing work; or, server 102 undertakes the secondary computing work and terminal 101 undertakes the main computing work; or, server 102 and terminal 101 collaborate on computing using a distributed computing architecture.
[0047] In this embodiment, server 102 uses the method provided in this embodiment to count the number of tourists in the scenic area. Terminal 101 can obtain the number of tourists from server 102 and display it.
[0048] Figure 2 This is a flowchart illustrating a method for counting tourist numbers according to an embodiment of this application. This method is executed by a server. See [link to flowchart]. Figure 2The method includes the following steps:
[0049] 201. Obtain the active device location reported by at least one target application, wherein the target application is an application whose number of daily active users is greater than a first number threshold, the active device location is the geographical location of the active device, and the active device is the device used by the active user of at least one target application.
[0050] In this embodiment, the target application is an application with a daily active user count greater than a first threshold, i.e., a high daily active user (DAU) app. An active user is a user who opens the target application, the device used by an active user is an active device, and the geographical location of the active device is the device's active location. Since the application reports relevant information based on its geographical location during operation when a user opens the application, the server can obtain the geographical location of the user's device reported by the target application when the user opens the target application; that is, the server can obtain at least one device's active location reported by the target application.
[0051] 202. Based on the geographical location of the first scenic area and the active device location reported by at least one target application, determine a first quantity, which is the number of devices whose active device location is located in the first scenic area.
[0052] In this embodiment, since the active device location is the geographical location of the device used by at least one active user of the target application, that is, the active device location can reflect the geographical location of the active user, the server can determine the number of active devices located in the first scenic area, i.e., the first number, based on the geographical location of the first scenic area and the active device locations reported by at least one target application. The first number reflects the number of active users located in the first scenic area, i.e., the number of tourists in the first scenic area.
[0053] 203. Based on the first coefficient and the second coefficient, the first quantity is corrected to obtain the second quantity. The first coefficient is used to represent the equipment penetration rate of the first scenic area, the second coefficient is used to represent the number of staff in the first scenic area, and the second quantity is the number of tourists in the first scenic area.
[0054] In this embodiment, since tourists in the first scenic area typically include those without smart devices, such as the elderly and children, and the staff in the first scenic area are also active users, the first number cannot reflect the total number of tourists in the first scenic area, and the first number also includes the number of staff in the first scenic area. Therefore, in order to obtain a more accurate number of tourists, the server can determine a first coefficient to represent the device penetration rate of the first scenic area and a second coefficient to represent the number of staff in the first scenic area, and then correct the first number based on the first coefficient and the second coefficient to obtain the number of tourists in the first scenic area.
[0055] This application provides a method for counting the number of tourists. By determining the number of devices used by active users of at least one high-daily-active application whose geographical locations are within a first scenic area, a preliminary count of the number of tourists in the first scenic area can be made. Furthermore, using internet data as the source improves the applicability of the tourist counting method. Considering that smart devices are not yet fully widespread and that some staff members in the first scenic area may also be active users, the preliminary tourist count is corrected based on a first coefficient representing the device penetration rate of the first scenic area and a second coefficient representing the number of staff members in the first scenic area. This allows for a more accurate count of the number of tourists in the first scenic area, improving the accuracy of the tourist counting method.
[0056] Figure 3 This is a flowchart of another method for counting tourist numbers according to an embodiment of this application. This method is executed by a data processing device. See [link to flowchart]. Figure 3 The method includes the following steps:
[0057] 301. Obtain the active device location reported by at least one target application, wherein the target application is an application with a daily active user count greater than a first threshold, the active device location is the geographical location of the active device, and the active device is the device used by an active user of at least one target application.
[0058] In this embodiment, the target application is an application whose daily active users exceed a first threshold. The target application can be a social application, a utility application, an information application, an entertainment application, etc.; this embodiment does not limit the type of target application. Active users of the target application are those who open the application, the devices used by active users are active devices, and the geographical location of the active device is the device's active location. Since tourists often open applications installed on their devices to view daily information while staying in scenic areas, these applications are typically frequently used, i.e., high daily active user applications. Furthermore, when a user opens an application, the application reports relevant information based on its geographical location during operation. Therefore, when a user opens the target application, the server can obtain at least one device's active location reported by the target application.
[0059] 302. Based on the geographical location of the first scenic area and the active device location reported by at least one target application, determine a first quantity, which is the number of devices whose active device location is located in the first scenic area.
[0060] In this embodiment, since the active device location is the geographical location of the device used by at least one active user of the target application, that is, the active device location can reflect the geographical location of the active user, the server can determine the number of active devices located in the first scenic area, i.e., the first number, based on the geographical location of the first scenic area and the active device locations reported by at least one target application. The first number reflects the number of active users located in the first scenic area, i.e., the number of tourists in the first scenic area.
[0061] Optionally, the server can also acquire tourist distribution images collected by multiple cameras within the first scenic area, and count the number of tourists in the tourist distribution images to obtain the number of tourists in the tourist distribution images.
[0062] Optionally, the server can also obtain occupancy information of hotels and guesthouses located near the first scenic area from accommodation applications. This occupancy information reflects the room booking status of hotels and guesthouses. Based on this occupancy information, the server can determine the number of guests staying at hotels and guesthouses near the first scenic area, and then predict the number of tourists visiting the first scenic area based on this number of guests.
[0063] Optionally, the server can also obtain parking information from parking areas near the first scenic area, reflecting the number of vehicles in the parking area and the maximum number of passengers per vehicle. Based on this parking information, the server can predict the number of visitors to the first scenic area.
[0064] Optionally, the server can also determine the number of tourists in the first scenic area based on the number of tourists in the tourist distribution image, the number of tourists predicted based on the number of guests staying at hotels, the number of tourists predicted based on parking information, and a first quantity.
[0065] 303. Based on the first coefficient, the first quantity is corrected to obtain the third quantity. The third quantity is used to represent the total number of people in the first scenic area, and the first coefficient is used to represent the equipment penetration rate of the first scenic area.
[0066] In this embodiment, since tourists in the first scenic area typically include those without smart devices, such as the elderly and children, the first quantity does not reflect the total number of tourists in the first scenic area. Because the first coefficient represents the device penetration rate in the first scenic area, the server can weight the first quantity based on the first coefficient to obtain a third quantity. The third quantity represents the total number of people in the first scenic area; that is, the third quantity includes both the total number of tourists and the number of staff in the first scenic area.
[0067] In some embodiments, the first scenic area can be either a scenic area requiring an entrance fee or a scenic area that is free to enter. Accordingly, if the first scenic area requires an entrance fee, the server can determine the first coefficient using the following scheme one. If the first scenic area is free to enter, the server can determine the first coefficient using the following scheme two.
[0068] Option 1: If the first scenic area is a paid scenic area, the server can obtain historical ticket data for the first scenic area and historical device activity locations reported by at least one target application. Historical ticket data represents the number of tickets sold for the first scenic area within a historical time period, and historical device activity locations refer to the geographical locations of historically active devices. These historically active devices are the devices used by active users of at least one target application within a historical time period. Then, the server can determine the historical device penetration rate of the first scenic area based on the historical ticket data and historical device activity locations. In the case of a paid scenic area, this means that tourists need to purchase tickets to visit. Therefore, the server can obtain historical ticket data for the first scenic area, which represents the number of tickets sold for the first scenic area within a historical time period, such as the daily ticket sales number for the first scenic area over the past week. As can be seen from steps 301-302 above, based on the historical device activity locations reported by at least one target application, the server can determine the number of active users of at least one target application located in the first scenic area within a historical time period, such as the number of daily active users of the target application in the first scenic area over the past week. Since the device penetration rate of the first scenic area is the ratio of the number of visitors with smart devices to the total number of visitors in the first scenic area, the server can determine the historical device penetration rate of the first scenic area based on the total number of visitors reflected in historical ticket data and the number of visitors with smart devices reflected in the historical active locations of devices in the first scenic area. By using the historical device penetration rate of the first scenic area, determined based on historical ticket data and the historical active locations of devices in the first scenic area, as the first coefficient when the first scenic area is a paid scenic area, the accuracy of the first coefficient can be improved, thus enabling a more accurate count of visitors to the first scenic area.
[0069] In some embodiments, the server can determine the historical number of visitors to the first scenic area based on historical ticket data; determine the historical number of active devices in the first scenic area based on the geographical location and historical device activity locations of the first scenic area, where the historical active device number is the number of devices whose historical device activity locations are located in the first scenic area; and determine the historical device penetration rate based on the historical number of visitors and the historical number of active devices. Specifically, based on historical ticket data, the server can determine the number of tickets sold for the first scenic area within a historical time period, which represents the total number of visitors to the first scenic area during that period. Based on the geographical location and historical device activity locations of the first scenic area, the server can determine the number of active devices whose historical device activity locations are located in the first scenic area, i.e., the number of active users located in the first scenic area during the historical time period. Since most staff members in the scenic area are equipped with smart devices due to their work, the server can also subtract the number of staff members from the number of active users to obtain the number of visitors with smart devices in the first scenic area during the historical time period. The ratio between the number of visitors with smart devices in the first scenic area during the historical time period and the total number of visitors in the first scenic area during the historical time period can then be determined as the historical device penetration rate of the first scenic area. By determining the historical device penetration rate of the first scenic area based on the total number of visitors and the number of visitors with smart devices during the historical period, the accuracy of the historical device penetration rate can be improved, thereby improving the accuracy of the first coefficient.
[0070] Option 2: If the first scenic area is free, the server can identify at least one second scenic area, which is a paid scenic area of the same type as the first scenic area. Then, the server can obtain historical ticket data for at least one second scenic area and historical device activity locations reported by at least one target application. The historical ticket data reflects the number of tickets sold for at least one second scenic area within a historical time period, and the historical device activity locations are the geographical locations of historically active devices, which are the devices used by active users of at least one target application within a historical time period. Finally, the server can determine a first coefficient based on the historical ticket data and historical device activity locations. The first scenic area can be of the type of natural landscape, historical and cultural site, ecological park, theme park, etc., and this embodiment does not impose any restrictions on this. If the first scenic area is free, it means that tourists do not need to purchase tickets to visit the first scenic area, meaning the server cannot obtain historical ticket data for the first scenic area. Therefore, to determine the device penetration rate of the first scenic area, the server can identify at least one second scenic area of the same type as the first scenic area but which is a paid scenic area. For any second scenic area, the server can determine the historical device penetration rate of the second scenic area based on the total number of visitors within a historical time period reflected in the historical ticket data of the second scenic area and the number of visitors with smart devices reflected in the historical active device locations within the second scenic area. Since the second scenic area and the first scenic area are of the same type, their visitor composition is basically the same. For example, in the case of a theme park, visitors are usually families, including parents and children. In the case of a natural landscape, visitors typically include more middle-aged and elderly people. That is, the server can determine the historical device penetration rate of the first scenic area based on the historical device penetration rate of at least one second scenic area, i.e., determine the first coefficient. By determining the historical device penetration rate of the first scenic area based on the historical device penetration rate of at least one second scenic area of the same type but with a paid admission fee when the first scenic area is free, the first coefficient can be accurately and efficiently determined even when the historical ticket data of the first scenic area is unavailable, thus enabling a more accurate count of visitors to the first scenic area.
[0071] In some embodiments, similar to the process of determining the historical device penetration rate of the first scenic area when it is a paid scenic area, for any second scenic area, the server can determine the historical number of visitors to the second scenic area based on its historical ticket data; then, the server can determine the historical number of active devices in the second scenic area based on its geographical location and historical device activity locations, where the historical active device number is the number of devices whose historical device activity locations are located in the second scenic area; finally, the server determines the historical device penetration rate of the second scenic area based on the historical number of visitors and the historical number of active devices, and averages the historical device penetration rates of at least one second scenic area to obtain a first coefficient. Specifically, for any second scenic area, the server can determine the number of tickets sold in the second scenic area during a historical time period based on its historical ticket data, which represents the total number of visitors to the second scenic area during that historical time period. The server can also determine the number of active devices whose historical device activity locations are located in the second scenic area based on its geographical location and historical device activity locations, i.e., the number of active users located in the second scenic area during the historical time period. Since most staff in the scenic area are equipped with smart devices for work purposes, the server can subtract the number of staff in the second scenic area from the number of active users to obtain the number of tourists with smart devices in the second scenic area during a historical period. The ratio of the number of tourists with smart devices in the second scenic area during a historical period to the total number of tourists in the second scenic area during the same period can then be determined as the historical device penetration rate of the second scenic area. By using the average of the historical device penetration rates of at least one second scenic area as the historical device penetration rate of the first device, the device penetration rates of multiple second scenic areas can be comprehensively considered when determining the first coefficient, improving the accuracy of the first coefficient and thus enabling a more accurate count of tourists in the first scenic area.
[0072] Optionally, the server can retrieve ticket data for the first scenic area or at least one second scenic area within a historical timeframe, based on the current time. If the current time is during peak tourist season, the server can retrieve ticket data for the first scenic area or at least one second scenic area during historical peak tourist seasons. If the current time is during off-peak tourist season, the server can retrieve ticket data for the first scenic area or at least one second scenic area during off-peak tourist seasons.
[0073] 304. Based on the second coefficient, the third quantity is corrected to obtain the second quantity. The second coefficient is used to represent the number of staff in the first scenic area, and the second quantity is the number of tourists in the first scenic area.
[0074] In this embodiment, since the staff in the first scenic area are also active users, the first quantity also includes the number of staff in the first scenic area. Therefore, after correcting the first quantity based on the first coefficient to obtain the third quantity, the server can also subtract the number of staff in the first scenic area from the third quantity based on the second coefficient representing the number of staff in the first scenic area to obtain the number of tourists in the first scenic area, which is the second quantity.
[0075] In some embodiments, the server can determine the number of tourists in the first scenic area using the following formula 1.
[0076] Formula 1:
[0077]
[0078] Where n is the second quantity, that is, the number of tourists in the first scenic area, m is the first quantity, a is the first coefficient, and b is the second coefficient.
[0079] For example, if the first quantity is 2000, the first coefficient is 0.8, and the second coefficient is 50, then the second quantity is 2000 / 0.8-50=2450.
[0080] Optionally, since most staff members in the first scenic area possess smart devices due to their work, the server can first adjust the first number based on the second coefficient. That is, it can first subtract the number of staff members in the first scenic area from the number of active devices in the first scenic area to obtain the number of tourists with smart devices in the first scenic area. Then, based on the first coefficient, the number of tourists with smart devices in the first scenic area is adjusted to obtain the total number of tourists in the first scenic area.
[0081] In some embodiments, the server can determine the number of staff in the first scenic area based on the number of repeatedly active devices located in the first scenic area over a period of time. Accordingly, the server obtains the historical device activity locations reported by at least one target application. The historical device activity location is the geographical location of the historically active device, and the historically active device is the device used by an active user of at least one target application during a historical time period. Then, based on the geographical location of the first scenic area and the historical device activity locations, the server determines the historically active device identifiers corresponding to multiple historical time periods in the first scenic area. The historically active device identifiers are the identifiers of the historically active devices. Finally, based on the historically active device identifiers corresponding to multiple historical time periods, the server determines the repeatedly active device identifiers in the first scenic area. The repeatedly active device identifiers are historically active device identifiers whose frequency of occurrence is greater than a frequency threshold. The number of repeatedly active devices corresponding to the repeatedly active device identifiers is determined as the number of staff in the first scenic area. Here, the historical time period is a continuous period of time, such as the past 3 days, the past 5 days, the past week, etc. The historical time period includes multiple historical time periods, each historical time period representing one day. Based on the geographical location and historical activity locations of devices within the first scenic area, the server can determine the historically active devices within that area over multiple historical periods. Furthermore, based on the frequency of these devices' appearances across these periods, it can identify repeatedly active devices whose frequency exceeds a certain threshold. For example, if device A appears only once across multiple historical periods, it can be determined that device A was used by tourists. If device B appears in every historical period, it can be identified as a repeatedly active device, meaning it was used by staff. Since these repeatedly active devices across multiple historical periods are used by staff within the first scenic area, the server can determine the number of repeatedly active devices as the number of staff in the first scenic area. By analyzing the repeatedly active devices within the first scenic area over historical time periods, the number of staff in the first scenic area can be determined more accurately, improving the accuracy of the second coefficient and thus enabling a more accurate count of tourists in the first scenic area.
[0082] For example, taking the past 3 days as a historical timeframe, the active devices in the first scenic area yesterday included device A, device B, device D, ... device H; the active devices in the first scenic area the day before yesterday included device A, device D, device E, ... device H; and the active devices in the first scenic area the day before that included device A, device D, device M, ... device H. Therefore, the terminal can determine that the repeatedly active devices in the first scenic area are device A, device D, and device H, which means it can determine that the number of staff in the first scenic area is 3.
[0083] Optionally, since the number of staff required for the first scenic area may differ during peak and off-peak seasons, if the current time is during peak season, the server can determine the historical active device identifiers for the first scenic area during historical peak seasons, and thus determine the number of duplicate active devices located in the first scenic area during historical peak seasons. Similarly, if the current time is during off-peak season, the server can determine the historical active device identifiers for the first scenic area during historical off-peak seasons, and thus determine the number of duplicate active devices located in the first scenic area during historical off-peak seasons.
[0084] 305. If the second quantity is greater than the second quantity threshold, the target area is determined based on the location distribution of active device positions in the first scenic area. The target area is the area in the first scenic area where the distribution density of active device positions is greater than the density threshold.
[0085] In this embodiment, the second quantity threshold can be the maximum visitor capacity of the first scenic area, i.e., the maximum number of visitors the first scenic area can accommodate. The second quantity threshold can also be a value less than the maximum visitor capacity; this embodiment does not impose any limitation on this. When the second quantity is greater than the second quantity threshold, it indicates that there are a large number of visitors in the first scenic area. Therefore, the server can determine the target area with a large number of visitors in the first scenic area based on the previously obtained location distribution of active device locations uploaded by at least one target application within the first scenic area. Specifically, the distribution density of active device locations in the target area is greater than a density threshold.
[0086] Optionally, the first scenic area includes multiple attractions, and the server can determine the density threshold of each scenic area based on the area of each attraction and the maximum number of tourists each attraction can accommodate.
[0087] 306. Based on the geographical location of the target area, send a first prompt message to the equipment used by the staff of the first scenic area, and / or send a second prompt message to the equipment used by tourists located near the target area. The first prompt message is used to inform the staff that there are a large number of tourists in the first scenic area and that it is necessary to guide the tourists in the target area. The second prompt message is used to inform the tourists that there are a large number of tourists in the target area and that they may need to queue. It is recommended that they visit other areas of the first scenic area.
[0088] In this embodiment, the target area is defined as an area where the distribution density of active device locations exceeds a density threshold, indicating a high number of visitors. Therefore, the server can send a first notification to the devices used by staff in the first scenic area based on the target area's geographical location, alerting them to the high number of visitors and the need for crowd control measures. The server also sends a second notification to devices used by visitors near the target area, informing them of the high number of visitors and the need to queue, suggesting they visit other areas of the first scenic area. By sending notifications to staff in the first scenic area and / or to visitors near the target area when there are many visitors in the target area, the server can promptly alert staff to manage crowd control in the target area, preventing congestion and helping visitors avoid overcrowding, thus improving their overall experience.
[0089] This application provides a method for counting the number of tourists. By determining the number of devices used by active users of at least one high-daily-active application whose geographical locations are within a first scenic area, a preliminary count of the number of tourists in the first scenic area can be made. Furthermore, using internet data as the source improves the applicability of the tourist counting method. Considering that smart devices are not yet fully widespread and that some staff members in the first scenic area may also be active users, the preliminary tourist count is corrected based on a first coefficient representing the device penetration rate of the first scenic area and a second coefficient representing the number of staff members in the first scenic area. This allows for a more accurate count of the number of tourists in the first scenic area, improving the accuracy of the tourist counting method.
[0090] Figure 4 This is a block diagram of a tourist quantity counting device according to an embodiment of this application. The device is used to perform the steps of the tourist quantity counting method described above, see [link to relevant documentation]. Figure 4 The tourist count counting device includes: a first acquisition module 401, a first determination module 402, and a correction module 403.
[0091] The first acquisition module 401 is used to acquire the device active location reported by at least one target application. The target application is an application whose number of daily active users is greater than a first number threshold. The device active location is the geographical location of the active device. The active device is the device used by the active user of at least one target application.
[0092] The first determining module 402 is used to determine a first quantity based on the geographical location of the first scenic area and the active device location reported by at least one target application. The first quantity is the number of devices whose active device location is located in the first scenic area.
[0093] The correction module 403 is used to correct the first quantity based on the first coefficient and the second coefficient to obtain the second quantity. The first coefficient is used to represent the equipment penetration rate of the first scenic area, the second coefficient is used to represent the number of staff in the first scenic area, and the second quantity is the number of tourists in the first scenic area.
[0094] In some embodiments, the correction module 403 is used to correct the first quantity based on the first coefficient to obtain a third quantity, the third quantity being used to represent the total number of people in the first scenic area; and to correct the third quantity based on the second coefficient to obtain a second quantity.
[0095] In some embodiments, Figure 5 This is a block diagram of another tourist number counting device provided according to an embodiment of this application. See also Figure 5 The device also includes:
[0096] The second acquisition module 404 is used to acquire historical ticket data of the first scenic spot and historical device active locations reported by at least one target application when the first scenic spot is a paid scenic spot. The historical ticket data is used to represent the number of tickets sold in the first scenic spot during a historical period. The historical device active locations are the geographical locations of the historical active devices. The historical active devices are the devices used by the active users of at least one target application during a historical period.
[0097] The second determining module 405 is used to determine the historical equipment penetration rate of the first scenic area based on historical ticket data and historical equipment active locations.
[0098] In some embodiments, the second determining module 405 is used to determine the historical number of visitors to the first scenic area based on historical ticket data; determine the historical number of active devices in the first scenic area based on the geographical location of the first scenic area and the historical active device location, wherein the historical active device number is the number of devices whose historical active device location is located in the first scenic area; and determine the historical device penetration rate based on the historical number of visitors and the historical active device number.
[0099] In some embodiments, see continue to see Figure 5 The device also includes:
[0100] The third determining module 406 is used to determine at least one second scenic area when the first scenic area is a free scenic area. The second scenic area is a paid scenic area that belongs to the same scenic area type as the first scenic area.
[0101] The second acquisition module 404 is also used to acquire historical ticket data of at least one second scenic spot and historical device active location reported by at least one target application. The historical ticket data is used to reflect the number of tickets sold by at least one second scenic spot in a historical period. The historical device active location is the geographical location of the historical active device. The historical active device is the device used by the active user of at least one target application in a historical period.
[0102] The second determining module 405 is also used to determine the first coefficient based on historical ticket data and historical device active locations.
[0103] In some embodiments, the second determining module 405 is further configured to, for any second scenic area, determine the historical number of visitors to the second scenic area based on the historical ticket data of the second scenic area; determine the historical number of active devices in the second scenic area based on the geographical location of the second scenic area and the historical active device location, wherein the historical active device number is the number of devices whose historical active device location is located in the second scenic area; determine the historical device penetration rate of the second scenic area based on the historical number of visitors and the historical active device number; and average the historical device penetration rates of at least one second scenic area to obtain a first coefficient.
[0104] In some embodiments, see continue to see Figure 5 The device also includes:
[0105] The second acquisition module 404 is also used to acquire at least one historical device active location reported by a target application. The historical device active location is the geographical location of the historical active device, and the historical active device is the device used by the active users of at least one target application during a historical time period.
[0106] The fourth determining module 407 is used to determine the historical active device identifiers corresponding to the first scenic area at multiple historical times based on the geographical location and historical active device locations of the first scenic area. The historical active device identifiers are the identifiers of historical active devices. Based on the historical active device identifiers corresponding to multiple historical times, the module determines the repeating active device identifiers of the first scenic area. The repeating active device identifiers are the historical active device identifiers whose occurrence frequency is greater than a frequency threshold. The number of repeating active devices corresponding to the repeating active device identifiers is determined as the number of staff in the first scenic area.
[0107] In some embodiments, see continue to see Figure 5 The device also includes:
[0108] The sending module 408 is used to determine a target area based on the location distribution of active device positions within the first scenic area when the second quantity is greater than a second quantity threshold. The target area is an area in the first scenic area where the distribution density of active device positions is greater than a density threshold. Based on the geographical location of the target area, the module sends a first prompt message to the devices used by staff in the first scenic area and / or sends a second prompt message to the devices used by tourists located near the target area. The first prompt message is used to inform staff that there are many tourists in the first scenic area and that it is necessary to guide tourists in the target area. The second prompt message is used to inform tourists that there are many tourists in the target area and that queuing may be necessary, and that it is recommended to visit other areas of the first scenic area.
[0109] This application provides a tourist number counting device. It performs a preliminary count of tourist numbers in a first scenic area based on the number of devices used by active users of at least one high-daily-active application, whose geographical locations are within the first scenic area. This improves the applicability of the tourist number counting method by utilizing internet data. Considering that smart devices are not yet fully widespread and that some staff members in the first scenic area may also be active users, the preliminary tourist number is corrected by using a first coefficient representing the device penetration rate of the first scenic area and a second coefficient representing the number of staff members in the first scenic area. This allows for a more accurate count of tourist numbers in the first scenic area, improving the accuracy of the tourist number counting method.
[0110] It should be noted that the tourist number counting device provided in the above embodiments is only illustrated by the division of the above functional modules when running the application. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the tourist number counting device and the tourist number counting method embodiments provided in the above embodiments belong to the same concept, and their specific implementation process can be found in the method embodiments, which will not be repeated here.
[0111] Figure 6 This is a structural block diagram of a terminal according to an embodiment of this application. The terminal 600 can be a portable mobile terminal, such as a smartphone, tablet computer, MP3 player (Moving Picture Experts Group Audio Layer III), MP4 player (Moving Picture Experts Group Audio Layer IV), laptop computer, or desktop computer. The terminal 600 may also be referred to as a user device, portable terminal, laptop terminal, desktop terminal, or other names.
[0112] Typically, terminal 600 includes a processor 601 and a memory 602.
[0113] Processor 601 may include one or more processing cores, such as a quad-core processor, an octa-core processor, etc. Processor 601 may be implemented using at least one hardware form selected from DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). Processor 601 may also include a main processor and a coprocessor. The main processor, also known as a CPU (Central Processing Unit), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, processor 601 may integrate a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the screen. In some embodiments, processor 601 may also include an AI (Artificial Intelligence) processor, which is used to handle computational operations related to machine learning.
[0114] The memory 602 may include one or more computer-readable storage media, which may be non-transitory. The memory 602 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In some embodiments, the non-transitory computer-readable storage media in the memory 602 are used to store at least one computer program, which is executed by the processor 601 to implement the tourist count counting method provided in the method embodiments of this application.
[0115] In some embodiments, the terminal 600 may optionally include a peripheral device interface 603 and at least one peripheral device. The processor 601, memory 602, and peripheral device interface 603 can be connected via a bus or signal line. Each peripheral device can be connected to the peripheral device interface 603 via a bus, signal line, or circuit board. Specifically, the peripheral device includes at least one of the following: a radio frequency circuit 604, a display screen 605, a camera assembly 606, an audio circuit 607, and a power supply 608.
[0116] Peripheral interface 603 can be used to connect at least one I / O (Input / Output) related peripheral device to processor 601 and memory 602. In some embodiments, processor 601, memory 602 and peripheral interface 603 are integrated on the same chip or circuit board; in some other embodiments, any one or two of processor 601, memory 602 and peripheral interface 603 can be implemented on separate chips or circuit boards, which is not limited in this embodiment.
[0117] The radio frequency (RF) circuit 604 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The RF circuit 604 communicates with communication networks and other communication devices via electromagnetic signals. The RF circuit 604 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals back into electrical signals. In some embodiments, the RF circuit 604 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, etc. The RF circuit 604 can communicate with other terminals through at least one wireless communication protocol. This wireless communication protocol includes, but is not limited to: the World Wide Web, metropolitan area networks, intranets, various generations of mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks, and / or WiFi (Wireless Fidelity) networks. In some embodiments, the RF circuit 604 may also include circuitry related to NFC (Near Field Communication), which is not limited in this application.
[0118] Display screen 605 is used to display a UI (User Interface). This UI may include graphics, text, icons, videos, and any combination thereof. When display screen 605 is a touch display screen, it also has the ability to collect touch signals on or above its surface. These touch signals can be input as control signals to processor 601 for processing. In this case, display screen 605 can also be used to provide virtual buttons and / or a virtual keyboard, also known as soft buttons and / or a soft keyboard. In some embodiments, there may be one display screen 605, disposed on the front panel of terminal 600; in other embodiments, there may be at least two display screens, disposed on different surfaces of terminal 600 or in a folded design; in other embodiments, display screen 605 may be a flexible display screen, disposed on a curved or folded surface of terminal 600. Furthermore, display screen 605 may be configured as a non-rectangular irregular shape, i.e., a non-rectangular screen. Display screen 605 may be made of materials such as LCD (Liquid Crystal Display) or OLED (Organic Light-Emitting Diode).
[0119] The camera assembly 606 is used to acquire images or videos. In some embodiments, the camera assembly 606 includes a front-facing camera and a rear-facing camera. Typically, the front-facing camera is located on the front panel of the terminal, and the rear-facing camera is located on the back of the terminal. In some embodiments, there are at least two rear-facing cameras, which are any one of a main camera, a depth-sensing camera, a wide-angle camera, and a telephoto camera, to achieve background blurring by fusion of the main camera and the depth-sensing camera, panoramic shooting by fusion of the main camera and the wide-angle camera, VR (Virtual Reality) shooting, or other fusion shooting functions. In some embodiments, the camera assembly 606 may also include a flash. The flash can be a single-color temperature flash or a dual-color temperature flash. A dual-color temperature flash is a combination of a warm-light flash and a cool-light flash, which can be used for light compensation at different color temperatures.
[0120] The audio circuit 607 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, converting the sound waves into electrical signals that are input to the processor 601 for processing, or input to the radio frequency circuit 604 for voice communication. For stereo sound acquisition or noise reduction purposes, multiple microphones may be used, each located at a different part of the terminal 600. The microphone may also be an array microphone or an omnidirectional microphone. The speaker is used to convert the electrical signals from the processor 601 or the radio frequency circuit 604 into sound waves. The speaker may be a conventional diaphragm speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can convert electrical signals not only into audible sound waves but also into inaudible sound waves for purposes such as distance measurement. In some embodiments, the audio circuit 607 may also include a headphone jack.
[0121] Power supply 608 is used to power the various components in terminal 600. Power supply 608 can be AC power, DC power, a disposable battery, or a rechargeable battery. When power supply 608 includes a rechargeable battery, the rechargeable battery can support wired charging or wireless charging. The rechargeable battery can also be used to support fast charging technology.
[0122] In some embodiments, the terminal 600 further includes one or more sensors 609. The one or more sensors 609 include, but are not limited to, an accelerometer 610, a gyroscope 611, a pressure sensor 612, an optical sensor 613, and a proximity sensor 614.
[0123] Accelerometer 610 can detect the magnitude of acceleration along the three coordinate axes of a coordinate system established by terminal 600. For example, accelerometer 610 can be used to detect the components of gravitational acceleration along the three coordinate axes. Processor 601 can control display screen 605 to display the user interface in either a landscape or portrait view based on the gravitational acceleration signal acquired by accelerometer 610. Accelerometer 610 can also be used for games or for acquiring user motion data.
[0124] The gyroscope sensor 611 can detect the orientation and rotation angle of the terminal 600. The gyroscope sensor 611 can work in conjunction with the accelerometer sensor 610 to collect the user's 3D movements on the terminal 600. Based on the data collected by the gyroscope sensor 611, the processor 601 can perform the following functions: motion sensing (e.g., changing the UI based on the user's tilt), image stabilization during shooting, game control, and inertial navigation.
[0125] The pressure sensor 612 can be disposed on the side bezel of the terminal 600 and / or on the lower layer of the display screen 605. When the pressure sensor 612 is disposed on the side bezel of the terminal 600, it can detect the user's grip signal on the terminal 600, and the processor 601 can perform left / right hand recognition or quick operation based on the grip signal collected by the pressure sensor 612. When the pressure sensor 612 is disposed on the lower layer of the display screen 605, the processor 601 can control the operable controls on the UI interface based on the user's pressure operation on the display screen 605. The operable controls include at least one of button controls, scroll bar controls, icon controls, and menu controls.
[0126] An optical sensor 613 is used to collect ambient light intensity. In one embodiment, the processor 601 can control the display brightness of the display screen 605 based on the ambient light intensity collected by the optical sensor 613. Optionally, when the ambient light intensity is high, the display brightness of the display screen 605 is increased; when the ambient light intensity is low, the display brightness of the display screen 605 is decreased. In another embodiment, the processor 601 can also dynamically adjust the shooting parameters of the camera assembly 606 based on the ambient light intensity collected by the optical sensor 613.
[0127] A proximity sensor 614, also known as a distance sensor, is installed on the front panel of the terminal 600. The proximity sensor 614 is used to detect the distance between the user and the front of the terminal 600. In one embodiment, when the proximity sensor 614 detects that the distance between the user and the front of the terminal 600 is gradually decreasing, the processor 601 controls the display screen 605 to switch from a screen-on state to a screen-off state; when the proximity sensor 614 detects that the distance between the user and the front of the terminal 600 is gradually increasing, the processor 601 controls the display screen 605 to switch from a screen-off state to a screen-on state.
[0128] Those skilled in the art will understand that Figure 6 The structure shown does not constitute a limitation on terminal 600, and may include more or fewer components than shown, or combine certain components, or use different component arrangements.
[0129] Figure 7This is a schematic diagram of a server structure according to an embodiment of this application. The server 700 can vary considerably due to different configurations or performance. It may include one or more Central Processing Units (CPUs) 701 and one or more memories 702. The memory 702 stores at least one computer program, which is loaded and executed by the processor 701 to implement the tourist count counting method provided in the above-described method embodiments. Of course, the server may also have wired or wireless network interfaces, a keyboard, and input / output interfaces for input and output. The server may also include other components for implementing device functions, which will not be elaborated here.
[0130] This application also provides a computer-readable storage medium storing at least one computer program, which is loaded and executed by a vehicle's processor to implement the operations performed by the terminal in the tourist number counting method described above. For example, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CD-ROM), magnetic tape, floppy disk, or optical data storage device, etc.
[0131] This application also provides a computer program product, including a computer program that is executed by a processor to implement the tourist number counting method in this application embodiment.
[0132] Those skilled in the art will understand that all or part of the steps of the above embodiments can be implemented by hardware or by a program instructing related hardware. The program can be stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disk.
[0133] The above description is merely an optional embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.
Claims
1. A method for counting the number of tourists, characterized in that, The method includes: Obtain the active device location reported by at least one target application, wherein the target application is an application with a daily active user count greater than a first threshold, the active device location is the geographical location of the active device, and the active device is the device used by the active user of the at least one target application; Based on the geographical location of the first scenic area and the active device location reported by the at least one target application, a first quantity is determined, wherein the first quantity is the number of devices whose active device location is located in the first scenic area; Based on the first coefficient and the second coefficient, the first quantity is corrected to obtain the second quantity. The first coefficient is used to represent the equipment penetration rate of the first scenic area, the second coefficient is used to represent the number of staff in the first scenic area, and the second quantity is the number of tourists in the first scenic area.
2. The method according to claim 1, characterized in that, The step of correcting the first quantity based on the first coefficient and the second coefficient to obtain the second quantity includes: Based on the first coefficient, the first quantity is corrected to obtain a third quantity, which is used to reflect the total number of people in the first scenic area; Based on the second coefficient, the third quantity is corrected to obtain the second quantity.
3. The method according to claim 1, characterized in that, The method further includes: If the first scenic area is a paid scenic area, obtain the historical ticket data of the first scenic area and the historical device active location reported by the at least one target application. The historical ticket data is used to reflect the number of tickets sold by the first scenic area in a historical period. The historical device active location is the geographical location of the historical active device. The historical active device is the device used by the active user of the at least one target application in a historical period. Based on the historical ticket data and the active locations of the historical equipment, the penetration rate of the historical equipment in the first scenic area is determined.
4. The method according to claim 3, characterized in that, The determination of the historical equipment penetration rate of the first scenic area based on the historical ticket data and the active locations of the historical equipment includes: Based on the historical ticket data, the historical number of visitors to the first scenic spot is determined; Based on the geographical location of the first scenic area and the active location of the historical devices, the number of historically active devices in the first scenic area is determined, wherein the number of historically active devices is the number of devices whose active location is located in the first scenic area. The penetration rate of the historical equipment is determined based on the number of historical visitors and the number of historically active equipment.
5. The method according to claim 1, characterized in that, The method further includes: If the first scenic area is a free scenic area, at least one second scenic area is identified, and the second scenic area is a paid scenic area belonging to the same scenic area type as the first scenic area. Obtain historical ticket data of the at least one second scenic spot and historical device active locations reported by the at least one target application. The historical ticket data is used to reflect the number of tickets sold for the at least one second scenic spot within a historical time period. The historical device active locations are the geographical locations of the historical active devices. The historical active devices are the devices used by active users of the at least one target application within a historical time period. The first coefficient is determined based on the historical ticket data and the historical device activity location.
6. The method according to claim 5, characterized in that, Determining the first coefficient based on the historical ticket data and the historical device active locations includes: For any second scenic area, determine the historical number of visitors to the second scenic area based on the historical ticket data of the second scenic area; Based on the geographical location of the second scenic area and the active locations of the historical devices, the number of historically active devices in the second scenic area is determined, wherein the number of historically active devices is the number of devices whose active locations are located in the second scenic area. Based on the number of historical visitors and the number of historical active devices, the penetration rate of historical devices in the second scenic area is determined; The first coefficient is obtained by averaging the historical equipment coverage rate of the at least one second scenic area.
7. The method according to claim 1, characterized in that, The method further includes: Obtain the historical active device location reported by the at least one target application, wherein the historical active device location is the geographical location of the historical active device, and the historical active device is the device used by the active users of the at least one target application within a historical time period; Based on the geographical location of the first scenic area and the active location of the historical equipment, the historical active equipment identifiers corresponding to the first scenic area at multiple historical times are determined, and the historical active equipment identifiers are the identifiers of the historical active equipment. Based on the historical active device identifiers corresponding to the multiple historical times, the repeating active device identifiers of the first scenic area are determined. The repeating active device identifiers are historical active device identifiers whose occurrence frequency is greater than a frequency threshold. The number of repeatedly active devices corresponding to the repeatedly active device identifier is determined as the number of staff in the first scenic area.
8. The method according to claim 1, characterized in that, The method further includes: When the second quantity is greater than the second quantity threshold, a target area is determined based on the location distribution of the active positions of the devices in the first scenic area. The target area is the area in the first scenic area where the distribution density of the active positions of the devices is greater than the density threshold. Based on the geographical location of the target area, a first prompt message is sent to the equipment used by the staff of the first scenic area, and / or a second prompt message is sent to the equipment used by tourists located near the target area. The first prompt message is used to inform the staff that there are a large number of tourists in the first scenic area and that it is necessary to guide the tourists in the target area. The second prompt message is used to inform the tourists that there are a large number of tourists in the target area and that they may need to queue. It is recommended that they visit other areas of the first scenic area.
9. A device for counting the number of tourists, characterized in that, The device includes: The first acquisition module is used to acquire the device active location reported by at least one target application. The target application is an application whose number of daily active users is greater than a first number threshold. The device active location is the geographical location of the active device. The active device is the device used by the active user of the at least one target application. The first determining module is used to determine a first quantity based on the geographical location of the first scenic area and the active device location reported by the at least one target application, wherein the first quantity is the number of devices whose active device location is located in the first scenic area. The correction module is used to correct the first quantity based on a first coefficient and a second coefficient to obtain a second quantity. The first coefficient is used to represent the equipment penetration rate of the first scenic area, the second coefficient is used to represent the number of staff in the first scenic area, and the second quantity is the number of tourists in the first scenic area.
10. An electronic device, characterized in that, The electronic device includes a processor and a memory, the memory being used to store at least one computer program, the at least one computer program being loaded by the processor and executed as the tourist number counting method according to any one of claims 1 to 8.
11. A computer-readable storage medium, characterized in that, The computer-readable storage medium is used to store at least one computer program for performing the method for counting the number of tourists as described in any one of claims 1 to 8.
12. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the method for counting the number of tourists as described in any one of claims 1 to 8.