Method, device, equipment and storage medium for detecting the operating status of a cableway wheel assembly

By acquiring and processing video stream data, correcting the motion vector group, and using the motion prediction model to calculate the early warning score, the accuracy problem of the operating status detection of the cableway wheel set in traditional technology is solved, and accurate detection and timely early warning in diverse environments are achieved. .

CN118379667BActive Publication Date: 2024-08-23陕西骏景索道运营管理有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410809949.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-21
Publication Date
2024-08-23
Estimated Expiration
2044-06-21

AI Technical Summary

Technical Problem

Traditional cableway wheel set operating status detection technology is difficult to accurately extract and track cableway and car motion data in diverse environments and dynamic scenes, resulting in delayed or inaccurate early warnings.

Method used

Obtain video stream data through detection equipment, correct the motion vector group, use the motion prediction model to process the video stream, obtain the motion vector group and optical flow atlas, calculate the early warning score, and output the early warning level to achieve accurate detection of the operating status of the cableway wheel group.

Benefits of technology

In diversified environments and dynamic scenes, the accurate extraction and tracking of cableway and car motion data is achieved, and early warning prompts are made in a timely manner, which improves the accuracy and efficiency of cableway safety monitoring.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118379667B
    Figure CN118379667B
Patent Text Reader

Abstract

The embodiment of the present application provides a detection method, device, equipment and storage medium for the running state of a ropeway wheel group, which specifically relates to the field of image processing. The method obtains a first motion vector group of the ropeway and the car through a video stream, corrects the first motion vector group according to the motion state of the detection device to obtain a second motion vector group, and then processes the video stream data through a motion prediction model to obtain a third motion vector group and an optical flow atlas of the ropeway and the car, obtains a first warning score according to the system error of the second motion vector group, the third motion vector group and the motion prediction model, obtains the frequency of the car oscillation motion according to the optical flow atlas, obtains the second warning score by calculating the frequency, and outputs the warning level according to the first warning score and the second warning score. The method can accurately extract and track the motion data of the ropeway and the car in a variety of environments and dynamic scenes, and make warning prompts in time according to the motion data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing, and in particular to a method, device, equipment and storage medium for detecting the operating status of a cableway wheel group. Background Art

[0002] In recent years, with the widespread application of aerial ropeway technology in the fields of freight and passenger transportation, its safety issues have attracted much attention. Data shows that in ropeway accidents, strong winds often cause the wind to exert huge pressure on the steel cables, which exceeds the bearing strength of the aged steel cables themselves, resulting in steel cable breakage and accidents; therefore, real-time detection technology for the operation status of ropeway sheaves is the key to solving such problems.

[0003] Traditional ropeway wheel group operation status detection technology is usually based on video surveillance. By simply processing the video surveillance data, the operation status data of the ropeway wheel group is obtained to determine whether an early warning is needed. This method is often easily affected by diverse environments and dynamic scenes when obtaining video surveillance data, resulting in the inability to accurately extract and track the ropeway and car motion data from the continuous video stream, and to make timely early warning prompts based on the motion data.

[0004] In response to the above problems, how to accurately extract and track the motion data of ropeways and cars in diverse environments and dynamic scenes, and make timely early warning prompts based on the motion data is a problem that this application needs to solve. Summary of the invention

[0005] The embodiments of the present application provide a method, device, equipment and storage medium for detecting the operating status of a ropeway wheel group, so as to accurately extract and track the motion data of the ropeway and the car in diverse environments and dynamic scenes, and make early warning prompts in a timely manner according to the motion data.

[0006] In a first aspect, an embodiment of the present application provides a method for detecting the operating state of a cableway wheel assembly, comprising:

[0007] Acquire video stream data of the ropeway wheel group through a detection device, and obtain a first motion vector group of the car and the ropeway in a normal state according to the video stream data;

[0008] Correcting the first motion vector group according to the motion state of the detection device itself to obtain a corrected second motion vector group;

[0009] Processing the video stream data through a motion prediction model to obtain a third motion vector group and an optical flow atlas of the car and the ropeway in a normal state, wherein the optical flow atlas is used to indicate the motion direction and speed of the car and the ropeway;

[0010] Obtaining a first warning score according to a system error of a motion prediction model and the second motion vector group and the third motion vector group;

[0011] According to the optical flow atlas, the frequency of the oscillating motion of the car in each component in the optical flow atlas is obtained, and a second warning score is calculated according to the frequency;

[0012] The warning level of the cableway wheel assembly operation state is output according to the first warning score and the second warning score.

[0013] Optionally, the method as described above, before acquiring the video stream data of the cableway wheel group by the detection device and obtaining the first motion vector group of the car and the cableway in a normal state according to the video stream data, further comprises:

[0014] According to the current posture matrix of the detection device, the camera internal parameter matrix and the center coordinates of the cableway sampling point, the cableway image coordinates of the center coordinates of the cableway sampling point under the projection of the detection device are obtained;

[0015] The cableway image coordinates are superimposed on the original video stream data to obtain a monitoring screen image;

[0016] According to the monitoring screen image, obtaining the actual marking point of the cableway sampling point and the actual position information of the car on the cableway;

[0017] The video stream data is obtained according to the actual marking point of the ropeway and the actual position information of the car.

[0018] Optionally, in the method described above, obtaining the actual marking point of the cableway sampling point and the actual position information of the car on the cableway according to the monitoring screen image includes:

