Image analysis-based scenic spot environment identification method

Through methods based on image analysis, real-time monitoring of the flow of people and the environment in scenic spots, predicting congestion locations and dispersing traffic solves the problem of traditional monitoring being difficult to grasp the status of scenic spots in real time and comprehensively, and improves the efficiency of scenic spot management and visitor experience.

CN118736487AActive Publication Date: 2024-10-01ZHEJIANG NORMAL UNIV XINGZHI COLLEGE

Patent Information

Application Number
CN202410815497.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-24
Publication Date
2024-10-01
Estimated Expiration
2044-06-24

AI Technical Summary

Technical Problem

Traditional scenic spot environmental monitoring is difficult to achieve real-time and comprehensive monitoring of the flow of people and environmental conditions in scenic spots, resulting in congestion during peak tourist flow periods and low management efficiency.

Method used

Through image analysis-based methods, network topology is established, video data is obtained in real time, frame processing and person identification are performed, action trajectories and traffic data are determined, traffic guidance plans are generated, scenic spot environments are monitored in real time, congestion locations are predicted and traffic is dispersed.

Benefits of technology

It realizes real-time monitoring of the entire scenic spot, predicts and avoids congestion, improves the efficiency of scenic spot management, and ensures tourist experience and environmental protection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118736487A_ABST
    Figure CN118736487A_ABST
Patent Text Reader

Abstract

The invention discloses a scenic spot environment identification method based on image analysis, and relates to the technical field of image analysis. Acquiring video data acquired by each network node in the network topological graph in real time to obtain a plurality of original video data sets; performing frame extraction processing on the original video data to obtain an original image set on a time sequence; determining an action track of each person in the original image set, and determining density data and traffic data of the current network node according to the action tracks of all persons; and mapping the density data and the traffic data corresponding to all the network nodes into a network topological graph to generate a traffic guiding scheme. By calculating the movement tracks of all people and determining the density data and the flow data of the current network node, the position where tourist flow congestion occurs in the next period at the current time is predicted, a flow guiding scheme is generated in advance through a target flow topological graph, congestion in the peak period of tourist flow is avoided, and the traffic guiding efficiency is improved. And the management efficiency of the scenic spot park is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of image analysis, and in particular relates to a tourist attraction environment recognition method based on image analysis. Background Art

[0002] With the rapid development of science and technology, image analysis technology has been widely used in many fields. In the tourism industry, using image analysis technology to identify the environment of tourist attractions is of great significance in improving tourist experience, enhancing attraction management, and ensuring tourist safety. However, in recent years, with the rapid development of the tourism industry, the increase in the number of tourists has also brought huge challenges to the protection and management of scenic area environment.

[0003] Traditional scenic area environmental monitoring usually relies on fixed-point monitoring, lacks comprehensive analysis of personnel movement trajectories and real-time traffic data, and is difficult to achieve real-time monitoring and intelligent guidance of the entire scenic environment. The timeliness and comprehensiveness of monitoring data are difficult to guarantee, and it is difficult to grasp the flow of people and environmental conditions within the scenic spot in real time and comprehensively, which leads to congestion and inefficient management during peak tourist flow periods. Summary of the invention

[0004] The purpose of the present invention is to solve the problem of congestion and low management efficiency during the peak period of tourist flow, and to propose a tourist attraction environment recognition method based on image analysis.

[0005] In the implementation of the present invention, a tourist attraction environment recognition method based on image analysis is proposed, and the method comprises:

[0006] Establish a network topology map according to the plan view of the target scenic spot, and acquire video data collected by each network node in the network topology map in real time to obtain multiple original video data sets;

[0007] For each original video data set, the original video data is subjected to frame extraction processing to obtain an original image set in time series; each network node corresponds to an original image set;

[0008] For each original image set, determine the movement trajectory of each person in the original image set, and determine the density data and flow data of the current network node according to the movement trajectories of all people; the flow data is the flow of people from the current node to the adjacent node and the average moving speed of the flow of people;

