A high-speed railway station intelligent lighting system and omnidirectional lighting lamp

By using image acquisition, transformation, similarity judgment and complete splicing modules in the smart lighting system of high-speed railway stations, the problem of splicing failure caused by camera parallax is solved, accurate detection of safety lines and occlusion reminders are achieved, and the accuracy of the monitoring system is improved. and security.

CN112967186BInactive Publication Date: 2024-08-27李浩
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110205982.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-02-24
Publication Date
2024-08-27
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In high-speed rail platform monitoring, existing image stitching technology causes parallax problems due to different positions of adjacent cameras, which makes it impossible to effectively extract corner points, resulting in the failure of spliced ​​images and the inability to accurately monitor whether the safety line is blocked.

Method used

Design a smart lighting system for high-speed railway stations, including an image acquisition module, an image transformation module, a regional similarity judgment module and a complete splicing module. By detecting the straight line equation of the safety line, generating a topology map, calculating the color and safety line coincidence, the best solution is found. Splice locations and use omnidirectional lighting to remind occlusion behavior.

Benefits of technology

It improves the accuracy of image stitching, can effectively detect whether the safety line is blocked, ensures passenger safety, and realizes a full range of lighting reminder functions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112967186B
    Figure CN112967186B
Patent Text Reader

Abstract

The present invention proposes a smart lighting system and omnidirectional lighting lamp for high-speed railway stations. The system includes an image acquisition module, which is used to obtain a first image to be spliced. An image transformation module, which is used to detect the straight line equation of the safety line and obtain a second image to be spliced. A regional similarity judgment module, which is used to generate a topological map according to the relationship between closed areas, obtain node similarity according to the similarity of color values, position features and structural features of nodes at the same level, obtain matching node pairs, and detect ground pixels to obtain a third image to be spliced. A complete splicing module, which calculates color coincidence and safety line coincidence, and finds the best splicing position, and splices to obtain the best spliced ​​image. A lighting module, which is used to segment the safety line image from the best spliced ​​image, detect whether the safety line is blocked by the key points of the foot, and use an omnidirectional lighting lamp for lighting reminders.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of smart lighting, and specifically to a smart lighting system and omnidirectional lighting lamps for high-speed railway stations. Background Art

[0002] In order to protect the lives of passengers, a safety line is set up on the platform of the high-speed railway station. Passengers need to wait for the train within the safety range defined by the safety line. At the same time, the high-speed railway station also sets up video surveillance on the platform to monitor whether there is any dangerous behavior of crossing the safety line. The images taken by adjacent cameras are stitched together to monitor whether the safety line is blocked by passengers to determine whether there is any dangerous behavior of crossing the safety line.

[0003] The existing image stitching technology detects the corner points in the two first images to be stitched and matches them, and then obtains the homography matrix based on the matched corner points to perform projective transformation on the first images to be stitched, so as to stitch the two first images to be stitched. However, due to the different positions of the two adjacent surveillance cameras, the first images to be stitched have parallax, and it may be impossible to extract the appropriate corner points, resulting in the failure of stitching the images. Summary of the invention

[0004] In view of the above problems, the present invention proposes a smart lighting system and omnidirectional lighting lamp for high-speed railway stations. The system includes an image acquisition module, which is used to obtain a first image to be spliced. An image transformation module, which is used to detect the straight line equation of the safety line and obtain a second image to be spliced. A regional similarity judgment module, which is used to generate a topological map according to the relationship between closed areas, obtain node similarity according to the similarity of color values, position features and structural features of nodes at the same level, obtain matching node pairs, and detect ground pixels to obtain a third image to be spliced. A complete splicing module, which calculates color coincidence and safety line coincidence, and finds the best splicing position, and splices to obtain the best spliced ​​image. A lighting module, which is used to segment the safety line image from the best spliced ​​image, detect whether the safety line is blocked by the key points of the foot, and use an omnidirectional lighting lamp for lighting reminders.

[0005] A high-speed railway station intelligent lighting system, the system comprising:

[0006] The image acquisition module is used to photograph the platform and obtain a plurality of groups of first images to be stitched.