[0019] According to the cableway image coordinates, obtaining the cableway separation pixel closest to the cableway image coordinates;

[0020] Acquire the actual marking point of the cableway according to the cableway separation pixel;

[0021] The car object on the ropeway is identified by the recognition model to obtain the actual position information of the car.

[0022] Optionally, in the above method, the step of acquiring video stream data of the cableway wheel assembly by a detection device, and obtaining a first motion vector group of the car and the cableway in a normal state according to the video stream data comprises:

[0023] Obtaining a data set by cropping the video stream data;

[0024] Optical flow estimation is performed on the data set according to an optical flow estimation model to obtain a first motion vector group of the car and the ropeway in a normal state, wherein the data set is used to indicate a set of images.

[0025] Optionally, in the above method, obtaining a first warning score according to the system error of the motion prediction model and the second motion vector group and the third motion vector group includes:

[0026] Performing training and testing on the motion prediction model to obtain the system error;

[0027] Obtaining an error probability by calculating a first parameter value, wherein the first parameter value includes: the system error, the second motion vector group, and the third motion vector group;

[0028] An information entropy of the error probability is calculated, and the information entropy is used as the first warning score.

[0029] Optionally, in the above method, the training and testing of the motion prediction model to obtain the system error includes:

[0030] Obtaining a test set and a training set, and training the motion prediction model using the training set;

[0031] Processing the data of the test set by the motion prediction model to obtain first output data;

[0032] The second output data is obtained after processing the data of the test set through the optical flow estimation model;

[0033] The system error is obtained by comparing the first output data with the second output data.

[0034] Optionally, in the above method, obtaining the frequency of the oscillating motion of the car in each component in the optical flow atlas according to the optical flow atlas, and calculating the second warning score according to the frequency includes:

[0035] The frequency of the car oscillation motion in each component is obtained by performing fast Fourier transform on the second parameter, wherein the second parameter includes: the main motion vector of the car center area, the motion start time, and the total motion time;

[0036] A second warning score is obtained according to the derivative of the frequency with respect to time.

[0037] In a second aspect, an embodiment of the present application provides a device for detecting the operating state of a cableway wheel group, comprising:

[0038] An acquisition module, used for acquiring video stream data of the cableway wheel assembly through a detection device;

[0039] A processing module, used for obtaining a first motion vector group of the car and the ropeway in a normal state according to the video stream data;

[0040] The processing module is further used to correct the first motion vector group according to the motion state of the detection device itself to obtain a corrected second motion vector group;

[0041] The processing module is further used to process the video stream data through a motion prediction model to obtain a third motion vector group and an optical flow atlas of the car and the ropeway in a normal state;

[0042] The processing module is further used to obtain a first warning score according to the system error of the motion prediction model and the second motion vector group and the third motion vector group;

[0043] The processing module is further used to obtain the frequency of the oscillating motion of the car in each component in the optical flow atlas according to the optical flow atlas, and calculate the second warning score according to the frequency;

[0044] An output module is configured to output a warning level of the operation status of the cableway wheel assembly according to the first warning score and the second warning score.

[0045] Optionally, the processing module is further used to obtain the cableway image coordinates of the center coordinates of the cableway sampling point under the projection of the detection device according to the current posture matrix of the detection device, the camera internal parameter matrix and the center coordinates of the cableway sampling point; superimpose the cableway image coordinates on the original video stream data to obtain a monitoring screen image; obtain the actual marking points of the cableway sampling point and the actual position information of the car on the cableway according to the monitoring screen image; obtain the video stream data according to the actual marking points of the cableway and the actual position information of the car.

[0046] Optionally, the processing module is specifically used to obtain the cableway separation pixel closest to the cableway image coordinates according to the cableway image coordinates; obtain the actual marking point of the cableway according to the cableway separation pixel; and identify the car object on the cableway through a recognition model to obtain the actual position information of the car.

[0047] Optionally, the processing module is specifically used to obtain a data set by cropping the video stream data; perform optical flow estimation on the data set according to an optical flow estimation model to obtain a first motion vector group of the car and the cableway in a normal state, wherein the data set is used to indicate a collection of images.

[0048] Optionally, the processing module is specifically used to train and test the motion prediction model to obtain the system error; obtain the error probability by calculating the first parameter value, wherein the first parameter value includes: the system error, the second motion vector group and the third motion vector group; calculate the information entropy of the error probability, and use the information entropy as the first warning score.

[0049] Optionally, the acquisition module is specifically used to acquire a test set and a training set.

[0050] Optionally, the processing module is specifically used to train the motion prediction model through a training set; obtain first output data after processing the data of the test set through the motion prediction model; obtain second output data after processing the data of the test set through an optical flow estimation model; and obtain the system error by comparing the first output data and the second output data.

[0051] Optionally, the processing module is specifically used to obtain the frequency of the car oscillation motion in each component by performing fast Fourier transform on the second parameter, wherein the second parameter includes: the main motion vector of the center area of ​​the car, the start time of the motion, and the total motion time; and obtain the second warning score based on the derivative of the frequency with respect to time.

[0052] In a third aspect, an embodiment of the present application provides a device for detecting the operating status of a cableway wheel assembly, including: a memory, a processor;

[0053] The memory stores computer-executable instructions;

[0054] The processor executes the computer-executable instructions stored in the memory, so that the processor executes the above first aspect and / or various possible implementations of the first aspect.