[0009] Mapping density data and flow data corresponding to all network nodes into the network topology map to obtain a target flow topology map;

[0010] A traffic steering plan is generated according to the target traffic topology diagram.

[0011] Optionally, the original video data is subjected to frame extraction processing to obtain an original image set in a time series, including:

[0012] Step 1: extract frames from the original video data through a preset time window to obtain a key frame image set; take the first frame in the key frame image set as an initial key frame, and record the frames adjacent to the initial key frame as comparison key frames;

[0013] Step 2: Using a feature extraction algorithm to identify a person in the edge area of ​​the image corresponding to the comparison key frame, if the person cannot be identified, re-extracting a key frame from the initial key frame and the comparison key frame to obtain a replacement key frame;

[0014] Step 3: updating the comparison key frame with the replacement key frame, and performing person recognition again until the person can be recognized in the edge area of ​​the image corresponding to the comparison key frame;

[0015] Step 4: Record the contrast key frame as the initial key frame, obtain the contrast key frame again, repeat the above steps 2 and 3 to obtain the original image set.

[0016] Optionally, for each original image set, determining the action trajectory of each person in the original image set includes:

[0017] For each original image in the original image set, a person recognition algorithm is used to obtain a bounding box of the person in the original image, thereby obtaining a bounding box set of the original image;

[0018] For each bounding box in the bounding box set, extract the appearance features in the bounding box through the target feature extraction model to obtain a feature vector set of the original image;

[0019] The feature vector sets of adjacent images in the original image set are associated through a data association algorithm to identify the same person in the adjacent images and generate the action trajectory of each person.

[0020] Optionally, the density data and flow data of the current network nodes are determined based on the movement trajectories of all personnel, including:

[0021] Calculate the optical flow field between adjacent images in the original image set through the optical flow algorithm;

[0022] For each person's action trajectory, extract the coordinates of each point on the person's trajectory, and map the extracted coordinates to the optical flow field to determine a motion vector in the optical flow field corresponding to the person's action trajectory;

[0023] Obtaining density data of current network nodes according to the number of motion vectors in the optical flow field;

[0024] Clustering the motion vectors in the optical flow field according to the connection direction between the current network node and the adjacent nodes to obtain motion vector data sets of different categories;

[0025] For each motion vector data set, the flow data of the current network node is obtained according to the number of motion vectors in the motion vector data set and the average moving speed of all motion vectors in the motion vector data set.

[0026] Optionally, generating a traffic steering solution according to the target traffic topology diagram includes:

[0027] Generating density data of each network node in the next preset period according to the target traffic topology graph, and mapping the density data of all nodes to the same time coordinate system to obtain a global density data change graph;

[0028] For the density data change curve of each network node, if there is a node whose density data at time T is greater than the preset density value, the traffic data flowing to the node will be dispersed to other nodes through the traffic dispersion strategy, and it is ensured that the density data of other nodes will not be greater than the preset value.

[0029] Optionally, generating density data of each network node in the next preset period according to the target traffic topology graph includes:

[0030] For each network node, obtain the outflow data and inflow data of the network node in the next preset period, and obtain target difference data according to the difference between the inflow data and the outflow data;

[0031] The density data of the network node in the next preset period is determined according to the current density data of the network node and the target difference data.

[0032] Optionally, the traffic data flowing to the node is dispersed to other nodes through the traffic dispersion strategy, and the density data of other nodes is ensured not to be greater than a preset value, including:

[0033] Obtain all starting nodes, and generate a node flow diagram according to all starting nodes; the starting node is adjacent to the node, and flow data flows into the node; the node flow diagram is composed of a starting node and a flow node; the flow node is an adjacent node of the starting node except the node;

[0034] According to the node flow diagram, for each starting node, obtaining density data of each flow node corresponding to the starting node and density data of each flow node in the next preset period;

[0035] For each flow direction node, the accommodated data of the flow direction node is determined according to the density data of the next preset period of the flow direction node and the current density data, and the flow direction ratio is generated according to the accommodated data of all flow direction nodes corresponding to the starting node;