[0007] The image transformation module is used to detect the security line pixels in the first image to be spliced ​​and obtain the straight line equation of the security line, move the first image to be spliced ​​so that the security line coincides with a coordinate axis of the image coordinate system, and obtain the second image to be spliced.

[0008] The region similarity judgment module is used to generate a topological map according to the inclusion relationship of the closed area in the second image to be stitched, obtain the node similarity according to the color value similarity, position feature similarity and structural feature similarity of the same-level nodes in the topological map corresponding to the adjacent second image to be stitched, retain the matching node pairs whose node similarity is higher than the similarity threshold and unify their color values, and grayscale the ground pixels to obtain the third image to be stitched.

[0009] The complete stitching module is used to find the best stitching position according to the third image to be stitched, calculate the color coincidence according to the similarity between the grayscale pixels and the matching node pixels; calculate the safety line coincidence according to the position of the safety line pixels and the color difference with the neighboring pixels; find the best stitching position according to the color coincidence and the safety line coincidence, and stitch the second image to be stitched to obtain the best stitching image.

[0010] The lighting module is used to segment the safety line image from the best stitching image, detect whether the safety line is blocked by the key points of the foot, and use the lighting to provide lighting reminders.

[0011] The plurality of groups of first images to be stitched include first images to be stitched captured by all cameras at the same time in each group.

[0012] The security line pixels in the first image to be spliced ​​are detected, and the security line is detected by a security line detection network. The training method of the security line detection network is: using a plurality of first images to be spliced ​​as a data set; annotating the data set, annotating pixels belonging to the security line as 1, and other pixels as 0, to generate annotated data; using a cross entropy loss function to train the security line detection network; inputting the first image to be spliced ​​into the trained security line detection network to detect security line pixels.

[0013] The generating of the topological graph according to the inclusion relationship of the closed areas in the second image to be stitched specifically includes: the second image to be stitched is used as a root node, each closed area corresponds to a node, and a topological graph is generated according to the inclusion relationship between the nodes, wherein the closed area corresponding to the parent node includes the closed area corresponding to the child node, and the topological graph is a tree topological graph.

[0014] The obtaining of node similarity according to color value similarity, position feature similarity and structural feature similarity of nodes at the same level in the topological graph corresponding to the adjacent second images to be spliced ​​specifically includes:

[0015] The second image to be stitched is converted from RGB color space to HSV color space, and the H, S, and V channel values ​​of each pixel are analyzed to obtain the color value of the pixel. The color value with the largest number of pixels in the closed area is the color value C of the node corresponding to the closed area. The node color value similarity C1 and C2 are the color values ​​of the two nodes.

[0016] The position feature is D, and the center point and four corner points of the minimum circumscribed rectangle of the closed area are feature points; the center point of the second image safety line to be spliced ​​is the first reference point. For the first-layer nodes in the topological map, D is the distance from the feature point corresponding to the node to the first reference point; the center point of the closed area corresponding to the first-layer node is the second reference point. For the nodes below the first layer in the topological map, D is the distance from the feature point corresponding to the node to the second reference point of the first-layer node to which the node belongs.

[0017] Position feature similarity γ is the empirical distance weight, D 1,j , D 2,j is the jth D, TD corresponding to the two nodes j is the distance weight, j is an integer in [1,5], and m1 is the distance difference threshold.

[0018] Structural features: If neither of the two nodes contains the next-level node, the structural feature similarity FJ of the two nodes is 0; if one of the two nodes contains the next-level node, the color values ​​of all nodes in the two nodes are counted to obtain the total number of color value categories num1 and the number of categories with the same color value of the two nodes num2, and further obtain the structural feature similarity

[0019] Node similarity QK = ρ*FS+σ*(α*FD+β*FJ), where α, β, ρ, and σ are adjustment coefficients.

[0020] The method of retaining matching node pairs whose node similarity is higher than a similarity threshold and unifying their color values ​​specifically includes: setting a node similarity threshold m2, and when QK≥m2, determining that the two nodes are similar and are a matching node pair; when QK<m2, determining that the two nodes are not similar and are not a matching node pair; if the two nodes are similar but the color value similarity FS=0, replacing the color value of one of the nodes with the color value of the other node, and numbering the nodes as matching nodes.