[0055] In a fourth aspect, an embodiment of the present application provides a storage medium, in which computer execution instructions are stored. When the computer execution instructions are executed by a processor, they are used to implement the above first aspect and / or various possible implementation methods of the first aspect.

[0056] The embodiments of the present application provide a method, device, equipment and storage medium for detecting the operating status of a ropeway wheel group. A first motion vector group of a ropeway and a car is obtained through a video stream, and the first motion vector group is corrected according to the motion state of a detection device to obtain a second motion vector group. The video stream data is then processed through a motion prediction model to obtain a third motion vector group and an optical flow atlas of the ropeway and the car. A first warning score is obtained according to the second motion vector group, the third motion vector group and the system error of the motion prediction model. The frequency of the oscillating motion of the car is obtained according to the optical flow atlas, and a second warning score is obtained by calculating the frequency. The warning level of the operating status of the ropeway wheel group is output according to the first warning score and the second warning score. The method can accurately extract and track the motion data of the ropeway and the car in diverse environments and dynamic scenes, and make timely warning prompts based on the motion data. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0058] Figure 1 Schematic diagram of the process of detecting the operating status of the cableway wheel group provided in this application Figure 1 ;

[0059] Figure 2 Schematic diagram of the process of detecting the operating status of the cableway wheel group provided in this application Figure 2 ;

[0060] Figure 3 A schematic diagram of the structure of a device for detecting the operating status of a cableway wheel assembly provided in the present application;

[0061] Figure 4 A schematic diagram of the structure of the detection equipment for the operating status of a cableway wheel assembly provided in this application.

[0062] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0063] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in this application will be clearly and completely described below in conjunction with the drawings in this application. Obviously, the described embodiments are part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0064] The terms "first", "second", "third", "fourth", etc. (if any) in the description and claims of the present invention and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in sequences other than those illustrated or described herein.

[0065] In the embodiments of the present application, the words "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0066] In recent years, in modern urban construction and maintenance, linear cable car-type working platforms have been widely used in the field of aerial work due to their flexibility and adaptability. These working platforms usually rely on cableways for support and movement, so the safety of cableways is directly related to the life safety of operators and the smooth progress of engineering projects. However, due to the influence of the natural environment and long-term wear and tear, cableways may be damaged, leading to safety hazards.

[0067] In the prior art, the traditional safety monitoring of the ropeway is through video monitoring. By simply processing the video monitoring data, the operating status data of the ropeway wheel group is obtained to determine whether an early warning is needed. These methods have more or less problems such as delay, inaccuracy and low efficiency. Especially in severe weather conditions, the risk of manual inspection increases, and the prior art has many deficiencies in ropeway safety monitoring. A technology that can accurately extract and track things from continuous video streams in diverse environments and dynamic scenes and make early warning prompts in a timely manner is needed.

[0068] In response to the above problems, how to accurately extract and track the motion data of ropeways and cars in diverse environments and dynamic scenes, and make timely early warning prompts based on the motion data is a problem that this application needs to solve.

[0069] The present application provides a method for detecting the operating status of a ropeway wheel group. The method obtains a first motion vector group of a ropeway and a car through a video stream, corrects the first motion vector group according to the motion status of a detection device to obtain a second motion vector group, and then processes the video stream data through a motion prediction model to obtain a third motion vector group and an optical flow atlas of the ropeway and the car. A first warning score is obtained according to the second motion vector group, the third motion vector group and the system error of the motion prediction model, the frequency of the car oscillation motion is obtained according to the optical flow atlas, the second warning score is obtained by calculating the frequency, and a warning level is output according to the first warning score and the second warning score. The method solves the technical problem that it is difficult to accurately extract and track the motion data of the ropeway and the car in diverse environments and dynamic scenes, and to make timely warning prompts based on the motion data.

[0070] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0071] Figure 1 Schematic diagram of the process of detecting the operating status of the cableway wheel group provided in this application Figure 1 , the execution subject of this embodiment is the detection system, such as Figure 1 As shown, this embodiment provides a method for detecting the operating state of a cableway wheel assembly, the method comprising:

[0072] S101: Acquire video stream data of a cableway wheel assembly through a detection device, and obtain a first motion vector group of a car and a cableway in a normal state according to the video stream data.

[0073] Among them, the detection device refers to a device that can monitor the video data and its own motion data of the cableway wheel group in real time and transmit it to the detection system through a video stream. The cableway wheel group includes a car and a ropeway. The video stream refers to a real-time transmission method of video data information. The motion vector group is used to indicate the direction and speed of movement of the car and the ropeway in three-dimensional space. The video stream can be obtained by transmitting the video data in a continuous manner so that the detection system can obtain the latest video content in a timely manner. The method of obtaining the motion vector group of the car and the ropeway according to the video stream can be to analyze the video stream data through a trained model to obtain the first motion vector group, or to calculate the video stream data with the video stream data as an input parameter through a program algorithm to obtain the first motion vector group. The specific method can be selected according to actual needs and is not limited here.

[0074] This step utilizes the video stream transmission method. By receiving and processing the video stream data at the same time, it greatly improves the problem of low efficiency in real-time transmission of video data information on the network. By analyzing and processing the video stream data, the direction and speed of movement of the car and ropeway in three-dimensional space are obtained, thereby providing basic data for subsequent steps.