[0036] The flow data flowing from the starting node into the node is dispersed to all flow direction nodes corresponding to the starting node according to the flow direction ratio.

[0037] Optionally, the method further includes:

[0038] An environmental image dataset is obtained by periodically photographing environmental images of the target scenic spot by a drone; the environmental images are provided with location tags;

[0039] For each environmental image in the environmental image data set, a comparison database corresponding to the environmental image is determined through a location tag; the comparison database records pictures taken by the current location tag in different environments, features corresponding to each picture taken, and a processing solution corresponding to each picture taken;

[0040] Extracting features from the environment image to obtain target environment features, substituting the target environment features into the comparison database, and obtaining a photograph with the greatest feature similarity as the target photograph;

[0041] The processing solution corresponding to the target shot picture is sent to a preset terminal.

[0042] Beneficial effects of the present invention:

[0043] The present invention proposes a tourist attraction environment recognition method based on image analysis. A network topology map is established according to a plan view of a target attraction. Video data collected by each network node in the network topology map is acquired in real time to obtain multiple original video data sets. For each original video data set, the original video data is subjected to frame extraction processing to obtain an original image set in a time series. Each network node corresponds to an original image set. For each original image set, the movement trajectory of each person in the original image set is determined, and the density data and flow data of the current network node are determined according to the movement trajectories of all the people. The density data and flow data corresponding to all the network nodes are mapped to the network topology map to obtain a target flow topology map. A flow guidance plan is generated according to the target flow topology map. A network topology map is established through the floor plan of the target scenic spot, and multiple original video data sets are obtained through the video data collected by the network nodes, so that the entire scenic spot can be monitored in real time, thus overcoming the limitations of traditional fixed-point monitoring. Then, by calculating the movement trajectories of all personnel and determining the density data and flow data of the current network nodes, the flow of personnel and environmental conditions in the scenic spot can be grasped in real time and comprehensively, and the location where tourist flow congestion will occur in the next cycle at the current time can be predicted. The flow guidance plan is generated in advance through the target flow topology map, avoiding congestion during the peak period of tourist flow and improving the management efficiency of the scenic park. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] The present invention will be further described below in conjunction with the accompanying drawings.

[0045] Figure 1 A flowchart of a tourist attraction environment recognition method based on image analysis is provided for an embodiment of the present invention;

[0046] Figure 2 A flowchart of another method for identifying tourist attraction environment based on image analysis is provided for an embodiment of the present invention. DETAILED DESCRIPTION

[0047] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. The term "and / or" herein is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the present invention, the description of "first", "second", etc. is only used for descriptive purposes, and cannot be understood as indicating or implying its relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" can explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but it must be based on the ability of ordinary technicians in the field to implement. When the combination of technical solutions is contradictory or cannot be implemented, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.

[0048] Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making any creative work shall fall within the scope of protection of the present invention.

[0049] The embodiment of the present invention provides a method for identifying tourist attraction environment based on image analysis. Figure 1 , Figure 1 A flow chart of a tourist attraction environment recognition method based on image analysis provided by an embodiment of the present invention. The method comprises the following steps:

[0050] S101, establishing a network topology map according to the plan view of the target scenic spot, acquiring video data collected by each network node in the network topology map in real time to obtain multiple original video data sets.

[0051] S102, for each original video data set, perform frame extraction processing on the original video data to obtain an original image set in a time series.

[0052] S103, for each original image set, determining the movement trajectory of each person in the original image set, and determining the density data and flow data of the current network node according to the movement trajectories of all the people.

[0053] S104, mapping the density data and flow data corresponding to all network nodes into the network topology map to obtain a target flow topology map.

[0054] S105: Generate a traffic steering plan according to the target traffic topology map.

[0055] Each network node corresponds to an original image set; the traffic data is the flow of people from the current node to the adjacent node and the average moving speed of the flow of people;

