A personnel trajectory management method and system for a smart park, and a storage medium
By performing image segmentation and feature extraction on the surveillance video of the smart park, capturing and comparing the image data of internal personnel, locating their movement trajectories and judging path permissions, the problem of internal personnel management in the smart park is solved and intelligent management and data are realized. Synchronized, enhanced security and confidentiality.
Patent Information
- Application Number
- CN202410882648.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-03
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-07-03
AI Technical Summary
It is difficult to effectively control the internal personnel management of smart parks. The existing technology mainly focuses on the identification of external personnel and lacks intelligent management solutions for internal personnel.
By performing image segmentation and feature extraction on the captured surveillance video of the smart park, we can capture key visual features, compare the image data of internal personnel to be queried, locate their movement trajectories, and judge and correct path permissions based on identity information, and synchronize the data to database.
It realizes intelligent management of internal personnel in the park, enhances security and confidentiality, and ensures the accuracy and query efficiency of trajectory data.
Smart Images

Figure CN118429898B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of operation management technology, and in particular to a personnel trajectory management method and system, and a storage medium for a smart park. Background Art
[0002] As the name implies, a park is a relatively closed management and operation area. With the development of the economy and the continuous deepening of park investment, the demand for control and management efficiency, security and water resistance of the park has gradually increased. At the same time, the desire to seek comprehensive management and operation of the park development has become increasingly strong, so smart parks came into being. At present, the scale of smart parks in various places has been expanding with the development of science and technology. The park covers a variety of park units and the scale of personnel has also expanded. Although some parks manage personnel by checking the identity information of personnel, this is mainly used to identify personnel outside the park, and the management of personnel inside the park is relatively limited. Considering the independence and confidentiality between different units in the park, how to effectively manage the personnel inside the park has become an urgent problem to be solved. Summary of the invention
[0003] To this end, the present invention proposes a personnel trajectory management method and system, and a storage medium for a smart park, which can achieve intelligent and effective management of personnel within the park through personnel trajectory management.
[0004] In a first aspect, an embodiment of the present invention provides a personnel trajectory management method for a smart park, comprising the following steps: step S1, performing image segmentation on the captured surveillance video of the smart park to obtain surveillance segment data; performing image extraction on the surveillance segment data to obtain surveillance image data;
[0005] Step S2, capturing key visual features of the monitoring image data to obtain key image data; obtaining image data of the internal person to be queried, and performing similarity comparison on the image data of the internal person to be queried based on the key image data to obtain target image data;
[0006] Step S3, positioning the target image data to obtain image location information; obtaining an electronic map of the smart park, and performing location fitting based on the image location information and the electronic map of the smart park to obtain the movement trajectory of the internal personnel to be queried;
[0007] Step S4, performing identity verification based on the image data of the internal person to be queried, thereby obtaining the person's identity information; judging the path authority of the action trajectory based on the person's identity information, and executing step S5 when the judgment result is that the path authority is possessed; otherwise, performing path correction on the action trajectory, and executing step S5;
[0008] Step S5: Analyze the parameter types of the action trajectory and integrate the parameters to obtain dynamic position parameters, and synchronize the action trajectory, personnel identity information and dynamic position parameters to the database of the smart park.
[0009] Optionally, in one embodiment of the present invention, the step S1 includes the following steps: step S11, performing pixel analysis on the captured surveillance video of the smart park to obtain an image space; using a feature space clustering method to perform feature representation on the pixels in the image space to obtain feature space points;
[0010] Step S12, segmenting the feature space according to the degree of aggregation of the feature space points in the feature space, thereby obtaining a segmented space; mapping the feature space points in the segmented space to the image space, thereby obtaining monitoring segment data;
[0011] Step S13, extracting image information from the monitoring segment data to obtain image content features; dividing the monitoring segment data into image regions to obtain a plurality of image slice data; and screening the plurality of image slice data according to the image content features to obtain monitoring image data.
[0012] Optionally, in one embodiment of the present invention, the step S2 includes the following steps: step S21, constructing an image scale space corresponding to the monitoring image data based on the monitoring image data and the scale correspondence principle; searching for all key points in the monitoring image data based on the image scale space, and screening all key points for stability, so as to obtain discrete accurate key points;
[0013] Step S22, performing curve fitting on the discrete precise key points, so as to obtain the position information and scale information of the precise key points; performing smoothing processing on the precise key points, so as to obtain the direction of the precise key points, and obtaining key image data based on the direction, position information and scale information of the precise key points, wherein the key image data includes a plurality of key images;
[0014] Step S23, when the image data of the internal person to be queried is obtained, the approximation of each key image is calculated and corrected respectively, so as to obtain the approximation reference value of each key image, and the image approximation of the image data of the internal person to be queried is calculated; the image approximation is compared with the approximation reference value of each key image one by one, so as to take the approximation reference value of the key image closest to the image approximation as the target approximation; and the key image corresponding to the target approximation is determined as the target image data.
[0015] Optionally, in one embodiment of the present invention, the step S3 includes the following steps: step S31, extracting feature vectors of the target image data, thereby obtaining multiple feature vectors of the target image data; performing positioning matching on the multiple feature vectors of the target image data through a pre-trained convolutional neural network, thereby obtaining a feature vector sorting list, wherein in the feature vector sorting list, the multiple feature vectors of the target image data are arranged according to the success degree of positioning matching; obtaining the positioning parameters of the target image data, matching the feature vector sorting list with the positioning parameters of the target image data, thereby obtaining image position information;
[0016] Step S32: when the electronic map of the smart park is obtained, vector processing is performed on the electronic map of the smart park to obtain a vector schematic map of the smart park; vector fusion is performed on the image position information and the vector schematic map of the smart park to obtain a number of trajectory points located on the vector schematic map of the smart park;
[0017] Step S33: According to the difference value between the electronic map of the smart park and the vector schematic map of the smart park, all trajectory points are sequentially projected onto the electronic map of the smart park, so as to obtain the movement trajectory of the internal personnel to be queried.
[0018] Optionally, in one embodiment of the present invention, the step in step S4 performs path authority judgment on the action trajectory based on the personnel identity information, and when the judgment result is that the path authority is obtained, step S5 is executed; otherwise, the action trajectory is corrected, and step S5 is executed, including the following steps: step S41, inputting the personnel identity information into the database of the smart park for function query, so as to obtain the target job category corresponding to the personnel identity information; querying the workplace information of the target job category through the database of the smart park, and performing path matching on the target job category based on the workplace information, so as to obtain a target path collection;
[0019] Step S42, determining whether the target path collection includes the action trajectory, if yes, executing step S5, otherwise executing step S43;
[0020] Step S43, constructing actual trajectory points of the action trajectory according to a predefined format, and dividing the trajectory points into multiple trajectory point subsets according to preset path correction conditions, wherein each trajectory point subset includes a number of actual trajectory points; for each trajectory point subset, performing path simulation on the trajectory point subset based on the workplace information, thereby obtaining a fitting segmented path corresponding to the trajectory point subset; splicing all the fitting segmented paths to obtain a fitting path; determining the correction accuracy according to the fitting path and the action trajectory, and performing path correction on the action trajectory according to the correction accuracy.
[0021] Optionally, in one embodiment of the present invention, the step S21 includes the following steps: step S211, constructing a Gaussian pyramid according to the monitoring image data and based on the scale correspondence principle, and performing Gaussian blur processing on each layer of the Gaussian pyramid using different preset scale factors;
[0022] Step S212: searching all key points in the monitoring image data through the Gaussian pyramid, and filtering out key points with low contrast and / or edge effect values within a preset edge effect threshold range, thereby obtaining discrete and accurate key points.
[0023] Optionally, in an embodiment of the present invention, the steps in step S23, respectively calculating and correcting the approximation of each key image, thereby obtaining the approximation reference value of each key image, include the following steps: step S231, for each key image, performing balanced scaling processing on the key image to obtain compressed image data;
[0024] Step S232, performing grayscale processing on the compressed image data to obtain grayscale image data;
[0025] Step S233: Identify the pixel points in each row of the grayscale image data, and calculate the approximation reference value by combining the pixel points in each row with the approximation correction formula.
[0026] Optionally, in one embodiment of the present invention, the approximation correction formula in step S233 is as follows: ;
[0027] in, is the approximate reference value, is the number of pixel rows, is the pixel variable, is the average value of pixels in each row, is the contrast of grayscale image data, is the brightness of the grayscale image data, To balance the scaling correlation factor, is the grayscale transformation correlation factor, It is the preset correction compensation parameter.
[0028] In a second aspect, an embodiment of the present invention provides a computer-readable storage medium, which stores a program executable by a processor. When the program executable by the processor is executed by the processor, it is used to implement the personnel trajectory management method for a smart park as described in any one of claims 1 to 8.
[0029] In a third aspect, an embodiment of the present invention provides a personnel trajectory management system for a smart park, comprising: a first image processing module, configured to perform image segmentation on a captured surveillance video of the smart park, thereby obtaining surveillance segment data; and perform image extraction on the surveillance segment data, thereby obtaining surveillance image data;
[0030] The second image processing module is used to capture the key visual features of the monitoring image data to obtain key image data; obtain the image data of the internal person to be queried, and perform a similarity comparison on the image data of the internal person to be queried based on the key image data to obtain the target image data;
[0031] The trajectory generation module is used to locate the target image data, thereby obtaining the image location information; obtain the electronic map of the smart park, and perform location fitting based on the image location information and the electronic map of the smart park, thereby obtaining the movement trajectory of the internal personnel to be queried;
[0032] The authority determination module is used to perform identity verification based on the image data of the internal person to be queried, so as to obtain the person's identity information; based on the person's identity information, the path authority of the action trajectory is determined, and when the judgment result is that the path authority is obtained, the action trajectory is sent to the data synchronization module; otherwise, the path deviation of the action trajectory is corrected and the action trajectory is sent to the data synchronization module;
[0033] The data synchronization module is used to analyze the parameter types of the action trajectory and integrate the parameters to obtain the dynamic position parameters, and synchronize the action trajectory, personnel identity information and dynamic position parameters to the database of the smart park.
[0034] By adopting the above technical scheme, compared with the prior art, the beneficial effects of the present invention include at least: 1. The present invention can obtain real-time monitoring image data from the snapshot monitoring video of the smart park by performing image segmentation on the snapshot monitoring video of the smart park and performing image extraction on the monitoring fragment data, and then by capturing the key visual features of the monitoring image data and performing similarity comparison on the image data of the internal personnel to be queried, it is possible to obtain target image data having a certain degree of similarity with the image data of the internal personnel to be queried, and then by performing information positioning on the target image data to obtain image position information, and performing position fitting based on the image position information and the electronic map of the smart park, it is possible to generate the movement trajectory of the internal personnel to be queried, thereby accurately knowing the movement of the internal personnel to be queried in the smart park;
[0035] 2. The present invention can judge the path authority of the action trajectory of the internal personnel to be queried based on the personnel identity information of the internal personnel to be queried, and when it is judged that the internal personnel does not have the path authority, the action trajectory can be matched with the path authority by correcting the path deviation of the action trajectory, that is, the action trajectory after the path deviation correction can meet the personnel identity information of the internal personnel to be queried, thereby ensuring that the action trajectory will not cause adverse effects on other unrelated enterprises or units in the park, realizing intelligent and effective management of personnel within the park, and is conducive to enhancing the safety factor and confidentiality factor within the park;
[0036] 3. The present invention performs parameter type analysis on the action trajectory and integrates the parameters to obtain dynamic position parameters, and synchronizes the action trajectory, personnel identity information and dynamic position parameters to the database of the smart park, so that the database can call the stored personnel data at any time. Since the action trajectory, personnel identity information and dynamic position parameters in a set of personnel data are corresponding, it is easy to query the remaining related personnel data through one of the personnel data when calling for query, so the query effect is good and it is more convenient for systematic intelligent management. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 It is a flow chart of a personnel trajectory management method for a smart park provided by an embodiment of the present invention;
[0038] Figure 2 yes Figure 1 Flow chart of step S1 in FIG.
[0039] Figure 3 yes Figure 1 Flow chart of step S2 in FIG.
[0040] Figure 4 yes Figure 1 Flow chart of step S3 in FIG.
[0041] Figure 5 yes Figure 1 Partial flow chart of "judging the path authority of the action trajectory based on the identity information of the personnel, and executing step S5 when the judgment result is that the action trajectory has the path authority; otherwise, correcting the path of the action trajectory and executing step S5" in step S4;
[0042] Figure 6 yes Figure 3 Flow chart of step S21 in FIG.
[0043] Figure 7 yes Figure 3 A partial flow chart of "calculating and correcting the approximation of each key image respectively, so as to obtain the approximation reference value of each key image" in step S23 of FIG.
[0044] Figure 8 It is a structural diagram of a personnel trajectory management system for a smart park provided by one embodiment of the present invention. DETAILED DESCRIPTION
[0045] The present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0046] It should be noted that although the functional modules are divided in the device schematic and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart.
[0047] like Figure 1 As shown, the personnel trajectory management method of the smart park may include, but is not limited to, the following steps: Step S1, performing image segmentation on the captured surveillance video of the smart park to obtain surveillance segment data; performing image extraction on the surveillance segment data to obtain surveillance image data;
[0048] Step S2, capturing key visual features of the monitoring image data to obtain key image data; obtaining image data of the internal person to be queried, and performing similarity comparison on the image data of the internal person to be queried based on the key image data to obtain target image data;
[0049] Step S3, positioning the target image data to obtain image location information; obtaining an electronic map of the smart park, and performing location fitting based on the image location information and the electronic map of the smart park to obtain the movement trajectory of the internal personnel to be queried;
[0050] It can be seen that by performing image segmentation on the captured surveillance video of the smart park and image extraction on the surveillance clip data, real-time surveillance image data can be obtained from the captured surveillance video of the smart park. Then, by capturing the key visual features of the surveillance image data and performing similarity comparison on the image data of the internal personnel to be queried, target image data having a certain degree of similarity with the image data of the internal personnel to be queried can be obtained. Then, by performing information positioning on the target image data to obtain image position information, and performing position fitting based on the image position information and the electronic map of the smart park, the action trajectory of the internal personnel to be queried can be generated, thereby accurately knowing the action situation of the internal personnel to be queried in the smart park.
[0051] Step S4, performing identity verification based on the image data of the internal person to be queried, thereby obtaining the person's identity information; judging the path authority of the action trajectory based on the person's identity information, and executing step S5 when the judgment result is that the path authority is possessed; otherwise, performing path correction on the action trajectory, and executing step S5;
[0052] It can be seen that the path authority of the action trajectory is judged based on the identity information of the internal personnel to be queried, and when it is judged that the person does not have the path authority, the path deviation of the action trajectory is corrected so that the action trajectory can match the path authority, that is, the action trajectory after the path deviation correction can meet the identity information of the internal personnel to be queried, thereby ensuring that the action trajectory will not cause adverse effects on other unrelated enterprises or units in the park, realizing the intelligent and effective management of the personnel in the park, which is conducive to enhancing the safety factor and confidentiality factor within the park;
[0053] Step S5: Analyze the parameter types of the action trajectory and integrate the parameters to obtain dynamic position parameters, and synchronize the action trajectory, personnel identity information and dynamic position parameters to the database of the smart park.
[0054] It can be seen that by analyzing the parameter type of the action trajectory and integrating the parameters to obtain the dynamic position parameters, and synchronizing the action trajectory, personnel identity information and dynamic position parameters to the database of the smart park, the database can call the stored personnel data at any time. Since the action trajectory, personnel identity information and dynamic position parameters in a set of personnel data are corresponding, it is easy to query the remaining related personnel data through one of the personnel data when calling the query, the query effect is good, and it is more convenient for systematic intelligent management.
[0055] It should be noted that the types, structures and environments of the smart parks in the embodiments of the present invention can be diverse, and are not limited thereto. For example, a smart park can be, but is not limited to, an industrial park, a logistics park, a science and technology park, a cultural industry park, a free trade park, and an agricultural park, etc. Alternatively, a smart park can also be a hybrid park that includes the functions of any of the above parks. In essence, the improvement of the embodiments of the present invention over the related technologies does not lie in the smart park itself, but in how to achieve intelligent and effective management of personnel within the park, and is applicable to smart parks in similar scenarios.
[0056] In one embodiment, the time limit of the snapshot surveillance video of the smart park can be selected according to specific needs. For example, if it is necessary to observe the movements of personnel in the last two days, then the selected snapshot surveillance video is the one collected in the last two days. If it is only necessary to observe the movements of personnel in the last hour, then the selected snapshot surveillance video is the one collected in the last hour, and so on. After determining the required snapshot surveillance video, proceed to the subsequent steps.
[0057] In one embodiment, the image data of the internal personnel to be queried may be pre-stored. For example, in a smart park, the information of the internal personnel who enter or are introduced into the smart park for the first time may be recorded and stored. During this process, the image data of the internal personnel may be collected and stored in a database in advance, and the corresponding image data of the internal personnel may be retrieved from the database when needed. The electronic map of the smart park may be obtained, but is not limited to, through an existing map engine, or the technical personnel in this field may select a corresponding acquisition method for acquisition according to the specific application scenario, etc., which is not limited here.
[0058] In one embodiment, there may be multiple ways to perform parameter type analysis and parameter integration on the motion trajectory. For example, the location parameters corresponding to the motion trajectory may be obtained by analyzing the actual locations in the smart park mainly involved in the motion trajectory. The location parameters may be regarded as a characteristic parameter data of the motion trajectory. Similarly, the marker parameters corresponding to the motion trajectory may be obtained by analyzing the markers in the smart park mainly involved in the motion trajectory. The marker parameters may be regarded as another characteristic parameter data of the motion trajectory, and so on. All the characteristic parameter data may then be integrated into a parameter group to obtain the dynamic location parameters. The database of the smart park may adopt various types of existing databases currently available on the market, and there is no limitation on them herein.
[0059] like Figure 2 As shown, in one embodiment of the present invention, step S1 may include but is not limited to the following steps: step S11, performing pixel analysis on the captured surveillance video of the smart park to obtain an image space; using a feature space clustering method to perform feature representation on the pixels in the image space to obtain feature space points;
[0060] Step S12, segmenting the feature space according to the degree of aggregation of the feature space points in the feature space, thereby obtaining a segmented space; mapping the feature space points in the segmented space to the image space, thereby obtaining monitoring segment data;
[0061] Step S13, extracting image information from the monitoring segment data to obtain image content features; dividing the monitoring segment data into image regions to obtain a plurality of image slice data; and screening the plurality of image slice data according to the image content features to obtain monitoring image data.
[0062] In this step, image segmentation is performed by feature space clustering method, that is, the feature space is segmented according to the degree of clustering of feature space points in the feature space to obtain segmented space, and then the feature space points in the segmented space are mapped to the image space to obtain monitoring fragment data. In this process, each space point is given a membership to the corresponding space, which can reduce the influence of human intervention, and is applicable even if there is uncertainty and ambiguity in the image; and image content features and multiple image slice data can be obtained by extracting image information and dividing image areas from the monitoring fragment data, so that content screening can be performed on multiple image slice data according to the image content features, and image slice data suitable for the image content features can be found out, and the image slice data is used as monitoring image data. The monitoring image data obtained in this way has good stability and relatively small errors.
[0063] In one embodiment, there may be multiple ways to divide the image area, and the number of obtained image slice data is not limited, and can be selected and configured according to the specific application scenario.
[0064] like Figure 3 As shown, in one embodiment of the present invention, step S2 may include, but is not limited to, the following steps: step S21, constructing an image scale space corresponding to the monitoring image data based on the monitoring image data and the scale correspondence principle; searching for all key points in the monitoring image data based on the image scale space, and screening all key points for stability, thereby obtaining discrete accurate key points;
[0065] Step S22, performing curve fitting on the discrete precise key points, so as to obtain the position information and scale information of the precise key points; performing smoothing processing on the precise key points, so as to obtain the direction of the precise key points, and obtaining key image data based on the direction, position information and scale information of the precise key points, wherein the key image data includes a plurality of key images;
[0066] Step S23, when the image data of the internal person to be queried is obtained, the approximation of each key image is calculated and corrected respectively, so as to obtain the approximation reference value of each key image, and the image approximation of the image data of the internal person to be queried is calculated; the image approximation is compared with the approximation reference value of each key image one by one, so as to take the approximation reference value of the key image closest to the image approximation as the target approximation; and the key image corresponding to the target approximation is determined as the target image data.
[0067] In this step, an image scale space is constructed by simulating the multi-scale features of the surveillance image data. In the image scale space, the large scale captures the general features, and the small scale focuses on the detailed features, so as to ensure that the surveillance image data can have corresponding feature points at any scale, that is, to ensure scale invariance; the approximation of each key image is calculated and corrected to obtain the approximation reference value of each key image, mainly for comparing the image approximation with the image data of the internal person to be queried, so that in the comparison process, the approximation reference value of the key image closest to the image approximation is used as the target approximation, so that the key image corresponding to the target approximation can be determined as the target image data, and the target image data that meets the requirements can be obtained.
[0068] In one embodiment, the key points may be some very prominent points that will not change due to factors such as illumination, affine transformation and noise, such as corner points, edge points, bright spots in dark areas and dark spots in bright areas, etc.;
[0069] In one embodiment, in order to achieve rotation invariance, feature points can be assigned values based on the local image structure of the detected precise key points. The specific method can be to use a gradient direction histogram, that is, when calculating the histogram, each sampling point added to the histogram is weighted using a circular Gaussian function, that is, Gaussian smoothing is performed; Gaussian smoothing can be used to make the gradient amplitude near the precise key point have a larger weight, thereby partially compensating for the instability of the feature points caused by not considering affine invariance; a precise key point may have multiple directions, which is conducive to enhancing the robustness of image matching.
[0070] In one embodiment, there may be multiple ways to calculate the image similarity of the image data of the internal person to be queried, such as using the existing hash algorithm, histogram algorithm, cosine similarity algorithm, and Euclidean distance algorithm, etc. This part of the content is well known to those skilled in the art and will not be elaborated here.
[0071] like Figure 4 As shown, in one embodiment of the present invention, step S3 may include but is not limited to the following steps: step S31, extracting feature vectors of target image data to obtain multiple feature vectors of target image data; performing positioning matching on multiple feature vectors of target image data through a pre-trained convolutional neural network to obtain a feature vector sorting list, wherein in the feature vector sorting list, multiple feature vectors of target image data are arranged according to the success degree of positioning matching; obtaining positioning parameters of target image data, matching the feature vector sorting list with the positioning parameters of target image data, thereby obtaining image position information;
[0072] Step S32: when the electronic map of the smart park is obtained, vector processing is performed on the electronic map of the smart park to obtain a vector schematic map of the smart park; vector fusion is performed on the image position information and the vector schematic map of the smart park to obtain a number of trajectory points located on the vector schematic map of the smart park;
[0073] Step S33: According to the difference value between the electronic map of the smart park and the vector schematic map of the smart park, all trajectory points are sequentially projected onto the electronic map of the smart park, so as to obtain the movement trajectory of the internal personnel to be queried.
[0074] In this step, by extracting the feature vectors of the target image data and positioning and matching the feature vectors, a feature vector sorting list can be obtained after sorting each feature vector. Since in the feature vector sorting list, multiple feature vectors of the target image data are arranged according to the success degree of positioning matching, when the feature vector sorting list is matched with the positioning parameters of the target image data, the feature vectors with successful positioning matching will be preferentially matched with the positioning parameters of the target image data, thereby generating a stable and reliable positioning matching position, and finally obtaining image position information based on all positioning matching positions, and the image position information can better characterize the information positioning situation of the target image data; further, by vector fusion of the image position information and the vector schematic map of the smart park, thereby obtaining trajectory points on the vector schematic map, considering the difference between the electronic map of the smart park and the vector schematic map of the smart park, all trajectory points are sequentially projected onto the electronic map of the smart park based on the difference, so that the movement trajectory of the internal personnel to be queried can be accurately obtained.
[0075] In one embodiment, the difference value between the electronic map of the smart park and the vector schematic map of the smart park can be, but is not limited to, reflected in the transformation scenes between the two, that is, the difficulty of transforming the scene of the electronic map of the smart park relative to the scene of the vector schematic map can be used as the difference value between the two.
[0076] In one embodiment, information positioning may also be achieved through, but not limited to, computer vision technology, such as using feature extraction and template matching algorithms to identify specific elements in an image, etc., which is not limited here.
[0077] like Figure 5As shown, in one embodiment of the present invention, the step in step S4 is to judge the path authority of the action trajectory based on the personnel identity information, and when the judgment result is that the path authority is obtained, step S5 is executed; otherwise, the path deviation of the action trajectory is corrected, and step S5 is executed, which may include but is not limited to the following steps: step S41, inputting the personnel identity information into the database of the smart park for function query, so as to obtain the target job category corresponding to the personnel identity information; querying the workplace information of the target job category through the database of the smart park, and performing path matching on the target job category based on the workplace information, so as to obtain a target path collection;
[0078] Step S42, determining whether the target path collection includes the action trajectory, if yes, executing step S5, otherwise executing step S43;
[0079] Step S43, constructing actual trajectory points of the action trajectory according to a predefined format, and dividing the trajectory points into multiple trajectory point subsets according to preset path correction conditions, wherein each trajectory point subset includes a number of actual trajectory points; for each trajectory point subset, performing path simulation on the trajectory point subset based on the workplace information, thereby obtaining a fitting segmented path corresponding to the trajectory point subset; splicing all the fitting segmented paths to obtain a fitting path; determining the correction accuracy according to the fitting path and the action trajectory, and performing path correction on the action trajectory according to the correction accuracy.
[0080] In this step, the workplace information of the target job category is queried through the database of the smart park, and the path matching of the target job category is performed based on the workplace information to obtain a target path collection, that is, it can be queried whether the action trajectory of the internal personnel to be queried matches their actual working situation. If the target path collection includes the action trajectory, it can be determined that the action trajectory of the internal personnel to be queried matches their actual working situation and has not caused adverse effects on other unrelated enterprises or units in the park. The action trajectory can be retained. Otherwise, it means that the action trajectory does not match their actual working situation and may cause adverse effects on other unrelated enterprises or units in the park. In this case, the action trajectory needs to be path corrected. When performing path correction, path simulation is performed on a subset of trajectory points based on the workplace information to obtain a fitted segmented path, and all fitted segmented paths are spliced to generate a fitted path in a correction state, and then the correction accuracy is determined based on the fitting path and the action trajectory. For example, the fitting path and the action trajectory are compared to determine the correction accuracy, and the action trajectory can be accurately corrected according to the determined correction accuracy.
[0081] In one embodiment, the range of the target job category can be set to be relatively large. For example, in addition to including different types of work, if a category does not belong to the work category but belongs to a specific structural category within the park, it can also be distinguished from the work category. Similarly, the target job category can also include other different categories.
[0082] In one embodiment, the predefined format and preset path correction conditions in step S43 can be set accordingly according to the specific scenario, and there is no limitation here. For example, the predefined format can be the format of spatial trajectory points, and the preset path correction conditions can be the division of corresponding trajectory point subsets by referring to the adjacent markers of different trajectory points.
[0083] like Figure 6 As shown, in one embodiment of the present invention, step S21 may include but is not limited to the following steps: step S211, constructing a Gaussian pyramid according to the monitoring image data and based on the scale correspondence principle, and performing Gaussian blur processing on each layer of the Gaussian pyramid using different preset scale factors;
[0084] Step S212: searching all key points in the monitoring image data through the Gaussian pyramid, and filtering out key points with low contrast and / or edge effect values within a preset edge effect threshold range, thereby obtaining discrete and accurate key points.
[0085] In this step, each layer of the Gaussian pyramid uses a different preset scale factor to perform Gaussian blur processing, that is, Gaussian weighting is performed based on different preset scale factors. Therefore, by constructing a Gaussian pyramid, it can be ensured that the image has corresponding feature points under different preset scale factors, that is, scale invariance is guaranteed; on this basis, all key points in the monitoring image data are found through the Gaussian pyramid, specifically, key points with low contrast or / and edge effect values within the preset edge effect threshold range are screened out, thereby enhancing the anti-noise ability and stability of the matching, and obtaining discrete and accurate key points.
[0086] In one embodiment, the number of preset scale factors can be set according to the actual application scenario requirements, and the preset edge effect threshold range can be set by those skilled in the art according to actual experience, which will not be elaborated here.
[0087] like Figure 7 As shown, in one embodiment of the present invention, the steps in step S23, respectively calculating and correcting the approximation of each key image, so as to obtain the approximation reference value of each key image, may include but are not limited to the following steps: step S231, for each key image, performing balanced scaling processing on the key image to obtain compressed image data;
[0088] Step S232, performing grayscale processing on the compressed image data to obtain grayscale image data;
[0089] Step S233: Identify the pixel points in each row of the grayscale image data, and calculate the approximation reference value by combining the pixel points in each row with the approximation correction formula.
[0090] In this step, the required grayscale image data is obtained by performing balanced scaling processing on the key image and grayscale processing on the compressed image data, and then the approximation reference value is calculated by combining the pixel points of each row of the grayscale image data through the approximation correction formula. Compared with the approximation calculated in the related technology, the approximation reference value has been corrected and is more accurate and reliable.
[0091] In one embodiment, the key image to be processed is scaled to a specified size, and the size of the scaled image is determined by the amount of information and complexity of the key image. For example, a simple key image contains less information and has low complexity, so it can be scaled smaller. Conversely, a complex key image is not suitable for being scaled too small, as it is easy to lose important information if it is scaled too small. Specifically, it can be flexibly scaled according to needs to maintain a balance between efficiency and accuracy. Since the similarity and color relationship when comparing images are not very large, they are processed as grayscale images to reduce the complexity of subsequent calculations.
[0092] In one embodiment, the approximation correction formula in step S233 is as follows: ;
[0093] in, is the approximate reference value, is the number of pixel rows, is the pixel variable, is the average value of pixels in each row, is the contrast of grayscale image data, is the brightness of the grayscale image data, To balance the scaling correlation factor, is the grayscale transformation correlation factor, It is the preset correction compensation parameter.
[0094] See also Figure 8 , the embodiment of the present application also provides a personnel trajectory management system for a smart park, which can implement the personnel trajectory management method for a smart park shown in any of the above embodiments, and the personnel trajectory management system for a smart park includes: a first image processing module, which is used to perform image segmentation on the captured surveillance video of the smart park, so as to obtain surveillance segment data; perform image extraction on the surveillance segment data, so as to obtain surveillance image data;
[0095] The second image processing module is used to capture the key visual features of the monitoring image data to obtain key image data; obtain the image data of the internal person to be queried, and perform a similarity comparison on the image data of the internal person to be queried based on the key image data to obtain the target image data;
[0096] The trajectory generation module is used to locate the target image data, thereby obtaining the image location information; obtain the electronic map of the smart park, and perform location fitting based on the image location information and the electronic map of the smart park, thereby obtaining the movement trajectory of the internal personnel to be queried;
[0097] The authority determination module is used to perform identity verification based on the image data of the internal person to be queried, so as to obtain the person's identity information; based on the person's identity information, the path authority of the action trajectory is determined, and when the judgment result is that the path authority is obtained, the action trajectory is sent to the data synchronization module; otherwise, the path deviation of the action trajectory is corrected and the action trajectory is sent to the data synchronization module;
[0098] The data synchronization module is used to analyze the parameter types of the action trajectory and integrate the parameters to obtain the dynamic position parameters, and synchronize the action trajectory, personnel identity information and dynamic position parameters to the database of the smart park.
[0099] It can be seen that the first image processing module performs image segmentation on the captured surveillance video of the smart park and image extraction on the surveillance fragment data, and can obtain real-time surveillance image data from the captured surveillance video of the smart park. Then, the second image processing module can obtain target image data with a certain degree of similarity to the image data of the internal personnel to be queried by capturing the key visual features of the surveillance image data and performing similarity comparison on the image data of the internal personnel to be queried. Then, the trajectory generation module can obtain the image position information by locating the target image data, and perform position fitting based on the image position information and the electronic map of the smart park, so as to generate the action trajectory of the internal personnel to be queried, thereby accurately knowing the action situation of the internal personnel to be queried in the smart park;
[0100] The authority identification module determines the path authority of the action trajectory based on the internal personnel identity information of the personnel to be queried, and when it is determined that the person does not have the path authority, the path deviation of the action trajectory is corrected so that the action trajectory can match the path authority, that is, the action trajectory after path deviation correction can meet the personnel identity information of the internal personnel to be queried, thereby ensuring that the action trajectory will not cause adverse effects on other unrelated enterprises or units in the park, realizing intelligent and effective management of personnel within the park, which is conducive to enhancing the safety factor and confidentiality factor within the park;
[0101] The data synchronization module analyzes the parameter types of the action trajectory and integrates the parameters to obtain the dynamic position parameters, and synchronizes the action trajectory, personnel identity information and dynamic position parameters to the database of the smart park, so that the database can call the stored personnel data at any time. Since the action trajectory, personnel identity information and dynamic position parameters in a set of personnel data are corresponding, it is easy to query the remaining related personnel data through one of the personnel data when calling the query, which has good query effect and is more convenient for systematic intelligent management.
[0102] The specific implementation method of the personnel trajectory management system of the smart park is basically the same as the specific implementation method of the personnel trajectory management method of the smart park mentioned above, and will not be repeated here.
[0103] An embodiment of the present invention further provides a computer-readable storage medium storing computer-executable instructions, which are used to execute the personnel trajectory management method for a smart park as provided in any embodiment of the present invention.
[0104] An embodiment of the present invention also provides a computer program product, including a computer program or computer instructions, which are stored in a computer-readable storage medium. A processor of a computer device reads the computer program or computer instructions from the computer-readable storage medium, and the processor executes the computer program or computer instructions, so that the computer device executes the personnel trajectory management method for a smart park provided in any embodiment of the present invention.
[0105] The electronic devices and application scenarios described in the embodiments of the present invention are intended to more clearly illustrate the technical solutions of the embodiments of the present invention, and do not constitute a limitation on the technical solutions provided by the embodiments of the present invention. Those skilled in the art will appreciate that with the evolution of electronic devices and the emergence of new application scenarios, the technical solutions provided by the embodiments of the present invention are equally applicable to similar technical problems.
[0106] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.
[0107] In hardware implementation, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-transitory medium) and a communication medium (or transient medium). As is well known to those of ordinary skill in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and can be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
[0108] The terms "component", "module", "system", etc. used in this specification are used to represent computer-related entities, hardware, firmware, a combination of hardware and software, software, or software in execution. For example, a component can be, but is not limited to, a process running on a processor, a processor, an object, an executable file, an execution thread, a program, or a computer. By way of illustration, both applications running on a computing device and a computing device can be components. One or more components may reside in a process or an execution thread, and a component may be located on a computer or distributed between two or more computers. In addition, these components may be executed from various computer-readable media having various data structures stored thereon. Components may communicate, for example, through local or remote processes based on signals having one or more data packets (e.g., data from two components interacting with another component between a local system, a distributed system, or a network, such as the Internet interacting with other systems through signals).
Claims
1. A personnel trajectory management method for a smart park, characterized in that: The steps include: Step S1, performing image segmentation on the captured surveillance video of the smart park to obtain surveillance segment data; performing image extraction on the surveillance segment data to obtain surveillance image data; Step S2, capturing key visual features of the monitoring image data to obtain key image data; obtaining image data of the internal person to be queried, and performing similarity comparison on the image data of the internal person to be queried based on the key image data to obtain target image data; Step S3, positioning the target image data to obtain image location information; obtaining an electronic map of the smart park, and performing location fitting based on the image location information and the electronic map of the smart park to obtain the movement trajectory of the internal personnel to be queried; Step S4: Perform identity verification based on the image data of the internal person to be queried, thereby obtaining the person's identity information; Based on the personnel identity information, the path authority of the action trajectory is judged. If the judgment result is that the person has the path authority, step S5 is executed; otherwise, the path deviation of the action trajectory is corrected and step S5 is executed; The path authority judgment is performed on the action trajectory based on the personnel identity information. When the judgment result is that the action trajectory has the path authority, step S5 is executed; otherwise, the path deviation of the action trajectory is corrected and step S5 is executed, including the following steps: Step S41: input the personnel identity information into the database of the smart park for function query, thereby obtaining the target job category corresponding to the personnel identity information; query the workplace information of the target job category through the database of the smart park, and perform path matching on the target job category based on the workplace information, thereby obtaining a target path collection; Step S42, determining whether the target path collection includes the action trajectory, if yes, executing step S5, otherwise executing step S43; Step S43, constructing actual trajectory points of the action trajectory according to a predefined format, and dividing the trajectory points into multiple trajectory point subsets according to preset path correction conditions, wherein each trajectory point subset includes a number of actual trajectory points; for each trajectory point subset, performing path simulation on the trajectory point subset based on the workplace information, thereby obtaining a fitting segmented path corresponding to the trajectory point subset; splicing all the fitting segmented paths, thereby obtaining a fitting path; determining the correction accuracy according to the fitting path and the action trajectory, and performing path correction on the action trajectory according to the correction accuracy, and executing step S5; Step S5: Analyze the action trajectory by parameter type and integrate the parameters to obtain dynamic position parameters, and synchronize the action trajectory, personnel identity information and dynamic position parameters to the database of the smart park, wherein the analysis of the action trajectory by parameter type includes at least one of the following: Analyze the actual location in the smart park involved in the action trajectory according to the action trajectory to obtain the location parameters corresponding to the action trajectory; According to the action trajectory, the landmarks in the smart park involved in the action trajectory are analyzed to obtain the landmark parameters corresponding to the action trajectory.
2. The personnel trajectory management method of the smart park according to claim 1 is characterized in that: The step S1 comprises the following steps: Step S11, performing pixel analysis on the captured surveillance video of the smart park to obtain an image space; using a feature space clustering method to perform feature representation on the pixels in the image space to obtain feature space points; Step S12, segmenting the feature space according to the degree of aggregation of the feature space points in the feature space, thereby obtaining a segmented space; mapping the feature space points in the segmented space to the image space, thereby obtaining monitoring segment data; Step S13: extracting image information from the monitoring segment data to obtain image content features; Dividing the monitoring segment data into image regions, thereby obtaining a plurality of image segment data; The plurality of image slice data are content screened according to the image content features, thereby obtaining monitoring image data.
3. The personnel trajectory management method of the smart park according to claim 1 is characterized in that: The step S2 comprises the following steps: Step S21: construct an image scale space corresponding to the monitoring image data based on the monitoring image data and the scale correspondence principle; search for all key points in the monitoring image data based on the image scale space, and perform stability screening on all key points to obtain discrete accurate key points; Step S22, performing curve fitting on the discrete precise key points, so as to obtain the position information and scale information of the precise key points; Smoothing the precise key points to obtain directions of the precise key points, and obtaining key image data based on directions, position information, and scale information of the precise key points, wherein the key image data includes a plurality of key images; Step S23, when the image data of the internal person to be queried is obtained, the approximation of each key image is calculated and corrected respectively, so as to obtain the approximation reference value of each key image, and the image approximation of the image data of the internal person to be queried is calculated; the image approximation is compared with the approximation reference value of each key image one by one, so as to take the approximation reference value of the key image closest to the image approximation as the target approximation; and the key image corresponding to the target approximation is determined as the target image data.
4. The personnel trajectory management method of the smart park according to claim 1 is characterized in that: The step S3 comprises the following steps: Step S31, extracting feature vectors of the target image data, thereby obtaining multiple feature vectors of the target image data; performing positioning matching on the multiple feature vectors of the target image data through a pre-trained convolutional neural network, thereby obtaining a feature vector sorting list, wherein in the feature vector sorting list, the multiple feature vectors of the target image data are arranged according to the success degree of positioning matching; obtaining the positioning parameters of the target image data, matching the feature vector sorting list with the positioning parameters of the target image data, thereby obtaining image position information; Step S32: when the electronic map of the smart park is obtained, vector processing is performed on the electronic map of the smart park to obtain a vector schematic map of the smart park; vector fusion is performed on the image position information and the vector schematic map of the smart park to obtain a number of trajectory points located on the vector schematic map of the smart park; Step S33: According to the difference value between the electronic map of the smart park and the vector schematic map of the smart park, all trajectory points are sequentially projected onto the electronic map of the smart park, so as to obtain the movement trajectory of the internal personnel to be queried.
5. The personnel trajectory management method of the smart park according to claim 3 is characterized in that: The step S21 comprises the following steps: Step S211: constructing a Gaussian pyramid according to the monitoring image data and based on the scale correspondence principle, and performing Gaussian blur processing on each layer of the Gaussian pyramid using different preset scale factors; Step S212: searching all key points in the monitoring image data through the Gaussian pyramid, and filtering out key points with low contrast and / or edge effect values within a preset edge effect threshold range, thereby obtaining discrete and accurate key points.
6. The personnel trajectory management method of the smart park according to claim 3 is characterized in that: The steps in step S23 are to respectively calculate and correct the approximation of each key image, so as to obtain the approximation reference value of each key image, and include the following steps: Step S231: for each key image, perform balanced scaling processing on the key image to obtain compressed image data; Step S232, performing grayscale processing on the compressed image data to obtain grayscale image data; Step S233: Identify the pixel points in each row of the grayscale image data, and calculate the approximation reference value by combining the pixel points in each row with the approximation correction formula.
7. The personnel trajectory management method of the smart park according to claim 6 is characterized in that: The approximation correction formula in step S233 is as follows: Among them, P is the approximation reference value, k is the number of pixel rows, S is the pixel variable, S i is the average value of each row of pixels, A is the contrast of the grayscale image data, B is the brightness of the grayscale image data, C is the balance scaling correlation factor, D is the grayscale transformation correlation factor, and Q is the preset correction compensation parameter.
8. A computer-readable storage medium, characterized in that: A processor-executable program is stored therein, and when the processor-executable program is executed by the processor, it is used to implement the personnel trajectory management method for a smart park as described in any one of claims 1 to 7.
9. A personnel trajectory management system for a smart park, characterized in that: include: The first image processing module is used to perform image segmentation on the captured surveillance video of the smart park to obtain surveillance segment data; Performing image extraction on the monitoring segment data to obtain monitoring image data; The second image processing module is used to capture the key visual features of the monitoring image data to obtain key image data; obtain the image data of the internal person to be queried, and perform a similarity comparison on the image data of the internal person to be queried based on the key image data to obtain the target image data; The trajectory generation module is used to locate the target image data, thereby obtaining the image location information; obtain the electronic map of the smart park, and perform location fitting based on the image location information and the electronic map of the smart park, thereby obtaining the movement trajectory of the internal personnel to be queried; The authority identification module is used to perform identity verification based on the image data of the internal person to be queried, thereby obtaining the person's identity information; Input the personnel identity information into the database of the smart park for functional query, so as to obtain the target job category corresponding to the personnel identity information; query the workplace information of the target job category through the database of the smart park, and perform path matching on the target job category based on the workplace information, so as to obtain a target path collection; determine whether the target path collection includes the action trajectory, if so, send the action trajectory to the data synchronization module, otherwise construct the actual trajectory points of the action trajectory according to the predefined format, and divide the trajectory points into multiple trajectory point subsets according to the preset path correction conditions, wherein each trajectory point subset includes a number of actual trajectory points; for each trajectory point subset, perform path simulation on the trajectory point subset based on the workplace information, so as to obtain a fitting segmented path corresponding to the trajectory point subset; splice all the fitting segmented paths, so as to obtain a fitting path; determine the correction accuracy according to the fitting path and the action trajectory, perform path correction on the action trajectory according to the correction accuracy, and send the action trajectory to the data synchronization module; The data synchronization module is used to perform parameter type analysis on the action trajectory and perform parameter integration to obtain dynamic position parameters, and synchronize the action trajectory, personnel identity information and dynamic position parameters to the database of the smart park, wherein the parameter type analysis on the action trajectory includes at least one of the following: Analyze the actual location in the smart park involved in the action trajectory according to the action trajectory to obtain the location parameters corresponding to the action trajectory; According to the action trajectory, the landmarks in the smart park involved in the action trajectory are analyzed to obtain the landmark parameters corresponding to the action trajectory.