[0075] It can be understood that, after acquiring the video of the aircraft monitoring the ropeway and the car, this step transmits it in real time by means of video streaming, thereby improving the data acquisition efficiency of the detection system.

[0076] Optionally, before this step, the three-dimensional data of the ropeway and the car box may be reconstructed so that the video stream information obtained by the reconstruction can be processed in this step. The specific process is as follows:

[0077] According to the current posture matrix of the detection device, the camera internal parameter matrix and the center coordinates of the cableway sampling point, the cableway image coordinates of the cableway sampling point center coordinates under the projection of the detection device are obtained; the cableway image coordinates are superimposed on the original video stream data to obtain a monitoring screen image;

[0078] According to the monitoring screen image, obtaining the actual marking point of the cableway sampling point and the actual position information of the car on the cableway;

[0079] The video stream data is obtained according to the actual marking points of the ropeway and the actual position information of the car.

[0080] Among them, the center coordinates of the cableway sampling points refer to the coordinate points recorded along each cableway with a certain step length when the general terrain of the scene and the cableway structure are known. By calculating the current pose matrix of the detection device and the camera internal parameter matrix, the adverse effects of dynamic changes in the captured image caused by the continuous changes in the flight trajectory, speed and posture of the detection device are reduced. After reducing the impact of the dynamic changes of the detection device, the cableway image coordinates are superimposed on the original monitoring screen information to obtain a more accurate monitoring screen image. By processing the monitoring screen image, the actual marking points of the cableway and the actual position information of the car on the cableway are finally obtained, thereby obtaining video stream data.

[0081] Optionally, obtaining the actual marking point of the cableway sampling point and the actual position information of the car on the cableway according to the monitoring screen image includes:

[0082] According to the cableway image coordinates, the cableway separation pixels closest to the cableway image coordinates are obtained; according to the cableway separation pixels, the actual marking points of the cableway are obtained; and the car object on the cableway is identified by a recognition model to obtain the actual position information of the car.

[0083] Among them, the monitoring screen is segmented in real time, and for each cableway image coordinate, the nearest cableway separation pixel is found to generate the actual marking point of the cableway sampling point. The car object is identified through the pre-trained YOLO model. Similarly, the image of the car object is analyzed according to the detection device posture and intrinsic parameter matrix to obtain the actual position of the car on the cableway.

[0084] S102: Correcting the first motion vector group according to the motion state of the detection device itself to obtain a corrected second motion vector group.

[0085] It can be understood that when the detection device is monitoring the ropeway and the car, the detection device itself is also in dynamic motion, so if you want to get the accurate running speed and direction of the ropeway and the car, you need to correct the running speed and direction of the ropeway and the car according to the running state of the detection device itself. The specific correction method can be that the detection device records its own flight speed and direction at the same time as it starts to monitor the ropeway and the car, and then during the correction process, at the same time, the speed and direction of the ropeway and the car after correction are calculated based on the movement speed and direction of the ropeway and the car and the speed and direction of the detection device itself, and the speed and direction data of the ropeway and the car after correction are sorted to obtain the second motion vector group.

[0086] This step eliminates the interference of the detection equipment's own movement on the collection of cableway and car motion data through correction, thereby ensuring the accuracy of the acquisition of cableway and car motion data. It is an important means to ensure the extraction and tracking of cableways and cars in dynamic scenes.

[0087] S103: Processing the video stream data through the motion prediction model to obtain a third motion vector group and an optical flow atlas of the car and the ropeway in a normal state.

[0088] The motion model is often used to predict the future position or trajectory of an object from a video sequence, and the optical flow atlas is used to indicate the motion direction and speed of the car and the ropeway.

[0089] In this step, for the motion prediction model, either an existing motion prediction model that has been trained and mature, such as a recurrent neural network model, can be used, or targeted training can be performed based on the existing model. The specific method is selected according to the needs and is not limited here.

[0090] Based on the motion prediction model according to the video stream data, the motion state of the car and ropeway is predicted to determine their motion direction, trajectory, speed and behavior.

[0091] It can be understood that processing the video stream data through the motion prediction model can not only measure the future position or trajectory of the car and ropeway, but also maximize the accuracy of the image and eliminate the interference of the external environment on the accuracy of the car and ropeway motion data.

[0092] S104: Obtain a first warning score according to the system error of the motion prediction model and the second motion vector group and the third motion vector group.

[0093] The system error refers to the system error of the motion prediction model obtained after analyzing and comparing the different data obtained after processing the same data set through the optical flow estimation model and the motion prediction model. The system error is used as a dependent variable in the calculation of the first warning score in this step.

[0094] It can be understood that for the same video stream data, by analyzing the second motion vector group and the third motion vector group obtained in different ways and combining the system error, the accuracy of obtaining the cableway and car motion data can be maximized, thereby predicting the position or trajectory of the car and cableway based on relatively accurate motion data, thereby determining the first warning score.

[0095] S105: According to the optical flow atlas, the frequency of the oscillating motion of the car in each component in the optical flow atlas is obtained, and a second warning score is calculated according to the frequency.

[0096] The optical flow atlas is used to indicate the movement direction and speed of the car and the ropeway.

[0097] For each frame in the optical flow atlas, the main motion vector of the center area of ​​the car is marked, and then the frequency of the current car oscillation motion in each component is obtained according to the period of the oscillation motion of the center area of ​​the car. The second warning score calculated according to the frequency can detect sudden changes in the oscillation frequency of the car. The second warning score is used to indicate the stability of the car during operation.