[0056] A tourist attraction environment recognition method based on image analysis provided by an embodiment of the present invention establishes a network topology map through a plan view of a target attraction, and obtains multiple original video data sets through video data collected by network nodes, so that the entire attraction can be monitored in real time, thereby overcoming the limitations of traditional fixed-point monitoring, and then by calculating the movement trajectories of all personnel, the density data and flow data of the current network nodes are determined, so that the flow of personnel and environmental conditions in the attraction can be grasped in real time and comprehensively, and the location where tourist flow congestion will occur in the next cycle at the current time is predicted. A flow guidance plan is generated in advance through the target flow topology map, thereby avoiding congestion during the peak period of tourist flow and improving the management efficiency of the scenic spot park.

[0057] In one implementation, the nodes of the network topology map may be scenic spot entrances, scenic spot exits, parking lots, toilets, viewing platforms, intersections, etc.; the connecting lines of the network topology map may be roads, walkways, guided paths, etc.

[0058] In one implementation, frame extraction can avoid the problem of incomplete images appearing at the edges of images, which would cause inaccurate subsequent identification of people.

[0059] In one implementation, through a networked layout and the collection of real-time video data, real-time monitoring of the entire tourist attraction can be achieved. Once any abnormality or change occurs in the attraction, the system can immediately capture and respond, greatly improving the system response speed.

[0060] In one implementation, by comprehensively analyzing the video data of all network nodes, the density data and flow data of the entire scenic spot are obtained, thereby providing more accurate and comprehensive information to help managers better understand the status of the scenic spot.

[0061] In one implementation, by determining the movement trajectory of each person, possible congestion and chaos can be predicted and avoided. When congestion is predicted, the generated traffic guidance plan can help optimize the flow of people, improve the tourist experience, and reduce the inefficiency caused by poor flow of people.

[0062] In one embodiment, see Figure 2 , step S102 comprises the following steps:

[0063] S1021, extracting frames from the original video data through a preset time window to obtain a key frame image set; taking the first frame in the key frame image set as an initial key frame, and recording frames adjacent to the initial key frame as comparison key frames.

[0064] S1022, using a feature extraction algorithm to perform person recognition on the edge area of ​​the image corresponding to the comparison key frame. If the person cannot be recognized, a key frame is re-extracted from the initial key frame and the comparison key frame to obtain a replacement key frame.

[0065] S1023, updating the comparison key frame by replacing the key frame, and performing person recognition again until the person can be recognized in the edge area of ​​the image corresponding to the comparison key frame.

[0066] S1024, record the comparison key frame as the initial key frame, obtain the comparison key frame again, repeat the above steps S1022 and S1023 to obtain the original image set.

[0067] In one implementation, the preset time window is determined by a technician.

[0068] In one implementation, the feature extraction algorithm may be an edge detection algorithm, a corner point detection algorithm, a feature point detection and description algorithm, a local binary pattern algorithm, a model-based extraction algorithm, or the like.

[0069] In one implementation, an identified person is one whose outline, posture or other features can be detected and located, and an unidentified person is one whose outline of a body part is located in an edge area but whose features cannot be determined. When a person cannot be located during person identification, it is not counted as an unidentified person.

[0070] In one implementation, frame extraction is performed through a preset time window instead of processing every frame in the video, which can significantly reduce the amount of calculation and processing time and optimize the use of computing resources.

[0071] In one implementation, the key frame can be re-extracted at 1 / 2, 1 / 3, 2 / 3 or the last 10 frames of the initial key frame of the current preset time window. The specific extraction scheme is determined by the technician; if the current shooting rate is 60 frames per second, and the preset time window is 0.5 seconds (i.e. 30 frames), then the key frame extraction frequency will be once every 30 frames. When it is necessary to extract the key frame within this time window, the technician can choose to extract at 1 / 2 of the window, i.e. the 15th frame after the initial key frame, or at 2 / 3 of the window, i.e. the 20th frame after the initial key frame.

[0072] The position of the extracted key frame is in front of the current comparison key frame.