[0021] The calculation of the color coincidence of the overlapping area specifically includes: moving the third image to be spliced ​​in the horizontal direction and splicing it to obtain the overlapping area; the overlapping area includes grayscale pixels, matching node pixels, and other pixels, and when the two overlapping pixels are both grayscale pixels or both matching node pixels, the similarity is further determined.

[0022] For two overlapping grayscale pixels, the grayscale pixel similarity HC=G1-G2, G1 and G2 are the grayscale values ​​of the two overlapping grayscale pixels, and the grayscale difference threshold m3 is set. When HC<m3, the two grayscale pixels are judged to be similar; when HC≥m3, the two grayscale pixels are judged to be dissimilar, and the number of similar grayscale pixels CH is obtained by statistics.

[0023] For the matching nodes of the two third images to be stitched, the proportion of pixels of each color value to the total number of pixels PG and the proportion of matching nodes of each color value to the total number of matching nodes QG are counted, and the pixel weight PM of color value c is c =1-PG, the node weight QM of color value c c =1-QG, the first weight is PM c ×QM c .

[0024] For two overlapping matching node pixels, id1 and id2 are the node numbers of the two pixels respectively. If id1-id2=0, the two matching node pixels are judged to be similar; if id1-id2≠0, the two matching node pixels are judged to be dissimilar; the matching node pixel overlap degree is HG c is the number of similar matching node pixels of color value c.

[0025] The color coincidence degree is XT=θ*CH+δ*GH, where θ and δ are adjustment coefficients.

[0026] The calculation of the overlap degree of the security line in the overlapped area specifically includes: assigning a second weight lf to the security line pixel, Where (X, Y) is the coordinate of the pixel to be assigned in the third image to be spliced, (x0, y0) is the coordinate of the center point of the safety line of the third image to be spliced; n is the number of pixels whose color values ​​are different from the pixel to be assigned among the 8 pixels closest to the pixel to be assigned.

[0027] For overlapping security line pixels, calculate the similarity AC = (lf1-lf2). If AC = 0, the security line pixels are determined to be similar; if AC≠0, the security line pixels are determined to be dissimilar. Count the number of similar security line pixels L, and the security line overlap degree l is the serial number of similar security line pixels, lfl1 and lfl2 are the second weights of two similar security line pixels respectively.

[0028] The method of finding the best splicing position according to the color coincidence and the safety line coincidence specifically includes: counting all XTs in the splicing process, normalizing XTs, setting a color coincidence threshold m4, calculating the corresponding AH at the splicing position where XT>m4, and the position with the largest AH is the best splicing position.

[0029] An omnidirectional lighting lamp obtains the key point position of the foot from the high-speed railway station intelligent lighting system and illuminates it to remind people of dangerous behaviors of crossing the safety line.

[0030] Compared with the prior art, the present invention has the following beneficial effects:

[0031] (1) The second image to be stitched is obtained by translating and rotating the image so that the safety line in the first image to be stitched coincides with the coordinate axis. The images can be stitched only by moving along the coordinate axis.

[0032] (2) A topological relationship diagram of the closed area in the second image to be stitched is established and the structural features of the nodes are obtained. At the same time, the color features and position features of the nodes are considered to determine whether the nodes are similar. The obtained matching nodes have high similarity, which improves the accuracy of image stitching.

[0033] (3) The color coincidence of the overlapping area is calculated based on the ground grayscale pixels and the matching node pixels, taking into account the color information; at the same time, the second weight is assigned to the security line pixel according to the position of the security line pixel and the color difference with the neighboring pixels. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 This is the system structure diagram.

[0035] Figure 2 This is the camera distribution diagram.

[0036] Figure 3 A color value table.

[0037] Figure 4 It is a topological diagram. DETAILED DESCRIPTION

[0038] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, 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.

[0039] Embodiment 1:

[0040] The main purpose of the present invention is to detect the behavior of passengers crossing the security line.

[0041] In order to achieve the content of the present invention, the present invention designs a high-speed railway station intelligent lighting system and omnidirectional lighting lamp, the system structure diagram is as follows Figure 1 shown.

[0042] Image acquisition module.

[0043] Several cameras are set up on the platform, and the camera distribution diagram is as follows Figure 2 As shown in the figure. The camera positions are fixed, the lenses are facing the same direction, both facing the safety line, and the optical axes of the cameras are parallel to each other. In order to facilitate subsequent image stitching, the shooting ranges of two adjacent cameras need to have overlapping areas.