[0098] S106: Outputting the warning level of the cableway wheel assembly operation status according to the first warning score and the second warning score.

[0099] The first warning score is used to indicate the position or trajectory of the car and ropeway predicted by the motion data. If the predicted position or trajectory exceeds a certain threshold, the first warning score is given according to the size of the part exceeding the threshold. The second warning score indicates the stability of the car during operation according to the sudden change in the oscillation frequency of the car. The lower the stability, the higher the warning score.

[0100] The method of outputting the warning level of the cableway wheel group operation status according to the first warning score and the second warning score can be: Calculate the warning level.

[0101] in Represents the warning level, Represents the first warning score, The warning level is obtained by adding the first warning score and the second warning score. The higher the score obtained by adding the first warning score, the higher the warning level.

[0102] This step calculates the warning level based on the first warning score and the second warning score, and the warning level can be determined by comprehensively considering the movement trajectory and stability of the ropeway and the car.

[0103] The method for detecting the operating status of a ropeway wheel group provided in an embodiment of the present application obtains a first motion vector group of a ropeway and a car in a normal state through a video stream, corrects the first motion vector group according to the motion state of a detection device to obtain a second motion vector group, and then processes the video stream data through a motion prediction model to obtain a third motion vector group and an optical flow atlas of the ropeway and the car, obtains a first warning score according to the second motion vector group, the third motion vector group and the system error of the motion prediction model, obtains the frequency of the car in each component according to the oscillating motion of the car in the optical flow atlas, obtains a second warning score according to the frequency calculation, and outputs the warning level of the operating status of the ropeway wheel group according to the first warning score and the second warning score, thereby achieving the effect of accurately extracting and tracking objects from a continuous video stream in a diverse environment and dynamic scene, and making early warning prompts in a timely manner.

[0104] Figure 2 Schematic diagram of the process of detecting the operating status of the cableway wheel group provided in this application Figure 2 ,like Figure 2 As shown, in this embodiment Figure 2 Based on the embodiment, the detection of the running state of the cableway wheel group is described in detail, and the method includes:

[0105] S201: Obtain a data set by cropping video stream data.

[0106] The data set refers to a set of images obtained by trimming a video stream.

[0107] The cropping method can be performed by professional cropping software, or by setting the cropping requirements through an algorithm program to perform targeted cropping on the required video stream data. The specific method is determined according to the requirements and is not limited here.

[0108] The purpose of trimming in this step is to trim other video data that does not belong to the car and ropeway, and then trim the data of the car and ropeway in a static state to obtain only the video data of the car and ropeway in motion. After obtaining the video data of the car and ropeway in motion, use the pre-trained recognition model to identify the ropeway and car in the video data. The training and quantification methods of the recognition model include: collecting a large number of pictures of cableway scenes, and using an offline semantic segmentation model (such as SegmentAnything) to perform automatic pixel-level batch segmentation; selecting multiple pictures (about 5 pictures) from the automatically segmented images, manually annotating the segmented areas of these pictures, and marking which parts are the car bodies; according to the manual annotation results, the program automatically establishes a mapping table from the segmented areas to the annotations, and generates a data set in combination with the batch-processed pictures; mixing the generated data set with the corresponding common YOLO recognition data set (such as containing people and animals) to generate a new data set, and using it to train YOLOv5; after confirming the car body in each frame of each video stream through the recognition model, cropping the corresponding video so that the video size is fixed and always contains the car body itself.

[0109] It can be understood that by cutting, the required video data can be quickly and accurately determined, and the interference of a large amount of useless video data can be eliminated. The use of the recognition model can further identify the video data that needs to be analyzed, so as to determine the location information of the cableway and the car in the video. In this step, the cropping and recognition model to a certain extent solve the real-time and accuracy problems of accurately extracting and tracking the cableway and the car in the continuous video stream due to the complexity of the outdoor scene.

[0110] S202: performing optical flow estimation on the data set according to the optical flow estimation model to obtain a first motion vector group of the car and the ropeway in a normal state.

[0111] The optical flow estimation model refers to a method that can track the changes of these feature points between different frames based on the key points or features in the image, thereby obtaining the movement of the pixel points representing the same object (object) in the video image to the next frame, represented by a two-dimensional vector. The optical flow estimation method can be to use an optical flow estimation model (such as FlowNet-2) to perform optical flow estimation on the cropped data set, and add the motion state of the detection device itself for correction to obtain the first motion vector group of the car and ropeway in a normal state.

[0112] In this step, the optical flow estimation of the cropped image is performed to obtain the motion data set of the car and the ropeway, which can be used as the basic data for the subsequent analysis. The use of the above optical flow estimation model realizes real-time target detection and analysis, which is an important way to ensure that the detection system can issue early warning prompts in a timely manner.

[0113] S203: Correcting the first motion vector group according to the motion state of the detection device itself to obtain a corrected second motion vector group.

[0114] Among them, step S203 is similar to step S102, so it is not repeated here.

[0115] S204: Processing the video stream data through the motion prediction model to obtain a third motion vector group and an optical flow atlas of the car and the ropeway in a normal state.

[0116] Among them, step S204 is similar to step S103, so it is not repeated here.

[0117] S205: Acquire a test set and a training set, and train the motion prediction model using the training set.