[0073] In one implementation, when the comparison keyframe cannot identify a person, the replacement keyframe is re-extracted and the comparison keyframe is updated. By continuously adjusting and optimizing the selection of keyframes, the connection between each keyframe can be ensured, providing a basis for determining the subsequent movement trajectory of the person.

[0074] In one embodiment, for each original image set, determining the movement trajectory of each person in the original image set includes:

[0075] For each original image in the original image set, a person recognition algorithm is used to obtain a bounding box of the person in the original image, thereby obtaining a bounding box set of the original image;

[0076] For each bounding box in the bounding box set, extract the appearance features in the bounding box through the target feature extraction model to obtain a feature vector set of the original image;

[0077] The feature vector sets of adjacent images in the original image set are associated through a data association algorithm to identify the same person in the adjacent images and generate the action trajectory of each person.

[0078] In one implementation, the preset algorithm may be YOLO, SSD, etc.

[0079] In one implementation, the target feature extraction model can extract the unique appearance features of the person in the bounding box to form a highly discriminative feature vector, thereby improving the accuracy of person identification.

[0080] In one implementation, the feature extraction model can be a convolutional neural network model, a deep learning embedding model, a self-supervised learning model, a feature extraction model for target detection and tracking, etc.

[0081] In one implementation, the data association algorithm may be a Hungarian algorithm, a Kalman filter, a minimum cost flow algorithm, an IOU, or the like.

[0082] In one implementation, the specific implementation method for determining the movement trajectory of each person in the original image set may be, assuming that image 1 and image 2 are adjacent and image 1 is in front of image 2 in time series, a person is detected in image 1 to generate a bounding box, a bounding box set is obtained, feature vectors are extracted to obtain feature vector set A, a person is detected in image 2 to generate a bounding box, a bounding box set is obtained, feature vectors are extracted to obtain feature vector set B, the distance between A and B is calculated to obtain a cost matrix, the cost matrix is ​​processed by the Hungarian algorithm to obtain the best match, each detected person trajectory C is initialized in image 1, and the position of the successfully matched person in image 2 is added to C according to the matching result. If a new person detected in image 2 is not matched, a new trajectory is initialized to obtain D to prepare for subsequent adjacent images.

[0083] In one embodiment, determining density data and flow data of current network nodes according to the movement trajectories of all personnel includes:

[0084] Calculate the optical flow field between adjacent images in the original image set through the optical flow algorithm;

[0085] For each person's action trajectory, the coordinates of each point on the person's trajectory are extracted, and the extracted coordinates are mapped to the optical flow field to determine the motion vector corresponding to the person's action trajectory in the optical flow field;

[0086] The density data of the current network nodes is obtained according to the number of motion vectors in the optical flow field;

[0087] According to the connection direction between the current network node and the adjacent nodes, the motion vectors in the optical flow field are clustered to obtain different categories of motion vector data sets;

[0088] For each motion vector data set, the flow data of the current network node is obtained according to the number of motion vectors in the motion vector data set and the average moving speed of all motion vectors in the motion vector data set.

[0089] In one implementation, the optical flow algorithm can calculate the movement of pixels in an image sequence in real time, so that the movement trajectory of a person can be tracked and analyzed in real time, and repeated calculation of the person can be avoided by mapping the extracted coordinates to the optical flow field.

[0090] In one implementation, the optical flow field between adjacent images in the original image set is calculated by an optical flow algorithm, which is a prior art. Specifically, the Lucas-Kanade optical flow algorithm is used to find the new positions of these feature points in the next adjacent image in the time series, calculate the motion vector of the feature point, extract the displacement of the feature point calculated by the optical flow algorithm, generate the motion vector, and generate the optical flow field based on the calculated motion vector. These vectors represent the displacement of the feature points between adjacent images. The vector information usually includes two parts: the position of the feature point in the initial image and the position in the subsequent image.

[0091] In one implementation, the motion vectors in the optical flow field are clustered according to the motion direction of the motion vector and the connection direction between the network node and other nodes. When the similarity toward a network node is greater than the similarity determined by the technician, they can be classified into one category.