[0044] The cameras are made to shoot RGB images at the same sampling frequency to obtain a plurality of first images to be stitched. The first images to be stitched acquired by the cameras at the same time are arranged according to the arrangement order of the cameras to obtain a plurality of groups of first images to be stitched.

[0045] Image transformation module: used to detect the linear equation of the safety line and obtain the second image to be stitched.

[0046] The present invention first adjusts the first image to be spliced ​​according to the safety line of the high-speed railway platform. To splice two adjacent first images to be spliced, it is first necessary to make the safety lines in the first images to be spliced ​​on the same horizontal line. Therefore, the present invention uses a safety line detection network to identify the safety line and performs a translation operation on the first image to be spliced.

[0047] The training method of the security line detection network is as follows: taking a plurality of first images to be spliced ​​as a data set; annotating the data set, annotating pixels belonging to the security line as 1, and annotating other pixels as 0, to generate annotated data; and using a cross entropy loss function for training.

[0048] After the training is completed, the first image to be spliced ​​is input into the trained security line detection network to detect the pixel category and obtain the security line segmentation map. Then the grayscale value of the security line pixel is changed to 1 and the grayscale value of other pixels is changed to 0 to obtain a binary image. The binary image is further processed to obtain the linear equation of the security line. The processing steps are as follows:

[0049] For each pixel with a gray value of 1 in each column of pixels in the binary image, calculate the mean of its x-coordinate and y-coordinate, and set the point corresponding to the mean of the coordinates as the mean point. For all mean points in a binary image, use the RANSAC algorithm to perform straight line fitting to obtain the linear equation L of the safety line.

[0050] The stitching of two adjacent first images to be stitched first requires the alignment of the safety lines. Place the adjacent first images to be stitched img1 and img2 in the same image coordinate system, and assume that their safety line equations are L1: y = ax + b, L2: y = a′x + b′. For img1 and img2, rotate them with the intersection of L1, L2 and the y-axis as the rotation center so that the slopes of L1 and L2 become 0, that is, a = a′ = 0. It should be noted that the safety line will not deviate too much from the horizontal line, so the rotation angle should be within the range of [0°, 90°]. Then the two safety lines need to be translated to the same straight line, that is, let b = b′. The first images to be stitched after rotation and translation are unified to obtain the second image to be stitched.

[0051] Then the number of security line pixels in each column of pixels is calculated to obtain the width HD of the security line.

[0052] At this time, the two safety lines are already on the same straight line, and the second image to be spliced ​​can be spliced ​​only by moving it horizontally. However, it is also necessary to calculate the horizontal distance to achieve the best splicing.

[0053] The region similarity judgment module is used to detect the closed region in the second image to be stitched and establish a topological map, match the nodes to find similar nodes, and prepare for complete image stitching.

[0054] The second image to be spliced ​​contains multiple closed areas. The present invention analyzes each closed area and finds similar closed areas in the adjacent second image to be spliced ​​as the basis for subsequent complete splicing. The present invention not only considers the color characteristics and position characteristics of the closed area, but also considers the inclusion relationship between the closed areas. The present invention uses a tree topology diagram to describe the inclusion relationship of the necessary areas.

[0055] The specific steps of obtaining the topological map of the present invention are: graying the second image to be spliced ​​to obtain a gray image. Using the Canny operator to perform edge detection to obtain an edge binary image. Then performing contour detection on the edge binary image to detect a closed area in the binary image, that is, a closed area in the second image to be spliced.

[0056] Analyze the inclusion relationship of the closed areas in the second image to be stitched. Take the second image to be stitched as the root node, each closed area corresponds to a node, and generate a topological graph according to the inclusion relationship between the nodes. The closed area corresponding to the parent node contains the closed area corresponding to the child node. The topological graph is as follows: Figure 4 As shown in the figure, img1 and img2 represent two second images to be stitched, that is, the first-layer nodes in the two root nodes img1 are nodes 1 and 2, and the second-layer nodes are nodes 3 and 4; the first-layer nodes in img2 are nodes 1, and the second-layer nodes are nodes 2 and 3.