[0118] Among them, the motion prediction model is often used to predict the future position or trajectory of an object from a video sequence. The motion prediction model in this embodiment needs to be trained so as to adapt to the motion prediction of a specific car and cableway in a specific environment. The training method can be to first identify the cableway and car in each frame image in the video stream through the recognition model, and then perform optical flow analysis on the identified car and cableway through the optical flow estimation model to obtain the motion data set of the car and cableway as a training set, and then train the model according to the training set to obtain the motion prediction model.

[0119] It is understandable that the motion prediction model obtained through training with the training set can improve the efficiency of predicting the motion trajectory and position of the car and ropeway, and is also an important means for the detection system to make early warnings in real time.

[0120] S206: Processing the data of the test set by the motion prediction model to obtain first output data.

[0121] Among them, the trained motion prediction model needs to be tested through a test set so as to optimize the motion prediction model according to its accuracy. Therefore, the test set obtains the first output data through the motion prediction model as a comparison indicator for optimizing the motion prediction model.

[0122] S207: Process the data of the test set through the optical flow estimation model to obtain second output data.

[0123] In order to optimize the motion prediction model, it is necessary to obtain second output data from the test set through the optical flow estimation model, so as to use the second output data as another comparison index for optimizing the motion prediction model.

[0124] S208: Obtaining a system error by comparing the first output data with the second output data.

[0125] By comparing the first output data and the second output data, the mean and variance of the errors between the first output data and the second output data are solved, and the system error of the motion prediction model is obtained according to the mean and the variance.

[0126] The way to get the system error of the motion prediction model based on the mean and variance is:

[0127]

[0128] in The systematic error of represents the mean, Represents variance.

[0129] It can be understood that the acquisition of system errors can better optimize the motion prediction model so that the efficiency of predicting the motion trajectory and position of the car and ropeway can be improved through the motion prediction model. It is also an important way for the detection system to make real-time and accurate early warnings.

[0130] S209: Obtaining an error probability by calculating a first parameter value, wherein the first parameter value includes: a system error, a second motion vector group, and a third motion vector group.

[0131] Among them, the calculation of the error probability is mainly based on the system error, the second motion vector group and the third motion vector group. The difference value is obtained by comparing the difference between the second motion vector group and the third motion vector group, and the error probability is calculated based on the difference value combined with the system error.

[0132] The error probability is calculated based on the difference value combined with the system error: the difference value refers to the difference value obtained by subtracting the third motion vector group V2 from the second motion vector group V1, and the error probability is obtained by multiplying the obtained difference value and the system error. It can be expressed by the formula: p = (V1-V2).

[0133] Where p represents the error probability, represents the system error, V1 represents the second motion vector group, V2 represents the third motion vector group, and (V1-V2) represents the difference value.

[0134] The error probability obtained in this step can be used as basic data for subsequent program calculations.

[0135] S210: Calculate the information entropy of the error probability, and use the information entropy as the first warning score.

[0136] The information entropy refers to a measure of uncertainty of random variables in information theory. The degree of uncertainty of error probability can be clearly observed through the information entropy of error probability. It can be understood that the greater the uncertainty of the information entropy, the lower the controllability of the movement of the car and the ropeway. Therefore, the information entropy can be used as the first warning score.

[0137] S211: Obtain the frequency of the car oscillation motion in each component by performing fast Fourier transform on the second parameter, wherein the second parameter includes: a main motion vector of the center area of ​​the car, a motion start time, and a total motion time.

[0138] In this step, for each frame in the data stream, the main motion vector of the center area of ​​the car box is marked. , for each segment starting at time , the total movement time is x in the time window, along As time changes, we perform fast Fourier transform to obtain the frequency of the current car oscillation motion in each component .

[0139] S212: Obtain a second warning score according to the derivative of the frequency with respect to time.

[0140] Among them, the sudden change of the oscillation frequency of the car can be detected by the derivative of the frequency with respect to time. This sudden change can be used to describe the stability of the car during operation. The larger the derivative, the greater the change in frequency, and the lower the stability of the car during operation.

[0141] S213: Outputting the warning level of the cableway wheel assembly operation status according to the first warning score and the second warning score.

[0142] Among them, the first warning score describes the predicted controllability of the car and ropeway during operation, and the second warning score describes the stability of the car during operation. The warning level is determined and timely prompts are given through real-time comprehensive evaluation of controllability and stability.

[0143] The method of outputting the warning level of the cableway wheel group operation status according to the first warning score and the second warning score can be: Calculate the warning level.

[0144] in Represents the warning level, Represents the first warning score, The warning level is obtained by adding the first warning score and the second warning score. The higher the score obtained by adding the first warning score, the higher the warning level.

[0145] The detection method of the running state of the ropeway wheel group provided in the embodiment of the present application obtains a data set by cutting the video stream data, performs optical flow estimation on the data set, obtains the motion data of the car and the ropeway, corrects the motion data according to the motion state of the detection device itself to obtain the corrected motion data, trains the motion prediction model in advance, processes the video stream data through the motion prediction model to obtain the predicted motion data, obtains the error probability according to the corrected motion data and the predicted motion data and the system error, uses the information entropy of the error probability as the first warning score, obtains the frequency according to the main motion vector of the center area of ​​the car, the start time of the motion, and the total time of the motion, and obtains the second warning score according to the derivative of the frequency with respect to time, and outputs the warning level according to the first warning score and the second warning score. It realizes the effect of accurately extracting and tracking things from the continuous video stream in diversified environments and dynamic scenes, and making early warning prompts in time.