[0092] In one implementation, by mapping the action trajectory to the optical flow field, the motion vector corresponding to the person's action can be obtained in real time, thereby accurately evaluating the density and flow of network nodes.

[0093] In one implementation, the density data of network nodes can be accurately evaluated based on the number of motion vectors in the optical flow field, which is helpful for subsequent traffic distribution.

[0094] In one embodiment, generating a traffic steering solution according to a target traffic topology diagram includes:

[0095] Generate density data of each network node in the next preset period according to the target traffic topology map, and map the density data of all nodes to the same time coordinate system to obtain a global density data change map;

[0096] For the density data change curve of each network node, if there is a node whose density data at time T is greater than the preset density value, the traffic data flowing to the node will be dispersed to other nodes through the traffic dispersion strategy, and it is ensured that the density data of other nodes will not be greater than the preset value.

[0097] In one implementation, the preset period may be determined by a technician, and the preset period may also be determined by the distance from each network node to other network nodes and the average moving speed of human traffic from each network node to other network nodes.

[0098] In one implementation, when a node is expected to experience traffic congestion, the traffic can be dispersed to other nodes. By dispersing the traffic, the risk of a single node crashing due to excessive traffic can be reduced, thereby improving the management efficiency of the scenic spot park.

[0099] In one implementation, by generating density data for each network node in the next preset period, the system can predict which nodes may experience traffic congestion, thereby taking measures in advance to improve the efficiency of scenic area management.

[0100] The density data of each network node in the next preset period is generated according to the target traffic topology diagram, including:

[0101] For each network node, obtain the outflow data and inflow data of the network node in the next preset period, and obtain the target difference data according to the difference between the inflow data and the outflow data;

[0102] The density data of the network node in the next preset period is determined according to the current density data of the network node and the target difference data.

[0103] In one implementation, the density data of the network node in the next preset period is determined based on the current density data of the network node and the target difference data as the flow of the current node plus the inflow of the next preset period minus the outflow of the next preset period.

[0104] In one implementation, by predicting the density data of network nodes in the next preset period, scenic area managers can know in advance which nodes may face the risk of overload or congestion, thereby providing sufficient time to take preventive measures such as diversion, temporary suspension of entry, etc.

[0105] In one embodiment, the traffic data flowing to the node is dispersed to other nodes through the traffic dispersion strategy, and the density data of other nodes is ensured not to be greater than a preset value, including:

[0106] Get all the starting nodes, and generate a node flow diagram based on all the starting nodes; the starting node is adjacent to the node, and the flow data flows into the node; the node flow diagram consists of the starting node and the flow node; the flow node is the adjacent node of the starting node except the node;

[0107] According to the node flow diagram, for each starting node, obtain the density data of each flow node corresponding to the starting node and the density data of each flow node in the next preset period;

[0108] For each flow direction node, the accommodated data of the flow direction node is determined according to the density data of the next preset period of the flow direction node and the current density data, and the flow direction ratio is generated according to the accommodated data of all flow direction nodes corresponding to the starting node;

[0109] The flow data flowing from the starting node into the node is dispersed to all flow direction nodes corresponding to the starting node according to the flow direction ratio.

[0110] In one implementation, the data that can be accommodated is the difference between the density data of the next preset period and the current density data to determine the data flowing to the node.

[0111] In one implementation, the scheme described below is only a specific implementation path, and it does not cover all possible implementation methods. Through camera monitoring, it is detected that the population density in a certain area is increasing rapidly. Through image analysis, the congested area and flow direction are determined, and the population density and flow data in the area are calculated to determine the diversion direction. A temporary sign is set up in front of the congested area to guide tourists to take other routes. The electronic sign is adjusted to recommend tourists to go to areas with less traffic. For example, the content of the electronic sign is updated: "There is congestion ahead, please take the path on the right." Signs are added at important nodes to guide tourists to take other channels. The content and position of the sign are adjusted in time to ensure the diversion effect.