[0057] In the two second images to be stitched, if the nodes corresponding to the closed areas are at the same level in the topological map and have similar color features and position features, it means that the two nodes correspond to the same object with a high probability. Stitching the second images to be stitched based on pixels belonging to the same object will greatly improve the stitching accuracy.

[0058] The nodes in the topological map contain the following features: color value, position feature and structural feature. A node is selected from the same level of the topological map corresponding to two adjacent second images to be spliced, and the node similarity is obtained according to the similarity of the color value, position feature and structural feature of the node to perform node matching.

[0059] The method for obtaining color features is as follows: analyzing the colors of the pixels in the second image to be stitched, converting the second image to be stitched from the RGB color space to the HSV color space, and then analyzing the H, S, and V channel values ​​of each pixel to obtain the color value of each pixel. The color value table is as follows: Figure 3 . Mark each pixel with its color value, which is an integer from 1 to 10. Count the color values ​​of the pixels in the closed area corresponding to each node. For a node, the color value with the most pixels in its corresponding closed area is taken as the color value C of the node. The calculation method of node color value similarity FS is: C1 and C2 are the color values ​​of the two nodes.

[0060] The position feature is D, and the center point and four corner points of the minimum circumscribed rectangle of the closed area are feature points. The center point of the second image safety line to be spliced ​​is the first reference point. For the first-layer nodes in the topology map, D is the distance from the node's corresponding feature point to the first reference point. The center point of the closed area corresponding to the first-layer node is the second reference point. For nodes below the first layer in the topology map, D is the distance from the node's corresponding feature point to the second reference point of the first-layer node to which the node belongs. Position feature similarity γ is the empirical distance weight, D 1,j , D 2,j is the jth D, TD corresponding to the two nodes j is the distance weight, j is an integer in [1,5], and m1 is the distance difference threshold. For the corner points of the bounding rectangle Set m1 to a length of 5 pixels.

[0061] Structural features: If neither of the two nodes contains the next layer of nodes, the structural feature similarity FJ of the two nodes is 0; if one of the two nodes contains the next layer of nodes, the color values ​​of all nodes in the two nodes are counted to obtain the total number of color value categories num1 and the number of categories with the same color value of the two nodes num2, then the structural feature similarity of the two nodes is

[0062] Node similarity QK = ρ*FS+σ*(α*FD+β*FJ), α, β, ρ, σ are adjustment parameters. α<β and α+β=1, in this embodiment, α=0.45, β=0.55. ρ=0.6, σ= In this way, if the color values ​​of two nodes are different, but the position features and structural features are similar, they may also be similar, which improves the robustness of the system.

[0063] Set the node similarity threshold m2. When QK≥m2, the two nodes are considered similar and are a matching node pair; when QK<m2, the two nodes are considered dissimilar and are not a matching node pair. If the two nodes are similar but the color value similarity FS=0, replace the color value of one node with the color value of the other node, and the node number is matched.

[0064] Complete stitching module. Used to obtain the best stitching position and the best stitching image according to the properties of matching nodes and safety line pixels.

[0065] The method for training the ground recognition network is: using several second images to be stitched as a data set; manually annotating the data set, annotating the pixel categories, annotating ground pixels as 1, and non-ground pixels as 0; and using the cross entropy loss function for training.

[0066] The adjacent second image to be stitched is input into the trained ground recognition network to segment the pixels of the ground area, and the ground pixels are converted into grayscale pixels to obtain the third image to be stitched.

[0067] For two adjacent third images to be stitched, one of the third images to be stitched is moved pixel by pixel along the coordinate axis direction to overlap the third images to obtain the overlapping area. At the same time, the color overlap is calculated according to the similarity between the grayscale pixels and the matching node pixels, and the security line overlap is calculated according to the position of the security line pixels and the color difference with the neighboring pixels.

[0068] The overlapping area of ​​the adjacent third to-be-joined images includes grayscale pixels, matching node pixels, and other pixels. When the two overlapping pixels are both grayscale pixels or both matching node pixels, the similarity of the overlapping pixels can be further determined. In other overlapping situations, the similarity of the overlapping pixels does not need to be determined.