[0146] Figure 3 The schematic diagram of the structure of the detection device for the operating status of the cableway wheel group provided in this application is as follows: Figure 3 As shown, the detection device 300 for the operating state of a cableway wheel assembly provided in this embodiment includes:

[0147] An acquisition module 301 is used to acquire video stream data of a cableway wheel assembly through a detection device;

[0148] A processing module 302, configured to obtain a first motion vector group of the car and the ropeway in a normal state according to the video stream data;

[0149] The processing module 302 is further configured to modify the first motion vector group according to the motion state of the detection device itself to obtain a modified second motion vector group;

[0150] The processing module 302 is further used to process the video stream data through a motion prediction model to obtain a third motion vector group and an optical flow atlas of the car and the ropeway in a normal state;

[0151] The processing module is further used to obtain a first warning score according to the system error of the motion prediction model and the second motion vector group and the third motion vector group;

[0152] The processing module 302 is further configured to obtain the frequency of the oscillating motion of the car in each component in the optical flow atlas according to the optical flow atlas, and calculate a second warning score according to the frequency;

[0153] The output module 303 is used to output the warning level of the cableway wheel assembly operation status according to the first warning score and the second warning score.

[0154] Optionally, the processing module 302 is further used to obtain the cableway image coordinates of the center coordinates of the cableway sampling point under the projection of the detection device according to the current posture matrix of the detection device, the camera internal parameter matrix and the center coordinates of the cableway sampling point; superimpose the cableway image coordinates on the original video stream data to obtain a monitoring screen image; obtain the actual marking points of the cableway at the cableway sampling point and the actual position information of the car on the cableway according to the monitoring screen image; obtain the video stream data according to the actual marking points of the cableway and the actual position information of the car.

[0155] Optionally, the processing module 302 is specifically used to obtain the cableway separation pixel closest to the cableway image coordinates according to the cableway image coordinates; obtain the actual marking point of the cableway according to the cableway separation pixel; and identify the car object on the cableway through the recognition model to obtain the actual position information of the car.

[0156] Optionally, the processing module 302 is specifically used to obtain a data set by cropping the video stream data; perform optical flow estimation on the data set according to an optical flow estimation model to obtain a first motion vector group of the car and the cableway in a normal state, wherein the data set is used to indicate a set of images.

[0157] Optionally, the processing module 302 is specifically used to train and test the motion prediction model to obtain the system error; obtain the error probability by calculating the first parameter value, wherein the first parameter value includes: the system error, the second motion vector group and the third motion vector group; calculate the information entropy of the error probability, and use the information entropy as the first warning score.

[0158] Optionally, the acquisition module 301 is specifically used to acquire a test set and a training set.

[0159] Optionally, the processing module 302 is specifically used to train the motion prediction model through a training set; obtain first output data after processing the data of the test set through the motion prediction model; obtain second output data after processing the data of the test set through an optical flow estimation model; and obtain the system error by comparing the first output data and the second output data.

[0160] Optionally, the processing module 302 is specifically used to obtain the frequency of the car oscillation motion in each component by performing fast Fourier transform on the second parameter, wherein the second parameter includes: the main motion vector of the center area of ​​the car, the start time of the motion, and the total motion time; and obtain the second warning score based on the derivative of the frequency with respect to time.

[0161] The detection device 300 for the operating status of a cableway wheel assembly provided in this embodiment can execute the method provided in the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be described in detail here.

[0162] Figure 4 This is a schematic diagram of the structure of the detection device for the operation status of the cableway wheel group provided in this application. Figure 4 As shown, the detection device 400 for the operation status of a cableway wheel assembly provided in this embodiment includes: a memory 402;

[0163] Processor 401;

[0164] Wherein, the memory 402 stores computer-executable instructions;

[0165] The processor 401 executes the computer-executable instructions stored in the memory to implement the method for detecting the operating status of the cableway wheel assembly as shown in the above embodiment.

[0166] The present application also provides a computer storage medium, in which computer execution instructions are stored. When the computer execution instructions are executed by a processor, they are used to implement the method for detecting the operating status of the cableway wheel group shown in the above embodiment.

[0167] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required by the present application.

[0168] It should be further noted that, although the various steps in the flowchart are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless there is a clear description in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the flowchart may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these sub-steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.

[0169] It should be understood that the above-mentioned device embodiments are only illustrative, and the device of the present application can also be implemented in other ways. For example, the division of units / modules in the above-mentioned embodiments is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units, modules or components can be combined, or can be integrated into another system, or some features can be ignored or not executed.

[0170] In addition, unless otherwise specified, each functional unit / module in each embodiment of the present application may be integrated into one unit / module, each unit / module may exist physically separately, or two or more units / modules may be integrated together. The above-mentioned integrated unit / module may be implemented in the form of hardware or in the form of a software program module.