[0112] In one implementation, when a node is simultaneously shunted by two or more nodes, the node is first evenly shunted. If there is a node whose shunting data is insufficient at the shunting node, the shunting requirements of the node are first met, and the remaining nodes are re-evenly shunted. This process is repeated until the node's available traffic is used up or the node's available traffic is less than the minimum shunting condition set by the technician.

[0113] In one implementation, by obtaining density data of the starting node and the flow node, and determining the data that can be accommodated by the flow node based on this data, the flow can be optimally distributed to avoid a decrease in scenic area management efficiency due to overloading of certain nodes.

[0114] In one embodiment, the method further comprises:

[0115] An environmental image dataset is obtained by periodically taking environmental images of target scenic spots by drones; the environmental images are labeled with locations;

[0116] For each environmental image in the environmental image data set, the comparison database corresponding to the environmental image is determined through the location tag; the comparison database records the pictures taken by the current location tag in different environments, the features corresponding to each picture taken, and the processing scheme corresponding to each picture taken;

[0117] Extract features from the environment image to obtain target environment features, substitute the target environment features into the comparison database, and obtain the shot with the greatest feature similarity as the target shot;

[0118] Send the processing solution corresponding to the target captured image to the preset terminal.

[0119] In one implementation, the preset terminal is a communication device of a target scenic spot environment management personnel.

[0120] In one implementation, a drone can periodically and quickly capture environmental images of a target scenic spot to ensure real-time updating of environmental data. Environmental features can be quickly identified and corresponding processing solutions can be found, thereby improving response speed and work efficiency.

[0121] In one implementation, by periodically capturing and analyzing environmental images, potential problems and hidden dangers can be discovered in a timely manner, so that treatment plans can be sent to a preset terminal in advance so that preventive and repair measures can be taken in a timely manner to avoid further deterioration of the problem.

[0122] The above is a detailed description of an embodiment of the present invention, but the content is only a preferred embodiment of the present invention and cannot be considered to limit the scope of implementation of the present invention. All equivalent changes and improvements made within the scope of the present invention should still fall within the scope of the patent coverage of the present invention.

Claims

1. A tourist attraction environment recognition method based on image analysis, It is characterized in that The method comprises: Establish a network topology map according to the plan view of the target scenic spot, and acquire video data collected by each network node in the network topology map in real time to obtain multiple original video data sets; For each original video data set, the original video data is subjected to frame extraction processing to obtain an original image set in time series; each network node corresponds to an original image set; For each original image set, determine the movement trajectory of each person in the original image set, and determine the density data and flow data of the current network node according to the movement trajectories of all people; the flow data is the flow of people from the current node to the adjacent node and the average moving speed of the flow of people; Mapping density data and flow data corresponding to all network nodes into the network topology map to obtain a target flow topology map; A traffic steering plan is generated according to the target traffic topology diagram.

2. A tourist attraction environment recognition method based on image analysis according to claim 1, It is characterized in that The original video data is processed by frame extraction to obtain the original image set in time series, including: Step 1: extract frames from the original video data through a preset time window to obtain a key frame image set; take the first frame in the key frame image set as an initial key frame, and record the frames adjacent to the initial key frame as comparison key frames; Step 2: Using a feature extraction algorithm to identify a person in the edge area of ​​the image corresponding to the comparison key frame, if the person cannot be identified, re-extracting a key frame from the initial key frame and the comparison key frame to obtain a replacement key frame; Step 3: updating the comparison key frame with the replacement key frame, and performing person recognition again until the person can be recognized in the edge area of ​​the image corresponding to the comparison key frame; Step 4: Record the contrast key frame as the initial key frame, obtain the contrast key frame again, repeat the above steps 2 and 3 to obtain the original image set.

3. The method for identifying tourist attraction environment based on image analysis according to claim 1, It is characterized in that For each original image set, determining the action trajectory of each person in the original image set includes: For each original image in the original image set, a person recognition algorithm is used to obtain a bounding box of the person in the original image, thereby obtaining a bounding box set of the original image; For each bounding box in the bounding box set, extract the appearance features in the bounding box through the target feature extraction model to obtain a feature vector set of the original image; The feature vector sets of adjacent images in the original image set are associated through a data association algorithm to identify the same person in the adjacent images and generate the action trajectory of each person.