[0069] For two overlapping grayscale pixels, the grayscale pixel similarity HC=G1-G2, G1 and G2 are the grayscale values ​​of the two overlapping grayscale pixels respectively, and the grayscale difference threshold m3 is set. When HC<m3, the two grayscale pixels are judged to be similar; when HC≥m3, the two grayscale pixels are judged to be dissimilar, and the number of similar grayscale pixels CH is counted.

[0070] For two overlapping matching node pixels, it is determined whether the two matching node pixels belong to similar nodes. id1 and id2 are the node numbers of the two overlapping matching node pixels. If id1-id2=0, the two pixels are determined to be similar; if id1-id2≠0, the two pixels are determined to be dissimilar.

[0071] Considering that the proportion of pixels with different color values ​​to the total number of pixels is different, the color type of pixels with a lower proportion is more important for splicing, so the present invention weights the matching node pixels with different color values ​​according to the proportion of pixels with different color values. Count the number of similar matching node pixels of various color values ​​HG c , c is the color value. Count the proportion of pixels of each color value to the total number of pixels PG and the proportion of matching nodes of each color value to the total number of matching nodes QG, and the pixel weight PM of color value c c =1-PG, the node weight QM of color value c c =1-QG. The first weight is PM c ×QM c The pixel overlap of matching nodes is

[0072] Further, the color coincidence degree XT is obtained, XT = θ*CH + δ*GH, θ and δ are adjustment parameters, and δ>θ. The implementer can select appropriate δ and θ values ​​according to actual conditions. In this embodiment, δ=0.65 and θ=0.36 are set.

[0073] Then calculate the overlap of the security lines in the overlapped area. The features of the security lines will not be different due to parallax, so the overlap of the security lines is an important reference for splicing.

[0074] Assign the second weight lf to the security line pixel, Wherein (X, Y) is the coordinate of the pixel to be assigned in the third image to be spliced, (x0, y0) is the coordinate of the center point of the safety line of the third image to be spliced; n is the number of pixels whose color values ​​are different from the pixel to be assigned among the 8 pixels closest to the pixel to be assigned.

[0075] For overlapping security line pixels, the similarity AC=(lf1-lf2) is calculated. If AC=0, the security line pixels are determined to be similar; if AC≠0, the security line pixels are determined to be dissimilar.

[0076] The number of similar security line pixels L is counted, and each pair of similar security line pixels is labeled with a serial number l. Further, the security line overlap degree is calculated l is the serial number of the pixel of the similar security line, lf l1 , lf l2 It is the second weight of two similar security line pixels.

[0077] In the process of moving the third image to be spliced, the total overlap XT is counted every time a pixel is moved, and finally all XTs are normalized to make their value range [0, 1], and the color overlap threshold m4 is set, and the first splicing position when the XT value is greater than m4 is obtained by statistics. The present invention sets m4=0.5.

[0078] The corresponding AH is calculated at the first splicing position, and then the position with the largest AH is obtained by statistics, which is the optimal splicing position.

[0079] The third image to be stitched is obtained by transforming the second image to be stitched, so the best stitching position of the third image to be stitched is also the best stitching position of the second image to be stitched. After calculating the best stitching positions of two adjacent third images to be stitched, all the second images to be stitched are stitched to obtain the best stitching image.

[0080] Lighting module. Used to determine whether the safety line is blocked by people.

[0081] The purpose of the present invention is to determine whether the security line is blocked by a person. For the best stitched image, it is only necessary to determine whether the security line is blocked based on the pixels on the security line. Therefore, for the best stitched image, a security line mask is generated based on the width of the security line and the pixels of the security line are segmented to obtain a security line image. The security line image is binarized to obtain a security line binary image, where the grayscale value of the security line pixel is 1 and the grayscale value of the non-security line pixel is 0. The security line can be regarded as a rectangular area, whose length is parallel to the x-axis of the image coordinate system.