[0171] If the integrated unit / module is implemented in the form of hardware, the hardware may be a digital circuit, an analog circuit, etc. The physical implementation of the hardware structure includes but is not limited to transistors, memristors, etc. Unless otherwise specified, the processor may be any appropriate hardware processor, such as CPU, GPU, FPGA, DSP, and ASIC, etc. Unless otherwise specified, the storage unit may be any appropriate magnetic storage medium or magneto-optical storage medium, such as Resistive Random Access Memory (RRAM), Dynamic Random Access Memory (DRAM), Static Random Access Memory (SRAM), Enhanced Dynamic Random Access Memory (EDRAM), High-Bandwidth Memory (HBM), Hybrid Memory Cube (HMC), etc.

[0172] If the integrated unit / module is implemented in the form of a software program module and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a memory, including a number of instructions to enable a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the various embodiments of the present application. The aforementioned memory includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk and other media that can store program codes.

[0173] In the above embodiments, the description of each embodiment has its own emphasis. For parts not described in detail in a certain embodiment, please refer to the relevant description of other embodiments. The technical features of the above embodiments can be combined arbitrarily. In order to make the description concise, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0174] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.

[0175] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A method for detecting the operating status of a cableway wheel assembly, It is characterized in that Applied to the detection system, the detection method comprises: Acquire video stream data of a ropeway wheel assembly through a detection device, and obtain a first motion vector group of a car and a ropeway in a normal state according to the video stream data, wherein the ropeway wheel assembly includes a car and a ropeway; Correcting the first motion vector group according to the motion state of the detection device itself to obtain a corrected second motion vector group; Processing the video stream data through a motion prediction model to obtain a third motion vector group and an optical flow atlas of the car and the ropeway in a normal state, wherein the optical flow atlas is used to indicate the motion direction and speed of the car and the ropeway; Performing training and testing on the motion prediction model to obtain a system error; Obtaining an error probability by calculating a first parameter value, wherein the first parameter value includes: the system error, the second motion vector group, and the third motion vector group; Calculating the information entropy of the error probability, and using the information entropy as a first warning score; The frequency of the car oscillation motion in each component is obtained by performing fast Fourier transform on the second parameter, wherein the second parameter includes: the main motion vector of the car center area, the motion start time, and the total motion time; Obtaining a second warning score according to the derivative of the frequency with respect to time; The warning level of the cableway wheel assembly operation state is output according to the first warning score and the second warning score.

2. The method according to claim 1, It is characterized in that The training and testing of the motion prediction model to obtain the system error includes: Obtaining a test set and a training set, and training the motion prediction model using the training set; Processing the data of the test set by the motion prediction model to obtain first output data; The second output data is obtained after processing the data of the test set through the optical flow estimation model; The system error is obtained by comparing the first output data with the second output data.

3. The method according to claim 1, It is characterized in that The method of acquiring video stream data of the ropeway wheel assembly through a detection device and obtaining a first motion vector group of the car and the ropeway in a normal state according to the video stream data comprises: Obtaining a data set by cropping the video stream data; The optical flow of the data set is estimated by FlowNet-2 to obtain a first motion vector group of the car and the ropeway in a normal state, wherein the data set is used to indicate a set of images.

4. The method according to claim 1, It is characterized in that Before acquiring the video stream data of the ropeway wheel group by the detection device and obtaining the first motion vector group of the car and the ropeway in a normal state according to the video stream data, the method further includes: According to the current posture matrix of the detection device, the camera internal parameter matrix and the center coordinates of the cableway sampling point, the cableway image coordinates of the center coordinates of the cableway sampling point under the projection of the detection device are obtained; The cableway image coordinates are superimposed on the original video stream data to obtain a monitoring screen image; According to the monitoring screen image, obtaining the actual marking point of the cableway sampling point and the actual position information of the car on the cableway; The video stream data is obtained according to the actual marking point of the ropeway and the actual position information of the car.

5. The method according to claim 4, It is characterized in that The step of obtaining the actual marking point of the cableway sampling point and the actual position information of the car on the cableway according to the monitoring screen image includes: According to the cableway image coordinates, obtaining the cableway separation pixel closest to the cableway image coordinates; Acquire the actual marking point of the cableway according to the cableway separation pixel; The car object on the ropeway is identified by the YOLO model to obtain the actual position information of the car.

6. A device for detecting the operating status of a cableway wheel assembly, It is characterized in that include: An acquisition module, used for acquiring video stream data of the cableway wheel assembly through a detection device; A processing module, used for obtaining a first motion vector group of the car and the ropeway in a normal state according to the video stream data; The processing module is further used to correct the first motion vector group according to the motion state of the detection device itself to obtain a corrected second motion vector group; The processing module is further used to process the video stream data through a motion prediction model to obtain a third motion vector group and an optical flow atlas of the car and the ropeway in a normal state; The processing module is further used to train and test the motion prediction model to obtain a system error, obtain an error probability by calculating a first parameter value, wherein the first parameter value includes: the system error, the second motion vector group and the third motion vector group, calculate the information entropy of the error probability, and use the information entropy as a first warning score; The processing module is further used to obtain the frequency of the car oscillation motion in each component by performing a fast Fourier transform on a second parameter, wherein the second parameter includes: a main motion vector of the center area of ​​the car, a motion start time, and a total motion time, and obtain a second warning score according to a derivative of the frequency with respect to time; An output module is configured to output a warning level of the operation status of the cableway wheel assembly according to the first warning score and the second warning score.

7. A device for detecting the operating status of a ropeway wheel assembly, It is characterized in that include: Memory, processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor performs the method according to any one of claims 1 to 5.

8. A storage medium, It is characterized in that The storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 5 when executed by a processor.