4. The method for identifying tourist attraction environment based on image analysis according to claim 1, It is characterized in that The density data and flow data of the current network nodes are determined based on the movement trajectories of all personnel, including: Calculate the optical flow field between adjacent images in the original image set through the optical flow algorithm; For each person's action trajectory, extract the coordinates of each point on the person's trajectory, and map the extracted coordinates to the optical flow field to determine a motion vector in the optical flow field corresponding to the person's action trajectory; Obtaining density data of current network nodes according to the number of motion vectors in the optical flow field; Clustering the motion vectors in the optical flow field according to the connection direction between the current network node and the adjacent nodes to obtain motion vector data sets of different categories; For each motion vector data set, the flow data of the current network node is obtained according to the number of motion vectors in the motion vector data set and the average moving speed of all motion vectors in the motion vector data set.

5. The method for identifying tourist attraction environment based on image analysis according to claim 1, It is characterized in that Generating a traffic guidance solution according to the target traffic topology diagram includes: Generating density data of each network node in the next preset period according to the target traffic topology graph, and mapping the density data of all nodes to the same time coordinate system to obtain a global density data change graph; For the density data change curve of each network node, if there is a node whose density data at time T is greater than the preset density value, the traffic data flowing to the node will be dispersed to other nodes through the traffic dispersion strategy, and it is ensured that the density data of other nodes will not be greater than the preset value.

6. A tourist attraction environment recognition method based on image analysis according to claim 5, It is characterized in that Generating density data of each network node in the next preset period according to the target traffic topology graph includes: For each network node, obtain the outflow data and inflow data of the network node in the next preset period, and obtain target difference data according to the difference between the inflow data and the outflow data; The density data of the network node in the next preset period is determined according to the current density data of the network node and the target difference data.

7. The method for identifying tourist attraction environment based on image analysis according to claim 5, It is characterized in that The traffic distribution strategy is used to distribute the traffic data flowing to the node to other nodes, and to ensure that the density data of other nodes will not exceed the preset value, including: Obtain all starting nodes, and generate a node flow diagram according to all starting nodes; the starting node is adjacent to the node, and flow data flows into the node; the node flow diagram is composed of a starting node and a flow node; the flow node is an adjacent node of the starting node except the node; According to the node flow diagram, for each starting node, obtaining density data of each flow node corresponding to the starting node and density data of each flow node in the next preset period; For each flow direction node, the accommodated data of the flow direction node is determined according to the density data of the next preset period of the flow direction node and the current density data, and the flow direction ratio is generated according to the accommodated data of all flow direction nodes corresponding to the starting node; The flow data flowing from the starting node into the node is dispersed to all flow direction nodes corresponding to the starting node according to the flow direction ratio.

8. The method for identifying tourist attraction environment based on image analysis according to claim 1, It is characterized in that The method further comprises: An environmental image dataset is obtained by periodically photographing environmental images of the target scenic spot by a drone; the environmental images are provided with location tags; For each environmental image in the environmental image data set, a comparison database corresponding to the environmental image is determined through a location tag; the comparison database records pictures taken by the current location tag in different environments, features corresponding to each picture taken, and a processing solution corresponding to each picture taken; Extracting features from the environment image to obtain target environment features, substituting the target environment features into the comparison database, and obtaining a photograph with the greatest feature similarity as the target photograph; The processing solution corresponding to the target shot picture is sent to a preset terminal.

Citation Information

Patent Citations

  • Digital scenic spot management system

    CN117455179A

  • Traffic light control method and system based on deep learning

    CN117935562A

  • Systems and methods for machine learning enhanced railway condition monitoring, assessment and prediction

    US20240083478A1

Cited By

  • Data-driven campus safety management level assessment method and system

    CN121119694A

  • High-risk operator state intelligent analysis system based on AI large model

    CN121438182A