[0082] Calculate the sum of the grayscale values ​​of each column of pixels in the binary image of the security line, and arrange them from small to large according to the x coordinate to obtain a grayscale value sequence. If the sum of the grayscale values ​​of a column of pixels is 0, it means that the column of pixels has been completely blocked, and an object has crossed the security line here. Therefore, the point with a value of 0 in the sequence is set as the blocked column, and the column number threshold m5 is set. The number of consecutive blocked columns is detected, and the consecutive blocked columns with a column number greater than m5 are retained. The consecutive blocked columns are set as the columns to be tested, and the image of the column to be tested is segmented from the optimal spliced ​​image. The width of the image of the column to be tested is equal to the height of the optimal spliced ​​image. The specific value of m5 can be set by the implementer according to the actual situation. The present invention sets m5=6.

[0083] The present invention uses a human body recognition network to detect whether there is a human body in the image to be tested, that is, to confirm whether a human body is blocking the safety line. The human body part crossing the safety line must include the human feet, so the human body recognition network mainly detects the key points of the human feet. The method for training the human body recognition network is:

[0084] Take several images of human bodies as the data set; annotate the data set, annotate the key points of human feet, and generate annotated data; use the mean square error loss function for training.

[0085] The image to be tested is input into the trained human body recognition network to detect whether there are key points of the feet. If there are key points of the feet, it means that there is a behavior of crossing the safety line in the image to be tested. If no key points of the feet are detected, it means that there is no behavior of crossing the safety line in the image to be tested.

[0086] If there is a behavior of crossing the safety line, the corresponding foot key point position of the image to be tested in the world coordinate system is found, and the omnidirectional lighting of the platform is adjusted to illuminate the foot key point position to remind passengers and avoid danger to passengers.

[0087] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A high-speed railway station intelligent lighting system, characterized in that: The system includes: An image acquisition module, used for photographing the platform to obtain a plurality of groups of first images to be stitched; An image transformation module is used to detect the pixels of the security line in the first image to be stitched and obtain the linear equation of the security line, and to move the first image to be stitched so that the security line coincides with a coordinate axis of the image coordinate system to obtain a second image to be stitched; A region similarity judgment module is used to generate a topological map according to the inclusion relationship of the closed region in the second image to be stitched, obtain node similarity according to the color value similarity, position feature similarity and structural feature similarity of the same-level nodes in the topological map corresponding to the adjacent second image to be stitched, retain the matching node pairs whose node similarity is higher than the similarity threshold and unify their color values, and grayscale the ground pixels to obtain the third image to be stitched; A complete stitching module is used to find the best stitching position according to the third image to be stitched, calculate the color coincidence according to the similarity between the grayscale pixels and the matching node pixels; calculate the safety line coincidence according to the position of the safety line pixels and the color difference with the neighboring pixels; find the best stitching position according to the color coincidence and the safety line coincidence, and stitch the second image to be stitched to obtain the best stitching image; The lighting module is used to segment the safety line image from the best stitching image, detect whether the safety line is blocked by the key points of the foot, and use the lighting lamp to provide a lighting reminder; The obtaining of node similarity according to color value similarity, position feature similarity and structural feature similarity of nodes at the same level in the topological graph corresponding to the adjacent second images to be spliced ​​specifically includes: The second image to be stitched is converted from RGB color space to HSV color space, and the H, S, and V channel values ​​of each pixel are analyzed to obtain the color value of the pixel. The color value with the largest number of pixels in the closed area is the color value C of the node corresponding to the closed area. The node color value similarity C1 and C2 are the color values ​​of the two nodes; The position feature is D, and the center point and four corner points of the minimum circumscribed rectangle of the closed area are feature points; the center point of the second image safety line to be spliced ​​is the first reference point. For the first-layer nodes in the topology map, D is the distance from the feature point corresponding to the node to the first reference point; the center point of the closed area corresponding to the first-layer node is the second reference point. For nodes lower than the first layer in the topology map, D is the distance from the feature point corresponding to the node to the second reference point of the first-layer node to which the node belongs; Position feature similarity γ is the empirical distance weight, D 1,j , D 2,j is the jth D, TD corresponding to the two nodes j is the distance weight, j is an integer in [1,5], and m1 is the distance difference threshold; Structural features: If neither of the two nodes contains the next-level node, the structural feature similarity FJ of the two nodes is 0; if one of the two nodes contains the next-level node, the color values ​​of all nodes in the two nodes are counted to obtain the total number of color value categories num1 and the number of categories with the same color value of the two nodes num2, and further obtain the structural feature similarity Node similarity QK = ρ*FS+σ*(α*FD+β*FJ), where α, β, ρ, and σ are adjustment coefficients.

