Resource coordination method and system based on intelligent scenic spot
Technical Field
The invention relates to the technical field of computers, in particular to a resource coordination method and system based on an intelligent scenic spot.
Background
The intelligent scenic spot is characterized in that the intelligent scenic spot comprehensively, thoroughly and timely senses geographical objects, natural resources, tourist behaviors, scenic spot worker trails, scenic spot infrastructure and service facilities of the scenic spot through an intelligent network; visual management is realized for tourists and scenic spot workers; forming a strategic alliance with upstream and downstream enterprises in the travel industry; and comprehensive, coordinated and sustainable development of environment, society and economy in scenic spots is realized.
Currently, face recognition is widely applied to scenes such as high-speed rail station entrance and exit. With the updating of the intelligent scenic spot, the face recognition is also introduced into the daily management of the intelligent scenic spot.
In the existing scenic spot management process, most of the scenic spots are still in a manual mode, especially in holidays, and congestion is more easily formed inside and outside the scenic spots; more than enough people after the congestion are limited to manually performing operations such as drainage, resource allocation and the like by rush allocation scenic spot management personnel; the method has the defects that emergency response is delayed, and the emergency plan generates mismatching or low matching due to unclear specific congestion data, so that the actual effect is not ideal.
Disclosure of Invention
The invention aims to disclose a resource coordination method and system for an intelligent scenic spot so as to improve the intelligence and reliability of resource coordination.
In order to achieve the above object, the present invention discloses a resource coordination method based on intelligent scenic spot, comprising:
arranging a first camera in a first distant area on a scenic spot route in front of a scenic spot gate, arranging a second camera in a second distant area on the scenic spot route in front of the scenic spot gate, wherein the first distance is greater than the second distance, the first camera and the second camera face visitors entering the scenic spot and periodically acquire face images, and then sending the acquired data to a cloud server connected with a network for face authentication;
the server obtains the statistical number of the front face images from the face images acquired by the first camera based on the face model, extracts at least two front face images, keeps the front face images in a cache and records the acquisition time of the corresponding images; then, the time obtained by dividing the distance between the first camera and the second camera by the slowest tourist speed statistic value is used as the retention time of the extracted face image in the cache;
the server obtains the statistical number of the face images on the front side from the face images collected by the second camera based on the face model, extracts the face image characteristics on the front side and compares the face image characteristics with the face image before the time obtained by dividing the distance between the first camera and the second camera by the statistical value of the fastest tourist speed in the cache, if the compared similarity is higher than the set threshold value, the same visitor exists in the image obtained from the second camera and the face image obtained from the first camera for comparison, and the actual speed of the tourist is calculated by dividing the distance between the first camera and the second camera by the time difference between two images of the same tourist, averaging according to the respective statistical number of the two images with the same visitor to obtain the average value of the number of visitors entering the current virtual scenic spot in the field angles of the first camera and the second camera;
setting a demarcation threshold value according to the fastest tourist speed and the slowest tourist speed obtained by statistics between the first camera and the second camera and the average value of the maximum tourist number and the average value of the minimum tourist number in the field angles of the two cameras, dividing the demarcation threshold value into four quadrants of which the horizontal axis is the tourist advancing speed and the vertical axis is the average value of the tourist number, setting a resource distribution plan corresponding to each quadrant, matching the actual speed of the tourist and the average value of the tourist number in the current virtual scenic area into the corresponding quadrants, judging whether quadrant switching occurs between the data in the current detection period and the data in the last detection period, and if so, instructing a scenic area gate system and other matched resource linkage systems to perform corresponding state switching;
wherein, the four quadrants are specifically divided into:
dividing a third quadrant with small average number of tourists and low speed of the tourists into idle stages;
dividing the fourth quadrant with small average number of tourists and high speed of the tourists into a sprouting stage;
dividing a first quadrant with a large average number of tourists and a high speed of the tourists into expansion stages;
and dividing the second quadrant with large average number of tourists and low speed of the tourists into congestion stages.
Preferably, the gate system of the scenic spot is configured to manage and control each gate deployed in the gate of the scenic spot, and the matching switching method corresponding to each quadrant specifically includes:
when the state is in the third quadrant, waking up one gate and switching other gates to a dormant state;
when the state is in the fourth quadrant, awakening more than half of gates and maintaining at least one gate in a dormant state;
when the state is in the first quadrant, all gates are awakened;
and when the station is in the second quadrant, under the condition of awakening all gates, informing the scheduling system of the workers in the scenic spot to add a manual ticket checking channel.
Preferably, the method of the present invention further comprises:
after an artificial ticket checking channel is additionally arranged, a scenic spot worker opens a wireless mobile terminal verification and cancellation system based on a WeChat applet in the artificial ticket checking channel, performs verification and cancellation processing through two-dimensional codes in code scanning electronic tickets and paper tickets, and sends verification and cancellation data to a ticketing system; the ticketing system also establishes a data interaction channel with each gate for checking and verifying the ticket to acquire verification and verification data of the gate.
Preferably, the method of the present invention further comprises:
the scenic spot gate machine system is also used for mapping all the gate machines deployed in the scenic spot gate into the same virtual gate machine, and sending the verification and cancellation data of all the gate machines to the ticketing system by using the identity tags of the virtual gate machines, so that the ticketing system can perform data statistics processing conveniently.
Preferably, the method of the present invention further comprises:
before the verification and cancellation data are sent to the ticketing system, the verification and cancellation system based on the WeChat applet establishes a binding relationship with the virtual gate machine, and then sends the verification and cancellation data of each gate machine to the ticketing system by using the identity tag of the virtual gate machine.
Optionally, the resource linkage system at least comprises a scenic region worker scheduling system and a scenic region vehicle scheduling system.
In order to achieve the above object, the present invention further discloses a resource coordination system based on intelligent scenic spot, comprising:
the first camera is arranged in a first far area on a scenic spot route in front of a scenic spot gate;
the second camera is arranged in a second distance far area on a scenic spot route in front of the scenic spot gate, the first distance is greater than the second distance, and the first camera and the second camera face visitors entering the scenic spot and periodically acquire face images so as to send the acquired data to a server which is connected with a network and used for face authentication at a cloud end;
the server is used for executing the following steps:
step S1, obtaining the statistical number of the front face images from the face images collected by the first camera based on the face model, extracting at least two front face images, keeping the front face images in a cache and recording the collection time of the corresponding images; then, the time obtained by dividing the distance between the first camera and the second camera by the slowest tourist speed statistic value is used as the retention time of the extracted face image in the cache;
step S2, the server obtains the statistical number of the face images on the front side from the face images collected by the second camera based on the face model, extracts the face image characteristics on the front side and compares the face image characteristics with the face image before the time obtained by dividing the distance between the first camera and the second camera by the statistical value of the fastest tourist speed in the cache, if the compared similarity is higher than the set threshold value, the same visitor exists in the image obtained from the second camera and the face image obtained from the first camera for comparison, and the actual speed of the tourist is calculated by dividing the distance between the first camera and the second camera by the time difference between two images of the same tourist, averaging according to the respective statistical number of the two images with the same visitor to obtain the average value of the number of visitors entering the current virtual scenic spot in the field angles of the first camera and the second camera;
step S3, setting a demarcation threshold value according to the fastest tourist speed and the slowest tourist speed counted between the first camera and the second camera and the average value of the maximum tourist number and the minimum tourist number in the field angle of the two cameras, dividing the demarcation threshold value into four quadrants of which the horizontal axis is the tourist advancing speed and the vertical axis is the average value of the tourist number, setting a resource distribution plan corresponding to each quadrant, matching the actual speed of the currently obtained tourist and the average value of the current virtual tourist number in the scenic spot into the corresponding quadrants, judging whether quadrant switching occurs between the data of the current detection period and the data of the previous detection period, and if so, instructing a scenic spot gate system and other matched resource linkage systems to perform corresponding state switching;
wherein, the four quadrants are specifically divided into:
dividing a third quadrant with small average number of tourists and low speed of the tourists into idle stages;
dividing the fourth quadrant with small average number of tourists and high speed of the tourists into a sprouting stage;
dividing a first quadrant with a large average number of tourists and a high speed of the tourists into expansion stages;
and dividing the second quadrant with large average number of tourists and low speed of the tourists into congestion stages.
The invention has the following beneficial effects:
according to the position relation between the first camera and the second camera and the corresponding data processing logic, the direction of the same visitor in the image obtained from the second camera and the face image obtained from the first camera for comparison can be ensured to be the direction of the scenic spot, and the reliability of the data is ensured. And the divided four quadrants are scientific and reasonable. Meanwhile, the acquired face image data are temporarily stored in the buffer area to meet the functional design, and related face images do not need to be stored in a background database, so that the method and the system do not need tourists to authorize the use of the face images in advance, the user portrait right is guaranteed, and the compatibility and the flexibility of the system are improved. Furthermore, according to the method and the device, correlation operation is carried out according to the distance between the first camera and the second camera and the fastest tourist speed and the slowest tourist speed obtained based on the experience statistical value so as to determine the time management of the cache, and the accuracy and the timeliness of data searching are improved.
The present invention will be described in further detail below with reference to the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, illustrate embodiments of the invention and, together with the description, serve to explain the invention and not to limit the invention. In the drawings:
FIG. 1 is a block diagram of a resource coordination system based on intelligent scenic spots according to an embodiment of the present invention.
Detailed Description
The embodiments of the invention will be described in detail below with reference to the drawings, but the invention can be implemented in many different ways as defined and covered by the claims.
Example 1
The present embodiment discloses a resource coordination system based on intelligent scenic spot, as shown in fig. 1, including:
and the first camera 2 is arranged in a first distant area on a scenic spot route in front of the scenic spot gate 1.
The second camera 3 is arranged in a second distance far area on a scenic spot route in front of the scenic spot gate, the first distance is larger than the second distance, the first camera and the second camera face visitors entering the scenic spot and periodically collect face images, and the collected data are sent to a server 4 which is connected with a network and used for face authentication at the cloud end.
The server of the embodiment is further configured to perform the following steps:
step S1, obtaining the statistical number of the front face images from the face images collected by the first camera based on the face model, extracting at least two front face images, keeping the front face images in a cache and recording the collection time of the corresponding images; and then, the time obtained by dividing the distance between the first camera and the second camera by the slowest tourist speed statistic value is used as the retention time of the extracted face image in the cache. In other words, when the extracted face image exceeds the set retention time, the extracted face image is deleted from the cache, and the storage space of the cache is released.
Step S2, the server obtains the statistical number of the face images on the front side from the face images collected by the second camera based on the face model, extracts the face image characteristics on the front side and compares the face image characteristics with the face image before the time obtained by dividing the distance between the first camera and the second camera by the statistical value of the fastest tourist speed in the cache, if the compared similarity is higher than the set threshold value, the same visitor exists in the image obtained from the second camera and the face image obtained from the first camera for comparison, and the actual speed of the tourist is calculated by dividing the distance between the first camera and the second camera by the time difference between two images of the same tourist, and averaging according to the respective statistical number of the two images with the same visitor to obtain the average value of the number of the visitors entering the current virtual scenic spot in the field angles of the first camera and the second camera.
In this step, the realization of the front face image statistics in the acquired image frame based on the face model is well known in the prior art by those skilled in the art, and will not be described in detail.
Step S3, setting a demarcation threshold value according to the fastest and slowest guest speeds obtained by statistics between the first camera and the second camera, and the average value of the maximum and minimum guest numbers in the field angle of the two cameras (the specific value of the demarcation threshold value refers to the difference between the resource distribution plans and the load capacity of each resource unit for flexible setting, as a simplified process, the value can also be respectively the average value of the maximum and minimum statistics, then adjusting the resource distribution plans to match the demand of each quadrant), dividing the four quadrants with the horizontal axis as the guest traveling speed and the vertical axis as the average value of the guest numbers, setting the resource distribution plans corresponding to each quadrant, then matching the actual speed of the guest and the average value of the guest number of the current virtual scenic spot into the corresponding quadrants, and judging whether the data of the current detection period and the data of the previous detection period are subjected to quadrant switching, and if so, instructing a gate system and other matched resource linkage systems of the scenic spot to perform corresponding state switching.
In this embodiment, the four quadrants are specifically:
and dividing the third quadrant with small average number of tourists and low speed of the tourists into idle stages.
And dividing the fourth quadrant with small average number of tourists and high speed of the tourists into the sprouting stage.
The first quadrant with large average number of tourists and high speed of the tourists is divided into an expansion stage.
And dividing the second quadrant with large average number of tourists and low speed of the tourists into congestion stages.
Usually, the gate machines in the scenic spot are arranged in a plurality of rows, so that the users can pass through the gate machines quickly. Preferably, the gate system of the scenic spot gate of the embodiment is configured to manage and control gates deployed in the scenic spot gate, and the matching switching method corresponding to each quadrant specifically includes: when the state is in the third quadrant, waking up one gate and switching other gates to a dormant state; when the state is in the fourth quadrant, awakening more than half of gates and maintaining at least one gate in a dormant state; when the state is in the first quadrant, all gates are awakened; and when the station is in the second quadrant, under the condition of awakening all gates, informing the scheduling system of the workers in the scenic spot to add a manual ticket checking channel.
Preferably, the system of this embodiment further includes:
the verification and cancellation system based on the WeChat small program, which is loaded with the wireless mobile terminal, is used for performing verification and cancellation processing on scenic spot workers in an additionally arranged manual ticket checking channel through two-dimensional codes in code scanning electronic tickets and paper tickets, and sending verification and cancellation data to a ticketing system; and the ticketing system also establishes a data interaction channel with each gate for checking and verifying the ticket to acquire verification and verification data of the gate. Meanwhile, the core-sale system based on the WeChat applet can be used as an emergency under the condition that the gate system is powered off or disconnected.
Preferably, the system of this embodiment further includes:
the scenic spot gate system is also used for mapping all gates deployed in the scenic spot gate into the same virtual gate, and sending the verification and cancellation data of all gates to the ticketing system by using the identity tags of the virtual gates, so that the ticketing system can perform data statistics processing conveniently. Therefore, in the embodiment, by mapping the gate groups with the same functions at the same level to the virtual same gate, compared with the conventional method that the mutually independent verification and cancellation data is established according to the device number or the IP number of each gate and then the data is merged, the complexity of the background data processing of the system is greatly simplified.
Preferably, the verification and cancellation system based on the wechat applet is further configured to establish a binding relationship with the virtual gate machine before sending verification and cancellation data to the ticketing system, and then send verification and cancellation data of each gate machine to the ticketing system by using the identity tag of the virtual gate machine. Therefore, the verification and cancellation data sources of all channels of the scenic spot gate are unified through the virtual gate, and the integrity of the ticketing system data and the flexibility of the system are further ensured.
Optionally, the resource linkage system of this embodiment at least includes: a scenic spot worker scheduling system and a scenic spot vehicle scheduling system.
Example 2
The embodiment discloses a resource coordination method based on an intelligent scenic spot, which comprises the following steps:
step S10, arranging a first camera in a first distant area on a scenic spot route in front of a scenic spot gate, arranging a second camera in a second distant area on the scenic spot route in front of the scenic spot gate, wherein the first distance is larger than the second distance, the first camera and the second camera face visitors entering the scenic spot and periodically collect face images, and then sending the collected data to a cloud server connected with a network for face authentication.
Step S20, the server obtains the statistical number of the front face images from the face images collected by the first camera based on the face model, extracts at least two front face images to be kept in the cache and records the collection time of the corresponding images; and then, the time obtained by dividing the distance between the first camera and the second camera by the slowest tourist speed statistic value is used as the retention time of the extracted face image in the cache.
Step S30, the server obtains the statistical number of the face images on the front side from the face images collected by the second camera based on the face model, extracts the face image characteristics on the front side and compares the face image characteristics with the face image before the time obtained by dividing the distance between the first camera and the second camera by the statistical value of the fastest tourist speed in the cache, if the compared similarity is higher than the set threshold value, the same visitor exists in the image obtained from the second camera and the face image obtained from the first camera for comparison, and the actual speed of the tourist is calculated by dividing the distance between the first camera and the second camera by the time difference between two images of the same tourist, and averaging according to the respective statistical number of the two images with the same visitor to obtain the average value of the number of the visitors entering the current virtual scenic spot in the field angles of the first camera and the second camera.
Step S40, setting a demarcation threshold value according to the fastest tourist speed and the slowest tourist speed counted between the first camera and the second camera and the average value of the maximum tourist number and the minimum tourist number in the field angle of the two cameras, dividing the demarcation threshold value into four quadrants of which the horizontal axis is the tourist advancing speed and the vertical axis is the average value of the tourist number, setting a resource distribution plan corresponding to each quadrant, matching the actual speed of the currently obtained tourist and the average value of the current virtual tourist number in the scenic spot into the corresponding quadrant, judging whether quadrant switching occurs between the data of the current detection period and the data of the previous detection period, and if so, instructing a scenic spot gate system and other matched resource linkage systems to perform corresponding state switching.
Similarly, the four quadrants of this embodiment are specifically divided into: dividing a third quadrant with small average number of tourists and low speed of the tourists into idle stages; dividing the fourth quadrant with small average number of tourists and high speed of the tourists into a sprouting stage; dividing a first quadrant with a large average number of tourists and a high speed of the tourists into expansion stages; and dividing the second quadrant with large average number of tourists and low speed of the tourists into congestion stages.
In this embodiment, the gate system of the scenic spot gate is configured to manage and control gates deployed in the scenic spot gate, and the matching switching method corresponding to each quadrant specifically includes:
when the state is in the third quadrant, waking up one gate and switching other gates to a dormant state; when the state is in the fourth quadrant, awakening more than half of gates and maintaining at least one gate in a dormant state; when the state is in the first quadrant, all gates are awakened; and when the station is in the second quadrant, under the condition of awakening all gates, informing the scheduling system of the workers in the scenic spot to add a manual ticket checking channel.
Preferably, the method of this embodiment further includes:
after an artificial ticket checking channel is additionally arranged, a scenic spot worker opens a wireless mobile terminal verification and cancellation system based on a WeChat applet in the artificial ticket checking channel, performs verification and cancellation processing through two-dimensional codes in code scanning electronic tickets and paper tickets, and sends verification and cancellation data to a ticketing system; the ticketing system also establishes a data interaction channel with each gate for checking and verifying the ticket to acquire verification and verification data of the gate.
Preferably, the scenic spot gate system of this embodiment is further configured to map each gate deployed in a scenic spot gate into the same virtual gate, and send the verification and cancellation data of each gate to the ticketing system by using the identity tag of the virtual gate, so that the ticketing system performs data statistics processing.
Preferably, in this embodiment, before sending the audit data to the ticketing system, the audit system based on the wechat applet establishes a binding relationship with the virtual gate, and then sends the audit data of each gate to the ticketing system by using the identity tag of the virtual gate.
In summary, the main points of the resource coordination method and system based on intelligent scenic spots disclosed in the above embodiments of the present invention are: judging whether a first camera and a second camera at the front and back positions on the scenic spot line acquire the same tourist in the scenic spot direction; if yes, judging the people flow state of the scenic spot based on the traveling speed of the tourist and the number of people in the same row in the front and back image frames, and matching corresponding resources for linkage. It has at least the following beneficial effects:
according to the position relation between the first camera and the second camera and the corresponding data processing logic, the direction of the same visitor in the image obtained from the second camera and the face image obtained from the first camera for comparison can be ensured to be the direction of the scenic spot, and the reliability of the data is ensured. And the divided four quadrants are scientific and reasonable. Meanwhile, the acquired face image data are temporarily stored in the buffer area to meet the functional design, and related face images do not need to be stored in a background database, so that the method and the system do not need tourists to authorize the use of the face images in advance, the user portrait right is guaranteed, and the compatibility and the flexibility of the system are improved. Furthermore, according to the method and the device, correlation operation is carried out according to the distance between the first camera and the second camera and the fastest tourist speed and the slowest tourist speed obtained based on the experience statistical value so as to determine the time management of the cache, and the accuracy and the timeliness of data searching are improved.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.