2. The system according to claim 1, characterized in that The plurality of groups of first images to be stitched include first images to be stitched captured by all cameras at the same time in each group.

3. The system according to claim 1, characterized in that The security line pixels in the first image to be spliced ​​are detected, and the security line is detected by a security line detection network. The training method of the security line detection network is: Taking a plurality of first images to be stitched as a data set; Label the data set, label the pixels belonging to the safety line as 1, and label other pixels as 0, to generate labeled data; Use the cross entropy loss function to train the safety line detection network; The first image to be stitched is input into the trained security line detection network to detect the security line pixels.

4. The system according to claim 1, characterized in that The generating of the topological map according to the inclusion relationship of the closed areas in the second image to be stitched specifically includes: The second image to be stitched is used as the root node, each closed area corresponds to a node, and a topological graph is generated according to the inclusion relationship between the nodes, wherein the closed area corresponding to the parent node includes the closed area corresponding to the child node, and the topological graph is a tree topological graph.

5. The system according to claim 1, wherein: Retain the matching node pairs with node similarity higher than the similarity threshold and unify their color values, specifically including: Set the node similarity threshold m2. When QK≥m2, determine that the two nodes are similar and are a matching node pair; when QK<m2, determine that the two nodes are not similar and are not a matching node pair. If the two nodes are similar but the color value similarity FS = 0, replace the color value of one of the nodes with the color value of the other node and number the matching nodes.

6. The system according to claim 1, wherein: The calculation of the color overlap degree specifically includes: Move the third image to be spliced horizontally and splice it to obtain an overlapping area. The overlapping area includes gray pixels, matching node pixels, and other pixels. When the two overlapping pixels are both gray pixels or both matching node pixels, further judge the similarity. For two overlapping gray pixels, the gray pixel similarity HC = G1 - G2, where G1 and G2 are the gray values of the two overlapping gray pixels. Set the gray difference threshold m3. When HC < m3, determine that the two gray pixels are similar; when HC≥m3, determine that the two gray pixels are not similar, and count the number of similar gray pixels CH. For the matching nodes of the two third images to be stitched, the proportion of pixels of each color value to the total number of pixels PG and the proportion of matching nodes of each color value to the total number of matching nodes QG are counted, and the pixel weight PM of color value c is c =1-PG, the node weight QM of color value c c =1-QG, the first weight is PM c ×QM c ; For two overlapping matching node pixels, id1 and id2 are the node numbers of the two pixels respectively. If id1-id2=0, the two matching node pixels are judged to be similar; if id1-id2≠0, the two matching node pixels are judged to be dissimilar; the matching node pixel overlap degree is HG c is the number of similar matching node pixels of color value c; The color overlap degree is XT = θ * CH + δ * GH, where θ and δ are adjustment coefficients.

7. The system according to claim 6, characterized in that The calculation of the security line overlap degree specifically includes: Assign the second weight lf to the security line pixel, Where (X, Y) is the coordinate of the pixel to be assigned in the third image to be spliced, (x0, y0) is the coordinate of the center point of the safety line of the third image to be spliced; n is the number of pixels whose color values ​​are different from the pixel to be assigned among the 8 pixels closest to the pixel to be assigned; For the overlapping security line pixels, calculate the similarity AC = (lf1 - lf2). If AC = 0, determine that the security line pixels are similar; if AC≠0, determine that the security line pixels are not similar. Count the number of similar security line pixels L, and the security line overlap degree AH = ∑ l L =1 (lf l1 +lf l2 ), l is the serial number of the similar security line pixel, lf l1 , lf l2 They are the second weights of the pixels of two similar security lines.

8. The system according to claim 7, characterized in that Finding the best splicing position according to the color overlap degree and the security line overlap degree specifically includes: Statistical all XT during the splicing process, normalize XT, set the color overlap degree threshold m4, and calculate the corresponding AH at the splicing position where XT>m4. The position with the largest AH is the best splicing position.

9. An omnidirectional lighting lamp, characterized in that: Obtain the position of the foot key points from the system according to any one of claims 1 to 8 and irradiate it to remind of the dangerous behavior of crossing the security line.